pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/40123: sysutils/file doesn't compile with gcc 3.3



The following reply was made to PR pkg/40123; it has been noted by GNATS.

From: "OBATA Akio" <obache%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/40123: sysutils/file doesn't compile with gcc 3.3
Date: Sun, 25 Jan 2009 14:39:33 +0900

 On Sun, 07 Dec 2008 06:40:04 +0900, Bernd Ernesti 
<pr200825%veego.de@localhost> wrote:
 
 >      gcc 3.3 doesn't support -Wextra:
 >
 >  cc -DHAVE_CONFIG_H -I. -I.. 
 > -DMAGIC=\"/usr/pkg/etc/magic:/usr/pkg/share/file/magic\" -I/usr/include 
 > -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith 
 > -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wsign-compare 
 > -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra 
 > -Wunused-parameter -O2 -I/usr/include -MT magic.lo -MD -MP -MF 
 > .deps/magic.Tpo -c magic.c  -fPIC -DPIC -o .libs/magic.o
 > cc1: error: unrecognized option `-Wextra'
 > *** Error code 1
 
 Adding following lines to sysutils/file/Makefile may avoid this problem.
 
 .include "../../mk/compiler.mk"
 
 .if !empty(CC_VERSION:Mgcc-[23]*)
 BUILDLINK_TRANSFORM+=  rename:-Wextra:-W
 .endif
 
 


Home | Main Index | Thread Index | Old Index