
On Thu, Aug 21, 2008 at 08:23:21PM +0200, Jim Meyering wrote:
"Jun Koi" <junkoi2004@gmail.com> wrote:
The latest cvs version has an error when compiling:
make[3]: Entering directory `/home/jun/projects/libvirt-0821/src' /bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -Wall ... ./.libs/libvirt.so: undefined reference to `pthread_sigmask' collect2: ld returned 1 exit status make[3]: *** [virsh] Error 1
Thanks for the report. Next time, please tell us about your system, because I didn't 'see any such problem on a rawhide-based build. However, I did reproduce it on a Debian/unstable system.
I think what's going on here is some linker fun with libtool / pkgconfig On Fedora it appears we end up automatically linked against pthread.so as a result of libxml2 (or some othe lib) being linked against it. I expect that Debian isn't doing this implicit linkage for us. In any case we should rely on Fedora behaviour, so this patch looks reasonable to me. Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|