On Wed, Nov 29, 2006 at 11:18:35PM +0100, Thomas Anders wrote:
> Jean-Sebastien Morisset wrote:
>> I'm upgrading from 5.3.0.1 to 5.4 and ran accross a little problem on an
>> x86 Solaris 10 box -- this is my first attempt at compiling 5.4.
> 
> What's your full configure line?

./configure --enable-internal-md5 --with-perl-modules --enable-shared
--with-openssl=/usr/local/ssl --with-mib-modules='host disman/event-mib
smux mibII/mta_sendmail ucd-snmp/diskio agentx ucd-snmp/dlmod udp-mib
tcp-mib' --with-cc=gcc --with-default-snmp-version='2'
--with-sys-contact='***********************' --with-sys-location=''
--with-logfile=/var/log/snmpd.log
--with-persistent-directory=/var/net-snmp/

>> /bin/sh ../libtool  --mode=link gcc -g -O2 -Usolaris2
>> -Dsolaris2=solaris2  -rpath /usr/local/lib -version-info 15:0:0 -o
>> libnetsnmp.la snmp_client.lo mib.lo parse.lo snmp_api.lo snmp.lo
>> [...]
>> gcc -shared -Wl,-h -Wl,libnetsnmp.so.15 -o .libs/libnetsnmp.so.15.0.0
>> .libs/snmp_client.o [...]
>> false cru .libs/libnetsnmp.a  snmp_client.o mib.o parse.o snmp_api.o
> 
> Looks like configure/libtool/gcc have decided to use "false" instead of "ar" 
> on
> your system which is somewhat strange. Can you find out why? Do you have "ar"
> along your $PATH at all? Is this your own gcc installation or a third-party
> package? What's the output of "gcc -v"? Have you ever said something like
> "--with-ar=false" where a path to a working ar was expected instead?

"ar" was NOT in my path, for some reason. Thanks for catching that! It
compiles fine now, except for a few little errors:

[snip!]
/bin/sh ../libtool  --mode=compile gcc -I../include -I. -I../agent
-I../agent/mibgroup -I../snmplib -I/usr/local/ssl/include   -g -O2
-Usolaris2 -Dsolaris2=solaris2  -c -o
mibgroup/disman/event/mteObjects.lo mibgroup/disman/event/mteObjects.c
 gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib
 -I/usr/local/ssl/include -g -O2 -Usolaris2 -Dsolaris2=solaris2 -c
 mibgroup/disman/event/mteObjects.c  -fPIC -DPIC -o
 mibgroup/disman/event/.libs/mteObjects.o
 mibgroup/disman/event/mteObjects.c: In function
 `_init_default_mteObject':
 mibgroup/disman/event/mteObjects.c:50: warning: passing arg 2 of
 `mteObjects_addOID' discards qualifiers from pointer target type
 mibgroup/disman/event/mteObjects.c:50: warning: passing arg 4 of
 `mteObjects_addOID' discards qualifiers from pointer target type
  gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib
  -I/usr/local/ssl/include -g -O2 -Usolaris2 -Dsolaris2=solaris2 -c
  mibgroup/disman/event/mteObjects.c -o
  mibgroup/disman/event/mteObjects.o >/dev/null 2>&1
[snip!]
/bin/sh ../libtool  --mode=compile gcc -I../include -I. -I../agent
-I../agent/mibgroup -I../snmplib -I/usr/local/ssl/include   -g -O2
-Usolaris2 -Dsolaris2=solaris2  -c -o mibgroup/kernel_sunos5.lo
mibgroup/kernel_sunos5.c
 gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib
-I/usr/local/ssl/include -g -O2 -Usolaris2 -Dsolaris2=solaris2 -c
mibgroup/kernel_sunos5.c  -fPIC -DPIC -o mibgroup/.libs/kernel_sunos5.o
mibgroup/kernel_sunos5.c: In function `getKstatInt':
mibgroup/kernel_sunos5.c:277: warning: passing arg 2 of `kstat_lookup'
discards qualifiers from pointer target type
mibgroup/kernel_sunos5.c:277: warning: passing arg 4 of `kstat_lookup'
discards qualifiers from pointer target type
mibgroup/kernel_sunos5.c:290: warning: passing arg 2 of
`kstat_data_lookup' discards qualifiers from pointer target type
mibgroup/kernel_sunos5.c: In function `getKstat':
mibgroup/kernel_sunos5.c:413: warning: passing arg 4 of `kstat_lookup'
discards qualifiers from pointer target type
mibgroup/kernel_sunos5.c: In function `getKstatString':
mibgroup/kernel_sunos5.c:569: warning: passing arg 4 of `kstat_lookup'
discards qualifiers from pointer target type
 gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib
-I/usr/local/ssl/include -g -O2 -Usolaris2 -Dsolaris2=solaris2 -c
mibgroup/kernel_sunos5.c -o mibgroup/kernel_sunos5.o >/dev/null 2>&1
[snip!]

"make test" fine, except for:

44: testing AgentX subagent in Perl (using NetSNMP::agent)... FAIL

My environment info is:

# uname -a
SunOS gessolx1 5.10 Generic_Patch_118844-30 i86pc i386 i86pc
# gcc -v
Reading specs from
/usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.3.2
# echo $PATH
/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sfw/bin:/usr/sbin:/usr/bin:/usr/sfw/i386-sun-solaris2.10/bin:/usr/lib/nis:/usr/openv/netbackup/bin

Thanks,
js.
-- 
Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]>
Personal Home Page <http://jsmoriss.mvlan.net/>
Underwater and Travel Photographs <http://www.mvpix.com/>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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