LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 08: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, 08:51 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,215
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
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, 09: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, 11:54 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,215
Blog Entries: 1

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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:07 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
Open Source Consulting | Domain Registration