Re: [libvirt] pthread_sigmask undefined reference error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 21, 2008 at 02:36:33PM +0900, Jun Koi wrote:
> Hi,
> 
> The latest cvs version has an error when compiling:

> -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs
> -Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings
> -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls
> -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fasynchronous-unwind-tables    -o virsh virsh-console.o
> virsh-util-lib.o virsh-virsh.o -Wall -Wformat -Wformat-security
> -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -Wshadow
> -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes
> -Winline -Wredundant-decls -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2
> -fexceptions -fasynchronous-unwind-tables  libvirt.la
> ../gnulib/lib/libgnu.la
> gcc -g -O2 -Wall -Wformat -Wformat-security -Wmissing-prototypes
> -Wnested-externs -Wpointer-arith -Wextra -Wshadow -Wcast-align
> -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Winline
> -Wredundant-decls -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2
> -fexceptions -fasynchronous-unwind-tables -o .libs/virsh
> virsh-console.o virsh-util-lib.o virsh-virsh.o -Wall -Wformat
> -Wformat-security -Wmissing-prototypes -Wnested-externs
> -Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings
> -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls
> -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fasynchronous-unwind-tables  ./.libs/libvirt.so
> ../gnulib/lib/.libs/libgnu.a
> ./.libs/libvirt.so: undefined reference to `pthread_sigmask'
> collect2: ld returned 1 exit status
> make[3]: *** [virsh] Error 1
> make[3]: Leaving directory `/home/jun/projects/libvirt-0821/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/jun/projects/libvirt-0821/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/jun/projects/libvirt-0821'
> make: *** [all] Error 2
> 
> 
> It seems I lack a particular library??

That symbol is in libpthread.so which we should already be linking
against because we already use many pthread symbols. Can you provide
the output of 

  $ ldd src/.libs/libvirt.so.0


And what OS distribution, version and CPU architecture are you using ?


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 :|

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]