[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#4674) openldap-stable-20060823 build fails on old Linux



 On Thursday, September 21, 2006 at 8:55:53 -0700, Howard Chu wrote:

> alguibert+bts@free.fr wrote:
>>| os-ip.c:258: storage size of `fd' isn't known
>>| os-ip.c:259: `INFTIM' undeclared (first use this function)
>>| os-ip.c:264: `POLL_WRITE' undeclared (first use this function)
>>| os-ip.c:736: `POLL_READ' undeclared (first use this function)
> Looks like configure found the poll() function but didn't detect the
> <poll.h> include file.

Thank you again for your support. Indeed there is a HAVE_POLL, a
/usr/include/sys/poll.h, but no HAVE_POLL_H.


> Edit include/portable.h and comment out the HAVE_POLL definition.

Done, and also tried the alternative: keep HAVE_POLL defined, define
HAVE_POLL_H, and add "sys/" to #include <poll.h>. Both work, thank you.


But make still fails later with another error:

| cc -g -O2 -o apitest apitest.o  ./.libs/libldap.a /tmp/openldap-2.3.27/libraries/liblber/.libs/liblber.a ../../libraries/liblber/.libs/liblber.a ../../libraries/liblutil/liblutil.a -lssl -lcrypto
| ./.libs/libldap.a(os-local.o): In function `ldap_pvt_connect':
| /tmp/openldap-2.3.27/libraries/libldap/os-local.c:198: undefined reference to `_CMSG_ALIGN'
| /tmp/openldap-2.3.27/libraries/libldap/os-local.c:198: undefined reference to `_CMSG_ALIGN'
| /tmp/openldap-2.3.27/libraries/libldap/os-local.c:223: undefined reference to `CMSG_FIRSTHDR'
| /tmp/openldap-2.3.27/libraries/libldap/os-local.c:224: undefined reference to `_CMSG_ALIGN'
| /tmp/openldap-2.3.27/libraries/libldap/os-local.c:228: undefined reference to `CMSG_DATA'
| make[2]: *** [apitest] Error 1
| make[2]: Leaving directory `/tmp/openldap-2.3.27/libraries/libldap'
| make[1]: *** [all-common] Error 1
| make[1]: Leaving directory `/tmp/openldap-2.3.27/libraries'
| make: *** [all-common] Error 1


Alain