Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Feb 2000 00:00:05 +0200
From:      Pekka Savola <Pekka.Savola@netcore.fi>
To:        freebsd-stable@freebsd.org
Cc:        Doug Barton <Doug@gorean.org>
Subject:   Re: 3.0 stable does not compile - crtbegin line 32 33
Message-ID:  <4.3.1.20000219235542.00b58c30@127.0.0.1>
In-Reply-To: <38AF0DFE.5E1FC755@gorean.org>
References:  <uUyuONd%2BoF4UTSvLY%2Biy%2Bp2zHrit@4ax.com>

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

> > You have to upgrade to 3.2-RELEASE first (or perhaps 3.3, I didn't try
> > that); compiling 3.4-STABLE fails on an AOUT 2.2.8 system (bin/df).  I
> > posted a message here about it less than a week ago.
>
>         Do you (or anyone) have more information about that? I want to 
> update my
>web page on make upgrade for 3.4, but that sounds like a pretty serious
>pitfall.

Unfortunately, I don't know why this is so.  Here's the message I sent.  I 
only mentioned 2.2.6-RELEASE there, but I tried it with
2.2.8-RELEASE and -STABLE too.  So, upgrading to 3.2-RELEASE first seems 
necessary (and works from 2.2.6-RELEASE etc. too).

I didn't notice this message on the mailing lists.  I used freebsd-stable 
and -bugs in Cc: ; I hope the message wasn't rejected in some anti-spamming 
checks.

-------
<posted to freebsd-stable, freebsd-bugs and mailed to mharo@freebsd.org>

Hello,

I was upgrading a 2.2.6-RELEASE (GENERIC kernel) to 3.4-STABLE (CVSup'ed 
previously today) until I got into problems (fixed the typo with 
games/wargames by hand first).

bin/df/Makefile is:
# $FreeBSD: src/bin/df/Makefile,v 1.7.2.2 2000/01/23 03:19:33 mharo Exp $

make upgrade
[at least 5 hours of code crunching]
-----
===> bin/df
cc -nostdinc -O -pipe -I/usr/src/bin/df/../../sbin/mount -Wall
-Wformat   -I/usr/obj/aout/usr/src/tmp/usr/include -c /usr/src/bin/df/df.c
cc -nostdinc -O -pipe -I/usr/src/bin/df/../../sbin/mount -Wall 
-Wformat   -I/usr/obj/aout/usr/src/tmp/usr/include -c 
/usr/src/bin/df/../../sbin/mount/vfslist.c
cc -nostdinc -O -pipe -I/usr/src/bin/df/../../sbin/mount -Wall 
-Wformat   -I/usr/obj/aout/usr/src/tmp/usr/include  -static -o df df.o 
vfslist.o
df.o: Undefined symbol `_ilogb' referenced from text segment
*** Error code 1
----
And halt ;<.

I tried compiling bin/df by hand, and edited the makefile a bit (added 
-I/usr/obj/aout... -nostdinc -pipe, but then I get an other error message 
(note! there also seem to be /usr/lib/libm.a there, dunno why):
-----
Warning: Object directory not changed from original /usr/src/bin/df
cc -O -I/usr/src/bin/df/../../sbin/mount 
-I/usr/obj/aout/usr/src/tmp/usr/include -nostdinc -pipe -Wall 
-Wformat   -Wall -Wformat -c df.c
cc -O -I/usr/src/bin/df/../../sbin/mount 
-I/usr/obj/aout/usr/src/tmp/usr/include -nostdinc -pipe -Wall 
-Wformat   -Wall -Wformat -c /usr/src/bin/df/../../sbin/mount/vfslist.c
cc -O -I/usr/src/bin/df/../../sbin/mount 
-I/usr/obj/aout/usr/src/tmp/usr/include -nostdinc -pipe -Wall 
-Wformat   -Wall -Wformat  -static -o df df.o vfslist.o  /usr/lib/libm.a
df.o: Undefined symbol `___error' referenced from text segment
df.o: Undefined symbol `___error' referenced from text segment
df.o: Undefined symbol `___error' referenced from text segment
*** Error code 1
-----

Without any Makefile tweaks:
-----
Warning: Object directory not changed from original /usr/src/bin/df
cc -O -I/usr/src/bin/df/../../sbin/mount -Wall -Wformat   -Wall -Wformat -c 
df.c
In file included from df.c:57:
/usr/include/ufs/ufs/ufsmount.h:63: `MAXQUOTAS' undeclared here (not in a 
function)
/usr/include/ufs/ufs/ufsmount.h:64: `MAXQUOTAS' undeclared here (not in a 
function)
/usr/include/ufs/ufs/ufsmount.h:68: `MAXQUOTAS' undeclared here (not in a 
function)
/usr/include/ufs/ufs/ufsmount.h:69: `MAXQUOTAS' undeclared here (not in a 
function)
/usr/include/ufs/ufs/ufsmount.h:70: `MAXQUOTAS' undeclared here (not in a 
function)
/usr/include/ufs/ufs/ufsmount.h:71: field `um_export' has incomplete type
df.c: In function `main':
df.c:212: warning: implicit declaration of function `mkdtemp'
df.c:212: warning: assignment makes pointer from integer without a cast
df.c:220: warning: passing arg 1 of `mount' makes integer from pointer 
without a cast
df.c: In function `regetmntinfo':
df.c:289: structure has no member named `f_fstypename'
df.c: In function `ufs_df':
df.c:456: structure has no member named `f_fstypename'
*** Error code 1
-----

So, it seems 'make upgrades' from some 2.2.X systems at least are broken.

Compiling bin/df on my ELF system works fine.

Any ideas?  I hope this can be fixed soon.

BTW, is there any way to continue 'make upgrade' from where this left off 
or do I have start from scratch?  E.g. 'make -i world' always deletes the 
old obj directory, this probably does too?

TIA, Regards
  Pekka
---------
Pekka Savola			pekkas@netcore.fi
---
Across the nations the stories spread like spiderweb laid upon spiderweb,
and men and women planned the future, believing they knew truth. They
planned, and the Pattern absorbed their plans, weaving toward the future 
foretold.		-- Robert Jordan: The Path of Daggers



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?4.3.1.20000219235542.00b58c30>