Subject: pkg/34047:
To: None <,,>
From: Gilles Dauphin <>
List: pkgsrc-bugs
Date: 07/21/2006 08:40:00
>Number:         34047
>Category:       pkg
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 21 08:40:00 +0000 2006
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc

System: SunOS 5.10 Generic_Patch_118844-30 i86pc


let me know why thoses lines in

.if ${MACHINE_ARCH} == "x86_64"
CFLAGS+=-Wno-format -fno-builtin

that's is a problem when compiling some packages (gmake) whith solaris
gcc compiler.

the 'alloca' func is very system/compiler dependent , in Solaris
alloca is not a libc func. The gmake package does not link with this options.
and works fine whithout.

By the past I silently patch (no PR), but now it's time.

Thanks for an answer.
Maybe a patch like :

.if ${MACHINE_ARCH} == "x86_64" && ${OPSYS} != "SunOS"

will works


bmake in gmake


change to

.if ${MACHINE_ARCH} == "x86_64" && ${OPSYS} != "SunOS"
CFLAGS+=-Wno-format -fno-builtin