On Tue, Jun 26, 2007 at 08:36:54AM -0400, Mike Fisher wrote:
> Ed Ravin wrote:
> > On Tue, Jun 26, 2007 at 09:57:40AM +0200, Thomas Anders wrote:
> >> Ed Ravin wrote:
> >>> This is weird.  I can't build snmptrapd on my Solaris 10 x86 box - see
> >>> below.  Had no such problems with 5.4.  netsnmphelpers.a exists
> >>> and has the entry points defined:
> ...
> >> Interesting. FWIW, this works fine for me on Solaris/Sparc 8/9/10. Not
> >> sure why x86 treats things differently.
> > 
> > It must be me treating things differently, it's happening on NetBSD 3.1
> > as well.  Is there perhaps some ar / ranlib step that's missing?
> > 
> >> Can you please try whether shuffling the order of libnetsnmpagent.[l]a
> >> and libnetsnmphelpers.[l]a around changes things here? Also, do you have
> >>  cc available on this box? If so, does it make a difference if you build
> >> with cc?
> > 
> > I only have gcc on the Solaris box.  Will try the shuffle and let
> > you know.

I tried it.  It worked!  Here's the edit I made to apps/Makefile:

--- apps/Makefile       2007/06/26 14:27:23     1.1
+++ apps/Makefile       2007/06/26 14:31:53
@@ -180,7 +180,7 @@
 
 # these will be set by configure to one of the above 2 lines
 TRAPLIBS       = $(TRAPDWITHAGENT) $(PERLLDOPTS)
-USETRAPLIBS    = $(USEAGENTLIBS)
+USETRAPLIBS    = $(MIBLIB) $(AGENTLIB) $(HELPERLIB) $(USELIBS)
 
 CPPFLAGS       = $(TOP_INCLUDES) -I. $(AGENT_INCLUDES) $(HELPER_INCLUDES) \
                  $(MIBGROUP_INCLUDES)  $(SNMPLIB_INCLUDES) 
-I/usr/local/ssl/include 

And snmptrapd built on Solaris successful, without breaking the build of
anything else.  My NetBSD box is much slower, I only relinked snmptrapd and
snmpd and snmpwalk, so I can't say it works 100% until I restart the build
from scratch, but so far so good.

> For what it's worth, I just built on Solaris 10 x86 with no issues using 
>   gcc 3.3.2.  What configure options are you using?

These are my NetBSD flags:

    --prefix=/pkg/net-snmp-5.4.1.pre3 \
    --sysconfdir=/etc \
    --with-zlib \
    --with-openssl=/usr \
    --with-pic \
    --with-libwrap \
    --enable-shared=no \
    --localstatedir=/etc \
    --without-logfile \
    --with-default-snmp-version=1 \
    --with-sys-contact='blah blah blah' \ 
    --with-sys-location='blah blah blah blah blah' \
    --with-persistent-directory=/var/net-snmp \
    --with-mib-modules='ucd-snmp/disk' \
    --with-dummy-values \

And Solaris:

    --prefix=/pkg/net-snmp-5.4.1.pre3 \
    --with-persistent-directory=/var/sma_snmp \
    --with-default-snmp-version=3 \
    --enable-developer=yes \
    --enable-mib-config-checking \
    --enable-agentx-dom-sock-only \
    --datadir=/etc/sma \
    --with-mibdirs=/etc/sma/snmp/mibs \
    --with-mib-modules='ucd-snmp/diskio' \
    --sysconfdir=/etc \
    --with-zlib \
    --with-libwrap \
    --with-openssl=/usr/local/ssl \
    --with-pic \
    --enable-shared=no \
    --localstatedir=/etc \
    --without-logfile \
    --with-sys-contact='wah wah wah' \
    --with-sys-location='wah wah wah wah wah' \
    --with-persistent-directory=/var/sma_snmp \
    --with-dummy-values \


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to