php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11885 Link problems with OpenSSL 0.9.6a
Submitted: 2001-07-04 15:14 UTC Modified: 2002-04-23 00:34 UTC
From: anders+nospam at totem dot fix dot no Assigned: sniper (profile)
Status: Closed Package: OpenSSL related
PHP Version: 4.0.6 OS: Solaris 7 08/99
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: anders+nospam at totem dot fix dot no
New email:
PHP Version: OS:

 

 [2001-07-04 15:14 UTC] anders+nospam at totem dot fix dot no
I'm unable to link libphp4.la using --with-openssl. I'm using:

gcc version 2.95.3 20010315 (release)
ltmain.sh (GNU libtool) 1.4 (1.920 2001/04/24 23:26:18)
GNU ld 2.11.2
Apache/1.3.20 (Unix)
openssl-0.9.6a
binutils-2.11.2

make[1]: Entering directory `/usr/local/src/newapache/apachee/t2/php-4.0.6'
/bin/sh /usr/local/src/newapache/apachee/t2/php-4.0.6/libtool --silent --mode=compile gcc  -I. -I/usr/local/src/newapache/apachee/t2/php-4.0.6/ -I/usr/local/src/newapache/apachee/t2/php-4.0.6/main -I/usr/local/src/newapache/apachee/t2/php-4.0.6 -I/usr/local/newapache/include -I/usr/local/src/newapache/apachee/t2/php-4.0.6/Zend -I/usr/local/apachedeps/include -I/usr/local/apachedeps/include/freetype2/freetype -I/usr/local/apachedeps/include/c-client -I/usr/local/apachedeps/include/mysql -I/usr/local/src/newapache/apachee/t2/php-4.0.6/ext/xml/expat/xmltok -I/usr/local/src/newapache/apachee/t2/php-4.0.6/ext/xml/expat/xmlparse -I/usr/local/src/newapache/apachee/t2/php-4.0.6/TSRM  -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=270 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_EXPAT -DSHARED_CORE -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -Os  -c stub.c
/bin/sh /usr/local/src/newapache/apachee/t2/php-4.0.6/libtool --silent --mode=link gcc  -I. -I/usr/local/src/newapache/apachee/t2/php-4.0.6/ -I/usr/local/src/newapache/apachee/t2/php-4.0.6/main -I/usr/local/src/newapache/apachee/t2/php-4.0.6 -I/usr/local/newapache/include -I/usr/local/src/newapache/apachee/t2/php-4.0.6/Zend -I/usr/local/apachedeps/include -I/usr/local/apachedeps/include/freetype2/freetype -I/usr/local/apachedeps/include/c-client -I/usr/local/apachedeps/include/mysql -I/usr/local/src/newapache/apachee/t2/php-4.0.6/ext/xml/expat/xmltok -I/usr/local/src/newapache/apachee/t2/php-4.0.6/ext/xml/expat/xmlparse -I/usr/local/src/newapache/apachee/t2/php-4.0.6/TSRM  -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=270 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_EXPAT -DSHARED_CORE -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -Os   -o libphp4.la -rpath /usr/local/src/newapache/apachee/t2/php-4.0.6/libs -avoid-version -L/usr/ucblib -L/usr/local/apachedeps/lib -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3 -L/usr/local/apachedeps/lib/mysql  -R /usr/ucblib -R /usr/local/apachedeps/lib -R /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3 -R /usr/local/apachedeps/lib/mysql stub.lo  Zend/libZend.la sapi/apache/libsapi.la main/libmain.la regex/libregex.la ext/zlib/libzlib.la ext/bz2/libbz2.la ext/db/libdb.la ext/dba/libdba.la ext/ftp/libftp.la ext/gd/libgd.la ext/gettext/libgettext.la ext/imap/libimap.la ext/mysql/libmysql.la ext/openssl/libopenssl.la ext/pcre/libpcre.la ext/posix/libposix.la ext/session/libsession.la ext/standard/libstandard.la ext/sysvsem/libsysvsem.la ext/sysvshm/libsysvshm.la ext/xml/libxml.la TSRM/libtsrm.la -lgdbm -lpam -lc-client -ldl -lmysqlclient -lz -lpam -lintl -lgd -lfreetype -lpng -lz -ljpeg -lgdbm -lbz2 -lz -lcrypt -lssl -lcrypto -lresolv -lresolv -lm -ldl -lsocket -lsocket -lgcc
/usr/local/sparc-sun-solaris2.7/bin/ld: .libs/libphp4.so: undefined versioned symbol name des_encrypt1@@SUNWprivate_1.1
/usr/local/sparc-sun-solaris2.7/bin/ld: failed to set dynamic section sizes: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/usr/local/src/newapache/apachee/t2/php-4.0.6'
make: *** [all-recursive] Error 1

All the above mentioned tools except gcc are built from source. I've also tried linking some of them with Sun's ld (/usr/ccs/bin/ld), resulting in the same link error (php uses libtool and GNU ld any way). If I leave out --with-openssl, building and linking goes fine.

My complete configure command:
# CFLAGS=-Os ./configure --enable-sysvsem --enable-sysvshm --enable-ftp \
--with-mysql=/usr/local/apachedeps --with-apxs=/usr/local/newapache/bin/apxs \
--with-zlib=/usr/local/apachedeps --with-bz2=/usr/local/apachedeps \
--with-jpeg-dir=/usr/local/apachedeps --with-tiff-dir=/usr/local/apachedeps \
--with-png-dir=/usr/local/apachedeps --enable-shared --enable-libgcc \
--with-freetype-dir=/usr/local/apachedeps --with-gd=/usr/local/apachedeps \
--with-gdbm=/usr/local/apachedeps --with-openssl=/usr/local/apachedeps \
--with-imap=/usr/local/apachedeps --with-config-file-path=/etc \
--with-gettext=/usr/local/apachedeps --with-db \
--with-prefix=/usr/local/apachedeps

This does not happen with php 4.0.5. It builds and links fine with (the same installation of..) OpenSSL 0.9.6a.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-04 19:47 UTC] sniper@php.net
Could you please try the latest CVS snapshot from
http://snaps.php.net/ to verify if this is fixed now?

--Jani

 [2001-08-06 00:03 UTC] sniper@php.net
Still happens with latest CVS. 

 [2001-08-08 09:54 UTC] sniper@php.net
This problem is with OpenSSL 0.9.6a|b.
They use des_encrypt1() in their libs and it happens to collide with the Solaris libcrypt.a now.

I have informed them about this and they are thinking about
a solution at the moment. Suspending until the next release
of OpenSSL which hopefully fixes this.

--Jani

 [2002-04-23 00:34 UTC] sniper@php.net
Closing this as this really isn't PHP bug.
And according to the CHANGES file for upcoming release
of openssl 0.9.7, they have fixed this.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC