LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-15-2003, 06:18 PM   #1
trouby
Member
 
Registered: Sep 2003
Posts: 59

Rep: Reputation: 15
error while linking...


Hello,



I’m trying to compile some package that dependent on openldap libraries,

While trying to ‘make’ I get a lot of these kind of errors:





cc -L/usr/local/lib -o ldap2dns ldap2dns.o /usr/lib/libldap.a /usr/lib/liblber.a

/usr/lib/libldap.a(os-ip.o)(.text+0x279): In function `ldap_pvt_is_socket_ready':

/usr/local/src/critical/openldap-2.1.22/libraries/libldap/os-ip.c:191: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead

/usr/lib/libldap.a(os-ip.o)(.text+0x270):/usr/local/src/critical/openldap-2.1.22/libraries/libldap/os-ip.c:191: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead

/usr/lib/libldap.a(getdn.o)(.text+0x46a7): In function `ldap_X509dn2bv':

/usr/local/src/critical/openldap-2.1.22/libraries/libldap/getdn.c:3389: undefined reference to `X509_NAME_entry_count'

/usr/lib/libldap.a(getdn.o)(.text+0x46b8):/usr/local/src/critical/openldap-2.1.22/libraries/libldap/getdn.c:3392: undefined reference to `X509_NAME_get_entry'

/usr/lib/libldap.a(getdn.o)(.text+0x473f):/usr/local/src/critical/openldap-2.1.22/libraries/libldap/getdn.c:3415: undefined reference to `X509_NAME_get_entry'

/usr/lib/libldap.a(getdn.o)(.text+0x4749):/usr/local/src/critical/openldap-2.1.22/libraries/libldap/getdn.c:3416: undefined reference to `X509_NAME_ENTRY_get_object'

/usr/lib/libldap.a(getdn.o)(.text+0x4757):/usr/local/src/critical/openldap-2.1.22/libraries/libldap/getdn.c:3417: undefined reference to `X509_NAME_ENTRY_get_data'





I found this thread in openldap-software mailing list:

http://www.openldap.org/lists/openld.../msg00675.html





this explains why it happens, so I’ve added –lssl, -lcrypto and I now I get the following error:





/usr/lib/libldap.a(os-ip.o)(.text+0x279): In function `ldap_pvt_is_socket_ready':

/usr/local/src/critical/openldap-2.1.22/libraries/libldap/os-ip.c:191: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead

/usr/lib/libldap.a(os-ip.o)(.text+0x270):/usr/local/src/critical/openldap-2.1.22/libraries/libldap/os-ip.c:191: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead

ln -f ldap2dns ldap2dnsd

gcc -g -DVERSION='"0.3.1"' -c ldap2dns.c -o ldap2dns.o-dbg

gcc -L/usr/local/lib -o ldap2dns-dbg ldap2dns.o-dbg /usr/lib/libldap.a /usr/lib/liblber.a /usr/lib/libssl.a /usr/lib/libcrypto.a

/usr/lib/libldap.a(os-ip.o)(.text+0x279): In function `ldap_pvt_is_socket_ready':

/usr/local/src/critical/openldap-2.1.22/libraries/libldap/os-ip.c:191: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead

/usr/lib/libldap.a(os-ip.o)(.text+0x270):/usr/local/src/critical/openldap-2.1.22/libraries/libldap/os-ip.c:191: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead







Can someone give me a hand with this?
Maybe should I build openssl/openldap again with shared libraries? As described on the above thread? If so, how do I do that?



Help will be appreciated!



Thanks a lot.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking Error sheenak Programming 1 07-12-2004 12:52 AM
Linking error sheenak Programming 2 05-31-2004 08:04 AM
Linking error using g++ Musikolo Linux - Software 0 07-23-2003 01:54 PM
libpcap linking error Hammo Linux - Networking 5 02-20-2003 08:20 AM
gcc linking error. ugenn Linux - Software 0 01-23-2003 12:18 AM


All times are GMT -5. The time now is 08:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration