On Tue, Jul 26, 2011 at 1:34 PM, Singh, Vinay <[email protected]> wrote:
> All,
>
> Has anyone tried to build net-snmp 5.7 on AIX ? It did build for 5.6.1
> but getting build error in 5.7. Any help on this is appreciated.
>
>
>
> Also, I could never get to compile the code on HP-UX. Has anyone tried to
> build net-snmp on HP-UX?
>
> bash-4.1# make
>
> Make: line 598: syntax error. Stop.
>
>
>
>
>
> Thanks,
>
> Vinay
>
>
>
> bash-2.05b# make
>
> gcc -E -Iinclude
> -I./include -I./agent/mibgroup -I. -I. -DDONT_INC_STRUCTS
> -DBINDIR=/usr/local/29West/net-snmp-5.7/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.7/g' >> sedscript
>
> echo 's#DATADIR#/usr/local/29West/net-snmp-5.7/share#g' >> sedscript
>
> echo 's#LIBDIR#/usr/local/29West/net-snmp-5.7/lib#g' >> sedscript
>
> echo 's#BINDIR#/usr/local/29West/net-snmp-5.7/bin#g' >> sedscript
>
> echo 's#PERSISTENT_DIRECTORY#/var/net-snmp#g' >> sedscript
>
> echo 's#SYSCONFDIR#/usr/local/29West/net-snmp-5.7/etc#g' >>
> sedscript
>
> /usr/bin/sed -f sedscript ./EXAMPLE.conf.def > EXAMPLE.conf
>
> making all in /extra1/net-snmp-5.7/snmplib
>
> /bin/sh ../libtool --mode=compile gcc -I../include -I.
> -I../snmplib -fno-strict-aliasing -g -O2 -Uaix5 -Daix5=aix5 -c -o
> transports/snmpUDPBaseDomain.lo transports/snmpUDPBaseDomain.c
>
> libtool: compile: gcc -I../include -I. -I../snmplib -fno-strict-aliasing -g
> -O2 -Uaix5 -Daix5=aix5 -c transports/snmpUDPBaseDomain.c -DPIC -o
> transports/.libs/snmpUDPBaseDomain.o
>
> transports/snmpUDPBaseDomain.c: In function 'netsnmp_udpbase_sendto':
>
> transports/snmpUDPBaseDomain.c:347: error: 'MSG_DONTWAIT' undeclared (first
> use in this function)
>
> transports/snmpUDPBaseDomain.c:347: error: (Each undeclared identifier is
> reported only once
>
> transports/snmpUDPBaseDomain.c:347: error: for each function it appears in.)
>
> make: 1254-004 The error code from the last command is 1.
This is a constant that is available in some versions of BSD and
Linux. If it's not present in sys/socket.h, or a file that includes
it, then it needs to be #ifdef'ed.
Thanks,
-Garrett
------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders