Including UCD-SNMP support in Cyrus IMAPD

Igor Brezac igor at ipass.net
Sat Jan 4 21:12:58 EST 2003


On Sat, 4 Jan 2003 marc.bigler at day.com wrote:

>
> >Try ('make distclean' first)
>
> >LIBS=-lkstat ./configure ....
>
> >The real fix is to build self-contained ucd-snmp libs.
>
> >master.c will not compile if ucd-snmpd package is built with libwrap.
> >If this is the case, I can email you my patch.
>
> >Hope this helps.
>
> That helped for the configure but now I get the following error when
> issuing gmake all:
>
> gcc -L/opt/sfw/lib -R/opt/sfw/lib -L/opt/sfw/lib -L/usr/local/lib
> -R/usr/local/lib -R/opt/sfw/lib:/opt/openssl/lib:/opt/ucdsnmp/lib
> -L/opt/openssl/lib -L/opt/ucdsnmp/lib -Wall -g -O2  -o master master.o
> masterconf.o cyrusMasterMIB.o -lucdagent -lucdmibs -lsnmp -ldl  -ldb-3.1
> -lkstat -lssl -lcrypto -lresolv -lsocket -lnsl  ../et/libcom_err.a
> Undefined                       first referenced
>  symbol                             in file
> kvm_read                            /opt/ONucdsnmp/lib/libucdagent.so
> kvm_getu                            /opt/ONucdsnmp/lib/libucdmibs.so
> kvm_open                            /opt/ONucdsnmp/lib/libucdagent.so
> nlist                               /opt/ONucdsnmp/lib/libucdmibs.so
> kvm_setproc                         /opt/ONucdsnmp/lib/libucdmibs.so
> kvm_nextproc                        /opt/ONucdsnmp/lib/libucdmibs.so

Try,

LIBS="-lkstat -lkvm" ./configure ...

>
>
> I think the problem is really in my UCD-SNMP library, do you maybe know how
> I can fix my UCD-SNMP libraries ?
>

Your build should work fine.  You just need to figure out your ucd-snmp
lib dependencies and include those libraries in the cyrus build.

-- 
Igor





More information about the Info-cyrus mailing list