[PHP-DEV] Bug #11613: cannot compile apache+php+snmp From: peter.hudak <email protected>
Date: 06/22/01

From: peter.hudak <email protected>
Operating system: RH7.1, kernel 2.4.5, apache 13.20
PHP version: 4.0.5
PHP Bug Type: SNMP related
Bug description: cannot compile apache+php+snmp

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!

-- 
Edit Bug report at: http://bugs.php.net/?id=11613&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>