From owner-freebsd-stable Mon Oct 23 15: 3:28 2000 Delivered-To: freebsd-stable@freebsd.org Received: from 2711.dynacom.net (2711.dynacom.net [206.107.213.3]) by hub.freebsd.org (Postfix) with ESMTP id BD56A37B4C5 for ; Mon, 23 Oct 2000 15:03:21 -0700 (PDT) Received: from urx.com (dsl1-160.dynacom.net [206.159.132.160]) by 2711.dynacom.net (Build 101 8.9.3/NT-8.9.3) with ESMTP id PAA10408; Mon, 23 Oct 2000 15:03:14 -0700 Message-ID: <39F4B5A2.5AB391DB@urx.com> Date: Mon, 23 Oct 2000 15:03:14 -0700 From: Kent Stewart Reply-To: kstewart@urx.com Organization: Dynacom X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Gabor Kincses Cc: stable@FreeBSD.ORG Subject: Re: perl fails in buildworld References: <39F45BC9.521E5C36@acm.org> <39F4896D.2C0B5D26@urx.com> <39F490B4.52450BC8@acm.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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