LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 05: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



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-11-2004 11:52 PM
Linking error sheenak Programming 2 05-31-2004 07:04 AM
Linking error using g++ Musikolo Linux - Software 0 07-23-2003 12:54 PM
libpcap linking error Hammo Linux - Networking 5 02-20-2003 07:20 AM
gcc linking error. ugenn Linux - Software 0 01-22-2003 11:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:38 PM.

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
Open Source Consulting | Domain Registration