Re: Including UCD-SNMP support in Cyrus IMAPD

2003-01-10 Thread marc . bigler

I will have a try at it this week-end... Now hopefully the last question
about this topic, how does actually the SNMP daemon know about Cyrus ?? I
am wondering how that can work by only specifying master agentx, is that
really all ? I will be using Cyrus graphtools from the contrib dir...

Regards
Marc



   
   
   
   
Igor Brezac   To: 
[EMAIL PROTECTED]
 
[EMAIL PROTECTED]  cc:  
   
Sent by:  Subject: Re: Including 
UCD-SNMP support in Cyrus IMAPD  
[EMAIL PROTECTED]
   
ew.cmu.edu 
   
   
   
   
   
01/09/03 07:31 PM  
   
   
   
   
   





On Thu, 9 Jan 2003 [EMAIL PROTECTED] wrote:


 Thanks, it looks like that worked, I now compiled Cyrus IMAP with the
 following:

 LIBS=-Wl,-zignore

 and I've checked with ldd to see if the kstat and kvm library where
display
 and they are not anymore so it looks fine. Now an important question, how
 can I check that UCD-SNMP is really working with my Cyrus IMAP ?

Add 'master agentx' to snmpd.conf.  Make sure to start cyrus after your
start snmpd.  To see counters
'snmpwalk snmp_host comminity_str .1.3.6.1.4.1.3.6.1'

 Regards
 Marc





 Igor Brezac   To:
[EMAIL PROTECTED]
 [EMAIL PROTECTED]  cc:
[EMAIL PROTECTED]
 Sent by:  Subject: Re:
Including UCD-SNMP support in Cyrus IMAPD
 [EMAIL PROTECTED]
 ew.cmu.edu


 01/08/03 10:51 PM
 Please respond to
 info-cyrus







 On Wed, 8 Jan 2003 [EMAIL PROTECTED] wrote:

 
 
 
 
 
  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.
 
  Oh ok this is for Cyrus IMAP, then I misunderstood you... So now from
the
  two solutions you gave what do you think is the best to do:
 

 You do not have to do either.  What you have works.  ;)  You asked me if
 cyrus binaries can be compiled without all these unneccessary libraries?
 Option 1) will do this.

 1) - use -Wl,-zignore to compile Cyrus IMAP or

 I would not go through the effort of fixing UCD libs unless you are
 familiar with the link-edit process.  Do not bother with 2).

 2) - use -Wl,-zdefs to compile UCD SNMP

 Hope this helps.

 -Igor







--
Igor









Re: Including UCD-SNMP support in Cyrus IMAPD

2003-01-10 Thread Igor Brezac

On Fri, 10 Jan 2003 [EMAIL PROTECTED] wrote:


 I will have a try at it this week-end... Now hopefully the last question
 about this topic, how does actually the SNMP daemon know about Cyrus ?? I
 am wondering how that can work by only specifying master agentx, is that
 really all ? I will be using Cyrus graphtools from the contrib dir...


By default snmpd and ucd libs will use the same unix domain socket to
communicate.  Things are a bit more complicated if you use libwrap and/or
you want to change the socket location or use ip:port for ipc.

-Igor

 Regards
 Marc





 Igor Brezac   To: 
[EMAIL PROTECTED]
 [EMAIL PROTECTED]  cc:
 Sent by:  Subject: Re: Including 
UCD-SNMP support in Cyrus IMAPD
 [EMAIL PROTECTED]
 ew.cmu.edu


 01/09/03 07:31 PM







 On Thu, 9 Jan 2003 [EMAIL PROTECTED] wrote:

 
  Thanks, it looks like that worked, I now compiled Cyrus IMAP with the
  following:
 
  LIBS=-Wl,-zignore
 
  and I've checked with ldd to see if the kstat and kvm library where
 display
  and they are not anymore so it looks fine. Now an important question, how
  can I check that UCD-SNMP is really working with my Cyrus IMAP ?

 Add 'master agentx' to snmpd.conf.  Make sure to start cyrus after your
 start snmpd.  To see counters
 'snmpwalk snmp_host comminity_str .1.3.6.1.4.1.3.6.1'

  Regards
  Marc
 
 
 
 
 
  Igor Brezac   To:
 [EMAIL PROTECTED]
  [EMAIL PROTECTED]  cc:
 [EMAIL PROTECTED]
  Sent by:  Subject: Re:
 Including UCD-SNMP support in Cyrus IMAPD
  [EMAIL PROTECTED]
  ew.cmu.edu
 
 
  01/08/03 10:51 PM
  Please respond to
  info-cyrus
 
 
 
 
 
 
 
  On Wed, 8 Jan 2003 [EMAIL PROTECTED] wrote:
 
  
  
  
  
  
   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.
  
   Oh ok this is for Cyrus IMAP, then I misunderstood you... So now from
 the
   two solutions you gave what do you think is the best to do:
  
 
  You do not have to do either.  What you have works.  ;)  You asked me if
  cyrus binaries can be compiled without all these unneccessary libraries?
  Option 1) will do this.
 
  1) - use -Wl,-zignore to compile Cyrus IMAP or
 
  I would not go through the effort of fixing UCD libs unless you are
  familiar with the link-edit process.  Do not bother with 2).
 
  2) - use -Wl,-zdefs to compile UCD SNMP
 
  Hope this helps.
 
  -Igor
 
 
 
 
 
 

 --
 Igor








-- 
Igor





Re: Including UCD-SNMP support in Cyrus IMAPD

2003-01-09 Thread marc . bigler

Thanks, it looks like that worked, I now compiled Cyrus IMAP with the
following:

LIBS=-Wl,-zignore

and I've checked with ldd to see if the kstat and kvm library where display
and they are not anymore so it looks fine. Now an important question, how
can I check that UCD-SNMP is really working with my Cyrus IMAP ?

Regards
Marc



   
   
   
   
Igor Brezac   To: [EMAIL PROTECTED]  
   
[EMAIL PROTECTED]  cc: 
[EMAIL PROTECTED]
 
Sent by:  Subject: Re: Including 
UCD-SNMP support in Cyrus IMAPD  
[EMAIL PROTECTED]
   
ew.cmu.edu 
   
   
   
   
   
01/08/03 10:51 PM  
   
Please respond to  
   
info-cyrus 
   
   
   
   
   





On Wed, 8 Jan 2003 [EMAIL PROTECTED] wrote:






 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.

 Oh ok this is for Cyrus IMAP, then I misunderstood you... So now from the
 two solutions you gave what do you think is the best to do:


You do not have to do either.  What you have works.  ;)  You asked me if
cyrus binaries can be compiled without all these unneccessary libraries?
Option 1) will do this.

1) - use -Wl,-zignore to compile Cyrus IMAP or

I would not go through the effort of fixing UCD libs unless you are
familiar with the link-edit process.  Do not bother with 2).

2) - use -Wl,-zdefs to compile UCD SNMP

Hope this helps.

-Igor








Re: Including UCD-SNMP support in Cyrus IMAPD

2003-01-08 Thread marc . bigler

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: [EMAIL PROTECTED]   
  
[EMAIL PROTECTED]   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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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








Re: Including UCD-SNMP support in Cyrus IMAPD

2003-01-08 Thread Igor Brezac

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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
 [EMAIL PROTECTED]   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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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




Re: Including UCD-SNMP support in Cyrus IMAPD

2003-01-08 Thread marc . bigler





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.

Oh ok this is for Cyrus IMAP, then I misunderstood you... So now from the
two solutions you gave what do you think is the best to do:

- use -Wl,-zignore to compile Cyrus IMAP or
- use -Wl,-zdefs to compile UCD SNMP

?

Regards
Marc





On Wed, 8 Jan 2003 [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
 [EMAIL PROTECTED]   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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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









Re: Including UCD-SNMP support in Cyrus IMAPD

2003-01-08 Thread Igor Brezac

On Wed, 8 Jan 2003 [EMAIL PROTECTED] wrote:






 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.

 Oh ok this is for Cyrus IMAP, then I misunderstood you... So now from the
 two solutions you gave what do you think is the best to do:


You do not have to do either.  What you have works.  ;)  You asked me if
cyrus binaries can be compiled without all these unneccessary libraries?
Option 1) will do this.

1) - use -Wl,-zignore to compile Cyrus IMAP or

I would not go through the effort of fixing UCD libs unless you are
familiar with the link-edit process.  Do not bother with 2).

2) - use -Wl,-zdefs to compile UCD SNMP

Hope this helps.

-Igor




Re: Including UCD-SNMP support in Cyrus IMAPD

2003-01-06 Thread Lawrence Greenfield
--On Sunday, January 05, 2003 7:22 PM +0100 [EMAIL PROTECTED] wrote:




Try,
LIBS=-lkstat -lkvm ./configure ...


I now had a try and it finally compiled perfectly ! Now, is that somehow
normal that I need to do that, shouldn't this be automatically done with
the configure script ?


UCD SNMP can depend on so many different system libraries it's pretty hard 
to design a reliable configure test. We don't want to bring in many 
libraries that we don't need to since that can cause other problems. Also, 
dynamic libraries should have implicit dependencies, so this sort of thing 
isn't necessary if you have dynamic snmp libraries.

I guess it would be nice if the net-snmp folks provided a configure test 
themselves, since they're the ones who would have some idea of what it 
could depend on.

Larry



Re: Including UCD-SNMP support in Cyrus IMAPD

2003-01-05 Thread marc . bigler

Try,
LIBS=-lkstat -lkvm ./configure ...

I now had a try and it finally compiled perfectly ! Now, is that somehow
normal that I need to do that, shouldn't this be automatically done with
the configure script ?

Regards
Marc





Including UCD-SNMP support in Cyrus IMAPD

2003-01-04 Thread marc . bigler
Hello,

I am trying to get Cyrus IMAPD 2.1.11 on Solaris 9 to compile with support
for UCD-SNMP, I use version 4.2.6 of UCD-SNMP. The problem is that it
doesn't detect UCD-SNMP because of the following error in the config.log:

configure:6064: checking for sprint_objid in -lsnmp
configure:6083: gcc -o conftest -Wall -g -O2 -I/opt/sfw/include/db3
-I/usr/local/include -I/opt/openssl/include -I/opt/ucdsnmp/include -L/op
t/sfw/lib -R/opt/sfw/lib -L/opt/sfw/lib -L/usr/local/lib -R/usr/local/lib
-R/opt/sfw/lib:/opt/openssl/lib:/opt/ucdsnmp/lib -L/opt/openssl/l
ib -L/opt/ucdsnmp/lib conftest.c -lsnmp -lresolv -lsocket -lnsl  -ldl
-ldb-3.1  -lssl -lcrypto 15
Undefined   first referenced
 symbol in file
kstat_close /opt/ONucdsnmp/lib/libsnmp.so
kstat_lookup/opt/ONucdsnmp/lib/libsnmp.so
kstat_read  /opt/ONucdsnmp/lib/libsnmp.so
kstat_open  /opt/ONucdsnmp/lib/libsnmp.so
kstat_data_lookup   /opt/ONucdsnmp/lib/libsnmp.so
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 6072 configure
#include confdefs.h
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply.  */
char sprint_objid();

int main() {
sprint_objid()
; return 0; }
configure:6141: checking UCD SNMP libraries

As you can see I have UCD-SNMP installed in /opt/ucdsnmp, but that doesn't
seem to be the problem, looks like I am missing something which has to do
with kstat. Does someone have any idea ?

PS: Sorry if you see this mail twice, I am not sure if the first one ever
arrived to the mailing list.

Regards
Marc






Re: Including UCD-SNMP support in Cyrus IMAPD

2003-01-04 Thread Scott Smith
do a man -k for one of those functions (kstat_read for example) and if
there's a man page for it, it should tell you what libraries you need to
link against, which should fix it.

I don't have access to a Solaris machine right now so unfortunately that's
the best help I can offer, but that should get yuou going.

Scott

--
[EMAIL PROTECTED] ``Chews?  I'll take charleston
http://storm.lackluster.net/~scott/ chews for SIXTEEN MILLIONS!!''

On Sat, 4 Jan 2003 [EMAIL PROTECTED] wrote:

 Hello,

 I am trying to get Cyrus IMAPD 2.1.11 on Solaris 9 to compile with support
 for UCD-SNMP, I use version 4.2.6 of UCD-SNMP. The problem is that it
 doesn't detect UCD-SNMP because of the following error in the config.log:

 configure:6064: checking for sprint_objid in -lsnmp
 configure:6083: gcc -o conftest -Wall -g -O2 -I/opt/sfw/include/db3
 -I/usr/local/include -I/opt/openssl/include -I/opt/ucdsnmp/include -L/op
 t/sfw/lib -R/opt/sfw/lib -L/opt/sfw/lib -L/usr/local/lib -R/usr/local/lib
 -R/opt/sfw/lib:/opt/openssl/lib:/opt/ucdsnmp/lib -L/opt/openssl/l
 ib -L/opt/ucdsnmp/lib conftest.c -lsnmp -lresolv -lsocket -lnsl  -ldl
 -ldb-3.1  -lssl -lcrypto 15
 Undefined   first referenced
  symbol in file
 kstat_close /opt/ONucdsnmp/lib/libsnmp.so
 kstat_lookup/opt/ONucdsnmp/lib/libsnmp.so
 kstat_read  /opt/ONucdsnmp/lib/libsnmp.so
 kstat_open  /opt/ONucdsnmp/lib/libsnmp.so
 kstat_data_lookup   /opt/ONucdsnmp/lib/libsnmp.so
 ld: fatal: Symbol referencing errors. No output written to conftest
 collect2: ld returned 1 exit status
 configure: failed program was:
 #line 6072 configure
 #include confdefs.h
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
 builtin and then its argument prototype would still apply.  */
 char sprint_objid();

 int main() {
 sprint_objid()
 ; return 0; }
 configure:6141: checking UCD SNMP libraries

 As you can see I have UCD-SNMP installed in /opt/ucdsnmp, but that doesn't
 seem to be the problem, looks like I am missing something which has to do
 with kstat. Does someone have any idea ?

 PS: Sorry if you see this mail twice, I am not sure if the first one ever
 arrived to the mailing list.

 Regards
 Marc








Re: Including UCD-SNMP support in Cyrus IMAPD

2003-01-04 Thread marc . bigler

do a man -k for one of those functions (kstat_read for example) and if
there's a man page for it, it should tell you what libraries you need to
link against, which should fix it.

I've just did that and discovered that there is actually a library called
libkstat residing in /usr/lib on Solaris 9. Now against what do I need to
link this library, against UCD-SNMP or Cyrus IMAPD ? Also another question,
what's the easiest way to link the libkstat library ?

Many thanks

Regards


 Hello,

 I am trying to get Cyrus IMAPD 2.1.11 on Solaris 9 to compile with
support
 for UCD-SNMP, I use version 4.2.6 of UCD-SNMP. The problem is that it
 doesn't detect UCD-SNMP because of the following error in the config.log:

 configure:6064: checking for sprint_objid in -lsnmp
 configure:6083: gcc -o conftest -Wall -g -O2 -I/opt/sfw/include/db3
 -I/usr/local/include -I/opt/openssl/include -I/opt/ucdsnmp/include -L/op
 t/sfw/lib -R/opt/sfw/lib -L/opt/sfw/lib -L/usr/local/lib -R/usr/local/lib
 -R/opt/sfw/lib:/opt/openssl/lib:/opt/ucdsnmp/lib -L/opt/openssl/l
 ib -L/opt/ucdsnmp/lib conftest.c -lsnmp -lresolv -lsocket -lnsl  -ldl
 -ldb-3.1  -lssl -lcrypto 15
 Undefined   first referenced
  symbol in file
 kstat_close /opt/ONucdsnmp/lib/libsnmp.so
 kstat_lookup/opt/ONucdsnmp/lib/libsnmp.so
 kstat_read  /opt/ONucdsnmp/lib/libsnmp.so
 kstat_open  /opt/ONucdsnmp/lib/libsnmp.so
 kstat_data_lookup   /opt/ONucdsnmp/lib/libsnmp.so
 ld: fatal: Symbol referencing errors. No output written to conftest
 collect2: ld returned 1 exit status
 configure: failed program was:
 #line 6072 configure
 #include confdefs.h
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
 builtin and then its argument prototype would still apply.  */
 char sprint_objid();

 int main() {
 sprint_objid()
 ; return 0; }
 configure:6141: checking UCD SNMP libraries

 As you can see I have UCD-SNMP installed in /opt/ucdsnmp, but that
doesn't
 seem to be the problem, looks like I am missing something which has to do
 with kstat. Does someone have any idea ?

 PS: Sorry if you see this mail twice, I am not sure if the first one ever
 arrived to the mailing list.

 Regards
 Marc













Re: Including UCD-SNMP support in Cyrus IMAPD

2003-01-04 Thread Igor Brezac

Try ('make distclean' first)

LIBS=-lkstat ./configure 

The real fix is to build self-contained ucd-snmp libs.

master.c will not compile if ucd-snmpd package is built with libwrap.
If this is the case, I can email you my patch.

Hope this helps.

-Igor

On Sat, 4 Jan 2003 [EMAIL PROTECTED] wrote:


 do a man -k for one of those functions (kstat_read for example) and if
 there's a man page for it, it should tell you what libraries you need to
 link against, which should fix it.

 I've just did that and discovered that there is actually a library called
 libkstat residing in /usr/lib on Solaris 9. Now against what do I need to
 link this library, against UCD-SNMP or Cyrus IMAPD ? Also another question,
 what's the easiest way to link the libkstat library ?

 Many thanks

 Regards


  Hello,
 
  I am trying to get Cyrus IMAPD 2.1.11 on Solaris 9 to compile with
 support
  for UCD-SNMP, I use version 4.2.6 of UCD-SNMP. The problem is that it
  doesn't detect UCD-SNMP because of the following error in the config.log:
 
  configure:6064: checking for sprint_objid in -lsnmp
  configure:6083: gcc -o conftest -Wall -g -O2 -I/opt/sfw/include/db3
  -I/usr/local/include -I/opt/openssl/include -I/opt/ucdsnmp/include -L/op
  t/sfw/lib -R/opt/sfw/lib -L/opt/sfw/lib -L/usr/local/lib -R/usr/local/lib
  -R/opt/sfw/lib:/opt/openssl/lib:/opt/ucdsnmp/lib -L/opt/openssl/l
  ib -L/opt/ucdsnmp/lib conftest.c -lsnmp -lresolv -lsocket -lnsl  -ldl
  -ldb-3.1  -lssl -lcrypto 15
  Undefined   first referenced
   symbol in file
  kstat_close /opt/ONucdsnmp/lib/libsnmp.so
  kstat_lookup/opt/ONucdsnmp/lib/libsnmp.so
  kstat_read  /opt/ONucdsnmp/lib/libsnmp.so
  kstat_open  /opt/ONucdsnmp/lib/libsnmp.so
  kstat_data_lookup   /opt/ONucdsnmp/lib/libsnmp.so
  ld: fatal: Symbol referencing errors. No output written to conftest
  collect2: ld returned 1 exit status
  configure: failed program was:
  #line 6072 configure
  #include confdefs.h
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
  builtin and then its argument prototype would still apply.  */
  char sprint_objid();
 
  int main() {
  sprint_objid()
  ; return 0; }
  configure:6141: checking UCD SNMP libraries
 
  As you can see I have UCD-SNMP installed in /opt/ucdsnmp, but that
 doesn't
  seem to be the problem, looks like I am missing something which has to do
  with kstat. Does someone have any idea ?
 
  PS: Sorry if you see this mail twice, I am not sure if the first one ever
  arrived to the mailing list.
 
  Regards
  Marc
 
 
 
 








-- 
Igor




Re: Including UCD-SNMP support in Cyrus IMAPD

2003-01-04 Thread marc . bigler

Try ('make distclean' first)

LIBS=-lkstat ./configure 

The real fix is to build self-contained ucd-snmp libs.

master.c will not compile if ucd-snmpd package is built with libwrap.
If this is the case, I can email you my patch.

Hope this helps.

That helped for the configure but now I get the following error when
issuing gmake all:

gcc -L/opt/sfw/lib -R/opt/sfw/lib -L/opt/sfw/lib -L/usr/local/lib
-R/usr/local/lib -R/opt/sfw/lib:/opt/openssl/lib:/opt/ucdsnmp/lib
-L/opt/openssl/lib -L/opt/ucdsnmp/lib -Wall -g -O2  -o master master.o
masterconf.o cyrusMasterMIB.o -lucdagent -lucdmibs -lsnmp -ldl  -ldb-3.1
-lkstat -lssl -lcrypto -lresolv -lsocket -lnsl  ../et/libcom_err.a
Undefined   first referenced
 symbol in file
kvm_read/opt/ONucdsnmp/lib/libucdagent.so
kvm_getu/opt/ONucdsnmp/lib/libucdmibs.so
kvm_open/opt/ONucdsnmp/lib/libucdagent.so
nlist   /opt/ONucdsnmp/lib/libucdmibs.so
kvm_setproc /opt/ONucdsnmp/lib/libucdmibs.so
kvm_nextproc/opt/ONucdsnmp/lib/libucdmibs.so
ld: fatal: Symbol referencing errors. No output written to master
collect2: ld returned 1 exit status
gmake[1]: *** [master] Error 1
gmake[1]: Leaving directory `/opt/source/cyrus-imapd-2.1.11/master'
gmake: *** [all] Error 1
bash-2.05$ echo $LIBS
-lkstat


I think the problem is really in my UCD-SNMP library, do you maybe know how
I can fix my UCD-SNMP libraries ?

Regards
Marc




Re: Including UCD-SNMP support in Cyrus IMAPD

2003-01-04 Thread Igor Brezac

On Sat, 4 Jan 2003 [EMAIL PROTECTED] wrote:


 Try ('make distclean' first)

 LIBS=-lkstat ./configure 

 The real fix is to build self-contained ucd-snmp libs.

 master.c will not compile if ucd-snmpd package is built with libwrap.
 If this is the case, I can email you my patch.

 Hope this helps.

 That helped for the configure but now I get the following error when
 issuing gmake all:

 gcc -L/opt/sfw/lib -R/opt/sfw/lib -L/opt/sfw/lib -L/usr/local/lib
 -R/usr/local/lib -R/opt/sfw/lib:/opt/openssl/lib:/opt/ucdsnmp/lib
 -L/opt/openssl/lib -L/opt/ucdsnmp/lib -Wall -g -O2  -o master master.o
 masterconf.o cyrusMasterMIB.o -lucdagent -lucdmibs -lsnmp -ldl  -ldb-3.1
 -lkstat -lssl -lcrypto -lresolv -lsocket -lnsl  ../et/libcom_err.a
 Undefined   first referenced
  symbol in file
 kvm_read/opt/ONucdsnmp/lib/libucdagent.so
 kvm_getu/opt/ONucdsnmp/lib/libucdmibs.so
 kvm_open/opt/ONucdsnmp/lib/libucdagent.so
 nlist   /opt/ONucdsnmp/lib/libucdmibs.so
 kvm_setproc /opt/ONucdsnmp/lib/libucdmibs.so
 kvm_nextproc/opt/ONucdsnmp/lib/libucdmibs.so

Try,

LIBS=-lkstat -lkvm ./configure ...



 I think the problem is really in my UCD-SNMP library, do you maybe know how
 I can fix my UCD-SNMP libraries ?


Your build should work fine.  You just need to figure out your ucd-snmp
lib dependencies and include those libraries in the cyrus build.

-- 
Igor