Hi all, this is my first post in this list.
I downloaded head tree from OL CVS and made some compile runs. I see some warning about some deprecated functions and so on... I'm asking myself if this could be of some usefulness on the project if I would share with the developers these evidences.
This is an example, obtained on a Fedora14_i686 system, gcc-4.5.1-4.fc14.i686:
gcc -DOPENLDAP_FD_SETSIZE=4096 -O2 -g -o slapd-bind slapd-bind.o slapd-common.o -L/usr/local/berkeleydb/lib -L/usr/lib/perl5/CORE ../../libraries/libldap/.libs/libldap.a /tmp/appoggio_openldap/openldap-post2.4.24_3/libraries/liblber/.libs/liblber.a ../../libraries/liblutil/liblutil.a ../../libraries/liblber/.libs/liblber.a -lsasl2 -lssl -lcrypto -lresolv ../../libraries/libldap/.libs/libldap.a(os-ip.o): In function `ldap_pvt_is_socket_ready': /tmp/appoggio_openldap/openldap-post2.4.24_3/libraries/libldap/os-ip.c:262: *warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead* /tmp/appoggio_openldap/openldap-post2.4.24_3/libraries/libldap/os-ip.c:262: *warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead*
On Mar 23, 2011, at 7:34 AM, Marco Pizzoli wrote:
Hi all, this is my first post in this list.
I downloaded head tree from OL CVS and made some compile runs. I see some warning about some deprecated functions and so on... I'm asking myself if this could be of some usefulness on the project if I would share with the developers these evidences.
These particular ones, no.
I'm sure the reasons behind our use of these particular deprecated interfaces has been discussed before. Just do a site search for 'deprecated sys_errlist'.
-- Kurt
This is an example, obtained on a Fedora14_i686 system, gcc-4.5.1-4.fc14.i686:
gcc -DOPENLDAP_FD_SETSIZE=4096 -O2 -g -o slapd-bind slapd-bind.o slapd-common.o -L/usr/local/berkeleydb/lib -L/usr/lib/perl5/CORE ../../libraries/libldap/.libs/libldap.a /tmp/appoggio_openldap/openldap-post2.4.24_3/libraries/liblber/.libs/liblber.a ../../libraries/liblutil/liblutil.a ../../libraries/liblber/.libs/liblber.a -lsasl2 -lssl -lcrypto -lresolv ../../libraries/libldap/.libs/libldap.a(os-ip.o): In function `ldap_pvt_is_socket_ready': /tmp/appoggio_openldap/openldap-post2.4.24_3/libraries/libldap/os-ip.c:262: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead /tmp/appoggio_openldap/openldap-post2.4.24_3/libraries/libldap/os-ip.c:262: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
-- _________________________________________ Non è forte chi non cade, ma chi cadendo ha la forza di rialzarsi. Jim Morrison
HI, I downloaded the master branch today and compiling on RHEL 5.6 x86_64 I see the following lines.
Hope this helps Marco
libgcc-4.1.2-50.el5 gcc-c++-4.1.2-50.el5 gcc-gfortran-4.1.2-50.el5 gcc-4.1.2-50.el5
P.s. If this is not the appropriate place to post these evidences, please let me know.
[cut] make[3]: Leaving directory `/home/marco/LDAP/openldap-master-9b463b5/servers/slapd/overlays' ../../build/mkversion -v "2.X" -s -n Versionstr slapd > version.c gcc -DOPENLDAP_FD_SETSIZE=4096 -O2 -g -I../../include -I. -I./slapi -I. -I../../include -I/opt/berkeleydb-5.0.32/include -I/usr/kerberos/include -I/usr/lib64/perl5 -c -o main.o main.c gcc -DOPENLDAP_FD_SETSIZE=4096 -O2 -g -I../../include -I. -I./slapi -I. -I../../include -I/opt/berkeleydb-5.0.32/include -I/usr/kerberos/include -I/usr/lib64/perl5 -c -o globals.o globals.c gcc -DOPENLDAP_FD_SETSIZE=4096 -O2 -g -I../../include -I. -I./slapi -I. -I../../include -I/opt/berkeleydb-5.0.32/include -I/usr/kerberos/include -I/usr/lib64/perl5 -c -o bconfig.o bconfig.c gcc -DOPENLDAP_FD_SETSIZE=4096 -O2 -g -I../../include -I. -I./slapi -I. -I../../include -I/opt/berkeleydb-5.0.32/include -I/usr/kerberos/include -I/usr/lib64/perl5 -c -o config.o config.c gcc -DOPENLDAP_FD_SETSIZE=4096 -O2 -g -I../../include -I. -I./slapi -I. -I../../include -I/opt/berkeleydb-5.0.32/include -I/usr/kerberos/include -I/usr/lib64/perl5 -c -o daemon.o daemon.c *daemon.c: In function âslapd_daemon_taskâ: daemon.c:2121: warning: cast from pointer to integer of different size daemon.c: In function âslapd_daemonâ: daemon.c:2911: warning: cast to pointer from integer of different size* gcc -DOPENLDAP_FD_SETSIZE=4096 -O2 -g -I../../include -I. -I./slapi -I. -I../../include -I/opt/berkeleydb-5.0.32/include -I/usr/kerberos/include -I/usr/lib64/perl5 -c -o connection.o connection.c
On Wed, Mar 23, 2011 at 4:45 PM, Kurt Zeilenga Kurt@openldap.org wrote:
On Mar 23, 2011, at 7:34 AM, Marco Pizzoli wrote:
Hi all, this is my first post in this list.
I downloaded head tree from OL CVS and made some compile runs. I see some
warning about some deprecated functions and so on...
I'm asking myself if this could be of some usefulness on the project if I
would share with the developers these evidences.
These particular ones, no.
I'm sure the reasons behind our use of these particular deprecated interfaces has been discussed before. Just do a site search for 'deprecated sys_errlist'.
-- Kurt
This is an example, obtained on a Fedora14_i686 system,
gcc-4.5.1-4.fc14.i686:
gcc -DOPENLDAP_FD_SETSIZE=4096 -O2 -g -o slapd-bind slapd-bind.o
slapd-common.o -L/usr/local/berkeleydb/lib -L/usr/lib/perl5/CORE ../../libraries/libldap/.libs/libldap.a /tmp/appoggio_openldap/openldap-post2.4.24_3/libraries/liblber/.libs/liblber.a ../../libraries/liblutil/liblutil.a ../../libraries/liblber/.libs/liblber.a -lsasl2 -lssl -lcrypto -lresolv
../../libraries/libldap/.libs/libldap.a(os-ip.o): In function
`ldap_pvt_is_socket_ready':
/tmp/appoggio_openldap/openldap-post2.4.24_3/libraries/libldap/os-ip.c:262: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
/tmp/appoggio_openldap/openldap-post2.4.24_3/libraries/libldap/os-ip.c:262: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
-- _________________________________________ Non è forte chi non cade, ma chi cadendo ha la forza di rialzarsi. Jim Morrison