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

Reply via email to