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

Re: (ITS#8863) openldap compilation failure when



# It's possible (for near-UNIX clones) that sys_errlist doesn't exist
if test $ol_cv_dcl_sys_errlist = no ; then

above lines are from configure script , i don't want my binaries and
libraries do be dependent on the symbols of errlist and nerr .

As per mail trace "Re: How to get rid of sys_errlist and sys_nerr? -
OpenLDAP" , this issue seems to existing from long back. The solution
given is still not working.

On 6/6/18, Howard Chu <hyc@symas.com> wrote:
> ramakanth.varala@gmail.com wrote:
>> Full_Name: Rama Kanth Varala
>> Version: 2.4.46
>> OS: Cent OS Release 5.7
>> URL: ftp://ftp.openldap.org/incoming/openldap-bug.txt
>> Submission from: (NULL) (72.163.217.107)
>>
>>
>> I am trying to compile my binaries in a machine with has glibc 2.5   .
>> Then i
>> take these
>>   ldap libraries to link with the other process which is getting compiled
>> in
>> glibc 2.3.4.
>>
>> I am compiling with option of ol_cv_dcl_sys_errlist=no , so that i can
>> disable
>> offending symbols (sys_nerr and sys_errlist). configure go smooth but
>> compilation fails.
>>
>> Below is the compilation failure trace.
>>
>> cc -g -O2 -I../../include -I../../include -I/usr/local/db48/include
>> -DLDAP_LIBRARY -c string.c  -fPIC -DPIC -o .libs/string.o
>>   cc -g -O2 -I../../include -I../../include -I/usr/local/db48/include
>> -DLDAP_LIBRARY -c string.c -o string.o >/dev/null 2>&1
>> /bin/sh ../../libtool  --mode=compile cc -g -O2 -I../../include
>> -I../../include   -I/usr/local/db48/include   -DLDAP_LIBRARY -c
>> util-int.c
>>   cc -g -O2 -I../../include -I../../include -I/usr/local/db48/include
>> -DLDAP_LIBRARY -c util-int.c  -fPIC -DPIC -o .libs/util-int.o
>> In file included from /usr/include/stdio.h:754,
>>                   from /usr/include/resolv.h:64,
>>                   from ../../include/ac/socket.h:58,
>>                   from util-int.c:32:
>> /usr/include/bits/sys_errlist.h:27: error: expected identifier or '('
>> before numeric constant
>> /usr/include/bits/sys_errlist.h:28: error: expected identifier or '('
>> before 'char'
>> /usr/include/bits/sys_errlist.h:28: error: expected ')' before numeric
>> constant
>> make[2]: *** [util-int.lo] Error 1
>> make[2]: Leaving directory
>> `/home/admin/bug/openldap-2.4.46/libraries/libldap'
>> make[1]: *** [all-common] Error 1
>> make[1]: Leaving directory `/home/admin/bug/openldap-2.4.46/libraries'
>> make: *** [all-common] Error 1
>
> What makes you think this is an OpenLDAP issue? The error message clearly
> says
> sys_errlist.h was included from stdio.h - we have no control over that.
>>
>> Uploading the comple configure log and compilation traces.
>>
>>
>
>
> --
>    -- Howard Chu
>    CTO, Symas Corp.           http://www.symas.com
>    Director, Highland Sun     http://highlandsun.com/hyc/
>    Chief Architect, OpenLDAP  http://www.openldap.org/project/
>