On Mon, Dec 17, 2007, Dieter Klünter wrote: > Birger Krägelin <[EMAIL PROTECTED]> writes: > > > Hello together, > > > > we have problems compiling openldap under Solaris 10 8/07 Sparc. > > > > /bin/sh ../../..//libtool --tag=disable-shared --mode=compile > > /opt/local/bin/cc -O2 -pipe -I/opt/local/include/pth -D_AVL_H > > -I../../../include -I../../../include -I.. -I./.. > > -I/opt/local/include -I/opt/local/include/pth -c monitor.c > > /opt/local/bin/cc -O2 -pipe -I/opt/local/include/pth -D_AVL_H > > -I../../../include -I../../../include -I.. -I./.. -I/opt/local/include > > -I/opt/local/include/pth -c monitor.c -o monitor.o > > In file included from ../../../include/ac/signal.h:20, > > from ../slap.h:38, > > from ../back-monitor/back-monitor.h:28, > > from back-ldap.h:27, > > from monitor.c:33: > > /usr/include/signal.h:222: error: conflicting types for 'pth_sigwait' > > /opt/local/include/pth/pth.h:536: error: previous declaration of > > 'pth_sigwait' was here > > make[3]: *** [monitor.lo] Error 1 > > make[2]: *** [.backend] Error 1 > > make[1]: *** [all-common] Error 1 > > make: *** [all-common] Error 1 > > error: Bad exit status from /opt/local/RPM/TMP/rpm-tmp.10460 (%build) > > You are building with pth instead of libpthread, OpenLDAP calls epoll > which is not understood by pth.
epoll(2) is a Linux thing and hence should be not an issue for OpenLDAP+Pth under Solaris. The problem here is more a conflict between prototypes. Unfortunately I cannot reproduce because I've only an older Solaris 10 available and this is with Solaris 10 8/07. Seems like Sun introduced the function non-standard function pth_sigwait which conflicts with GNU Pth's pth_sigwait. Workaround might beto build "openldap" with "with_pth=no" and "with_pthreads=yes". For a real solution I need a copy of the /usr/include/signal.h from Solaris 08/07 in order to attempt to resolve the conflict via some GNU Pth hacking... Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ OpenPKG http://openpkg.org User Communication List openpkg-users@openpkg.org