[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#4674) openldap-stable-20060823 build fails on old Linux
alguibert+bts@free.fr wrote:
> Hello Howard,
>
> On Wednesday, September 20, 2006 at 20:37:19 -0700, Howard Chu wrote:
>
>> alguibert+bts@free.fr wrote:
>>> | getpeereid.c:113: `MSG_WAITALL' undeclared (first use this function)
>> You can safely workaround this:
>> #ifndef MSG_WAITALL
>> #define MSG_WAITALL 0
>> #endif
>
> Thank you. I inserted those 3 lines at the beginning of
> libraries/liblutil/getpeereid.c, and this file compiled without error.
> However there is another error later:
Looks like configure found the poll() function but didn't detect the
<poll.h> include file. You should probably undef HAVE_POLL anyway, since
it is just emulated using select() on that kernel. (Edit
include/portable.h and comment out the HAVE_POLL definition.)
I've fixed this in HEAD, the configure script will also check for
<sys/poll.h> and include/ac/socket.h will define things appropriately.
But you should just ignore poll for now.
>
> | cc -g -O2 -I../../include -I../../include -DLDAP_LIBRARY -c os-ip.c -fPIC -DPIC -o .libs/os-ip.o
> | In file included from /usr/include/sys/time.h:6,
> | from ../../include/ac/time.h:21,
> | from os-ip.c:33:
> | /usr/include/linux/time.h:29: warning: `FD_SETSIZE' redefined
> | ../../include/ac/fdset.h:38: warning: this is the location of the previous definition
> | os-ip.c: In function `ldap_pvt_connect':
> | os-ip.c:258: storage size of `fd' isn't known
> | os-ip.c:259: `INFTIM' undeclared (first use this function)
> | os-ip.c:259: (Each undeclared identifier is reported only once
> | os-ip.c:259: for each function it appears in.)
> | os-ip.c:264: `POLL_WRITE' undeclared (first use this function)
> | os-ip.c: At top level:
> | os-ip.c:664: field `si_fds' has incomplete type
> | os-ip.c: In function `ldap_mark_select_write':
> | os-ip.c:691: `POLL_WRITE' undeclared (first use this function)
> | os-ip.c: In function `ldap_mark_select_read':
> | os-ip.c:736: `POLL_READ' undeclared (first use this function)
> | os-ip.c: In function `ldap_is_write_ready':
> | os-ip.c:808: `POLL_WRITE' undeclared (first use this function)
> | os-ip.c: In function `ldap_is_read_ready':
> | os-ip.c:837: `POLL_READ' undeclared (first use this function)
> | os-ip.c: In function `ldap_int_select':
> | os-ip.c:921: `INFTIM' undeclared (first use this function)
> | make[2]: *** [os-ip.lo] 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.
>
>
--
-- Howard Chu
Chief Architect, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc
OpenLDAP Core Team http://www.openldap.org/project/