[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-bugs
Subject:    [ net-snmp-Bugs-3525233 ] MSG_DONTWAIT undeclared
From:       SourceForge.net <noreply () sourceforge ! net>
Date:       2012-05-21 22:11:04
Message-ID: E1SWaok-0001fM-QD () sfs-ml-3 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Bugs item #3525233, was opened at 2012-05-09 11:54
Message generated for change (Comment added) made by nba
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=3525233&group_id=12694

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: build/test
Group: aix
Status: Open
> Resolution: Fixed
Priority: 5
Private: No
Submitted By: blentz (blentz)
Assigned to: Niels Baggesen (nba)
Summary: MSG_DONTWAIT undeclared

Initial Comment:
Building Net-SNMP 5.6.2rc1 on AIX 5.3 TL12 SP5 with GCC 4.2.0 results in the \
following error:

making installlibs in /home/blentz/build/net-snmp-5.6.2.rc1/snmplib
        /bin/sh ../libtool  --mode=compile gcc \
-Wl,-blibpath:/opt/local/net-snmp/lib:/usr/lib:/lib,-brtl -I../include -I.       \
-I../snmplib -I/opt/local/net-snmp/include -fno-strict-aliasing \
-I/opt/local/net-snmp/include -Uaix5 -Daix5=aix5  -c -o \
                transports/snmpUDPBaseDomain.lo transports/snmpUDPBaseDomain.c
libtool: compile:  gcc -Wl,-blibpath:/opt/local/net-snmp/lib:/usr/lib:/lib,-brtl \
-I../include -I. -I../snmplib -I/opt/local/net-snmp/include -fno-strict-aliasing \
-I/opt/local/net-snmp/include -Uaix5 -Daix5=aix5 -c transports/snmpUDPBaseDomain.c  \
                -DPIC -o transports/.libs/snmpUDPBaseDomain.o
transports/snmpUDPBaseDomain.c: In function 'netsnmp_udpbase_sendto':
transports/snmpUDPBaseDomain.c:252: error: 'MSG_DONTWAIT' undeclared (first use in \
this function) transports/snmpUDPBaseDomain.c:252: error: (Each undeclared identifier \
is reported only once transports/snmpUDPBaseDomain.c:252: error: for each function it \
                appears in.)
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 2.


Stop.


----------------------------------------------------------------------

> Comment By: Niels Baggesen (nba)
Date: 2012-05-21 15:11

Message:
I will make this goes before next release. I am not so sure about a fix for
the perl test, as it seems to work ok as is.
Could you please open separate bugs for each of your other problems?

----------------------------------------------------------------------

Comment By: blentz (blentz)
Date: 2012-05-15 06:32

Message:
The patch you provided worked great, I was able to build, no problems this
time. I did have to make myself a copy of GNU Patch though since AIX patch
didn't work with that format :-)

I didn't find anything interesting in config.log for the Perl-POSIX test. I
wrapped it with a set -x and exit, which produced this:

checking for uname... /usr/bin/uname
+ printf %s checking whether the Perl function system() invokes a POSIX
shell... 
+ 1>& 6
checking whether the Perl function system() invokes a POSIX shell... + test
x/usr/bin/perl != x
+ test -x /usr/bin/perl
+ /usr/bin/perl -e system(echo
syntax error at -e line 1, at EOF
Execution of -e aborted due to compilation errors.
+ 
./configure[5838]: : cannot execute
+ test x "');' != x$OSTYPE
./configure[5838]: "');': unknown test operator
+ PERL_SYSTEM_INVOKES_POSIX_SHELL=no
+ printf %s\n configure:5844: result: yes
+ 1>& 5
+ printf %s\n yes
+ 1>& 6
yes
+ exit

It looks like I did report this already at
https://sourceforge.net/tracker/index.php?func=detail&aid=3403399&group_id=12694&atid=312694
 but maybe it never was fixed?

I'm trying to get a copy of Net-SNMP that works on AIX, doesn't crash (we
have a number of crashes on 5.4.2.1) and still gives us host-resources-mib
info on file systems, processes, process arguments, and basic cpu and
memory utilization, none of which have worked since 5.4. I thought maybe
rc1 would have these patches in it already, but maybe not.

----------------------------------------------------------------------

Comment By: Niels Baggesen (nba)
Date: 2012-05-15 01:30

Message:
The is some very complicated quoting in that perl system test. Coukld you
post an extract og config.log around that failing test?

----------------------------------------------------------------------

Comment By: blentz (blentz)
Date: 2012-05-14 20:11

Message:
I will try it now.

I also get this during configure:

checking for python... no
checking for uname... /usr/bin/uname
checking whether the Perl function system() invokes a POSIX shell... syntax
error at -e line 1, at EOF
Execution of -e aborted due to compilation errors.
./configure[5837]: : cannot execute
./configure[5837]: "');': unknown test operator
yes
checking for gcc... gcc
-Wl,-blibpath:/opt/local/net-snmp/lib:/usr/lib:/lib,-brtl
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no

----------------------------------------------------------------------

Comment By: Niels Baggesen (nba)
Date: 2012-05-13 21:48

Message:
Could you try the attached patch, backported from 5.7

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=3525233&group_id=12694

------------------------------------------------------------------------------
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-bugs mailing list
Net-snmp-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic