NetBSD Problem Report #36301

From  Wed May  9 13:02:19 2007
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id C859063B853
	for <>; Wed,  9 May 2007 13:02:18 +0000 (UTC)
Message-Id: <>
Date: Wed,  9 May 2007 12:54:31 +0000 (UTC)
Subject: Can't build devel/pcre-7.1: CXXFLAGS incorrectly filtered
X-Send-Pr-Version: www-1.0

>Number:         36301
>Category:       pkg
>Synopsis:       Can't build devel/pcre-7.1: CXXFLAGS incorrectly filtered
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    irix-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 09 13:05:00 +0000 2007
>Last-Modified:  Thu May 10 01:48:48 +0000 2007
>Originator:     Stuart Shelton
>Release:        n/a
IRIX64 octane 6.5 07202013 IP30

On IRIX, certain C library functions are omitted from C++ headers unless a particular flag is passed to the C++ compiler.

Despite having CXXFLAGS+=-LANG:exceptions=OFF:libc_in_namespace_std=OFF in the devel/pcre Makefile and added to my CXXFLAGS environment variable (which has propagated through to pcre's top-level Makefile), I get the error:

(cd .libs && rm -f && ln -s ../
source='' object='pcrecpp.lo' libtool=yes  DEPDIR=.deps depmode=none /bin/ksh ./depcomp  /bin/ksh ./libtool --tag=CXX    --mode=compile CC -DHAVE_CONFIG_H -I.    -I/usr/bsd/include  -O2 -n32 -mips4 -r14000 -apo -float_const -use_readonly_const -TARG:isa=mips4:platform=ip30:processor=r14000 -TENV:zeroinit_in_bss=ON -OPT:fast_io=ON:Olimit=8192:reorg_common=ON:swp=ON -LNO:auto_dist=ON:fusion_peeling_limit=8:gather_scatter=2 -woff 1174,1183,1185,1552,3970,3968 -FE:eliminate_duplicate_inline_copies:template_in_elf_section -LANG:exceptions=OFF -LANG:libc_in_namespace_std=OFF -c -o pcrecpp.lo
 CC -DHAVE_CONFIG_H -I. -I/usr/bsd/var/tmp/devel/pcre/work/.buildlink/include -O2 -n32 -mips4 -r14000 -apo -float_const -use_readonly_const -TARG:isa=mips4:platform=ip30:processor=r14000 -TENV:zeroinit_in_bss=ON -OPT:fast_io=ON:Olimit=8192:reorg_common=ON:swp=ON -woff 1174,1183,1185,1552,3970,3968 -FE:eliminate_duplicate_inline_copies:template_in_elf_section -c  -DPIC -o .libs/pcrecpp.o
cc-1020 CC: ERROR File =, Line = 773
  The identifier "strtoll" is undefined.

    long long r = strtoll(str, &end, radix);

cc-1020 CC: ERROR File =, Line = 800
  The identifier "strtoull" is undefined.

    unsigned long long r = strtoull(str, &end, radix);

2 errors detected in the compilation of "".

[] note: The real command line, after the pkgsrc wrapper, was:
/usr/bsd/var/tmp/devel/pcre/work/.mipspro/bin/CC -DHAVE_CONFIG_H -I. -I/usr/bsd/var/tmp/devel/pcre/work/.buildlink/include -O2 -n32 -mips4 -r14000 -apo -float_const -use_readonly_const -TARG:isa=mips4:platform=ip30:processor=r14000 -TENV:zeroinit_in_bss=ON -OPT:fast_io=ON:Olimit=8192:reorg_common=ON:swp=ON -woff 1174,1183,1185,1552,3970,3968 -FE:eliminate_duplicate_inline_copies:template_in_elf_section -c -DPIC -o .libs/pcrecpp.o 

[] note: The real command line, after the pkgsrc wrapper, was:
/usr/bsd/bin/libtool --tag=CXX --mode=compile CC -DHAVE_CONFIG_H -I. -I/usr/bsd/var/tmp/devel/pcre/work/.buildlink/include -O2 -n32 -mips4 -r14000 -apo -float_const -use_readonly_const -TARG:isa=mips4:platform=ip30:processor=r14000 -TENV:zeroinit_in_bss=ON -OPT:fast_io=ON:Olimit=8192:reorg_common=ON:swp=ON -woff 1174,1183,1185,1552,3970,3968 -FE:eliminate_duplicate_inline_copies:template_in_elf_section -c -o pcrecpp.lo 
*** Error code 1

... where you'll notice that something (libtool? has stripped the additional CXXFLAGS - rendering the code un-buildable.

'cd devel/pcre && bmake' on IRIX

If I manually run the command specified by with the correct flags added, then the file if compiled successfully.  However, if I then return to the top-level and "bmake" again, the build system attempts to rebuild the code again without the additional flag, and again fails :(



Responsible-Changed-From-To: pkg-manager->irix-pkg-people
Responsible-Changed-When: Thu, 10 May 2007 01:48:48 +0000
IRIX-specific problem.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.