Erro compiling -- undefined reference to netsnmp_enable_subagent

Javier Ramos ramos at
Mon Mar 28 08:08:36 EST 2005

Hi all,

I am getting the following error compiling under Red Hat Enterprise 
Linux 3.0, and cannot figure where the problem is... can anyone give any 
Thanks a lot for your help...


gcc -c -I.. -I./../lib -I./../imap  -I/usr/include/rpm 
-I/usr/include/net-snmp -I/usr/include/et -I/usr/kerberos/include 
-I/usr/include  -DHAVE_CONFIG_H  -O \
gcc -s  -o master master.o masterconf.o cyrusMasterMIB.o 
../lib/lock_fcntl.o ../lib/libcyrus_min.a -L/usr/lib -lnetsnmpagent 
-lnetsnmpmibs -lnetsnmphelpers -lnetsnmp -ldl -lrpm -lrpmio -lpopt -lbz2 
-lz -lcrypto -lelf -lm -L/usr/lib/lib -lwrap -lresolv -lssl -lcrypto   
-lfl -L/usr/lib -lnetsnmp -lcrypto -lelf -lm   -ldb-4.1 -lcom_err
/usr/bin/ld: warning:, needed by /usr/lib/, 
may conflict with
master.o(.text+0x3135): In function `main':
: undefined reference to `netsnmp_enable_subagent'
collect2: ld returned 1 exit status
make[1]: *** [master] Error 1
make[1]: Leaving directory `/root/imapd/cyrus-imapd-2.2.12/master'
make: *** [all] Error 1

Cyrus Home Page:
Cyrus Wiki/FAQ:
List Archives/Info:

More information about the Info-cyrus mailing list