[libvirt] Linker error in gnulib test-binary-io.c

Matthias Bolte matthias.bolte at googlemail.com
Wed Jul 18 20:29:18 UTC 2012

2012/6/17 Matthias Bolte <matthias.bolte at googlemail.com>:
> I get the following error on Ubuntu 11.04 with current libvirt git HEAD:
> $ make check
> [...]
>   CC     test-binary-io.o
> test-binary-io.c: In function 'main':
> test-binary-io.c:54:7: warning: implicit declaration of function
> 'set_binary_mode'
>   CCLD   test-binary-io
> test-binary-io.o: In function `main':
> [...]/test-binary-io.c:54: undefined reference to `set_binary_mode'
> collect2: ld returned 1 exit status

A more detailed look revealed that have a broken version of
binary-io.h in the tests directory which didn't belong there. Removing
this file fixed the issue.

I've no clue how the broken version of binary-io.h got there.

Matthias Bolte

More information about the libvir-list mailing list