On Sat, Sep 01, 2012 at 04:40:36PM +0200, Niels Baggesen wrote:
> Den 31-08-2012 16:05, Albert Chin skrev:
> > I tried building 5.7.1 on this platform
> > with LFS and run into the following:
> >    /opt/fsw/bash42/bin/bash ../../libtool  --mode=compile cc 
> > -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib 
> > -I/opt/TWWfsw/libopenssl10/include   -mr -Qn -xstrconst -xO2 
> > -xtarget=pentium4 -Dsolaris2=solaris2  -c -o 
> > hardware/memory/memory_solaris.lo hardware/memory/memory_solaris.c
> >     cc -I../../include -I. -I../../agent -I../../agent/mibgroup 
> > -I../../snmplib -I/opt/TWWfsw/libopenssl10/include -mr -Qn -xstrconst -xO2 
> > -xtarget=pentium4 -Dsolaris2=solaris2 -c hardware/memory/memory_solaris.c  
> > -KPIC -DPIC -o hardware/memory/.libs/memory_solaris.o
> >    "/usr/include/sys/swap.h", line 49: #error: "Cannot use swapctl in the 
> > large files compilation environment"
> 
> Not being familiar with cc on Solaris (using gcc all the time), how did 
> you activate the large file compilation environment?

Added AC_SYS_LARGEFILE to configure.ac and ran autoconf/autoheader.

> Using gcc -m64 works fine for me

This does something different. With this, you're performing a native
64-bit build of net-snmp, with 64-bit file I/O. With LFS, you build a
32-bit binary and have 64-bit file I/O.

-- 
albert chin ([email protected])

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to