NetBSD Problem Report #42081
From kre@munnari.OZ.AU Thu Sep 17 15:14:24 2009
Return-Path: <kre@munnari.OZ.AU>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 2EA9563C2E4
for <gnats-bugs@gnats.NetBSD.org>; Thu, 17 Sep 2009 15:14:24 +0000 (UTC)
Message-Id: <200909171514.n8HFEILp026904@jade.coe.psu.ac.th>
Date: Thu, 17 Sep 2009 22:14:18 +0700 (ICT)
From: kre@munnari.OZ.AU
To: gnats-bugs@gnats.NetBSD.org
Subject: sysutils/dptutil compilation errors (NetBSD 4.0 / i386)
X-Send-Pr-Version: 3.95
>Number: 42081
>Category: pkg
>Synopsis: sysutils/dptutil compilation errors (NetBSD 4.0 / i386)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Sep 17 15:15:00 +0000 2009
>Closed-Date: Tue Jun 07 12:04:39 +0000 2011
>Last-Modified: Tue Jun 07 17:10:03 +0000 2011
>Originator: Robert Elz
>Release: NetBSD 4.0 / i386 pkgsrc current 2009-09-17
>Organization:
Prince of Songkla University
>Environment:
System: NetBSD jade.coe.psu.ac.th 4.0_STABLE NetBSD 4.0_STABLE (JADE-1.696-20080517) #9: Fri May 23 18:55:13 ICT 2008 kre@jade.coe.psu.ac.th:/usr/obj/4/kernels/JADE i386
Architecture: i386
Machine: i386
>Description:
sysutils/dptutil (dptutil-3.31nb1) fails to compile on a
NetBSD 4.0 release system.
>How-To-Repeat:
I use pkg_comp with libkver and NetBSD 4.0 release sets installed
to get a fairly pure (clean and repeatable) NetBSD 4.0 release
environment in which to build binary packages. I use pkgsrc modular
xorg instead of the 4.0 release x* sets.
In that environment (which might, or might not, be relevant)
I see ...
makedepend -I. -I/usr/include/g++ -D_DPT_UNIX -D_DPT_FREE_BSD -D_DPT_DEFINE_SEMUN -D__unix__ -Dunix addr_rng.cpp array.cpp connect.cpp core.cpp core_ccb.cpp core_con.cpp core_dev.cpp core_mgr.cpp core_obj.cpp debug.cpp del1.cpp del2.cpp device.cpp dpt_buff.cpp dptalign.c dptcbuff.c driver.cpp eata2i2o.c eng_sig.c eng_std.cpp eng_unix.c engcalls.c engfile1.cpp engfile2.cpp engfile3.cpp engine.cpp englists.cpp engmsg.c findpath.c funcs.c gbl_fns.cpp hba.cpp hba_log.cpp kill.cpp lockunix.c manager.cpp msg_str.cpp object.cpp osd_unix.c ptrarray.cpp raid.cpp raid_bcd.cpp raid_dev.cpp raid_hba.cpp raid_mgr.cpp raiddrvr.cpp scsi_bcd.cpp scsi_ccb.cpp scsi_con.cpp scsi_dev.cpp scsi_hba.cpp scsi_log.cpp scsi_mgr.cpp scsi_obj.cpp scsidrvr.cpp semaphor.c stat_log.cpp swap_em.c threads.c unreslvd.c
makedepend: warning: debug.cpp (reading debug.h, line 7): cannot find include file "fstream.h"
not in ./fstream.h
not in /usr/include/g++/fstream.h
not in /usr/include/fstream.h
makedepend: warning: debug.cpp (reading debug.h, line 8): cannot find include file "iostream.h"
not in ./iostream.h
not in /usr/include/g++/iostream.h
not in /usr/include/iostream.h
makedepend: warning: debug.cpp (reading debug.h, line 9): cannot find include file "iomanip.h"
not in ./iomanip.h
not in /usr/include/g++/iomanip.h
not in /usr/include/iomanip.h
g++ -I. -I/usr/include/g++ -Dunix -D__unix__ -D_DPT_FREE_BSD -D__UNIX__ -DMESSAGES -D_DPT_ACTIVE_ALIGNMENT -D_DPT_DEFINE_SEMUN -DI_WANT_SNI_DEBUG -DNEW_LOGGER -DDEFAULT_PATH=\"/usr/pkg/sbin\" -D_NBSD_LIBEXEC=\"/usr/pkg/sbin\" -c -c swap_em.c
g++ -I. -I/usr/include/g++ -Dunix -D__unix__ -D_DPT_FREE_BSD -D__UNIX__ -DMESSAGES -D_DPT_ACTIVE_ALIGNMENT -D_DPT_DEFINE_SEMUN -DI_WANT_SNI_DEBUG -DNEW_LOGGER -DDEFAULT_PATH=\"/usr/pkg/sbin\" -D_NBSD_LIBEXEC=\"/usr/pkg/sbin\" -c -c osd_unix.c
./device.hh:12: warning: 'packed' attribute ignored for field of type 'dptCcapacity_S'
./device.hh:13: warning: 'packed' attribute ignored for field of type 'dptCemuParam_S'
./get_info.h:362: warning: 'packed' attribute ignored for field of type 'uCHAR'
./get_info.h:363: warning: 'packed' attribute ignored for field of type 'uCHAR'
./mgr.hh:9: warning: 'packed' attribute ignored for field of type 'dptCaddr_S'
./mgr.hh:10: warning: 'packed' attribute ignored for field of type 'dptCaddr_S'
./hba.hh:9: warning: 'packed' attribute ignored for field of type 'dptIOaddr_U'
./hba.hh:15: warning: 'packed' attribute ignored for field of type 'dptHBAid_U'
./hba.hh:55: warning: 'packed' attribute ignored for field of type 'dptChanInfo_S [3]'
./mgr.hh:9: warning: 'packed' attribute ignored for field of type 'dptCaddr_S'
./mgr.hh:10: warning: 'packed' attribute ignored for field of type 'dptCaddr_S'
./mgr.hh:9: warning: 'packed' attribute ignored for field of type 'dptCaddr_S'
./mgr.hh:10: warning: 'packed' attribute ignored for field of type 'dptCaddr_S'
g++ -I. -I/usr/include/g++ -Dunix -D__unix__ -D_DPT_FREE_BSD -D__UNIX__ -DMESSAGES -D_DPT_ACTIVE_ALIGNMENT -D_DPT_DEFINE_SEMUN -DI_WANT_SNI_DEBUG -DNEW_LOGGER -DDEFAULT_PATH=\"/usr/pkg/sbin\" -D_NBSD_LIBEXEC=\"/usr/pkg/sbin\" -c -c engfile1.cpp
In file included from /usr/include/g++/backward/fstream.h:31,
from debug.h:7,
from allfiles.hpp:123,
from engfile1.cpp:28:
/usr/include/g++/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
raid.h:252: error: extra qualification 'raidDef_S::' on member 'raidDef_S'
device.hh:12: warning: 'packed' attribute ignored for field of type 'dptCcapacity_S'
device.hh:13: warning: 'packed' attribute ignored for field of type 'dptCemuParam_S'
get_info.h:362: warning: 'packed' attribute ignored for field of type 'uCHAR'
get_info.h:363: warning: 'packed' attribute ignored for field of type 'uCHAR'
mgr.hh:9: warning: 'packed' attribute ignored for field of type 'dptCaddr_S'
mgr.hh:10: warning: 'packed' attribute ignored for field of type 'dptCaddr_S'
hba.hh:9: warning: 'packed' attribute ignored for field of type 'dptIOaddr_U'
hba.hh:15: warning: 'packed' attribute ignored for field of type 'dptHBAid_U'
hba.hh:55: warning: 'packed' attribute ignored for field of type 'dptChanInfo_S [3]'
mgr.hh:9: warning: 'packed' attribute ignored for field of type 'dptCaddr_S'
mgr.hh:10: warning: 'packed' attribute ignored for field of type 'dptCaddr_S'
mgr.hh:9: warning: 'packed' attribute ignored for field of type 'dptCaddr_S'
mgr.hh:10: warning: 'packed' attribute ignored for field of type 'dptCaddr_S'
connect.hpp:170: error: extra qualification 'dptSCSIcon_C::' on member 'dptSCSIcon_C'
scsi_obj.cpp: In member function 'virtual DPT_RTN_T dptSCSIobj_C::rtnConfigInfo(dptBuffer_S*)':
scsi_obj.cpp:424: error: cannot bind packed field 'basic_P->dptBasic_S::attachedTo' to 'uLONG&'
*** Error code 1
Stop.
make: stopped in /pkg_comp/obj/pkgsrc/sysutils/dptutil/4x/raidmgt-3.31/dpteng
*** Error code 1
Stop.
make: stopped in /pkg_comp/obj/pkgsrc/sysutils/dptutil/4x/raidmgt-3.31
*** Error code 1
Stop.
>Fix:
>Release-Note:
>Audit-Trail:
From: "David A. Holland" <dholland@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/42081 CVS commit: pkgsrc/sysutils/dptutil
Date: Sun, 22 May 2011 19:11:43 +0000
Module Name: pkgsrc
Committed By: dholland
Date: Sun May 22 19:11:43 UTC 2011
Modified Files:
pkgsrc/sysutils/dptutil: Makefile distinfo
pkgsrc/sysutils/dptutil/patches: patch-aa patch-ab patch-ac patch-ae
patch-af patch-ag patch-ah patch-ai patch-ak patch-al patch-am
patch-an patch-ao
Added Files:
pkgsrc/sysutils/dptutil/patches: patch-dpteng_connect_hpp
patch-dpteng_debug_h patch-dpteng_device_cpp
patch-dpteng_lockunix_c patch-dpteng_raid_h
patch-dpteng_scsi__obj_cpp patch-dptutil_alarm_hpp
patch-dptutil_dynsize_h patch-dptutil_engiface_cpp
patch-dptutil_engiface_hpp patch-dptutil_eventlog_hpp
patch-dptutil_expand_hpp patch-dptutil_flash_cpp
patch-dptutil_flash_hpp patch-dptutil_forcest_hpp
patch-dptutil_listdev_cpp patch-dptutil_lockunix_c
patch-dptutil_namarray_hpp patch-dptutil_rmwflash_hpp
patch-dptutil_segment_hpp patch-dptutil_setcache_hpp
patch-dptutil_setrate_hpp patch-dptutil_setscfg_hpp
patch-dptutil_taskctrl_hpp patch-dptutil_uartdmp_hpp
patch-dptutil_zap_hpp
Removed Files:
pkgsrc/sysutils/dptutil/patches: patch-aj patch-ap
Log Message:
Fix assorted build problems. Should close PR 42081. While here, add at
least minimal comments to all patches and tidy up some (but by no
means all) pkglint.
I have no idea if this works. It spews warnings about "packed", which
lead me to suspect it may not run correctly, but I don't have the
facilities to test it. It does, however, now build ok on LP64 and if
someone can test it may be reasonable to remove the restriction on that.
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 pkgsrc/sysutils/dptutil/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/sysutils/dptutil/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/sysutils/dptutil/patches/patch-aa \
pkgsrc/sysutils/dptutil/patches/patch-ah \
pkgsrc/sysutils/dptutil/patches/patch-ak \
pkgsrc/sysutils/dptutil/patches/patch-al \
pkgsrc/sysutils/dptutil/patches/patch-am \
pkgsrc/sysutils/dptutil/patches/patch-an \
pkgsrc/sysutils/dptutil/patches/patch-ao
cvs rdiff -u -r1.2 -r1.3 pkgsrc/sysutils/dptutil/patches/patch-ab \
pkgsrc/sysutils/dptutil/patches/patch-ae
cvs rdiff -u -r1.1.1.1 -r1.2 pkgsrc/sysutils/dptutil/patches/patch-ac \
pkgsrc/sysutils/dptutil/patches/patch-ag \
pkgsrc/sysutils/dptutil/patches/patch-ai
cvs rdiff -u -r1.3 -r1.4 pkgsrc/sysutils/dptutil/patches/patch-af
cvs rdiff -u -r1.1 -r0 pkgsrc/sysutils/dptutil/patches/patch-aj \
pkgsrc/sysutils/dptutil/patches/patch-ap
cvs rdiff -u -r0 -r1.1 \
pkgsrc/sysutils/dptutil/patches/patch-dpteng_connect_hpp \
pkgsrc/sysutils/dptutil/patches/patch-dpteng_debug_h \
pkgsrc/sysutils/dptutil/patches/patch-dpteng_device_cpp \
pkgsrc/sysutils/dptutil/patches/patch-dpteng_lockunix_c \
pkgsrc/sysutils/dptutil/patches/patch-dpteng_raid_h \
pkgsrc/sysutils/dptutil/patches/patch-dpteng_scsi__obj_cpp \
pkgsrc/sysutils/dptutil/patches/patch-dptutil_alarm_hpp \
pkgsrc/sysutils/dptutil/patches/patch-dptutil_dynsize_h \
pkgsrc/sysutils/dptutil/patches/patch-dptutil_engiface_cpp \
pkgsrc/sysutils/dptutil/patches/patch-dptutil_engiface_hpp \
pkgsrc/sysutils/dptutil/patches/patch-dptutil_eventlog_hpp \
pkgsrc/sysutils/dptutil/patches/patch-dptutil_expand_hpp \
pkgsrc/sysutils/dptutil/patches/patch-dptutil_flash_cpp \
pkgsrc/sysutils/dptutil/patches/patch-dptutil_flash_hpp \
pkgsrc/sysutils/dptutil/patches/patch-dptutil_forcest_hpp \
pkgsrc/sysutils/dptutil/patches/patch-dptutil_listdev_cpp \
pkgsrc/sysutils/dptutil/patches/patch-dptutil_lockunix_c \
pkgsrc/sysutils/dptutil/patches/patch-dptutil_namarray_hpp \
pkgsrc/sysutils/dptutil/patches/patch-dptutil_rmwflash_hpp \
pkgsrc/sysutils/dptutil/patches/patch-dptutil_segment_hpp \
pkgsrc/sysutils/dptutil/patches/patch-dptutil_setcache_hpp \
pkgsrc/sysutils/dptutil/patches/patch-dptutil_setrate_hpp \
pkgsrc/sysutils/dptutil/patches/patch-dptutil_setscfg_hpp \
pkgsrc/sysutils/dptutil/patches/patch-dptutil_taskctrl_hpp \
pkgsrc/sysutils/dptutil/patches/patch-dptutil_uartdmp_hpp \
pkgsrc/sysutils/dptutil/patches/patch-dptutil_zap_hpp
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 22 May 2011 19:33:58 +0000
State-Changed-Why:
Should be fixed. I don't have a -4 build machine at this point so I might
have missed something.
(Also, if you were actually using it, as opposed to test-building it, and
can therefore check if it works, please do; but given the dysfunction I
found I doubt anyone's built or run it for years.)
From: Robert Elz <kre@munnari.OZ.AU>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/42081 (sysutils/dptutil compilation errors (NetBSD 4.0 / i386))
Date: Mon, 06 Jun 2011 21:00:46 +0700
Date: Sun, 22 May 2011 19:33:59 +0000 (UTC)
From: dholland@NetBSD.org
Message-ID: <20110522193359.1271F63BD37@www.NetBSD.org>
| Should be fixed. I don't have a -4 build machine at this point so I might
| have missed something.
Yes, builds fine now in a NetBSD 4 environment, thanks.
| (Also, if you were actually using it, as opposed to test-building it,
Sorry no, building only, I've never had any of the hardware it supports.
kre
State-Changed-From-To: feedback->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Tue, 07 Jun 2011 12:04:39 +0000
State-Changed-Why:
confirmed fixed.
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/42081 (sysutils/dptutil compilation errors (NetBSD 4.0 /
i386))
Date: Tue, 7 Jun 2011 17:09:36 +0000
On Mon, Jun 06, 2011 at 02:05:03PM +0000, Robert Elz wrote:
> | Should be fixed. I don't have a -4 build machine at this point so
> | I might have missed something.
>
> Yes, builds fine now in a NetBSD 4 environment, thanks.
Good...
> | (Also, if you were actually using it, as opposed to test-building it,
>
> Sorry no, building only, I've never had any of the hardware it supports.
Not surprising :-) Oh well, maybe someone else does...
--
David A. Holland
dholland@netbsd.org
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.