Subject: Re: error: 'REG_STARTEND' undeclared
To: Raymond Meyer <raymond.meyer@rambler.ru>
From: Antti Kantee <pooka@cs.hut.fi>
List: current-users
Date: 06/06/2007 23:05:01
On Thu May 24 2007 at 23:11:49 +0100, Raymond Meyer wrote:
> On Thu, 24 May 2007 22:52:19 +0100
> Raymond Meyer <raymond.meyer@rambler.ru> wrote:
>
> > Hi, I'm trying to build NetBSD-current on Sparc Solaris, and it fails when it
> > tries to build tools:
> >
> > cc -DHAVE_CONFIG_H -I. -I/opt/src/tools/file/../../dist/file/src -I..
> > -DMAGIC=\"/opt/tools.sparc64/share/file/magic\" -O
> > -c /opt/src/tools/file/../../dist/file/src/softmagic.c -o
> > softmagic.o /opt/src/tools/file/../../dist/file/src/softmagic.c: In function
> > 'magiccheck': /opt/src/tools/file/../../dist/file/src/softmagic.c:1535:
> > error: 'REG_STARTEND' undeclared (first use in this
> > function) /opt/src/tools/file/../../dist/file/src/softmagic.c:1535: error:
> > (Each undeclared identifier is reported only
> > once /opt/src/tools/file/../../dist/file/src/softmagic.c:1535: error: for
> > each function it appears in.) *** [softmagic.lo] Error code 1 1 error
> >
> > Googling around seems to suggest that REG_STARTEND should be defined
> > somewhere in system headers, and it does not exist on Solaris. Looks like
> > others had similar problems compiling GNU file on Solaris.
> >
> > Could anyone have a look at it and see if it can be fixed so that it builds on
> > Solaris?
>
> OK, here is a patch I found on linuxfromscratch website. It fixes the problem
> for me, could somebody review and possibly commit it?
It's even easier to find that patch from ftp.astron.com next to the file
distribution ;)
Unfortunately I forgot to include it when I imported file 4.20. I'll try
to import the newest version tomorrow and get this fixed.
--
Antti Kantee <pooka@iki.fi> Of course he runs NetBSD
http://www.iki.fi/pooka/ http://www.NetBSD.org/
"la qualité la plus indispensable du cuisinier est l'exactitude"