I am using gcc

When I forced a 64-bit compilation, it is giving me error
snmp_client.c:1: sorry, unimplemented: 64-bit mode not compiled in

Has anyone compiled it for 64-bit Solaris x86 ?


# make
WARNING: not running autoconf
WARNING: not running autoheader
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/VERSIONINFO/5.6.1/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
//bin/sed -f sedscript ./EXAMPLE.conf.def > EXAMPLE.conf
making all in /disk2/net-snmp-5.6.1/snmplib
make[1]: Entering directory `/disk2/net-snmp-5.6.1/snmplib'
/bin/bash ../libtool  --mode=compile gcc -I../include -I.
-I../snmplib  -fno-strict-aliasing -m64 -Usolaris2 -Dsolaris2=solaris2
-c -o snmp_client.lo snmp_client.c
libtool: compile:  gcc -I../include -I. -I../snmplib
-fno-strict-aliasing -m64 -Usolaris2 -Dsolaris2=solaris2 -c
snmp_client.c  -fPIC -DPIC -o .libs/snmp_client.o
snmp_client.c:1: sorry, unimplemented: 64-bit mode not compiled in
make[1]: *** [snmp_client.lo] Error 1
make[1]: Leaving directory `/disk2/net-snmp-5.6.1/snmplib'
make: *** [subdirs] Error 1

-----Original Message-----
From: Thomas Anders [mailto:[email protected]] 
Sent: Monday, April 18, 2011 5:45 PM
To: Singh, Vinay
Cc: [email protected]
Subject: Re: How to compile net-snmp for 64-bit Solaris

Singh, Vinay wrote:
> Can net-snmp 5.6.1 can be compiled to generate 64-bit binaries for
Solaris ? if yes, what option to pass on "configure " script. It appears
that by default, only 32-bit binaries are generated even if I am trying
to compile on 64-bit machine.

Are you using gcc or Sun cc?

Basically, pass compiler/linker options for 64-bit like you would do for
building anything else.


+Thomas

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to