Re: compile net-snmp-5.7.1 under Cygwin reports error

Bart Van Assche <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAO+b5-oSmn9ipZrcYxg3mkf9SsMRv7y-Tnqh9ogNkprQ4-66Yg@mail.gmail.com>
On Tue, Jan 3, 2012 at 2:31 PM, Tao Zhou <[email protected]> wrote:

> './configure' runs successful without problem, but when I try to 'make',
> it just reports below error message:
>
> ------------------------------------------------------------------------------------------------------------------------------------------------
> making all in /home/Administrator/Studio/netsnmp/net-snmp-5.7.1/snmplib
> make[1]: Entering directory
> `/home/Administrator/Studio/netsnmp/net-snmp-5.7.1/snmplib'
> /bin/sh ../libtool  --mode=compile gcc -I../include -I.
> -I../snmplib  -fno-strict-aliasing -g -O2 -Ucygwin -Dcygwin=cygwin  -c -o
> snmp_client.lo snmp_client.c
> libtool: compile:  gcc -I../include -I. -I../snmplib -fno-strict-aliasing
> -g -O2 -Ucygwin -Dcygwin=cygwin -c snmp_client.c  -DDLL_EXPORT -DPIC -o
> .libs/snmp_client.o
> snmp_client.c:839:17: operator '!=' has no left operand
> snmp_client.c:850:47: operator '!=' has no left operand
> snmp_client.c:863:46: operator '!=' has no left operand
> snmp_client.c:874:18: operator '!=' has no left operand
> Makefile:97: recipe for target `snmp_client.lo' failed
> make[1]: *** [snmp_client.lo] Error 1
> make[1]: Leaving directory
> `/home/Administrator/Studio/netsnmp/net-snmp-5.7.1/snmplib'
> Makefile:651: recipe for target `subdirs' failed
> make: *** [subdirs] Error 1
>

Looks the configure script failed to compute some of the SIZEOF_*
constants, which is strange. Which result do you get for the command "grep
SIZEOF_ config.status" ?

It should be something like this:

D["SIZEOF_SHORT"]=" 2"
D["SIZEOF_INT"]=" 4"
D["SIZEOF_LONG"]=" 8"
D["SIZEOF_LONG_LONG"]=" 8"
D["SIZEOF_INTMAX_T"]=" 8"
D["SIZEOF_SOCKADDR_UN_SUN_PATH"]=" 108"

Bart.

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.