Date: Tue, 31 Jul 2001 13:36:22 +0200 (CEST) From: dirk.meyer@dinoex.sub.org To: FreeBSD-gnats-submit@freebsd.org Subject: ports/29350: databases/db3 fails with -ansi Message-ID: <200107311136.f6VBaM441207@home.dinoex.sub.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107311136.f6VBaM441207>