LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-23-2011, 07:34 AM   #1
shuple
LQ Newbie
 
Registered: Feb 2011
Posts: 13

Rep: Reputation: 0
openldap - problem finding ssl library


Hello Team,

I am trying to install openldap, Berkeley DB and openssl from source on a Debian 6.0 box. The version of the softwares are presented below:

openldap-2.4.23
db-4.8.30
openssl-1.0.0

The softwares are installed on /usr/local/openldap, /usr/local/bdb, /usr/local/openssl respectively.

Berkeley DB and openssl were successfully installed.
Then I ran the following commands to install openldap.

--- snippet ---
export CPPFLAGS="-I/usr/local/bdb/include -I/usr/local/openssl/include"
export LDFLAGS="-L/usr/local/bdb/lib -L/usr/local/openssl/lib"

./configure --prefix=/usr/local/openldap
-- end --

The configure script had no problem finding Berkeley DB however, it failed to find the library files for openssl.

-- snippet --
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking for SSL_library_init in -lssl... no
checking for ssl3_accept in -lssl... no
-- end --

I tried creating symbolic links of the openssl library files to /usr/lib , added openssl library paths to /etc/ld.so.conf.d/openssl.conf.
None of those were successful and am not sure what the problem is.

It would be great if someone can give me a hand on this.

Regards,
Shuple
 
Old 02-23-2011, 07:51 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,895

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Hi and welcome to LQ,

I guess you didn't build the shared openssl libraries. Run "make clean" in the openssl sources directory and the n add the "shared" option in the ./config script:
Code:
./config shared --prefix=...
Regards
 
Old 02-23-2011, 08:18 AM   #3
shuple
LQ Newbie
 
Registered: Feb 2011
Posts: 13

Original Poster
Rep: Reputation: 0
Hello Bathory,

Thank you for your reply and advise.
I recompiled the openssl source with the shared option. However, openldap is still not finding the library files.

checking for SSL_library_init in -lssl... no
checking for ssl3_accept in -lssl... no

Regards,
Shuple.
 
Old 02-23-2011, 10:54 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,895

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Are you sure the shared libraries were created under /usr/local/openssl/lib?
What give:
Code:
ls -l /usr/local/openssl/lib/
nm /usr/local/openssl/lib/libssl.so|grep library_init
You may need also to run "make distclean" in openldap sources directory
 
Old 02-23-2011, 05:11 PM   #5
shuple
LQ Newbie
 
Registered: Feb 2011
Posts: 13

Original Poster
Rep: Reputation: 0
Hello Bathory,

Thank you for your advise again. After running that command, I realized that I had to include the lib64 directory instead of lib.
Thank you so much for your help.

Regards,
Shuple
 
  


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
OpenLDAP and TLS-SSL karlochacon Linux - Server 5 02-03-2011 01:01 AM
GNU Linux problem finding robotic library devices moballard Linux - Hardware 0 01-22-2010 02:47 PM
OpenLDAP SSL/TLS problem with pam/nss humbletech99 Linux - Server 0 06-12-2009 07:39 AM
OpenLDAP with ssl version compatability Vikas Sarin Linux - Networking 0 12-17-2006 08:46 PM


All times are GMT -5. The time now is 12:53 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration