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

link warnings in client tools



Title: link warnings in client tools

Hi all,

I'm compiling openldap 2.1.30 with gcc 3.2.3.
I get the following warning when compiling the clients tools in the package.

/bin/sh /home/philippe/2.5/imports/openldap/libtool --mode=link cc -static -g -O2     -o ldapsearch ldapsearch.o common.o ldsversion.o ../../libraries/libldif/libldif.a ../../libraries/liblutil/liblutil.a ../../libraries/libldif/libldif.a ../../libraries/libldap/libldap.la ../../libraries/liblber/liblber.la   -lssl -lcrypto    -lresolv -ldl

cc -g -O2 -o ldapsearch ldapsearch.o common.o ldsversion.o  ../../libraries/liblutil/liblutil.a ../../libraries/libldif/libldif.a ../../libraries/libldap/.libs/libldap.a /home/philippe/2.5/imports/openldap/libraries/liblber/.libs/liblber.a ../../libraries/liblber/.libs/liblber.a -lssl -lcrypto -lresolv -ldl

../../libraries/libldap/.libs/libldap.a(os-ip.o): In function `ldap_pvt_is_socket_ready':
/home/philippe/2.5/cloudmark/imports/openldap/libraries/libldap/os-ip.c:191: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead

/home/philippe/2.5/cloudmark/imports/openldap/libraries/libldap/os-ip.c:191: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead

I actually get the same warning for any application I try to link with libldap.
It's the same if I link with libldap_r.
It only happens with gcc 3.2.3. gcc 2.96 doesn't complain.

It seems to me that those variables sys_errlist and sys_nerr are indeed deprecated.
Does using those global variables have any impact on the thread safety of applications built on top of libldap?

Thanks.

Philippe