ID: 11613
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: SNMP related
Operating system:
PHP Version: 4.0.5
Assigned To:
Comments:
Your snmp libs are obviously linked with ssl libs.
Add --with-openssl to your configure line.
# rm config.cache ; ./configure <with your options + --with-openssl>
# make clean ; make ; make install
Also I suggest you get the PHP 4.0.6 when it's released
later on today as it has many fixes in it.
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2001-06-22 05:11:31] [EMAIL PROTECTED]
I cannot compile apache+php+snmp (statically linked).
this is my configure command for PHP:
./configure --with-pgsql --with-apache=../apache_1.3.20 --enable-track-vars
--with-gd --with-snmp --enable-calendar
this is my configure command for apache:
./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a
PHP compiles and installs without problem.
and this comes out from making of apache:
Configuring for Apache, Version 1.3.20
+ using installation path layout: Apache (config.layout)
+ activated php4 module (modules/php4/libphp4.a)
Creating Makefile
Creating Configuration.apaci in src
cd ..; gcc -DLINUX=22 -I/soft/php-4.0.5 -I/soft/php-4.0.5/main -I/soft/php-4.0.5/main
-I/soft/php-4.0.5/Zend -I/soft/php-4.0.5/Zend -I/soft/php-4.0.5/TSRM
-I/soft/php-4.0.5/TSRM -I/soft/php-4.0.5 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED
`./apaci` -o helpers/dummy helpers/dummy.c -Wl,-rpath,/usr/local/pgsql/lib
-rdynamic -L/usr/local/pgsql/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4
-lmodphp4 -ldl -lsnmp -lpq -lttf -lz -lpng -lgd -lresolv -lm -ldl -lcrypt -lnsl
-lresolv -lm -lcrypt
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libsnmp.so: undefined reference to
`EVP_DigestInit'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libsnmp.so: undefined reference to
`EVP_DigestFinal'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libsnmp.so: undefined reference to
`EVP_md5'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libsnmp.so: undefined reference to
`HMAC'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libsnmp.so: undefined reference to
`EVP_sha1'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libsnmp.so: undefined reference to
`des_cbc_encrypt'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libsnmp.so: undefined reference to
`des_key_sched'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libsnmp.so: undefined reference to
`EVP_DigestUpdate'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libsnmp.so: undefined reference to
`RAND_bytes'
collect2: ld returned 1 exit status
make: *** [dummy] Error 1
Creating Makefile in src
+ configured for Linux platform
+ setting C compiler to gcc
+ setting C pre-processor to gcc -E
+ checking for system header files
+ adding selected modules
o php4_module uses ConfigStart/End
+ checking sizeof various data types
+ doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed. The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc.
======== Error Output for sanity check ========
============= End of Error Report =============
Aborting!
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11613&edit=2
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]