#18506 [Fbk->Csd]: cli link fails using --with-imap-ssl

From: Date: Wed, 11 Sep 2002 16:45:24 +0000
Subject: #18506 [Fbk->Csd]: cli link fails using --with-imap-ssl
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-19153@lists.php.net to get a copy of this message
ID: 18506 Updated by: sniper@php.net Reported By: magneto@dirac.cchem.berkeley.edu -Status: Feedback +Status: Closed Bug Type: IMAP related Operating System: linux (redhat 7.3) PHP Version: 4.2.2 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2002-07-23 14:27:34] sniper@php.net This should be fixed in this snapshot: http://snaps.php.net/php4-latest.tar.gz ------------------------------------------------------------------------ [2002-07-23 14:12:26] magneto@dirac.cchem.berkeley.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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18506&edit=1

« previous php.bugs (#19153) next »