I'm compiling 64 bit (I think). You mean the -L${SRCDIR}/lib/ssl and
-L${SRCDIR}/lib directories that are listed? -L${SRCDIR}/lib/ssl
contains libcrypto.a/libssl.a and ${SRCDIR}/lib contains the net-snmp
libs. 

Here is my updated LD options:

${TARGET_MACHINE}_LDFLAGS       =  ${LIBS} -z muldefs -lkstat  -lc -lm
-ladm -lp
osix4 -L${SRCDIR}/lib/ssl -L${SRCDIR}/lib -lnetsnmp -lgen -lelf -lnsl
-lsocket

Tried to follow the example ld listing from the Makefile that built the
"Example-demon.c" program on your webite as closely as possible. Big
difference though I was using GCC for that one and not the SUNWspro cc
compiler. 

The libraries for that one were:

BUILDLIBS=`net-snmp-config --libs` (same as I'm using above) 

 

-----Original Message-----
From: Thomas Anders [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 4:28 PM
To: Smith, Randy
Cc: [email protected]
Subject: Re: Linking Problems - Even with Openssl libs - Still Not
Linking

[EMAIL PROTECTED] schrieb:
> make[1]: Leaving directory
> `/vobs/pp2dev/obj_DEBUG/sparc_solaris_32_5_9/cmds/em
[...]
> ${TARGET_MACHINE}_LDFLAGS       =  ${LIBS} -z muldefs
-L/usr/lib/sparcv9

That two directory names strike me. Are you compiling 64-bit or 32-bit?
Are you sure you have (and link) all code and libraries of the same
type?


+Thomas


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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