Greets -

After the recent talk of snmp stats I've decided to play with it
myself. My system is Red Hat 7.3, ucd-snmp-4.2.5-7.73.0 an cyrus
2.0.11 from source.

During the build of master.c it fails with some missing libs. I found
an old email from Igor which helps but doesn't quite solve it. After
adding this to master/master.c to support libwrap:

  int allow_severity = LOG_DEBUG;
  int deny_severity = LOG_ERR;

And adding -lrpmio -lrpmdb -lrpm -lpopt -lwrap to the LDLIBS to
pulling required libs I still get the following build error. I see
from hosts_access(5) that hosts_ctl comes from libwrap and I've
verified that /usr/lib/libwrap.a exists. I assume ld is picking it up
since it doesn't give me an error. At this point my amature C skills
come to an abrubt halt. :) Any thoughts on what tweak I need to get
past this build error?

[root@imap master]# make
gcc -L/usr/local/lib -Wl,-rpath,/usr/local/lib  -L/usr/lib -Wall -g
-O2  -o master master.o masterconf.o cyrusMasterMIB.o -lrpmio -lrpmdb
-lrpm -lpopt -lwrap -lucdagent -lucdmibs -lsnmp -lssl -lcrypto  -lfl
-ldb-3.3  -lresolv  /usr/lib/libcom_err.a

/usr/lib/libucdmibs.so: undefined reference to hosts_ctl'
collect2: ld returned 1 exit status
make: *** [master] Error 1

-- 
  Scott Russell ([EMAIL PROTECTED])
  Linux Technology Center, System Admin, RHCE.
  Dial 877-735-8200 then ask for 919-543-9289 (TTY)

Attachment: msg10626/pgp00000.pgp
Description: PGP signature

Reply via email to