Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jun 2002 00:59:45 -0400
From:      "Vincent Goupil" <>
To:        <>
Cc:        <>
Subject:   FreeBSD Port: net-snmp-5.0.1_1
Message-ID:  <000001c20b84$a630cd80$0f32a8c0@w2kworkstation>

Next in thread | Raw E-Mail | Index | Archive | Help
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/ into server: Shared
object "" 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

[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
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 helpers/
../snmplib/ -lkvm -lcrypto -lm
cc -g -O2 -Dfreebsd4 -o .libs/snmpd snmpd.o .libs/
.libs/ helpers/.libs/
../snmplib/.libs/ -lkvm -lcrypto -lm  -Wl,--rpath
.libs/ 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

My system is:
[root@systemlog /usr/ports/net/net-snmp] uname -a
FreeBSD 4.5-RELEASE-p6 FreeBSD 4.5-RELEASE-p6
#0: Wed May 29 02:30:52 EDT 2002  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::*
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
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.


Vincent Goupil

To Unsubscribe: send mail to
with "unsubscribe freebsd-ports" in the body of the message

Want to link to this message? Use this URL: <$a630cd80$0f32a8c0>