NetBSD Problem Report #31273
From www@netbsd.org Sun Sep 4 14:12:04 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
id 9ADA263B11E; Sun, 4 Sep 2005 14:12:04 +0000 (UTC)
Message-Id: <20050904141204.9ADA263B11E@narn.netbsd.org>
Date: Sun, 4 Sep 2005 14:12:04 +0000 (UTC)
From: stuart@zeus.com
Reply-To: stuart@zeus.com
To: gnats-bugs@netbsd.org
Subject: findutils fails to buld on IRIX due to missing basename()
X-Send-Pr-Version: www-1.0
>Number: 31273
>Category: pkg
>Synopsis: findutils fails to buld on IRIX due to missing basename()
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: irix-pkg-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Sep 09 07:57:56 +0000 2005
>Closed-Date: Tue Jan 01 22:16:37 +0000 2008
>Last-Modified: Tue Jan 01 22:16:37 +0000 2008
>Originator: Stuart Shelton
>Release: n/a
>Organization:
n/a
>Environment:
IRIX64 octane 6.5 07010238 IP30 mips: IRIX 6.5.28
>Description:
findutils fails to build on IRIX, giving:
cc -c -DHAVE_CONFIG_H -I.. -I../lib -I/usr/bsd/include -c99 -O2 -n32 -mips4 -r12000 -apo -float_const -use_readonly_const -TARG:isa=mips4:platform=ip30:processor=r12000 -TENV:zeroinit_in_bss=ON -DEFAULT:platform=ip30 -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,1552 -n32 -I/usr/bsd/include pred.c
cc-1196 cc: WARNING File = pred.c, Line = 767
The indicated function is declared implicitly.
base = basename (pathname);
^
cc-1515 cc: ERROR File = pred.c, Line = 767
A value of type "int" cannot be assigned to an entity of type "char *".
base = basename (pathname);
^
cc-1196 cc: WARNING File = pred.c, Line = 934
The indicated function is declared implicitly.
base = basename (pathname);
^
cc-1515 cc: ERROR File = pred.c, Line = 934
A value of type "int" cannot be assigned to an entity of type "char *".
base = basename (pathname);
^
2 errors detected in the compilation of "pred.c".
*** Error code 2
Stop.
bmake: stopped in /usr/bsd/var/tmp/sysutils/findutils/work/findutils-4.1/find
*** Error code 1
Stop.
... additionally, IRIX needs to link against mp.
>How-To-Repeat:
cd sysutils/findutils && bmake install
>Fix:
In $WORKDIR/find/pred.c:
Change 2 instances of "base = basename (pathname);" to "base = basename2 (pathname);"
(a basename function is declared "extern" in <libgen.h>, but I can't see an implementation anywhere - so basename2() from util.c seems to do the job)
... and add to $PKGSRC/sysutils/findutils/Makefile
LDFLAGS.IRIX+= -lmp
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->irix-pkg-people
Responsible-Changed-By: reed@netbsd.org
Responsible-Changed-When: Sun, 11 Sep 2005 02:49:30 +0000
Responsible-Changed-Why:
Assigned to pkgsrc developers who can help with IRIX.
From: Jan Schaumann <jschauma@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/31273 CVS commit: pkgsrc/sysutils/findutils
Date: Tue, 11 Oct 2005 01:59:49 +0000 (UTC)
Module Name: pkgsrc
Committed By: jschauma
Date: Tue Oct 11 01:59:49 UTC 2005
Modified Files:
pkgsrc/sysutils/findutils: Makefile
Log Message:
Make this build and install under IRIX. To do this, we patch
one file to get the proper include (not quite what's suggested in
PR pkg/31273, but based on it), add the proper library to link against
and simply ignore the fact that we don't have nroff (and thus don't install
pre-formatted manual pages).
To generate a diff of this commit:
cvs rdiff -r1.18 -r1.19 pkgsrc/sysutils/findutils/Makefile
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: jschauma@netbsd.org
State-Changed-When: Tue, 11 Oct 2005 02:00:43 +0000
State-Changed-Why:
I just committed a fix for this, not quite what you suggested, but I think
it makes it work. Please test and let me know if it works for you as
well.
From: Jan Schaumann <jschauma@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/31273 CVS commit: pkgsrc/sysutils/findutils
Date: Tue, 11 Oct 2005 02:03:18 +0000 (UTC)
Module Name: pkgsrc
Committed By: jschauma
Date: Tue Oct 11 02:03:18 UTC 2005
Modified Files:
pkgsrc/sysutils/findutils: distinfo
pkgsrc/sysutils/findutils/patches: patch-aa patch-ac patch-ad patch-ag
Log Message:
Somehow the last commit only got Makefile. Commit missing bits:
Make this build and install under IRIX. To do this, we patch
one file to get the proper include (not quite what's suggested in
PR pkg/31273, but based on it), add the proper library to link against
and simply ignore the fact that we don't have nroff (and thus don't install
pre-formatted manual pages).
To generate a diff of this commit:
cvs rdiff -r1.9 -r1.10 pkgsrc/sysutils/findutils/distinfo
cvs rdiff -r1.3 -r1.4 pkgsrc/sysutils/findutils/patches/patch-aa
cvs rdiff -r1.1 -r1.2 pkgsrc/sysutils/findutils/patches/patch-ac \
pkgsrc/sysutils/findutils/patches/patch-ad
cvs rdiff -r1.2 -r1.3 pkgsrc/sysutils/findutils/patches/patch-ag
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Stuart Shelton <stuart@zeus.com>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/31273
Date: Thu, 20 Oct 2005 09:50:59 +0100
Just a quick comment to say that I might have misunderstood one of the
earlier points, but "nroff" is available for IRIX: it's not installed by
default, but SGI's Freeware does include it. Can its presence be detected
rather than never building pre-formatted man pages (if I've understood and
this is what the new behavior is)
I'll try to test the changes soon...
From: Jan Schaumann <jschauma@netmeister.org>
To: gnats-bugs@netbsd.org
Cc: irix-pkg-people@netbsd.org, gnats-admin@netbsd.org,
pkgsrc-bugs@netbsd.org, tech-pkg@netbsd.org
Subject: Re: pkg/31273
Date: Thu, 20 Oct 2005 09:15:45 -0400
--Nq2Wo0NMKNjxTN9z
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Stuart Shelton <stuart@zeus.com> wrote:
=20
> Just a quick comment to say that I might have misunderstood one of the=
=20
> earlier points, but "nroff" is available for IRIX: it's not installed by=
=20
> default, but SGI's Freeware does include it. Can its presence be detect=
ed=20
> rather than never building pre-formatted man pages (if I've understood a=
nd=20
> this is what the new behavior is)
Well, this is somewhat tricky as this changes the list of files to be
installed (PLIST). It might be better to install a proper nroff
alternative from pkgsrc, but IIRC that pulls in a rats tail of
dependencies, which may seem silly if all you want is format one little
page.
-Jan
P.S.: I'll xpost and followup-to this to tech-pkg.
--=20
The Internet interprets censorship as damage and routes around it.
-- John Gilmore
--Nq2Wo0NMKNjxTN9z
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)
iD8DBQFDV5iBfFtkr68iakwRAt9kAKCgVg21IumpFVlOY8Yhk1v5R7DpYwCg8Icj
+4egf/6gri3xRw23HosRKqk=
=tK2h
-----END PGP SIGNATURE-----
--Nq2Wo0NMKNjxTN9z--
From: Todd Vierling <tv@duh.org>
To: Jan Schaumann <jschauma@netmeister.org>
Cc: gnats-bugs@netbsd.org, irix-pkg-people@netbsd.org,
gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org, tech-pkg@netbsd.org
Subject: Re: pkg/31273
Date: Thu, 20 Oct 2005 14:46:39 -0400 (EDT)
On Thu, 20 Oct 2005, Jan Schaumann wrote:
> Well, this is somewhat tricky as this changes the list of files to be
> installed (PLIST). It might be better to install a proper nroff
> alternative from pkgsrc,
It would be even better to make the package not install nroff-preformatted
manpages at all. Most packages don't, and findutils is one [glaring]
exception to the common practice of allowing nroff to happen at runtime.
--
-- Todd Vierling <tv@duh.org> <tv@pobox.com> <todd@vierling.name>
State-Changed-From-To: feedback->closed
State-Changed-By: rillig@netbsd.org
State-Changed-When: Tue, 01 Jan 2008 22:16:37 +0000
State-Changed-Why:
Since the manpages are formatted using the -man package, not -mandoc,
there is no point of installing them preformatted. Closed.
>Unformatted:
(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.