Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jul 2001 11:55:47 +0200 (CEST)
From:      dirk.meyer@dinoex.sub.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/29348: graphics/netpbm fails with -ansi
Message-ID:  <200107310955.f6V9tlI40290@home.dinoex.sub.org>

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

>Number:         29348
>Category:       ports
>Synopsis:       graphics/netpbm 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 03:00: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/graphics/netpbm && make
[...]
cc -c -I../shhopt -O -pipe -pipe -Wall -W -Wall -ansi -pedantic -Wbad-function-c
ast -Wcast-align  -Wcast-qual -Wchar-subscripts -Wconversion -Winline  -Wmissing
-prototypes -Wnested-externs -Wpointer-arith  -Wredundant-decls -Wshadow -Wstric
t-prototypes -Wwrite-strings  "-Dmain=main_pbmtonokia"  -o pbmtonokia.o2 ../pbm/
pbmtonokia.c
../pbm/pbmtonokia.c:38: warning: function declaration isn't a prototype
../pbm/pbmtonokia.c: In function `usage':
../pbm/pbmtonokia.c:42: syntax error before `/'
../pbm/pbmtonokia.c:53: `argc' undeclared (first use in this function) 
../pbm/pbmtonokia.c:53: (Each undeclared identifier is reported only once
../pbm/pbmtonokia.c:53: for each function it appears in.)
../pbm/pbmtonokia.c:53: `argv' undeclared (first use in this function)
../pbm/pbmtonokia.c:55: `argpos' undeclared (first use in this function)
../pbm/pbmtonokia.c:62: `output' undeclared (first use in this function)
../pbm/pbmtonokia.c:73: `image' undeclared (first use in this function)
../pbm/pbmtonokia.c:73: `cols' undeclared (first use in this function)
../pbm/pbmtonokia.c:73: `rows' undeclared (first use in this function)
../pbm/pbmtonokia.c:75: `fp' undeclared (first use in this function)
../pbm/pbmtonokia.c:80: `header' undeclared (first use in this function)
../pbm/pbmtonokia.c:84: syntax error before `/'
../pbm/pbmtonokia.c:88: `row' undeclared (first use in this function)
../pbm/pbmtonokia.c:88: warning: statement with no effect
../pbm/pbmtonokia.c:88: syntax error before `)'
../pbm/pbmtonokia.c:89: `col' undeclared (first use in this function)
../pbm/pbmtonokia.c:89: warning: statement with no effect
../pbm/pbmtonokia.c:89: syntax error before `)'
../pbm/pbmtonokia.c:91: `p' undeclared (first use in this function)
../pbm/pbmtonokia.c:92: `c' undeclared (first use in this function)
../pbm/pbmtonokia.c:92: warning: unreachable code at beginning of switch statement
../pbm/pbmtonokia.c: At top level:
../pbm/pbmtonokia.c:98: syntax error before `break'
gmake[1]: *** [pbmtonokia.o2] Fehler 1
gmake[1]: Verlassen des Verzeichnisses Verzeichnis »/image/src/ports/graphics/ne
tpbm/work/netpbm-9.16/pbm«
gmake: *** [pbm.merge] Fehler 2

>Fix:

	add in Makefile.local or Makefile:

CFLAGS:= ${CFLAGS:S/-ansi//g}

[...]
cc -c -I../shhopt -O -pipe -pipe -Wall -W -Wall -pedantic -Wbad-function-cast -W
cast-align -Wcast-qual -Wchar-subscripts -Wconversion -Winline -Wmissing-prototy
pes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototy
pes -Wwrite-strings  "-Dmain=main_pbmtoybm"  -o pbmtoybm.o2 ../pbm/pbmtoybm.c   
../pbm/pbmtoybm.c:26: warning: function declaration isn't a prototype
../pbm/pbmtoybm.c: In function `main_pbmtoybm':
../pbm/pbmtoybm.c:55: warning: passing arg 1 of `putbit' with different width du
e to prototype
../pbm/pbmtoybm.c:57: warning: passing arg 1 of `putbit' with different width du
e to prototype
../pbm/pbmtoybm.c: In function `putinit':
../pbm/pbmtoybm.c:75: warning: passing arg 2 of `pm_writebigshort' with differen
t width due to prototype
../pbm/pbmtoybm.c:76: warning: passing arg 2 of `pm_writebigshort' with differen
t width due to prototype
../pbm/pbmtoybm.c:77: warning: passing arg 2 of `pm_writebigshort' with differen
t width due to prototype
../pbm/pbmtoybm.c: In function `putitem':
../pbm/pbmtoybm.c:110: warning: passing arg 2 of `pm_writebigshort' with differe
nt width due to prototype
[...]

>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?200107310955.f6V9tlI40290>