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 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

Reply via email to