Bug #18506: cli link fails using --with-imap-ssl
| From: | magneto at dirac dot cchem dot berkeley dot edu | Date: | Tue, 23 Jul 2002 18:12:27 +0000 |
| Subject: | Bug #18506: cli link fails using --with-imap-ssl | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-14922@lists.php.net to get a copy of this message | ||
From: magneto@dirac.cchem.berkeley.edu
Operating system: linux (redhat 7.3)
PHP version: 4.2.2
PHP Bug Type: Compile Failure
Bug description: cli link fails using --with-imap-ssl
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
--
Edit bug report at http://bugs.php.net/?id=18506&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18506&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18506&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18506&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18506&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18506&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18506&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18506&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18506&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18506&r=globals