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

next in thread | previous in thread | raw e-mail | index | archive | help


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

Kent

> 
> Thanks for the reply.
> 
> > I just got through cvsuping and compiling .../per5/util.c from a "make
> > buildworld" just fine.
> >
> > /dump.c -o dump.o
> > cc -O -I/usr/obj/usr/src/gnu/usr.bin/perl/libperl
> > -I/usr/src/gnu/usr.bin/perl/libperl/.
> > ./../../../contrib/perl5 -c
> > /usr/src/gnu/usr.bin/perl/libperl/../../../../contrib/perl5
> > /util.c -o util.o
> >
> > What did you do? Did you try doing an installworld before you did a
> > buildworld?
> 
> --
> Gabor Kincses
> (gabor@acm.org)
> Running FreeBSD 4.0-STABLE
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-stable" in the body of the message

-- 
Kent Stewart
Richland, WA

mailto:kbstew99@hotmail.com
http://kstewart.urx.com/kstewart/index.html
FreeBSD News http://daily.daemonnews.org/


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?39F4B5A2.5AB391DB>