LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-01-2008, 01:07 AM   #1
kulg123
LQ Newbie
 
Registered: Jul 2008
Posts: 5

Rep: Reputation: 0
apache 2.2.8+ssl issues after make


Hello

I want to use the module "auth_mod_kerb" for the web authentication .
Currently i m trying on RedHat enterprise linix 5.0

I have Openssl 0.9.8 g installed on it
But when i m trying to install "apachae with ssl " (apache 2.2.8 ),i m getting some error.
Without ssl apache is getting installed properly


i did
./configure --enable-ssl --enable-mods-shared=all

then

make

Now i m getting following errors
/ab.c:382:undefined reference to`BIO_get_callback_arg'
/ab.c:1144: undefined reference to`BIO_set_callback'
/ab.c:1144: undefined reference to`BIO_set_callback'
/ab.c:1145: undefined reference to`BIO_set_callback_arg'
.libs/ab.o: In function `main':
ab.c:2154: undefined reference to`SSL_CTX_set_info_callback'

Please help me out in resloving this issue
Thanks
kul
 
Old 07-01-2008, 01:37 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I would think that the cause of this error is earlier than what you have posted. Can you post more complete output (not the whole make output though)
 
Old 07-01-2008, 02:29 AM   #3
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Just a guess, but with RH based distros when you go to compile you need the -devel versions of all dependencies. If an rpm called for gtk then when you compile it yourself you would need gtk-devel.
 
Old 07-01-2008, 02:37 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Pretty likely, but there could be a few required, and the error should tell us which

Is there some reason why you don't use the package manager to install?
 
Old 07-01-2008, 03:08 AM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
I think 2.2.3 is the newest available in the standard RHEL/Centos repos.
 
Old 07-01-2008, 03:10 AM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Good point, you are quite correct.
 
Old 07-01-2008, 11:50 AM   #7
GAVollink
Member
 
Registered: Apr 2002
Location: Bronx, NY
Distribution: Ubuntu
Posts: 371

Rep: Reputation: 34
Angry Use of Private Messages in relation to issues.

Please consider what you are doing by sending people private messages through the forums...

The last time I tried something like this was FIVE YEARS ago (I had to look it up), and even then, I needed help. I see you posted the SAME THING you messaged me about to MULTIPLE places (including this place) - you also have no other post history here. Dude, I understand you are frustrated, but sending messages to people who posted on similar problems five years ago is not likely to bring a useful response.

Further, by resorting to private messaging BEFORE posting to a larger group (45 minutes before this post), you are breaking the idea of forums... An answer to a private message wouldn't help the next person who has a similar problem.

Please wait for replies within the context of the forum, and don't message people unless they have a recent experience with your issue, and you've already waited several hours for a response from your post.

ALSO -- when people DO reply to your post (as several people have), it's also polite to re-post feedback, or the solution to the problem that you used -- even if that solution says you gave up to use a different solution entirely.
 
Old 01-28-2009, 08:59 PM   #8
Pierre Forget
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Rep: Reputation: 0
undefined reference to `BIO_get_callback_arg

Hi,

I know it's a fairly old thread, but that was the only one which replicated many times for my search on Google.

Here was my problem when compiling Apache 2.2.11 with openssl-0.9.8j

.libs/ab.o(.text+0xd4): In function `ssl_print_cb':
/usr/src/httpd-2.2.11-with-SSL/support/ab.c:396: undefined reference to `BIO_get_callback_arg'
.libs/ab.o(.text+0x2cbb): In function `start_connect':
/usr/src/httpd-2.2.11-with-SSL/support/ab.c:1185: undefined reference to `BIO_set_callback'
.libs/ab.o(.text+0x2cca):/usr/src/httpd-2.2.11-with-SSL/support/ab.c:1186: undefined reference to `BIO_set_callback_arg'
.libs/ab.o(.text+0x4e37): In function `main':
/usr/src/httpd-2.2.11-with-SSL/support/ab.c:2246: undefined reference to `SSL_CTX_set_info_callback'
collect2: ld returned 1 exit status
make[2]: *** [ab] Error 1
make[2]: Leaving directory `/usr/src/httpd-2.2.11-with-SSL/support'
make[1]: *** [install-recursive] Error 1q
make[1]: Leaving directory `/usr/src/httpd-2.2.11-with-SSL/support'
make: *** [install-recursive] Error 1

Here is my solution:

change the links in /usr/lib for libcrypto.so and libssl.so so that they point to the new compiled libraries.

This should fix the compile error. At restart, Apache with SSL would complain that it can't find libraries.

Make sure you either copy or make a link for those libraries:

/usr/local/ssl/lib/libssl.so.0.9.8

/usr/local/ssl/lib/libcrypto.so.0.9.8

If you are chrooted, like me, it may not find them.

Also, I installed OpenSSL according to those instructions:

./config shared
make
make test
su -
make install

Once you have installed OpenSSL you will need to let Apache know where it is by adding it to /etc/ld.so.conf and reloading the ld configuration. (Note: copy /etc/ld.so.cache to your chrooted environment)

echo "/usr/local/ssl/lib" >> /etc/ld.so.conf The reload the ld configuration:

/sbin/ldconfig

Hope that helps. Took half the day to find this...
 
Old 02-26-2009, 09:51 AM   #9
kewe
LQ Newbie
 
Registered: Feb 2009
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by Pierre Forget View Post
Hi,

Here was my problem when compiling Apache 2.2.11 with openssl-0.9.8j
I was the same problem with the same versions. My solution was:

1. Compile openssl with:

./config -fPIC --install_prefix=/opt/apps/openssl_0.9.8j

2. Compile httpd with:

LIBS=-lpthread ./configure \
--prefix=/opt/apps/apache_2.2.11 \
--enable-mods-shared=all \
--with-ssl=/opt/apps/openssl-0.9.8j/usr/local/ssl/ \
--with-perl \
--with-included-apr \
--with-mod_jk \
--enable-proxy \
--enable-proxy-connect \
--enable-proxy-ftp \
--enable-proxy-http \
--enable-proxy-ajp \
--enable-proxy-balancer \
--enable-ssl


Look at "/usr/local/ssl/" after "/opt/apps/openssl-0.9.8j" in httpd configure. If I only put the prefix that I used with openssl, httpd doesn't compile.

Regards!
 
Old 06-16-2014, 10:14 AM   #10
daniev
LQ Newbie
 
Registered: Jun 2014
Posts: 3

Rep: Reputation: Disabled
Unhappy

Hi kewe, hi Pierre, hi all,

Pierre: I'm afraid I can't apply what you said, as my intention is to update a current running web server (several web pages, and other web services) compiling installing (in other directories) and when everything will be ready then stop the old server and start the new; so I'm afraid that if I apply your changes to /usr/lib and-or /usr/lib64 in order to compile new apache, current server would start failing.

I got the same error, although I applied some changes thanks to what kewe said. Look:

It's an old linux but I've installed (all under /opt, to be separated from other versions already installed under /usr/local):

- PCRE 8.35 using: ./configure --prefix=/opt/pcre-8.35 --enable-utf ; make check ; make ; make install
- then OpenSSL 1.0.1h (I tried also 1.0.1g unsuccessfully) using: ./config -fPIC --install_prefix=/opt/openssl-1.0.1h ; make ; make test ; make install
- and then apache 2.4.9 (with apr 1.5.1 and apr-util 1.5.3 uncompressed inside srclib) using:

LIBS=-lpthread ./configure --prefix=/opt/apache-2.4.9 --enable-mods-shared=all --with-pcre=/opt/pcre-8.35 --with-ssl=/opt/openssl-1.0.1h --with-perl --with-included-apr --enable-ssl

then make. And I still obtain:

(...)
Making all in support
make[1]: Entering directory `/my_path/httpd-2.4.9/support'
make[2]: Entering directory `/my_path/httpd-2.4.9/support'
/my_path/httpd-2.4.9/srclib/apr/libtool --silent --mode=link gcc -std=gnu99 -g -O2 -L/usr/kerberos/lib64 -lssl -lcrypto -ldl -lz -luuid -lrt -lcrypt \
-o ab ab.lo /my_path/httpd-2.4.9/srclib/apr-util/libaprutil-1.la -lexpat /my_path/httpd-2.4.9/srclib/apr/libapr-1.la -luuid -lrt -lcrypt -ldl -lm
ab.o: In function `ssl_print_cb':
/my_path/httpd-2.4.9/support/ab.c:486: undefined reference to `BIO_get_callback_arg'
ab.o: In function `start_connect':
/my_path/httpd-2.4.9/support/ab.c:1289: undefined reference to `BIO_set_callback'
/my_path/httpd-2.4.9/support/ab.c:1290: undefined reference to `BIO_set_callback_arg'
ab.o: In function `main':
/my_path/httpd-2.4.9/support/ab.c:2390: undefined reference to `SSL_CTX_set_info_callback'
/my_path/httpd-2.4.9/support/ab.c:2314: undefined reference to `TLSv1_1_client_method'
/my_path/httpd-2.4.9/support/ab.c:2316: undefined reference to `TLSv1_2_client_method'
collect2: ld returned 1 exit status
make[2]: *** [ab] Error 1
make[2]: Leaving directory `/my_path/httpd-2.4.9/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/my_path/httpd-2.4.9/support'
make: *** [all-recursive] Error 1

Can anybody help?

I need to install all this before installing other web services

Dani

Last edited by daniev; 06-16-2014 at 10:42 AM. Reason: I forgot to comment a previous (maybe usefull, but not for me) answer from Pierre
 
  


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
apache+ssl issues after make kulg123 Linux - Software 1 07-01-2008 01:33 AM
Apache 2.0/SSL issues RHEL4. misconfiguration Linux - Enterprise 3 08-01-2007 11:20 PM
Apache make and make install issues rajnair0278 Linux - Software 7 04-12-2006 03:42 AM
Make Apache cgi-bin SSL Only? TruckStuff Linux - Security 3 05-09-2005 10:37 AM
Apache Make Errors With SSL SForsgren Linux - Software 2 10-16-2003 04:34 PM

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

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