NetBSD Problem Report #42083

From kre@munnari.OZ.AU  Thu Sep 17 17:02:28 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 A080E63C2E4
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 17 Sep 2009 17:02:28 +0000 (UTC)
Message-Id: <200909171702.n8HH2KL0015334@jade.coe.psu.ac.th>
Date: Fri, 18 Sep 2009 00:02:20 +0700 (ICT)
From: kre@munnari.OZ.AU
To: gnats-bugs@gnats.NetBSD.org
Subject: sysutils/strace has no errnoent.h ioctlent.h or signalent.h for NetBSD
X-Send-Pr-Version: 3.95

>Number:         42083
>Category:       pkg
>Synopsis:       sysutils/strace has no errnoent.h ioctlent.h or signalent.h for NetBSD
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    christos
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 17 17:05:00 +0000 2009
>Closed-Date:    Tue Dec 08 03:37:34 +0000 2009
>Last-Modified:  Tue Dec 08 03:37:34 +0000 2009
>Originator:     Robert Elz
>Release:        NetBSD 4.0_STABLE
>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:
	Compile of sysutils/strace (strace-4.5.15nb1) fails.

>How-To-Repeat:
	I use pkg_comp wuth NetBSD 4.0 release sets installed, and libkver.
	(no x* sets, pkgsrc modular xorg instead ... that is irrelevant here).

	An attempt to build sysutils/strace fails ...

===> Building for strace-4.5.15nb1
cd netbsd && make
./syscalls.pl /usr/src/sys/kern/syscalls.master syscalls.print syscalls.cat > syscallent.h
/usr/bin/make  all-am
if cc -DHAVE_CONFIG_H -I. -I. -I. -Inetbsd/i386 -I./netbsd/i386 -Inetbsd -I./netbsd    -Wall -O2 -MT strace.o -MD -MP -MF ".deps/strace.Tpo" -c -o strace.o strace.c;  then mv -f ".deps/strace.Tpo" ".deps/strace.Po"; else rm -f ".deps/strace.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I. -Inetbsd/i386 -I./netbsd/i386 -Inetbsd -I./netbsd    -Wall -O2 -MT syscall.o -MD -MP -MF ".deps/syscall.Tpo" -c -o syscall.o syscall.c;  then mv -f ".deps/syscall.Tpo" ".deps/syscall.Po"; else rm -f ".deps/syscall.Tpo"; exit 1; fi
syscall.c:167:22: error: errnoent.h: No such file or directory
*** Error code 1

Stop.
make: stopped in /pkg_comp/obj/pkgsrc/sysutils/strace/4x/strace-4.5.15
*** Error code 1

Stop.

	The strace-4.5.15 directory contains a netbsd sub-directory,
	which contains a Makefile which can build errnoent.h

	Running that allows the build to get further, but fails
	when ioctlent.h cannot be found either.

	Needless to say, netbsd/Makefile can make that one as well,
	which then allows the build to continus until signalent.h
	is needed - which netbsd/Makefile can also build.

	After that, the package completes building successfully.

>Fix:
	Perhaps add
		cd ${WRKSRC}/netbsd; make errnoent.h ioctlent.h signalent.h
	somewhere (maybe in the pre-configure).

	It would seem from the Makefile as if just "make" should do
	all of that, but it doesn't, it just says
		syscallent.h is up to date
	and quits.   It is entirely possible that whatever is causing
	that to occur is the root cause of the problem, as syscallent.h
	is the only one of the 4 *ent.h files that actually gets made.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->christos
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Fri, 18 Sep 2009 11:14:10 +0000
Responsible-Changed-Why:
Over to maintainer.


From: "David A. Holland" <dholland@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/42083 CVS commit: pkgsrc/sysutils/strace
Date: Mon, 7 Dec 2009 05:06:37 +0000

 Module Name:	pkgsrc
 Committed By:	dholland
 Date:		Mon Dec  7 05:06:37 UTC 2009

 Modified Files:
 	pkgsrc/sysutils/strace: distinfo
 	pkgsrc/sysutils/strace/patches: patch-ab

 Log Message:
 Fix, hopefully, broken build on NetBSD 4.x, based on observations by
 Robert Elz in PR 42083.

 bsd.own.mk tags "all" with .NOTMAIN, so including bsd.own.mk before
 defining "all" causes it to be skipped in favor of whatever comes next
 in the makefile. Hack around this by putting "all:;" at the top.

 I can't *really* test it because the syscalls script blows its mind if
 given a NetBSD 5.x syscalls.master file.


 To generate a diff of this commit:
 cvs rdiff -u -r1.12 -r1.13 pkgsrc/sysutils/strace/distinfo
 cvs rdiff -u -r1.4 -r1.5 pkgsrc/sysutils/strace/patches/patch-ab

 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: Mon, 07 Dec 2009 05:11:01 +0000
State-Changed-Why:
I think should be fixed; can you check? I hit PR 40719 but I don't think
that affects -4.


From: Robert Elz <kre@munnari.OZ.AU>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/42083 (sysutils/strace has no errnoent.h ioctlent.h or signalent.h for NetBSD)
Date: Mon, 07 Dec 2009 19:05:03 +0700

     Date:        Mon,  7 Dec 2009 05:11:02 +0000 (UTC)
     From:        dholland@NetBSD.org
     Message-ID:  <20091207051102.77C5A63C483@www.NetBSD.org>

   | I think should be fixed; can you check? I hit PR 40719 but I don't think
   | that affects -4.

 Yes, that looks OK now (on NetBSD 4), thanks.

 kre

State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 08 Dec 2009 03:37:34 +0000
State-Changed-Why:
Confirmed fixed.


>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.