NetBSD Problem Report #31444

From www@netbsd.org  Sun Oct  2 07:45:15 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 08ADB63B850; Sun,  2 Oct 2005 07:45:15 +0000 (UTC)
Message-Id: <20051002074515.08ADB63B850@narn.netbsd.org>
Date: Sun,  2 Oct 2005 07:45:15 +0000 (UTC)
From: rumi@rtfm.hu
Reply-To: rumi@rtfm.hu
To: gnats-bugs@netbsd.org
Subject: tiff-3.7.3 fails to compile on Tru64
X-Send-Pr-Version: www-1.0

>Number:         31444
>Category:       pkg
>Synopsis:       tiff-3.7.3 fails to compile on Tru64
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 02 07:46:00 +0000 2005
>Closed-Date:    Thu Apr 12 15:04:37 +0000 2007
>Last-Modified:  Thu Apr 12 15:04:37 +0000 2007
>Originator:     Rumi Szabolcs
>Release:        Tru64 5.1B-3 (PK5)
>Organization:
>Environment:
# uname -a
OSF1 obelix V5.1 2650 alpha
# sizer -v
Compaq Tru64 UNIX V5.1B (Rev. 2650); Sun Sep 25 20:31:58 CEST 2005
>Description:
tiff-3.7.3 from pkgsrc-current fails to build on Tru64 because of the
following error:

creating libtiff.la
(cd .libs && rm -f libtiff.la && ln -s ../libtiff.la libtiff.la)
source='tif_stream.cxx' object='tif_stream.lo' libtool=yes  DEPDIR=.deps depmode=tru64 /bin/ksh ../depcomp  /bin/ksh ../libtool --tag=CXX --mode=compile cxx -DHAVE_CONFIG_H  -I. -I. -I. -I.   -I/usr/pkg/include   -O2 -ieee -I/usr/pkg/include -ieee -c -o tif_stream.lo tif_stream.cxx
 cxx -DHAVE_CONFIG_H -I. -I/home/admin/pkgsrc/work/graphics/tiff/work/.buildlink/include -O2 -ieee -ieee -c -MD tif_stream.cxx  -DPIC -o .libs/tif_stream.o
cxx: Error: tif_stream.cxx, line 112: class "ios" has no member "iostate"
                ios::iostate    old_state;
---------------------^
cxx: Info: 1 error detected in the compilation of "tif_stream.cxx".
*** Error code 1

Stop.

>How-To-Repeat:
./bootstrap on Tru64
cd /usr/pkgsrc/graphics/tiff
bmake

>Fix:
Please refer to section 7.1.2 of this manual:
http://h30097.www3.hp.com/cplus/ugu_stl.html#stl_compat_ios_sec

When I defined __USE_STD_IOSTREAM, tif_stream.cxx compiled seamlessly.

>Release-Note:

>Audit-Trail:
From: RUMI Szabolcs <rumi@rtfm.hu>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/31444
Date: Sun, 2 Oct 2005 18:09:14 +0200

 bison-2.1 also seems to suffer from this issue and there may be even more
 such packages.

From: Tobias Nygren <tnn@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/31444 CVS commit: pkgsrc/mk/wrapper
Date: Thu, 12 Apr 2007 14:51:11 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	tnn
 Date:		Thu Apr 12 14:51:11 UTC 2007

 Modified Files:
 	pkgsrc/mk/wrapper: bsd.wrapper.mk

 Log Message:
 Add OSF1 wrapper quirks to always enable posix sockets and iso C++ iostreams.
 Fixes PR 31444. Fixes PR 31447. Both problems reported by Rumi Szabolcs.


 To generate a diff of this commit:
 cvs rdiff -r1.65 -r1.66 pkgsrc/mk/wrapper/bsd.wrapper.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: tnn@netbsd.org
State-Changed-When: Thu, 12 Apr 2007 15:04:37 +0000
State-Changed-Why:
Fix committed, thanks for the report.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.