> I have a PIII 850 box running RH7.1 and have encountered a problem with
> adding snmp support to php4. I hope that someone has a suggestion as to how
> to fix this....here are the details:
>
>
> RPMs installed:
> (I am using the stock rpms from the RH7.1 distro for apache, mysql,  and
> ucd-snmp)
> apache-1.3.19-5  (and it's devel rpm)
> mysql-3.23.36-1  (and it's devel rpm, server and client rpms)
> ucd-snmp-4.2-12  (and it's devel and utils rpms)
>
>
> PHP compiles fine, but apache won't startup due to a symbol error:
>
> Cannot load libphp4.so into server: /usr/lib/libsnmp-0.4.2.so: undefined
> symbol: EVP_DigestInit

Try editing your ext/snmp/config.m4 file.  Add the two lines indicated by
+ here:

    if test "$ac_cv_header_default_store_h" = "yes"; then
        dnl UCD SNMP 4.1.x
+        AC_CHECK_LIB(crypto, CRYPTO_free, SNMP_LIBS=-lcrypto)
+        LIBS="$LIBS $SNMP_LIBS"
        AC_TRY_RUN([


Then run ./buildconf and try again and let me know if it fixes it.  Looks
to me like the TRY_RUN is attempted without -lcrypto being added which is
going to make that check for OPENSSL fail.  Don't quite see how this could
ever have worked unless some other extension is adding -lcrypto.

-Rasmus


-- 
PHP Install 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]

Reply via email to