Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Feb 2000 10:13:19 +0200
From:      Pekka Savola <Pekka.Savola@netcore.fi>
To:        mharo@freebsd.org
Cc:        freebsd-stable@freebsd.org, freebsd-bugs@freebsd.org
Subject:   3.4-STABLE bin/df compile error in 'make upgrade' from 2.2.6-REL
Message-ID:  <3.0.6.32.20000213101319.0080d910@netcore.home>

next in thread | raw e-mail | index | archive | help
<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-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.6.32.20000213101319.0080d910>