Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Aug 2008 15:30:57 -0700
From:      Vijay Rajan <vrajan@stbernard.com>
To:        "freebsd-stable@freebsd.org" <freebsd-stable@freebsd.org>
Cc:        Dan Coppock <Danno@stbernard.com>
Subject:   errors building bsnmpd v1.12 on freebsd5.3
Message-ID:  <57ED6273CD029C4F944A944D4F81423838198F7A97@SB-EXCHANGE1.stbernard.com>

next in thread | raw e-mail | index | archive | help

We have been trying to build bsnmpd 1.12 on freebsd 5.3 but have many weird issues building snmp_bridge, snmp_hostres & snmp_mibII modules.

The errors seem to come from compiler strictness
cc -fpic -DPIC -O -pipe  -I/work2/vrajan/head/products/rapid/freebsd5/src/usr.sbin/bsnmpd/modules/snmp_mibII/../../../../contrib/bsnmp/lib -I/work2/vrajan/head/products/rapid/freebsd5/src/usr.sbin/bsnmpd/modules/snmp_mibII/../../../../contrib/bsnmp/snmpd -DHAVE_ERR_H -DHAVE_GETADDRINFO -DHAVE_STRLCPY -DHAVE_SYS_TREE_H -I. -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c /work2/vrajan/head/products/rapid/freebsd5/src/usr.sbin/bsnmpd/modules/snmp_mibII/../../../../contrib/bsnmp/snmp_mibII/mibII_route.c -o mibII_route.So
/work2/vrajan/head/products/rapid/freebsd5/src/usr.sbin/bsnmpd/modules/snmp_mibII/../../../../contrib/bsnmp/snmp_mibII/mibII_route.c: In function `sroutes_RB_INSERT_COLOR':
/work2/vrajan/head/products/rapid/freebsd5/src/usr.sbin/bsnmpd/modules/snmp_mibII/../../../../contrib/bsnmp/snmp_mibII/mibII_route.c:516: warning: empty body in an if-statement
/work2/vrajan/head/products/rapid/freebsd5/src/usr.sbin/bsnmpd/modules/snmp_mibII/../../../../contrib/bsnmp/snmp_mibII/mibII_route.c:516: warning: empty body in an if-statement
/work2/vrajan/head/products/rapid/freebsd5/src/usr.sbin/bsnmpd/modules/snmp_mibII/../../../../contrib/bsnmp/snmp_mibII/mibII_route.c:516: warning: empty body in an if-statement
/work2/vrajan/head/products/rapid/freebsd5/src/usr.sbin/bsnmpd/modules/snmp_mibII/../../../../contrib/bsnmp/snmp_mibII/mibII_route.c:516: warning: empty body in an if-statement
/work2/vrajan/head/products/rapid/freebsd5/src/usr.sbin/bsnmpd/modules/snmp_mibII/../../../../contrib/bsnmp/snmp_mibII/mibII_route.c: In function `sroutes_RB_REMOVE_COLOR':
/work2/vrajan/head/products/rapid/freebsd5/src/usr.sbin/bsnmpd/modules/snmp_mibII/../../../../contrib/bsnmp/snmp_mibII/mibII_route.c:516: warning: empty body in an if-statement
/work2/vrajan/head/products/rapid/freebsd5/src/usr.sbin/bsnmpd/modules/snmp_mibII/../../../../contrib/bsnmp/snmp_mibII/mibII_route.c:516: warning: empty body in an if-statement
/work2/vrajan/head/products/rapid/freebsd5/src/usr.sbin/bsnmpd/modules/snmp_mibII/../../../../contrib/bsnmp/snmp_mibII/mibII_route.c:516: warning: empty body in an if-statement
/work2/vrajan/head/products/rapid/freebsd5/src/usr.sbin/bsnmpd/modules/snmp_mibII/../../../../contrib/bsnmp/snmp_mibII/mibII_route.c:516: warning: empty body in an if-statement
/work2/vrajan/head/products/rapid/freebsd5/src/usr.sbin/bsnmpd/modules/snmp_mibII/../../../../contrib/bsnmp/snmp_mibII/mibII_route.c:516: warning: empty body in an if-statement
/work2/vrajan/head/products/rapid/freebsd5/src/usr.sbin/bsnmpd/modules/snmp_mibII/../../../../contrib/bsnmp/snmp_mibII/mibII_route.c:516: warning: empty body in an if-statement


How could the following line in freebsd5/src/usr.sbin/bsnmpd/modules/snmp_mibII/../../../../contrib/bsnmp/snmp_mibII/mibII_route.c throw so many errors?

RB_GENERATE(sroutes, sroute, link, sroute_compare);

We have not been successful in using the gcc -E option to get preprocessed code to analyze the issue.
Any help will be appreciated.

Thanks in advance
Vijay



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?57ED6273CD029C4F944A944D4F81423838198F7A97>