Issue 8863 - openldap compilation failure when
Summary: openldap compilation failure when
Status: VERIFIED INVALID
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: 2.4.46
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-06 08:11 UTC by ramakanth.varala@gmail.com
Modified: 2020-03-23 18:30 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description ramakanth.varala@gmail.com 2018-06-06 08:11:36 UTC
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


Uploading the comple configure log and compilation traces.
Comment 1 Howard Chu 2018-06-06 10:26:31 UTC
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/

Comment 2 ramakanth.varala@gmail.com 2018-06-06 11:02:59 UTC
# 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/
>

Comment 3 Quanah Gibson-Mount 2020-03-23 18:30:26 UTC
not an openldap issue