From owner-freebsd-ports Mon Jun 3 21:59:41 2002 Delivered-To: freebsd-ports@freebsd.org Received: from thewall.dyndns.org (p39-129.pixelweb.net [207.183.39.129]) by hub.freebsd.org (Postfix) with ESMTP id 6952237B401; Mon, 3 Jun 2002 21:59:35 -0700 (PDT) Received: from localhost (nobody@localhost) by thewall.dyndns.org (8.11.6/8.11.6) with ESMTP id g544xSs00188; Tue, 4 Jun 2002 00:59:29 -0400 (EDT) (envelope-from goups@bigfoot.com) X-Authentication-Warning: thewall.dyndns.org: nobody owned process doing -bs Received: from workstation.home (192.168.50.15) by thewall.dyndns.org From: "Vincent Goupil" To: Cc: Subject: FreeBSD Port: net-snmp-5.0.1_1 Date: Tue, 4 Jun 2002 00:59:45 -0400 Message-ID: <000001c20b84$a630cd80$0f32a8c0@w2kworkstation> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I want to use PHP with snmp support (PHP need the shared library). I got an error when I try to build the package with shared library. (I got the error on two different computer running FreeBSD-Release-P6) [root@systemlog /usr/ports/net/net-snmp/work/net-snmp-5.0.1] /usr/local/sbin/apachectl start Syntax error on line 237 of /usr/local/etc/apache/httpd.conf: Cannot load /usr/local/libexec/apache/libphp3.so into server: Shared object "libsnmp.so.4" not found /usr/local/sbin/apachectl start: httpd could not be started [root@systemlog /usr/ports/net/net-snmp/work/net-snmp-5.0.1] The error is definitly related to Net-snmp shared librarys. I try to install the package, here is my steps: I clean the directory with: [root@systemlog /usr/ports/net/net-snmp] make distclean After: [root@systemlog /usr/ports/net/net-snmp] make It seems to work great (it's the default) After, I try to enable the shared library: [root@systemlog /usr/ports/net/net-snmp/work/net-snmp-5.0.1] ./configure --enable-shared Great, I return to install the package: [root@systemlog /usr/ports/net/net-snmp] make install I got the error: /bin/sh ../libtool --mode=link cc -g -O2 -Dfreebsd4 -o snmpd snmpd.lo libnetsnmpagent.la libnetsnmpmibs.la helpers/libnetsnmphelpers.la ../snmplib/libnetsnmp.la -lkvm -lcrypto -lm cc -g -O2 -Dfreebsd4 -o .libs/snmpd snmpd.o .libs/libnetsnmpagent.so .libs/libnetsnmpmibs.so helpers/.libs/libnetsnmphelpers.so ../snmplib/.libs/libnetsnmp.so -lkvm -lcrypto -lm -Wl,--rpath -Wl,/usr/local/lib .libs/libnetsnmpagent.so: undefined reference to `hosts_ctl' *** Error code 1 Stop in /usr/ports/net/net-snmp/work/net-snmp-5.0.1/agent. *** Error code 1 Stop in /usr/ports/net/net-snmp/work/net-snmp-5.0.1. *** Error code 1 Stop in /usr/ports/net/net-snmp. [root@systemlog /usr/ports/net/net-snmp] I also tried (instead of ./configure --enable-shared): [root@systemlog /usr/ports/net/net-snmp/work/net-snmp-5.0.1] ./configure --enable-ucd-snmp-compatibility My system is: [root@systemlog /usr/ports/net/net-snmp] uname -a FreeBSD systemlog.linguistiques.ca 4.5-RELEASE-p6 FreeBSD 4.5-RELEASE-p6 #0: Wed May 29 02:30:52 EDT 2002 root@systemlog.linguistiques.ca:/usr/obj/usr/src/sys/KERN i386 The packages installed are: [root@systemlog /usr/ports/net/net-snmp/work/net-snmp-5.0.1] pkg_info apache-1.3.24_7 The extremely popular Apache http server. Very fast, very autoconf213-2.13.000227_1 Automatically configure source code on many Un*x platforms bash-2.05a The GNU Bourne Again Shell cvsup-without-gui-16.1f General network file distribution system optimized for CVS ezm3-1.0 Easier, more portable Modula-3 distribution for building CV freetype2-2.0.9 A free and portable TrueType font rendering engine gd-1.8.4_6 A graphics library for fast image creation gettext-0.10.35_1 GNU gettext package gmake-3.79.1 GNU version of 'make' utility jpeg-6b_1 IJG's jpeg compression utilities libtool-1.3.4_2 Generic shared library support script m4-1.4_1 GNU's m4 mod_php3-3.0.18_3 PHP3 module for Apache mod_php4-4.2.1_1 PHP4 module for Apache mrtg-2.9.18.p12 The multi-router traffic grapher mysql-client-3.23.49 Multithreaded SQL database (client) mysql-server-3.23.49 Multithreaded SQL database (server) p5-DBI-1.21 The perl5 Database Interface. Required for DBD::* modules p5-Data-ShowTable-3.3 Perl5 module to pretty-print arrays of data p5-Mysql-modules-1.2216 Perl5 modules for accessing MySQL databases p5-Net-Daemon-0.36 Perl5 extension for portable daemons p5-PlRPC-0.2016 Perl module for writing RPC servers and clients p5-Storable-1.0.14 Persistency for perl data structures phpMyAdmin-2.2.4 A set of PHP-scripts to adminstrate MySQL over the web png-1.2.2_4 Library for manipulating PNG images [root@systemlog /usr/ports/net/net-snmp/work/net-snmp-5.0.1] I'm not an expert with library or compilation problems. Could you help to resolve this issue. Thanks Vincent Goupil goups@bigfoot.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message