serveez needs flag for -pthread on Fedora 15

Mike Gran <[email protected]> Fri, 27 May 2011 19:12:49 -0700 (PDT)
Newsgroups gmane.network.serveez.devel
Message-ID <[email protected]>
Hi-

When building serveez 'next' head on Fedora 15 i686, the linking of the ser=
veez
executable fails because of a missing pthread DSO.

The specific text is=A0

libtool: link: gcc -std=3Dgnu99 -g -O2 -o serveez gi.o serveez.o guile.o cf=
gfile.o option.o guile-server.o guile-bin.o=A0 -L/usr/local/lib -lguile foo=
-server/libfoo.a sntp-server/libsntp.a nut-server/libnut.a tunnel-server/li=
btunnel.a ctrl-server/libctrl.a irc-server/libircserver.a irc-core/libircco=
re.a awcs-server/libawcs.a http-server/libhttp.a fakeident-server/libfakeid=
ent.a prog-server/libprog.a libserveez/.libs/libserveez.a -lz -lbz2 -ldl
/usr/bin/ld: gi.o: undefined reference to symbol 'pthread_getspecific@@GLIB=
C_2.0'
/usr/bin/ld: note: 'pthread_getspecific@@GLIBC_2.0' is defined in DSO /lib/=
libpthread.so.0 so try adding it to the linker command line
/lib/libpthread.so.0: could not read symbols: Invalid operation


Re-running ./configure with LIBS=3D-lpthread allows for a successful compil=
e.


If I recall correctly, there is an AX_PTHREAD module in the autoconf archiv=
e that might
be pressed into service to work around this configure problem.

Thanks,

Mike Gran