Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Oct 2000 17:51:31 -0500
From:      Gabor Kincses <gabor@acm.org>
To:        kstewart@urx.com
Cc:        stable@FreeBSD.ORG
Subject:   Re: perl fails in buildworld
Message-ID:  <39F4C0F3.6890D090@acm.org>
References:  <39F45BC9.521E5C36@acm.org> <39F4896D.2C0B5D26@urx.com> <39F490B4.52450BC8@acm.org> <39F4B5A2.5AB391DB@urx.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Kent Stewart wrote:
> 
> Gabor Kincses wrote:
> >
> > Kent Stewart wrote:
> > >
> > > Gabor Kincses wrote:
> > > >
> > > > Hello,
> > > >
> > > > I'm repeatedly getting the following error while trying to build
> > > > 4.1.1-STABLE as of last night and this morning:
> > > >
> > > > /usr2/src/gnu/usr.bin/perl/libperl/../../../../contrib/perl5/util.c: In
> > > > function `vsprintf':
> > > > /usr2/src/gnu/usr.bin/perl/libperl/../../../../contrib/perl5/util.c:1634:
> > > > structure has no member named `_ptr'
> > > > /usr2/src/gnu/usr.bin/perl/libperl/../../../../contrib/perl5/util.c:1635:
> > > > structure has no member named `_cnt'
> > > > /usr2/src/gnu/usr.bin/perl/libperl/../../../../contrib/perl5/util.c:1639:
> > > > structure has no member named `_flag'
> > > > /usr2/src/gnu/usr.bin/perl/libperl/../../../../contrib/perl5/util.c:1639:
> > > > `_IOWRT' undeclared (first use in this function)
> > > > /usr2/src/gnu/usr.bin/perl/libperl/../../../../contrib/perl5/util.c:1639:
> > > > (Each undeclared identifier is reported only once
> > > > /usr2/src/gnu/usr.bin/perl/libperl/../../../../contrib/perl5/util.c:1639:
> > > > for each function it appears in.)
> > > >
> > > > Any help is appreciated.
> > >
> > > You didn't provide enough information. The subject is misleading
> > > because a buildworld will produce compiler messages but not an
> > > installworld. You gave us the error messages but not the compile line
> > > that was causing them.
> >
> > Mindjam.  I meant buildworld not installworld.  Buildworld was failing
> > on util.c indeed:
> >
> > cc -O -pipe -I/usr/obj/usr2/src/gnu/usr.bin/perl/libperl
> > -I/usr2/src/gnu/usr.bin/perl/libperl/../../../../contrib/perl5 -c
> > /usr2/src/gnu/usr.bin/perl/libperl/../../../../contrib/perl5/util.c -o
> > util.o
> 
> Ok, you started out the right way.
> 
> >
> > And it's still failing as shown above.  The FILE struct is different in
> > /usr/include/stdio.h than what is expected.  I thought buildworld would
> > not use the the system default headers, but rather whatever was
> > cvsupped.
> 
> What version were you upgrading? You talk about 4.0-Stable in your
> signature. I started with 4.1.1 that was dated 18 Oct 2000 and I was
> able to cvsup and build and install my user world and kernel. The only
> obvious difference is your use of /usr2 and I'm using /usr.

I started this box on 4.0-RELEASE then became 4.0-STABLE on 6/11/2000.

> I also spent some time trying to find where _cnt and _ptr are defined.
> That was quite a maze. The FILE struct your are seeing is different
> than the function vnprintf in util.c is expecting. The
> -I/usr/obj/usr2/src/gnu/usr.bin/perl/libperl/perl.h creates those
> pointers. The chain util.c uses goes something like perl.h >
> iperlsys.h > perlsdio.h, which uses FILE and also redefines FILE as
> PerlIO. PerlIO has FILE_ptr and FILE_cnt and a few other changes.
> 
> At that point I decided that we needed someone that knew more about
> what was going on and went out for coffee.

Could you send me the output (util.i) of the following command:

cc -E -I/usr/obj/usr2/src/gnu/usr.bin/perl/libperl
-I/usr2/src/gnu/usr.bin/perl/libperl/../../../../contrib/perl5 -c
/usr2/src/gnu/usr.bin/perl/libperl/../../../../contrib/perl5/util.c >
util.i

That would be immense help.

Thanks,

-- 
Gabor Kincses
(gabor@acm.org)
Still running FreeBSD 4.0-STABLE :(


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39F4C0F3.6890D090>