From owner-freebsd-stable@FreeBSD.ORG Fri Aug 8 22:49:47 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F148106568A for ; Fri, 8 Aug 2008 22:49:47 +0000 (UTC) (envelope-from vrajan@stbernard.com) Received: from atl-smtp2.mxpath.net (atl-smtp2.mxpath.net [208.74.57.166]) by mx1.freebsd.org (Postfix) with ESMTP id EC7D18FC16 for ; Fri, 8 Aug 2008 22:49:46 +0000 (UTC) (envelope-from vrajan@stbernard.com) Received: from enterprise.filter (localhost.localdomain [127.0.0.1]) by atl-smtp2.mxpath.net (MXPath Final Delivery) with SMTP id 7FFBF3F854 for ; Fri, 8 Aug 2008 22:31:03 +0000 (GMT) Received: from SB-EXCHANGE1.stbernard.com (securemail.stbernard.com [208.74.58.99]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by atl-smtp2.mxpath.net (MXPath Final Delivery) with ESMTP id AB1643399A for ; Fri, 8 Aug 2008 22:31:01 +0000 (GMT) Received: from SB-EXCHANGE1.stbernard.com ([172.27.130.99]) by SB-EXCHANGE1.stbernard.com ([172.27.130.99]) with mapi; Fri, 8 Aug 2008 15:31:01 -0700 From: Vijay Rajan To: "freebsd-stable@freebsd.org" Date: Fri, 8 Aug 2008 15:30:57 -0700 Thread-Topic: errors building bsnmpd v1.12 on freebsd5.3 Thread-Index: Acj5pmyKZ3s4HMy6SrSCBPWDMuocaw== Message-ID: <57ED6273CD029C4F944A944D4F81423838198F7A97@SB-EXCHANGE1.stbernard.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 X-ThreatScan3: CLEAN Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Dan Coppock Subject: errors building bsnmpd v1.12 on freebsd5.3 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Aug 2008 22:49:47 -0000 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/u= sr.sbin/bsnmpd/modules/snmp_mibII/../../../../contrib/bsnmp/lib -I/work2/vr= ajan/head/products/rapid/freebsd5/src/usr.sbin/bsnmpd/modules/snmp_mibII/..= /../../../contrib/bsnmp/snmpd -DHAVE_ERR_H -DHAVE_GETADDRINFO -DHAVE_STRLCP= Y -DHAVE_SYS_TREE_H -I. -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -= Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcas= t-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wchar-subscripts -Wi= nline -Wnested-externs -Wredundant-decls -c /work2/vrajan/head/products/rap= id/freebsd5/src/usr.sbin/bsnmpd/modules/snmp_mibII/../../../../contrib/bsnm= p/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 `sro= utes_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: emp= ty 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: emp= ty 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: emp= ty 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: emp= ty 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 `sro= utes_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: emp= ty 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: emp= ty 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: emp= ty 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: emp= ty 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: emp= ty 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: emp= ty body in an if-statement How could the following line in freebsd5/src/usr.sbin/bsnmpd/modules/snmp_m= ibII/../../../../contrib/bsnmp/snmp_mibII/mibII_route.c throw so many error= s? 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