From owner-freebsd-ports Tue Jul 31 4:40:14 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B236B37B406 for ; Tue, 31 Jul 2001 04:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f6VBe2x25438; Tue, 31 Jul 2001 04:40:02 -0700 (PDT) (envelope-from gnats) Received: from net2.dinoex.sub.org (net2.dinoex.de [212.184.201.182]) by hub.freebsd.org (Postfix) with ESMTP id 7A06C37B403 for ; Tue, 31 Jul 2001 04:36:51 -0700 (PDT) (envelope-from dm@home.dinoex.sub.org) Received: from home.dinoex.sub.org (home [217.6.200.196]) by net2.dinoex.sub.org (8.11.4/8.11.4) with ESMTP id f6VBad812383 for ; Tue, 31 Jul 2001 13:36:40 +0200 (CEST) (envelope-from dm@home.dinoex.sub.org) Received: (from dm@localhost) by home.dinoex.sub.org (8.11.4/8.11.4) id f6VBaM441207; Tue, 31 Jul 2001 13:36:22 +0200 (CEST) (envelope-from dm) Message-Id: <200107311136.f6VBaM441207@home.dinoex.sub.org> Date: Tue, 31 Jul 2001 13:36:22 +0200 (CEST) From: dirk.meyer@dinoex.sub.org Reply-To: dirk.meyer@dinoex.sub.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/29350: databases/db3 fails with -ansi Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 29350 >Category: ports >Synopsis: databases/db3 fails with -ansi >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jul 31 04:40:02 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Dirk Meyer >Release: FreeBSD 4.3-STABLE i386 >Organization: privat >Environment: System: FreeBSD 4.3-STABLE: Fri Jul 20 22:04:45 CEST 2001 i386 /etc/make.conf: CFLAGS+= -pipe -Wall CFLAGS+=${BDECFLAGS} >Description: port fails to compile, if "-ansi" is set. >How-To-Repeat: cd /usr/ports/databases/db3 && make [...] cc -c -I. -I./../dist/../include -I./../dist/../include_auto -D_THREAD_SAFE -O -pipe -pipe -Wall -W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Wconversion -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings ./../dist/../mutex/mut_tas.c -fPIC -DPIC -o mut_tas.o In file included from ./../dist/../mutex/mut_tas.c:26: db_int.h:77: warning: ANSI C does not support `long long' In file included from db_int.h:447, from ./../dist/../mutex/mut_tas.c:26: ../dist/../include_auto/os_ext.h:58: warning: redundant redeclaration of `__os_fs_notzero' in same scope ../dist/../include_auto/os_ext.h:24: warning: previous declaration of `__os_fs_notzero' ./../dist/../mutex/mut_tas.c: In function `__db_tas_mutex_lock': ./../dist/../mutex/mut_tas.c:108: syntax error before `volatile' ./../dist/../mutex/mut_tas.c:108: warning: unused variable `__l' ./../dist/../mutex/mut_tas.c:108: warning: ANSI C forbids braced-groups within e xpressions ./../dist/../mutex/mut_tas.c:108: warning: `__r' might be used uninitialized in this function *** Error code 1 >Fix: add in Makefile.local or Makefile: CFLAGS:= ${CFLAGS:S/-ansi//g} [...] cc -c -I. -I./../dist/../include -I./../dist/../include_auto -D_THREAD_SAFE -O -pipe -pipe -Wall -W -Wall -pedantic -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Wconversion -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings ./../dist/../mutex/mut_tas.c -fPIC -DPIC -o mut_tas.o In file included from ./../dist/../mutex/mut_tas.c:26: db_int.h:77: warning: ANSI C does not support `long long' In file included from db_int.h:447, from ./../dist/../mutex/mut_tas.c:26: ../dist/../include_auto/os_ext.h:58: warning: redundant redeclaration of `__os_fs_notzero' in same scope ../dist/../include_auto/os_ext.h:24: warning: previous declaration of `__os_fs_notzero' ./../dist/../mutex/mut_tas.c: In function `__db_tas_mutex_lock': ./../dist/../mutex/mut_tas.c:108: warning: ANSI does not permit the keyword `asm ' ./../dist/../mutex/mut_tas.c:108: warning: ANSI C forbids braced-groups within e xpressions [...] >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message