Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mod_ssl error on starting apache
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
aschrijver
n00b
n00b


Joined: 30 Aug 2004
Posts: 8

PostPosted: Mon Aug 30, 2004 11:07 am    Post subject: mod_ssl error on starting apache Reply with quote

Hi, I think I really did it this time. After I installed PHP5 on my homesystem, I found that some USE flags are needed for that, ´dba´ or ´-berkdb´ in fact.
That worked okay, so when I installed my server, I used those flags right from the start. But now when I try to start Apache (1.3.31), I get this error
Code:
 * Starting apache...
Syntax error on line 59 of /etc/apache/conf/apache.conf:
Cannot load /etc/apache/extramodules/libssl.so into server: /etc/apache/extramodules/libssl.so: undefined symbol: dbm_  [ !! ]

I tried several dozens of times reinstalling db, gdbm, apache, mod_ssl and mod_php, but nothing worked. Starting apache without mod_ssl works perfectly.
Can somebody please help me on this? I am really out of options here.
Back to top
View user's profile Send private message
pizzaman
n00b
n00b


Joined: 04 May 2004
Posts: 13
Location: Bangkok, Thailand

PostPosted: Sat Oct 02, 2004 5:19 pm    Post subject: Reply with quote

I don't know if you've alrady found a solution, but
in my case I had to emerge openssl, mod_ssl again.
Back to top
View user's profile Send private message
aschrijver
n00b
n00b


Joined: 30 Aug 2004
Posts: 8

PostPosted: Tue Oct 05, 2004 8:01 am    Post subject: Still not fixed.... :( Reply with quote

Quote:
* Starting apache...
Syntax error on line 59 of /etc/apache/conf/apache.conf:
Cannot load /etc/apache/extramodules/libssl.so into server: /etc/apache/extramodules/libssl.so: undefined symbol: dbm_firstkey

I still get this error when I want to start apache.
Also I tried a complete fresh installation of Gentoo, with my USE flags, and I still get this error.
Some more info:
Apache 1.3.31
PHP 5.0.2
mod_ssl 2.8.19
OpenSSL 0.9.7d-r1
USE="aalib acpi -apache2 autofs cdr dba dvd dvdr ffmpeg ftp gd gpm gtk gtk2 imap -java -maildir mbox oggvorbis opengl oss pcre pda pnp slc spell ssl truetype unicode usb -xfree xft xml xml2 cups samba mysql sharedmem session -X -qt -kde"

The error talks about dbm, so I tried all combinations of berkdb, dba, dbm and gdbm, but not one works. Simply not using them is not possible, as PHP needs both berkdb and dba.
Re-emerging OpenSSL and any of the other packages has no effect. This problem even occurs when I do a complete new Gentoo install, so it should have something to do with the USE flags (I think).
Back to top
View user's profile Send private message
pizzaman
n00b
n00b


Joined: 04 May 2004
Posts: 13
Location: Bangkok, Thailand

PostPosted: Wed Oct 06, 2004 4:24 pm    Post subject: Reply with quote

You'll also need to run this, after re-emerge mod_ssl

# ebuild /var/db/pkg/net-www/mod_ssl-2.8.19/mod_ssl-2.8.19.ebuild config

Then make sure to edit apache config files to get rid of
duplicated inclusion of mod_ssl related statements.
Back to top
View user's profile Send private message
helmholtz
n00b
n00b


Joined: 20 Aug 2004
Posts: 6

PostPosted: Mon Oct 25, 2004 7:12 pm    Post subject: Re: mod_ssl error on starting apache Reply with quote

Modify the apache ebuild. Around line 67 you'll see:

Code:
    #-DBUFFERED_LOGS
    OPTIM="${mycflags} -DHARD_SERVER_LIMIT=${HARD_SERVER_LIMIT:=512} \
        -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" \
    LIBS="-lgdbm -lpthread" \
    EAPI_MM=SYSTEM \


Change the LIBS line to:

Code:
    LIBS="-lgdbm -lpthread -lgdbm_compat" \


And then reemerge apache.
Back to top
View user's profile Send private message
aschrijver
n00b
n00b


Joined: 30 Aug 2004
Posts: 8

PostPosted: Wed Oct 27, 2004 10:17 am    Post subject: It worked!!!!!! Reply with quote

It works!!!!!!!!
Thank you very much!!
Finally after months I have https back!
I just had to re-emerge gdbm, and after that Apache with your modifications.
Back to top
View user's profile Send private message
HAL_9000
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2004
Posts: 114
Location: Netherlands

PostPosted: Wed Oct 27, 2004 7:26 pm    Post subject: Reply with quote

for me too :)
I'm grateful! :)
_________________
We are the keepers of the sacred words: Ni peng and Nee wom!
Back to top
View user's profile Send private message
al_bullit
n00b
n00b


Joined: 10 Jun 2004
Posts: 6

PostPosted: Fri Nov 19, 2004 9:26 am    Post subject: Still broken Reply with quote

Sadly none of the above fixes apear to work for me. Is there any word on when the apache ebuild maintainers might release a 'fixed' version for this bug of many weeks in what you would think is a major piece of software?

In the mean time installing apache and mod_ssl by hand appears to work just fine.
Back to top
View user's profile Send private message
whit
Tux's lil' helper
Tux's lil' helper


Joined: 26 Oct 2002
Posts: 121
Location: VT

PostPosted: Fri Dec 31, 2004 1:42 am    Post subject: Reply with quote

pizzaman wrote:
You'll also need to run this, after re-emerge mod_ssl

# ebuild /var/db/pkg/net-www/mod_ssl-2.8.19/mod_ssl-2.8.19.ebuild config

Then make sure to edit apache config files to get rid of
duplicated inclusion of mod_ssl related statements.


That doesn't do the trick - or change anything really, just duplicates the old entries. This is adjusted for 2.8.21. Damn.
Back to top
View user's profile Send private message
whit
Tux's lil' helper
Tux's lil' helper


Joined: 26 Oct 2002
Posts: 121
Location: VT

PostPosted: Fri Dec 31, 2004 1:50 am    Post subject: Re: mod_ssl error on starting apache Reply with quote

helmholtz wrote:
Change the LIBS line to:

Code:
    LIBS="-lgdbm -lpthread -lgdbm_compat" \


And then reemerge apache.


That DOES do the trick! Thank you!

Note: also re-emerge gdbm first, but that alone didn't make a difference. Next step was to change the ebuild for 1.3.33 and re-emerge Apache. Which did it. So can't say whether it was the extra LIB or the rebuilding Apache after rebuilding gdbm which was essential - or both.

(Now, has this been reported as a bug?)
Back to top
View user's profile Send private message
DennisBagley
n00b
n00b


Joined: 09 Jan 2005
Posts: 13

PostPosted: Sun Jan 09, 2005 11:23 pm    Post subject: Reply with quote

Thanks helmholtz,

The ebuild hack alone [+ re-emerging apache] worked for me,

8) 8) 8)

Thanks,
Den
_________________
http://uncyclopedia.org/wiki/Gentoo
Back to top
View user's profile Send private message
Tocano
n00b
n00b


Joined: 10 Jan 2005
Posts: 1

PostPosted: Mon Jan 10, 2005 3:52 pm    Post subject: Reply with quote

I appreciate the responses. The recommendations seem to work for me. However, for future knowledge, can anyone explain what this error actually is? Why is it coming up? Is there an error with the apache ebuild or is this bug reflective of something I've done with my system?

Thanks for the insight
Back to top
View user's profile Send private message
lami
n00b
n00b


Joined: 09 Mar 2003
Posts: 23

PostPosted: Fri Jan 21, 2005 12:50 pm    Post subject: Reply with quote

Seems like ebuild error for me.

You can also use masked ebuild (apache-1.3.33-r1), but you have to unmask it first.
Add these lines into /etc/portage/package.unmask
Code:
=net-www/apache-1.3.33-r1
=net-www/mod_ssl-2.8.22

and these into /etc/portage/package.keywords
Code:
=net-www/apache-1.3.33-r1       ~x86
=net-www/mod_ssl-2.8.22         ~x86

and then emerge =apache-1.3.33-r1
Create these files if they do not exists
_________________
Sometimes is best, let the sleeping dragons lie.
Back to top
View user's profile Send private message
ixion
l33t
l33t


Joined: 16 Dec 2002
Posts: 708

PostPosted: Tue Jan 25, 2005 2:43 pm    Post subject: Re: mod_ssl error on starting apache Reply with quote

whit wrote:
(Now, has this been reported as a bug?)



https://bugs.gentoo.org/show_bug.cgi?id=71273

(edit: found a much more updated bug)
_________________
only the paranoid survive
Back to top
View user's profile Send private message
Hollow
Retired Dev
Retired Dev


Joined: 05 Dec 2003
Posts: 35
Location: Berlin, Germany

PostPosted: Mon Feb 07, 2005 10:37 am    Post subject: Reply with quote

As of https://bugs.gentoo.org/show_bug.cgi?id=71273#c8 the problem seems to still exist on some machines though.

Could you please try adding -lndbm instead of -lgdbm_compat.

thank you
Back to top
View user's profile Send private message
blackcell
n00b
n00b


Joined: 17 Aug 2002
Posts: 56
Location: Oregon

PostPosted: Tue Feb 08, 2005 6:17 am    Post subject: Reply with quote

Yes, the -lndbm instead of -lgdbm_compat and reemerge Apache worked for me!
Back to top
View user's profile Send private message
Hollow
Retired Dev
Retired Dev


Joined: 05 Dec 2003
Posts: 35
Location: Berlin, Germany

PostPosted: Fri Mar 25, 2005 9:02 pm    Post subject: Reply with quote

please see https://bugs.gentoo.org/show_bug.cgi?id=86052 the backport to the stable ebuild has been done
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum