You might want to try to compile with the option of --enable-ucd-snmp-hack
if that does not work then you might want to add do the following options --includedir=DIR if that does not work then the fastest way is to download the ucd-snmp and compile it on your system then use the option --with-snmp=/to/snmp and then do what it say on php.net about compiling snmp with php... let me know what happens "Nicholas Ritter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Greetings everyone, > > I just joined the list again so I don't know if someone has posted any > questions or info regarding this issue. With the listserv archive search > down I was not able to search for an answer to this question. > > I have a RedHat 7.2 Professional based server (dual Pentium III 1GHz, > 2GB RAM) with the RedHat 7.2 boxed RPMS for apache, mod_perl, mod_dav, > etc., with the exception of PHP. I also have the most recent ucd-snmp > rpms installed (ucd-snmp-4.2.3-1.7.2.3). With all of these rpms, I > installed the devel rpms for everything except the apache modules. > > I downloaded the php-4.1.2 source and configured it to use apxs, and to > enable snmp. When I issue the configure, I get an error about simple > feature detection issues, which I am not knowledgable enough to resolve > (see attached debug.log.) And when I go to build, I get a snmp related > compiler error. > > Can someone give me hand on compiling php with Redhat 7.2 and ucd-snmp? > I was reading the in the php docs about something that also needs to be > done to the ucd-snmp source before the ucd-snmp source is compiled which > may mean that I have to get and manually build snmp, but I am hoping > someone on the list can give me some pointers on what should be done. > > Let me know if anyone can't read the two attached files (debug.log, and > builderror.log.) > > Thanks in advance for any help that any can give me. > > Nicholas > ---------------------------------------------------------------------------- ---- > CONFIGURE: './configure' '--with-mysql=/usr' '--with-apxs' '--with-snmp=/usr/include/ucd-snmp' > CC: gcc > CFLAGS: -g -O2 > CPPFLAGS: -DLINUX=22 -DEAPI -DEAPI_MM -DUSE_EXPAT -DEAPI_MM_CORE_PATH=/va r/run/httpd.mm > CXX: > CXXFLAGS: > INCLUDES: -I/usr/include/apache -I$(top_builddir)/Zend -I/usr/include/my sql -I/usr/include/ucd-snmp/include > LDFLAGS: -Wl,-rpath,/usr/include/ucd-snmp/lib -L/usr/include/ucd-snmp/li b > LIBS: -lsnmp -lmysqlclient -lcrypt -lresolv -lm -ldl -lnsl -lresolv - lcrypt > DLIBS: > SAPI: apache > PHP_RPATHS: /usr/include/ucd-snmp/lib > uname -a: Linux vulcan.lfc.edu 2.4.9-31custom #1 SMP Thu Mar 14 11:21:30 CST 2002 i686 unknown > > gcc -o conftest -g -O2 -DLINUX=22 -DEAPI -DEAPI_MM -DUSE_EXPAT -DEAPI_MM_CORE_PATH =/var/run/httpd.mm -Wl,-rpath,/usr/include/ucd-snmp/lib -L/usr/include/ucd- snmp/lib onftest.c -lsnmp -lmysqlclient -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lc rypt 1>&5 > /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' > /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libsnmp.so: undefined reference to `des_ncbc_encrypt' > collect2: ld returned 1 exit status > ---------------------------------------------------------------------------- ---- > > Making all in Zend > make[1]: Entering directory `/root/f_www/php-4.1.2/Zend' > make[1]: Nothing to be done for `all'. > make[1]: Leaving directory `/root/f_www/php-4.1.2/Zend' > Making all in main > make[1]: Entering directory `/root/f_www/php-4.1.2/main' > make[2]: Entering directory `/root/f_www/php-4.1.2/main' > /bin/sh /root/f_www/php-4.1.2/libtool --silent --mode=compile gcc -I. -I/root/f_www/php-4.1.2/main -I/root/f_www/php-4.1.2/main -I/root/f _www/php-4.1.2 -I/usr/include/apache -I/root/f_www/php-4.1.2/Zend -I/usr/inc lude/mysql -I/usr/include/ucd-snmp/include -I/root/f_www/php-4.1.2/ext/xml/e xpat -DLINUX=22 -DEAPI -DEAPI_MM -DUSE_EXPAT -DEAPI_MM_CORE_PATH=/var/run/h ttpd.mm -I/root/f_www/php-4.1.2/TSRM -g -O2 -prefer-pic -c internal_functions.c > /bin/sh /root/f_www/php-4.1.2/libtool --silent --mode=link gcc -I. -I/root/f_www/php-4.1.2/main -I/root/f_www/php-4.1.2/main -I/root/f _www/php-4.1.2 -I/usr/include/apache -I/root/f_www/php-4.1.2/Zend -I/usr/inc lude/mysql -I/usr/include/ucd-snmp/include -I/root/f_www/php-4.1.2/ext/xml/e xpat -DLINUX=22 -DEAPI -DEAPI_MM -DUSE_EXPAT -DEAPI_MM_CORE_PATH=/var/run/h ttpd.mm -I/root/f_www/php-4.1.2/TSRM -g -O2 -prefer-pic -o libmain.la main.lo internal_functions.lo snprintf.lo php_sprintf.lo safe_mode.lo fopen_wrappers.lo alloca.lo php_ini.lo SAPI.lo rfc1867.lo php_content_types.lo strlcpy.lo strlcat.lo mergesort.lo reentrancy.lo php_variables.lo php_ticks.lo streams.lo network.lo php_open_temporary_file.lo php_logos.lo output.lo > make[2]: Leaving directory `/root/f_www/php-4.1.2/main' > make[1]: Leaving directory `/root/f_www/php-4.1.2/main' > Making all in ext > make[1]: Entering directory `/root/f_www/php-4.1.2/ext' > Making all in mysql > make[2]: Entering directory `/root/f_www/php-4.1.2/ext/mysql' > make[3]: Entering directory `/root/f_www/php-4.1.2/ext/mysql' > make[3]: Nothing to be done for `all-p'. > make[3]: Leaving directory `/root/f_www/php-4.1.2/ext/mysql' > make[2]: Leaving directory `/root/f_www/php-4.1.2/ext/mysql' > Making all in pcre > make[2]: Entering directory `/root/f_www/php-4.1.2/ext/pcre' > Making all in pcrelib > make[3]: Entering directory `/root/f_www/php-4.1.2/ext/pcre/pcrelib' > make[4]: Entering directory `/root/f_www/php-4.1.2/ext/pcre/pcrelib' > make[4]: Nothing to be done for `all-p'. > make[4]: Leaving directory `/root/f_www/php-4.1.2/ext/pcre/pcrelib' > make[3]: Leaving directory `/root/f_www/php-4.1.2/ext/pcre/pcrelib' > make[3]: Entering directory `/root/f_www/php-4.1.2/ext/pcre' > make[3]: Nothing to be done for `all-p'. > make[3]: Leaving directory `/root/f_www/php-4.1.2/ext/pcre' > make[2]: Leaving directory `/root/f_www/php-4.1.2/ext/pcre' > Making all in posix > make[2]: Entering directory `/root/f_www/php-4.1.2/ext/posix' > make[3]: Entering directory `/root/f_www/php-4.1.2/ext/posix' > make[3]: Nothing to be done for `all-p'. > make[3]: Leaving directory `/root/f_www/php-4.1.2/ext/posix' > make[2]: Leaving directory `/root/f_www/php-4.1.2/ext/posix' > Making all in session > make[2]: Entering directory `/root/f_www/php-4.1.2/ext/session' > make[3]: Entering directory `/root/f_www/php-4.1.2/ext/session' > make[3]: Nothing to be done for `all-p'. > make[3]: Leaving directory `/root/f_www/php-4.1.2/ext/session' > make[2]: Leaving directory `/root/f_www/php-4.1.2/ext/session' > Making all in snmp > make[2]: Entering directory `/root/f_www/php-4.1.2/ext/snmp' > make[3]: Entering directory `/root/f_www/php-4.1.2/ext/snmp' > /bin/sh /root/f_www/php-4.1.2/libtool --silent --mode=compile gcc -I. -I/root/f_www/php-4.1.2/ext/snmp -I/root/f_www/php-4.1.2/main -I/ro ot/f_www/php-4.1.2 -I/usr/include/apache -I/root/f_www/php-4.1.2/Zend -I/usr /include/mysql -I/usr/include/ucd-snmp/include -I/root/f_www/php-4.1.2/ext/x ml/expat -DLINUX=22 -DEAPI -DEAPI_MM -DUSE_EXPAT -DEAPI_MM_CORE_PATH=/var/r un/httpd.mm -I/root/f_www/php-4.1.2/TSRM -g -O2 -prefer-pic -c snmp.c > snmp.c:62:18: asn1.h: No such file or directory > snmp.c:63:22: snmp_api.h: No such file or directory > snmp.c:64:25: snmp_client.h: No such file or directory > snmp.c:65:23: snmp_impl.h: No such file or directory > snmp.c:66:18: snmp.h: No such file or directory > snmp.c:67:19: parse.h: No such file or directory > snmp.c:68:17: mib.h: No such file or directory > snmp.c:69:21: version.h: No such file or directory > make[3]: *** [snmp.lo] Error 1 > make[3]: Leaving directory `/root/f_www/php-4.1.2/ext/snmp' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/root/f_www/php-4.1.2/ext/snmp' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/root/f_www/php-4.1.2/ext' > make: *** [all-recursive] Error 1 > -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php