php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9184 compile failure w/ apache/ snmp
Submitted: 2001-02-08 22:31 UTC Modified: 2001-03-16 17:01 UTC
From: tom at khubla dot com Assigned:
Status: Closed Package: Apache related
PHP Version: 4.0.4pl1 OS: FreeBSD 4.2
Private report: No CVE-ID: None
 [2001-02-08 22:31 UTC] tom at khubla dot com
php config:

./configure --with-mysql --with-apache=../apache_1.3.14 --with-imap=../imap-2000a --enable-track-vars --with-snmp --with-ucd-snmp-hack

php compiles and installs but i get the following attempting to compile apache:

./configure --prefix=/home/www --activate-module=src/modules/php4/libphp4.a
Configuring for Apache, Version 1.3.14
 + using installation path layout: Apache (config.layout)
 + activated php4 module (modules/php4/libphp4.a)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
 + configured for FreeBSD 4.2 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.

cd ..; gcc  -funsigned-char -I/usr/home/software/php-4.0.4pl1 -I/usr/home/software/php-4.0.4pl1/main -I/usr/home/software/php-4.0.4pl1/main -I/usr/home/software/php-4.0.4pl1/Zend -I/usr/home/software/php-4.0.4pl1/Zend -I/usr/home/software/php-4.0.4pl1/TSRM -I/usr/home/software/php-4.0.4pl1/TSRM -I/usr/home/software/php-4.0.4pl1 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci`     -o helpers/dummy helpers/dummy.c   -R/usr/home/software/imap-2000a/c-client -R/usr/local/lib  -rdynamic -L/usr/home/software/imap-2000a/c-client -L/usr/local/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4  -lpam -lc-client  -lsnmp -lm -lcrypt    -lcrypt
/usr/local/lib/libsnmp.so: undefined reference to `EVP_DigestInit'
/usr/local/lib/libsnmp.so: undefined reference to `EVP_DigestFinal'
/usr/local/lib/libsnmp.so: undefined reference to `EVP_md5'
/usr/local/lib/libsnmp.so: undefined reference to `HMAC'
/usr/local/lib/libsnmp.so: undefined reference to `EVP_sha1'
/usr/local/lib/libsnmp.so: undefined reference to `des_cbc_encrypt'
/usr/local/lib/libsnmp.so: undefined reference to `des_key_sched'
/usr/local/lib/libsnmp.so: undefined reference to `EVP_DigestUpdate'
/usr/local/lib/libsnmp.so: undefined reference to `RAND_bytes'
/usr/local/lib/libsnmp.so: undefined reference to `des_ncbc_encrypt'
*** Error code 1

Stop in /usr/home/software/apache_1.3.14/src/helpers.
======== Error Output for sanity check ========
============= End of Error Report =============

 Aborting!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-15 12:52 UTC] sniper@php.net
Your snmp lib is compiled with SSL support so try adding
--with-openssl=/path/to/openssl

into your configure line (assuming you have openssl libraries installed
in your system already)

Another reason for this to happen is that your header files for ucd-snmp
don't match the installed library.

Also, remember to do 'rm config.cache' before reconfiguring PHP
and do 'make clean ; make depend; make ; make install' after configure.

--Jani

 [2001-03-16 17:01 UTC] sniper@php.net
No feedback. Considered fixed.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 18:01:29 2024 UTC