Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5336 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34657 invoked by uid 1010); 11 Nov 2003 04:19:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 34633 invoked from network); 11 Nov 2003 04:19:42 -0000 Received: from unknown (HELO lt1.firehawksystems.com) (64.71.143.247) by pb1.pair.com with SMTP; 11 Nov 2003 04:19:42 -0000 Received: from wireless-laptop.firehawksystems.com (adsl-63-196-188-33.dsl.sktn01.pacbell.net [63.196.188.33]) (authenticated bits=0) by lt1.firehawksystems.com (8.12.10/8.12.9) with ESMTP id hAB4JfOU018135 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 10 Nov 2003 20:19:42 -0800 Date: Mon, 10 Nov 2003 20:19:36 -0800 To: internals@lists.php.net Cc: sniper@php.net Message-ID: <20031110201936687070.GyazMail.list@firehawksystems.com> Mime-Version: 1.0 (GMessage framework 0.9.9.9.4) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: GyazMail version 0.9.9.9.4 Subject: ext/snmp building shared From: list@firehawksystems.com ("Brian J. France") I am having a problem building snmp as a shared extension since the move to PHP_SETUP_OPENSSL. The big problem is libssl.so on FreeBSD doesn't have a dependence on libcrypt.so, but I don't think I can get fixed anytime soon. When running ./configure for the shared extension it fails for the test of SSL_CTX_set_ssl_version because of undefined symbols. This is because it is only linking with -lssl and not -lssl -lcrypto. Short of hacking the generated configure script and adding: LIBS="$LIBS -lcrypt"; right before the SSL_CTX_set_ssl_version, I don't know how to fix it. Any ideas? Thanks, Brian acinclude.m4: 1660 PHP_CHECK_LIBRARY(crypto, CRYPTO_free, [ 1661 PHP_ADD_LIBRARY(crypto,,$1) 1662 ],[ 1663 AC_MSG_ERROR([libcrypto not found!]) 1664 ],[ 1665 -L$OPENSSL_LIBDIR 1666 ]) 1667 1668 PHP_CHECK_LIBRARY(ssl, SSL_CTX_set_ssl_version, [ 1669 PHP_ADD_LIBRARY(ssl,,$1) 1670 found_openssl=yes 1671 ],[ 1672 AC_MSG_ERROR([libssl not found!]) 1673 ],[ 1674 -L$OPENSSL_LIBDIR 1675 ]) 1676 fi