LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-15-2008, 09:28 AM   #1
rushenas
Member
 
Registered: May 2005
Posts: 34

Rep: Reputation: 15
Apache and mod_ssl


Hi
I've downloaded these packages:
apache_1.3.41.tar.gz
mod_ssl-2.8.31-1.3.41.tar.gz

Openssl already available on my Linux SuSE Enterprise 10 OS.
And I've run these commands:
Code:
tar xvzf openssl-0.9.8g.tar.gz
cd openssl-0.9.8g
./config
make
cd ..

tar xvzf apache_1.3.41.tar.gz
tar xvfz mod_ssl-2.8.31-1.3.41.tar.gz
cd mod_ssl-2.8.31-1.3.41/
./configure --with-apache=../apache_1.3.41 --prefix=/usr/local/apache
cd ..
cd apache_1.3.41
SSL_BASE=/usr/include/openssl
after that, I have run this:

Code:
./configure --prefix=/usr/local/apache --enable-module=so --enable-module=rewrite --enable-module=proxy --enable-module=ssl
And the compiler gave me this error:

Code:
** A test compilation with your Makefile configuration
** failed.  The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc. 

======== Error Output for sanity check ========
cd ..; gcc  -DLINUX=22 -DHAVE_SET_DUMPABLE -DMOD_SSL=208131 -DUSE_HSREGEX -DEAPI `./apaci`   -L/usr/lib  -o helpers/dummy helpers/dummy.c   -lm -lcrypt -lndbm  -lssl -lcrypto -lexpat -ldl
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libcrypt.so when searching for -lcrypt
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libcrypt.a when searching for -lcrypt
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libgdbm.so when searching for /usr/lib/libgdbm.so
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: cannot find /usr/lib/libgdbm.so
collect2: ld returned 1 exit status
make: *** [dummy] Error 1
============= End of Error Report =============

 Aborting!
Where is the problem? How can I have my apache compiled with mod_ssl?
 
Old 05-16-2008, 02:02 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
The problem could be that you use a 64bit arch and the needed openssl libs are not compatible. You can run ./Configure in openssl to find the same arch as you system and use this to compile openssl (maybe try ./Configure linux-x86_64 ...). Another thing you must note is that the "SSL_BASE=..." must be in front of the ./configure in the same line. Also you should create dynamic openssl libs. This is what I do to install the exact same software in a Solaris Sparc box:
Code:
openssl:
./Configure solaris-sparcv8-gcc --shared
make
...
mod_ssl:
./configure --with-apache=/path/to/apache-source

apache:
SSL_BASE=/path/to/openssl-source ./configure --enable-module=ssl --prefix=/usr/local/apache ...
make
make certificate
make install
Hope that helps.
 
  


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
Apache 2.0.59 with mod_ssl mmCC Linux - Server 1 03-16-2007 03:02 AM
Apache 2.x/1.3x/mod_ssl Harry Seldon Linux - General 1 08-16-2006 12:42 PM
mod_ssl with apache 2.2.2 pikky2006 Linux - Networking 1 06-17-2006 08:53 AM
Apache 2.0 and mod_ssl pimp1911 Linux - Security 4 02-03-2006 03:36 PM
Apache - Mod_SSL Mr_Munkey Linux - Software 0 12-27-2004 09:52 AM

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

All times are GMT -5. The time now is 04:13 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