On Mon, 2009-06-15 at 00:28 +0200, Thomas Anders wrote:
> Current 5.5 SVN fails to build on Tru64 Unix 5.1:
> 
> [...]
> libtool: compile:  /opt/fsw/bin/cc -I../../include 
> -I/home/anders/src/net-snmp-5.5svn/include -I/opt/fsw/libopenssl097/include 
> -g -Dosf5=osf5 -c /home/anders/src/net-snmp-5.5svn/apps/snmpnetstat/inet6.c 
> -o inet6.o >/dev/null 2>&1
> /bin/sh ../../libtool  --mode=compile /opt/fsw/bin/cc -I../../include 
> -I/home/anders/src/net-snmp-5.5svn/include  -I/opt/fsw/libopenssl097/include  
> -g -Dosf5=osf5  -c -o if.lo 
> /home/anders/src/net-snmp-5.5svn/apps/snmpnetstat/if.c
> libtool: compile:  /opt/fsw/bin/cc -I../../include 
> -I/home/anders/src/net-snmp-5.5svn/include -I/opt/fsw/libopenssl097/include 
> -g -Dosf5=osf5 -c /home/anders/src/net-snmp-5.5svn/apps/snmpnetstat/if.c  
> -DPIC -o .libs/if.o
> cc: Error: ../../include/net-snmp/types.h, line 50: In this declaration, 
> "u_long" appears to be used as if it named a type, but there is no declared 
> type of that name visible. (typedefnotdef)
> typedef u_long  oid;
> --------^
> cc: Error: ../../include/net-snmp/types.h, line 59: In this declaration, 
> "u_int" appears to be used as if it named a type, but there is no declared 
> type of that name visible. (typedefnotdef)
> typedef u_int socklen_t;
> --------^
> cc: Error: ../../include/net-snmp/types.h, line 90: Missing type specifier or 
> type qualifier. (missingtype)
>    u_char         *string;
> ---^

On the web I found indications that CFLAGS=-D_OSF_SOURCE might help.

Where in the header files are u_long (and friends) declared?
What are the macros that prevent that point?
Is sizeof(u_long) == sizeof(uint32_t)?

/MF


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to