php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18506 cli link fails using --with-imap-ssl
Submitted: 2002-07-23 14:12 UTC Modified: 2002-09-11 11:45 UTC
From: magneto at dirac dot cchem dot berkeley dot edu Assigned:
Status: Closed Package: IMAP related
PHP Version: 4.2.2 OS: linux (redhat 7.3)
Private report: No CVE-ID: None
 [2002-07-23 14:12 UTC] magneto at dirac dot cchem dot berkeley dot edu
A link failure occurs at the last step of the php make 
sequence when trying to compile the cli (php executable) 
option.  I have figured out how to solve it, but needs to 
be updated in the make file.

 here is my configure string

./configure  --enable-inline-optimization --with-mysql --
with-apxs=/usr/local/apache/bin/apxs --with-imap=/usr/
local/imap-2002 --with-imap-ssl --with-gettext=/usr/local -
-with-mcrypt --enable-ftp --with-mcal=/usr/local/mcal --
enable-cli

-----

upon a issuing make, the last step (linking the cli 
program) i get this error

-----

/bin/sh /var2/php-4.2.2/libtool --silent --mode=link gcc -
I. -I/var2/php-4.2.2/sapi/cli -I/var2/php-4.2.2/main -I/
var2/php-4.2.2 -I/usr/local/apache/include -I/var2/php-
4.2.2/Zend -I/usr/local/imap-2002/include -I/usr/local/
mcal/include -I/usr/local/include -I/var2/php-4.2.2/ext/
mysql/libmysql -I/var2/php-4.2.2/ext/xml/expat  -DLINUX=22 
-DMOD_SSL=208100 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I/var2/
php-4.2.2/TSRM -g -O2   -o php -export-dynamic  
libphp4cli.la 
/usr/local/imap-2002/lib/libc-client.a(osdep.o): In 
function `ssl_onceonlyinit':
/var2/imap-2002.RC2/c-client/osdep.c:267: the use of 
`tmpnam' is dangerous, better use `mkstemp'
/var2/imap-2002.RC2/c-client/osdep.c:280: undefined 
reference to `RAND_seed'
/var2/imap-2002.RC2/c-client/osdep.c:285: undefined 
reference to `SSL_library_init'
/usr/local/imap-2002/lib/libc-client.a(osdep.o): In 
function `ssl_start_work':

....MAny more undefined refs....

--------

Here is how i fixed it

cd sapi/cli/

/bin/sh /var2/php-4.2.2/libtool --silent --mode=link gcc -
I. -I/var2/php-4.2.2/sapi/cli -I/var2/php-4.2.2/main -I/
var2/php-4.2.2 -I/usr/local/apache/include -I/var2/php-
4.2.2/Zend -I/usr/local/imap-2002/include -I/usr/local/
mcal/include -I/usr/local/include -I/var2/php-4.2.2/ext/
mysql/libmysql -I/var2/php-4.2.2/ext/xml/expat  -DLINUX=22 
-DMOD_SSL=208100 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I/var2/
php-4.2.2/TSRM -g -O2   -o php -export-dynamic  
libphp4cli.la -lssl -lcrypto -lmcrypt

---------
(note the additional libs at the end) this properly linked 
the cli program and the rest of the install went fine


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-23 14:27 UTC] sniper@php.net
This should be fixed in this snapshot:

http://snaps.php.net/php4-latest.tar.gz
 [2002-09-11 11:45 UTC] sniper@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 10:01:29 2024 UTC