Hans: I'm forwarding a message sent by Kevin M. Myer after I announceds a new release of the RPM packages I maintain, it seems he is finding the same problems I hope this helps "Kevin M. Myer" <[EMAIL PROTECTED]> wrote: > Ramiro, > > Here is a very simple patch against 2.0.13 to enable compilation on Red > Hat systems with UCD SNMP. I see you disable SNMP in your spec file and > I've had problems with this ever since Red Hat updated their RPM packages > to 4.X format, since they never quite got the libraries linked properly. > Anyway, this allows compilation with SNMP support. Note: the stock > UCD-SNMP RPM that ships with 7.1 appears to be broken anyway - I had to > disable smux MIB support and recompile but thats a Red Hat issue. > > I'm going to be testing your source RPM against 2.0.13, along with the > patch for customizing the delimiter for usernames. I'll let you know if I > have any problems. > > diff -urN cyrus-imapd-2.0.13.orig/configure > cyrus-imapd-2.0.13/configure > --- cyrus-imapd-2.0.13.orig/configure Thu Apr 26 18:39:48 2001 > +++ cyrus-imapd-2.0.13/configure Tue May 1 09:48:31 2001 > @@ -4720,7 +4720,7 @@ > #define HAVE_UCDSNMP 1 > EOF > > - LIB_UCDSNMP="-lucdagent -lucdmibs -lsnmp" > + LIB_UCDSNMP="-lucdagent -lucdmibs -lsnmp -lrpm -lrpmio -lpopt" > fi > > > -- > Kevin M. Myer > Systems Administrator > Lancaster-Lebanon Intermediate Unit 13 > (717)-560-6140 > Hans Deragon <[EMAIL PROTECTED]> wrote: > Greetings > > > I limited my problem to `smux_listen_sd' being an undefined reference. > > Without changing anything on my system, I added the following libraries > in the compilation lines: -lrpm -lrpmio -lgnomesupport > > The result is the following: > > [root@world master]# gcc -L/usr/local/lib -Wl,-rpath,/usr/local/lib -g -O2 -o master master.o masterconf.o cyrusMasterMIB.o -lrpm -lrpmio -lgnomesupport -lucdagent -lucdmibs -lsnmp -lssl -lcrypto -lfl -ldb -lcom_err > /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libucdmibs.so: undefined reference to `smux_listen_sd' > collect2: ld returned 1 exit status > > I cannot figure out what library provided the `smux_listen_sd' symbol. > > Anybody got a clue? > > > Thanks, > Hans Deragon > > > Miroslav Zubcic wrote: > > > > Hans Deragon <[EMAIL PROTECTED]> writes: > > > > > I tried to compile cyrus under Red Hat 7.1, but the following errors > > > occured: > > > > > undefined reference to `rpmdbClose' > > > > Looks familiar. :-\ > > > > > I suspected that it might be a compiler issue (2.96 is I believe still experimental) > > > so I compiled with kgcc: > > > > No, it's not gcc. (read below) > > > > > Since it refers to rpm* stuff, I do not suspect that Cyrus itself is broken, but > > > Red Hat 7.1. I could not imagine why Cyrus would want to have anything to > > > > Yes, Red Hat *is* broken. > > > > > do with rpms, unless this acronym stands for something else than the usual > > > binary packaging system. > > > > > Any help would be appreciated. I have no clue what libucdmibs.so's function is > > > and how to correct this. Is it possible that library is missing on the > > > compiler's command line? > > > > Uninstall snmp package, autoconfigure from cyrus-imapd will find this > > libraries, and include support for snmp. This libraries are somehow > > linked with rpm libraries (!?). Just hide or temporary deinstall > > snmp-devel and snmp (rpm -qa | grep snmp - don't remember full name of > > package) and rerun ./configure (remove config.cache before, or > > extract source again). Maybe you can add --without-snmp to > > cyrus-imapd, but it's safer ti just remove/hide snmp from RedHat. > > > > Another error during compilation will be previous declaration of some > > extern char from malloc.h (or stdio.h?). Just somment out that line in > > cyru code and rerun make. > > > > Sorry, this are nasty workarounds, but I don't know better. :-( > > > > -- > > This signature intentionally left blank ____________________________________________________________________ Get free email and a permanent address at http://www.amexmail.com/?A=1