From owner-freebsd-ports Tue Jul 31 2:50:16 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 08D7C37B403 for ; Tue, 31 Jul 2001 02:50:06 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f6V9o6O01205; Tue, 31 Jul 2001 02:50:06 -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 EB02137B401 for ; Tue, 31 Jul 2001 02:45:48 -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 f6V9jc802800 for ; Tue, 31 Jul 2001 11:45:39 +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 f6V9hJ914839; Tue, 31 Jul 2001 11:43:19 +0200 (CEST) (envelope-from dm) Message-Id: <200107310943.f6V9hJ914839@home.dinoex.sub.org> Date: Tue, 31 Jul 2001 11:43:19 +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/29347: audio/esound 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: 29347 >Category: ports >Synopsis: audio/esound 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 02:50:01 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/audio/esound && make [...] cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -DSYSCONFDIR=\"/usr/local/et c\" -O -pipe -pipe -Wall -W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-ali gn -Wcast-qual -Wchar-subscripts -Wconversion -Winline -Wmissing-prototypes -Wne sted-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwr ite-strings -c genrand.c -fPIC -DPIC -o .libs/genrand.lo genrand.c: In function `genrand_dev': genrand.c:50: warning: passing arg 3 of `read' as unsigned due to prototype genrand.c:44: warning: unused variable `curbuf' genrand.c:43: warning: unused variable `readlen' genrand.c: In function `handle_alarm': genrand.c:64: warning: unused parameter `signum' genrand.c: At top level: genrand.c:69: syntax error before `unsigned' genrand.c:71: warning: no previous prototype for `hashlong' genrand.c: In function `hashlong': genrand.c:75: warning: comparison between signed and unsigned genrand.c:72: warning: `retval' might be used uninitialized in this function genrand.c: In function `genrand_unix': genrand.c:103: warning: unused variable `mycount' *** Error code 1 >Fix: add in Makefile.local or Makefile CFLAGS:= ${CFLAGS:S/-ansi//g} cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -DSYSCONFDIR=\"/usr/local/et c\" -O -pipe -pipe -Wall -W -Wall -pedantic -Wbad-function-cast -Wcast-align -Wc ast-qual -Wchar-subscripts -Wconversion -Winline -Wmissing-prototypes -Wnested-e xterns -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-st rings -c genrand.c -fPIC -DPIC -o .libs/genrand.lo genrand.c: In function `genrand_dev': genrand.c:50: warning: passing arg 3 of `read' as unsigned due to prototype genrand.c:44: warning: unused variable `curbuf' genrand.c:43: warning: unused variable `readlen' genrand.c: In function `handle_alarm': genrand.c:64: warning: unused parameter `signum' genrand.c: At top level: genrand.c:69: warning: ANSI does not permit the keyword `inline' genrand.c: In function `hashlong': genrand.c:75: warning: comparison between signed and unsigned genrand.c: In function `genrand_unix': genrand.c:103: warning: unused variable `mycount' genrand.c:72: warning: `retval' might be used uninitialized in this function >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message