Erro compiling -- undefined reference to netsnmp_enable_subagent

Derrick J Brashear shadow at dementia.org
Mon Mar 28 11:45:20 EST 2005


On Mon, 28 Mar 2005, Javier Ramos wrote:

> 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 clues?
> Thanks a lot for your help...
> Regards,
>
> Javier
>
> 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 \
> cyrusMasterMIB.c
> 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: libcom_err.so.3, needed by /usr/lib/libcrypto.so, may 
> conflict with libcom_err.so.2
> master.o(.text+0x3135): In function `main':
> : undefined reference to `netsnmp_enable_subagent'

The version of the netsnmp package you have is either too old or too new, 
I guess, to have that symbol. You can disable snmp at configure time if 
you don't want to install another version.

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list