On Wed, 18 Jun 2003, peter pilsl wrote: > > Thnx to Rob that helped me out of my previous compiling problem with sasl. > I now try to install cyrus imapd 2.1.13 and fail with ucdsnmp: > > While having ucdsnmp 4.2.6 *and* net-smtp 5.8 installed make fails with the > following error: > > gcc -L/usr/local/lib -Wl,-rpath,/usr/local/lib -Wall -g -O2 -o master master.o > masterconf.o cyrusMasterMIB.o ../lib/lock_fcntl.o -lucdagent > -lucdmibs -lsnmp -lrpm -lpopt -lssl -lcrypto -lfl -lresolv -ldb-4.0 -lcom_err > /usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libucdmibs.so: undefined reference > to `hosts_ctl' > /usr/lib/gcc-lib/i486-suse-linux/3.3/../../../libucdmibs.so: undefined reference > to `deny_severity' > collect2: ld returned 1 exit status > make[1]: *** [master] Error 1 > make[1]: Leaving directory `/opt1/src/cyrus-imapd-2.1.13/master' > make: *** [all] Error 1 >
add int allow_severity = LOG_DEBUG; int deny_severity = LOG_ERR; at the top of master/master.c and recompile. > > If I try to disable ucdsnmp (--with-ucdsnmp=no) I run into the following error: > > gcc -L/usr/local/lib -Wl,-rpath,/usr/local/lib -Wall -g -O2 -o master master.o > masterconf.o cyrusMasterMIB.o ../lib/lock_fcntl.o -lssl -lcrypto -lfl -lresolv > -ldb-4.0 -lcom_err > master.o(.text+0x1178): In function `sigterm_handler': > /usr/src/cyrus-imapd-2.1.13/master/master.c:812: undefined reference to > `snmp_shutdown' > master.o(.text+0x26b8): In function `main': > /usr/src/cyrus-imapd-2.1.13/master/master.c:1473: undefined reference to > `ds_set_boolean' > master.o(.text+0x26c4):/usr/src/cyrus-imapd-2.1.13/master/master.c:1476: > undefined reference to `init_agent' > master.o(.text+0x26d5):/usr/src/cyrus-imapd-2.1.13/master/master.c:1480: > undefined reference to `init_snmp' > master.o(.text+0x29c6):/usr/src/cyrus-imapd-2.1.13/master/master.c:1591: > undefined reference to `snmp_select_info' > master.o(.text+0x2a06):/usr/src/cyrus-imapd-2.1.13/master/master.c:1604: > undefined reference to `snmp_read' > master.o(.text+0x2a0b):/usr/src/cyrus-imapd-2.1.13/master/master.c:1605: > undefined reference to `snmp_timeout' > cyrusMasterMIB.o(.text+0x1c): In function `init_cyrusMasterMIB': > /usr/src/cyrus-imapd-2.1.13/master/cyrusMasterMIB.c:91: undefined reference to > `register_mib' > cyrusMasterMIB.o(.text+0x41):/usr/src/cyrus-imapd-2.1.13/master/cyrusMasterMIB.c:98: > undefined reference to `snmp_get_do_debugging' > cyrusMasterMIB.o(.text+0x63):/usr/src/cyrus-imapd-2.1.13/master/cyrusMasterMIB.c:98: > undefined reference to `debugmsgtoken' > cyrusMasterMIB.o(.text+0x81):/usr/src/cyrus-imapd-2.1.13/master/cyrusMasterMIB.c:98: > undefined reference to `debugmsg' > cyrusMasterMIB.o(.text+0x98):/usr/src/cyrus-imapd-2.1.13/master/cyrusMasterMIB.c:98: > undefined reference to `debugmsgtoken' > cyrusMasterMIB.o(.text+0xaf):/usr/src/cyrus-imapd-2.1.13/master/cyrusMasterMIB.c:98: > undefined reference to `debugmsg' > cyrusMasterMIB.o(.text+0x102): In function `var_cyrusMasterMIB': > /usr/src/cyrus-imapd-2.1.13/master/cyrusMasterMIB.c:127: undefined reference to > `header_generic' > cyrusMasterMIB.o(.text+0x132):/usr/src/cyrus-imapd-2.1.13/master/cyrusMasterMIB.c:150: > undefined reference to `snmp_set_detail' > cyrusMasterMIB.o(.text+0x268): In function `var_serviceTable': > /usr/src/cyrus-imapd-2.1.13/master/cyrusMasterMIB.c:186: undefined reference to > `header_simple_table' > cyrusMasterMIB.o(.text+0x3a4):/usr/src/cyrus-imapd-2.1.13/master/cyrusMasterMIB.c:219: > undefined reference to `snmp_set_detail' > collect2: ld returned 1 exit status > make[1]: *** [master] Error 1 > make[1]: Leaving directory `/opt1/src/cyrus-imapd-2.1.13/master' > make: *** [all] Error 1 > Do 'make distclean' before you run configure script. -- Igor