php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14895 Error when trying to load the php4 module
Submitted: 2002-01-06 18:37 UTC Modified: 2002-06-05 15:48 UTC
Votes:10
Avg. Score:4.4 ± 0.8
Reproduced:9 of 9 (100.0%)
Same Version:8 (88.9%)
Same OS:4 (44.4%)
From: snowgod at snowgod dot org Assigned:
Status: Closed Package: IMAP related
PHP Version: 4.1.1 OS: FreeBSD 4.3-RELEASE
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: snowgod at snowgod dot org
New email:
PHP Version: OS:

 

 [2002-01-06 18:37 UTC] snowgod at snowgod dot org
Here is my configuration when compiling php

./configure  --with-mysql --enable-track-vars --with-snmp --with-imap --with-apxs=/usr/local/apache/bin/apxs --enable-ucd-snmp-hack --with-imap-ssl --with-openssl=/usr --enable-sockets --enable-ftp --with-bz2 --with-zlib

My apache version is 1.3.20 (I tried with 1.3.22 as well and had the same issue.

The error I get when attempting to start the apache server (compiles fine) is:

Cannot load /usr/local/libexec/apache/libphp4.so into server: /usr/local/libexec/apache/libphp4.so: Undefined symbol "ssl_onceonlyinit"

libssl exists:
(root@warped) [/usr/lib]$ ls -ld /usr/lib/libssl.so
lrwxrwxrwx  1 root  wheel  11 Sep  7 17:59 /usr/lib/libssl.so -> libssl.so.2
(root@warped) [/usr/lib]$ ls -ld /usr/lib/libssl.so.2
-r--r--r--  1 root  wheel  176348 Apr 21  2001 /usr/lib/libssl.so.2

I can post a list of apache modules if nessicary, but that doesn't seem to matter, I do use mod_ssl though.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-19 13:08 UTC] derick@php.net
You need to provide a little more information, read bugs.php.net/how-to-report.php

Derick
 [2002-01-19 14:33 UTC] snowgod at snowgod dot org
I've searched the bugdb per your suggestion, Derick. All I found were two old IMAP-SSL related issues when I searched for the function name (ssl_onceonlyinit). 

I can download a copy of the CVS source if you like and retry my compile to see if it is fixed.

Something to note, is on a fresh FreeBSD install (4.4-RELEASE), I installed apache and mod_php from a cvsup'ed ports collection, and I get the same error, so you may start to get more wide spread reports of this error.

Let me know.
 [2002-02-22 02:32 UTC] snowgod at snowgod dot org
Sorry, this actually WAS imap-ssl related.
 [2002-02-27 23:28 UTC] david at blue-labs dot org
Any answers to this problem yet?

#!/bin/bash
rm config.cache;
export LIBS="-ljpeg -lpng" LDFLAGS="-L/usr/local/ssl/lib -L/usr/X11R6/lib -L/usr/local/lib" \
CFLAGS="$CFLAGS -I/usr/local/include" CPPFLAGS="$CFLAGS"
./configure \
--with-apxs=/usr/local/apache/bin/apxs --enable-track-vars \
--enable-magic-quotes --enable-trans-sid --enable-memory-limit \
--enable-force-cgi-redirect --enable-discard-path --with-openssl \
--enable-sigchild --enable-bcmath --with-bz2 \
--enable-calendar --enable-ftp \
--with-imap=/usr/src/imap-2002.DEV.SNAP-0202261726/
--with-imap-ssl=/usr/local/ssl/lib \
--with-pgsql --enable-trans-sid --with-zlib \
--with-mysql=no \
--enable-sysvshm --x-libraries=/usr/X11R6/lib \
--with-freetype-dir=/usr/local/include/freetype1/ \
--with-jpeg-dir=shared \
--with-png-dir=shared --with-xpm-dir=shared --with-gd-dir=shared --with-gd

...

Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: undefined symbol: ssl_onceonlyinit

imapd is compiled as:
make install SSLTYPE=nopwd

ssl_onceonlyinit is located in imapd/src/osdep/unix/ssl_unix.c
 [2002-02-27 23:57 UTC] david at blue-labs dot org
The answer is:

Find and remove any old [lib]c-client.a|so on your system, then install the new uw c-client library or let php find it in your --with-imap directory.

David
 [2002-04-10 19:05 UTC] sniper@php.net
Reopen if this still happens with latest CVS snapshot 
and if you're sure you don't have bogus c-client libs or header files in your system.

 [2002-05-16 10:33 UTC] joel at secuserv dot ch
Heya

After recompiling imap-stuff, php with thousand of options and apache up and down for about half a day on a p90 (took damn long!) and always receiving the same bug on openbsd I think I can lift the mystery:
Edit the Makefile in the UW-imap-Directory and set
PASSWDTYPE=std

By default it's none. On obsd it seems to fail on compiling. I hope I made now thousands of BSD users happy ;). BTW. I grepped the sources from the ftp and didn't installed it per package.

Greetz
Joel Wiesmann

(You may change OS to - and Category to IMAP now ;))
 [2002-06-05 15:48 UTC] snowgod at snowgod dot org
-
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 18 23:01:26 2024 UTC