Hi Martin: Thanks for your response! It worked as follows: ./configure --enable-static --disable-shared
Not sure if the --disable-shared was required, but it works and registers. Thanks - Mark K. >>> "Ward, Martin" <[EMAIL PROTECTED]> 05/17/2007 10:28 AM >>> I stepped around this problem by using archive libraries instead of shared ones. This completely removes the requirement for having library paths at the expense of having larger binary files. My build line on a Solaris 10 box was: ./configure --prefix=/opt/net-snmp --enable-static --disable-shared --disable-ipv6 --with-default-snmp-version=2 --without-rpm --disable-embedded-perl --with-gnu-ld |\/|artin > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Mark Khan > Sent: 17 May 2007 14:45 > To: Pradhap D > Cc: net-snmp-users@lists.sourceforge.net > Subject: Re: Net-SNMP 5.4 Solaris 9-10 build problems > > > HI Pradhap: > Thanks for the suggestion, but it did not > work. I still get the following error message when I manually > start snmpd without having my LD_LIBRARY_PATH set: > > ./snmpd fatal: libgcc_s.so.1 open failed no such file or directory > > I could really use some help with this! > > Regards - Mark > > >>> "Pradhap D" <[EMAIL PROTECTED]> 05/16/2007 1:40 PM >>> > Mark, > Try this > ~#./configure --prefix=/usr/local --with-cflags="-g > -Dsolaris_2" --libdir=/usr/local/lib > > ~ Pradhap.D > > > On 5/16/07, Mark Khan <[EMAIL PROTECTED]> wrote: > > > > Hello: > > I have a couple of problems as follows: > > On Solaris 9 > > I am trying to compile/build net-snmp version 5.4 so I do > not have to > > set the LD_LIBRARY_PATH to include /usr/local/lib and > > /usr/local/ssl/lib. I have tried using the configure options of > > --with-ldflags=-L/usr/local/lib along with the > > --with-libs=-L/usr/local/lib, but nothing seems to work. What am I > > doing wrong? How do I compile this software so when snmpd starts it > > searchs these libraries? > > > > On Solaris 10 > > On Solaris 10, I manually set the LD_LIBRARY_PATH to /usr/local/lib > > and /usr/local/ssl/lib. I can run the configure program without any > > errors. However, when I execute the first make command I get the > > following > > error: > > solaris-install-srv# make > > gcc -E -Iinclude > -I./include > > -I./agent/mibgroup -I. -I. -DDONT_INC_STRUCTS > > -DBINDIR=/usr/local/bin -x c > ./sedscript.in | egrep > > '^s[/#]' | sed 's/REMOVEME//g;s# */#/#g;s/ *#/#/g;s#/ > *#/#g;s/# g/#g/;' > > > sedscript > > echo 's#DATADIR#/usr/local/share#g' >> sedscript > > echo 's#LIBDIR#/usr/local/lib#g' >> sedscript > > echo 's#BINDIR#/usr/local/bin#g' >> sedscript > > echo 's#PERSISTENT_DIRECTORY#/var/net-snmp#g' >> sedscript > > echo 's#SYSCONFDIR#/usr/local/etc#g' >> sedscript > > /usr/bin/sed -f sedscript ./EXAMPLE.conf.def > EXAMPLE.conf > > making all in /mak/net-snmp-5.4/snmplib > > /bin/sh ../libtool --mode=compile gcc -I../include -I. -I../snmplib > > -I/usr/local/ssl/include -g -O2 -Usolaris2 -Dsolaris2=solaris2 -c -o > > snmp_client.lo snmp_client.c > > mkdir .libs > > gcc -I../include -I. -I../snmplib -I/usr/local/ssl/include -g -O2 > > -Usolaris2 -Dsolaris2=solaris2 -c snmp_client.c -fPIC -DPIC -o > > .libs/snmp_client.o > > In file included from /usr/include/sys/wait.h:24, > > from /usr/include/stdlib.h:22, > > from snmp_client.c:47: > > /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t" > > /usr/include/sys/siginfo.h:292: error: parse error before '}' token > > /usr/include/sys/siginfo.h:294: error: parse error before '}' token > > /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t" > > /usr/include/sys/siginfo.h:392: error: conflicting types > for `__proc' > > /usr/include/sys/siginfo.h:261: error: previous declaration > of `__proc' > > /usr/include/sys/siginfo.h:398: error: conflicting types > for `__fault' > > /usr/include/sys/siginfo.h:267: error: previous declaration > of `__fault' > > /usr/include/sys/siginfo.h:404: error: conflicting types > for `__file' > > /usr/include/sys/siginfo.h:273: error: previous declaration > of `__file' > > /usr/include/sys/siginfo.h:420: error: conflicting types > for `__prof' > > /usr/include/sys/siginfo.h:287: error: previous declaration > of `__prof' > > /usr/include/sys/siginfo.h:424: error: conflicting types > for `__rctl' > > /usr/include/sys/siginfo.h:291: error: previous declaration > of `__rctl' > > /usr/include/sys/siginfo.h:426: error: parse error before '}' token > > /usr/include/sys/siginfo.h:428: error: parse error before '}' token > > /usr/include/sys/siginfo.h:432: error: parse error before > "k_siginfo_t" > > /usr/include/sys/siginfo.h:437: error: parse error before '}' token > > In file included from /usr/include/sys/procset.h:24, > > from /usr/include/sys/wait.h:25, > > from /usr/include/stdlib.h:22, > > from snmp_client.c:47: > > /usr/include/sys/signal.h:85: error: parse error before "siginfo_t" > > In file included from /usr/include/stdlib.h:22, > > from snmp_client.c:47: > > /usr/include/sys/wait.h:86: error: parse error before "siginfo_t" > > *** Error code 1 > > make: Fatal error: Command failed for target `snmp_client.lo' > > Current working directory /mak/net-snmp-5.4/snmplib > > *** Error code 1 > > The following command caused the error: > > if test "snmplib agent apps man local mibs" != ""; then \ > > it="snmplib agent apps man local mibs" ; \ > > for i in $it ; do \ > > echo "making all in `pwd`/$i"; \ > > ( cd $i ; make ) ; \ > > if test $? != 0 ; then \ > > exit 1 ; \ > > fi \ > > done \ > > fi > > make: Fatal error: Command failed for target `subdirs' > > Does anyone have any suggestion as to how I can fix this > problem or what I > > should be looking for? > > > > Respectfully; > > Mark K. > > > > > > > ---------------------------------------------------------------------- > > - > > This e-mail is intended for the addressee shown. > > It contains information that is confidential and > > protected from disclosure. Any review, dissemination > > or use of this transmission or its contents by persons > > or unauthorized employees of the intended organizations > > is strictly prohibited. > > > > The contents of this email do not necessarily represent > > the views or policies of PSCU Financial Services. > > > > > ---------------------------------------------------------------------- > > --- > > 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 > > Net-snmp-users@lists.sourceforge.net > > Please see the following page to unsubscribe or change > other options: > > https://lists.sourceforge.net/lists/listinfo/net-snmp-users > > > > > > > -------------------------------------------------------------- > --------- > This e-mail is intended for the addressee shown. > It contains information that is confidential and > protected from disclosure. Any review, dissemination > or use of this transmission or its contents by persons > or unauthorized employees of the intended organizations > is strictly prohibited. > > The contents of this email do not necessarily represent > the views or policies of PSCU Financial Services. > > > > -------------------------------------------------------------- > ----------- > 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 Net-snmp-users@lists.sourceforge.net > Please see the following page to unsubscribe or change other > options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users > ************************************************************************************* The message is intended for the named addressee only and may not be disclosed to or used by anyone else, nor may it be copied in any way. The contents of this message and its attachments are confidential and may also be subject to legal privilege. If you are not the named addressee and/or have received this message in error, please advise us by e-mailing [EMAIL PROTECTED] and delete the message and any attachments without retaining any copies. Internet communications are not secure and COLT does not accept responsibility for this message, its contents nor responsibility for any viruses. No contracts can be created or varied on behalf of COLT Telecommunications, its subsidiaries or affiliates ("COLT") and any other party by email Communications unless expressly agreed in writing with such other party. Please note that incoming emails will be automatically scanned to eliminate potential viruses and unsolicited promotional emails. For more information refer to www.colt.net or contact us on +44(0)20 7390 3900. ------------------------------------------------------------------------- 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 Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users ----------------------------------------------------------------------- This e-mail is intended for the addressee shown. It contains information that is confidential and protected from disclosure. Any review, dissemination or use of this transmission or its contents by persons or unauthorized employees of the intended organizations is strictly prohibited. The contents of this email do not necessarily represent the views or policies of PSCU Financial Services. ------------------------------------------------------------------------- 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 Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users