Including UCD-SNMP support in Cyrus IMAPD
Igor Brezac
igor at ipass.net
Wed Jan 8 12:44:10 EST 2003
Marc,
I must have mis-understood you. You need to use this option to compile
cyrus-imapd. -Wl,-zignore will ignore libraries not referenced by the
link process.
If you want to fix UCD-SNMP libs, you need to pass -Wl,-zdefs to LDFLAGS
and then add neccessary libs to the link process until everything compiles
fine. Actually, you may need to use -zdefs because libtool on solaris
uses 'ld' for link-edit. This is a libtool bug, but this is a subject for
a different forum.
-Igor
On Wed, 8 Jan 2003 marc.bigler at day.com wrote:
>
> Hi Igor,
>
> I just compiled my UCD-SNMP libraries with the options you've told me. Now
> I wanted to make sure that the kvm and kstat library is also included in
> it. How can I check that ?
>
> Regards
> Marc
>
>
>
>
>
>
> Igor Brezac To: marc.bigler at day.com
> <igor at ipass.ne cc:
> t> Subject: Re: Including UCD-SNMP support in Cyrus IMAPD
>
> 01/06/03 09:30
> PM
> Please respond
> to info-cyrus
>
>
>
>
>
>
>
> On Mon, 6 Jan 2003 marc.bigler at day.com wrote:
>
> >
> > Hi there,
> >
> > You are right, an ldd on the Cyrus binaries showed up kstat and kvm
> > library... Hopefully this doesn't use too much memory. Btw: I saw that
> only
> > the master binary from Cyrus IMAPD does use the UCD-SNMP library so
> > wouldn't it be a better idea to link only the kvm and kstat library
> against
> > the master binary ? If yes do you have an idea how I could acheive that ?
> >
>
> Try ('make distclean' first)
>
> LDFLAGS="-Wl,-zignore" LIBS="-lkstat -lkvm" ./configure ...
>
> or
>
> LIBS="-Wl,-zignore -lkstat -lkvm" ./configure ...
>
>
>
>
> > As you say it would be much better having UCD-SNMP dealing with those
> > libraries and not Cyrus IMAP, already tryed writting to the UCD-SNMP team
> > about that ?
> >
> > On Sun, 5 Jan 2003 marc.bigler at day.com wrote:
> >
> > >
> > > >Try,
> > > >LIBS="-lkstat -lkvm" ./configure ...
> > >
> > > I now had a try and it finally compiled perfectly ! Now, is that
> somehow
> >
> > One small issue is that all your cyrus binaries are linked with "-lkstat
> > -lkvm". This is not a problem except for a slightly higher memory usage.
> >
> > > normal that I need to do that, shouldn't this be automatically done
> with
> > > the configure script ?
> > >
> >
> > I do not thinks so. The real fix is to build self-contained ucd libs.
> > The ucd libraries are kinda messy, there are all sorts of cross
> > dependencies (libucdagent depends on libucdmibs and vice versa). I had a
> > time trying to sort this out. ;(
> >
> > -Igor
> >
> >
> >
> >
> >
> >
>
> --
> Igor
>
>
>
>
>
>
--
Igor
More information about the Info-cyrus
mailing list