Subject: Re: statfs->statvfs troubles.
To: None <current-users@NetBSD.org>
From: William Allen Simpson <wsimpson@greendragon.com>
List: current-users
Date: 04/23/2004 23:31:13
Juan RP wrote:
>
> Hmm, src/UPDATING was updated finally:
>
> 20040418:
> Statfs(2) and friends have been replaced with statvfs(2). Before
> installing a newly build userland make sure that you are running
> a newly built kernel with COMPAT_20 set. In addition your libc
> build might not work (undefined SYS_statfs symbol) because make
> clean does not know how to remove files it does not know about
> anymore. Manually remove all objects from the libc build directory.
>
Didn't work for me. I manually removed all libraries (everything!):
# rm -rf /usr/obj/destdir.i386/lib
It still quits:
# link cu/cu
/home/current/src/../tools/bin/i386--netbsdelf-gcc -Wl,-nostdlib -o cu -Wl,-rpath-link,/usr/obj/destdir.i386/lib:/usr/obj/destdir.i386/usr/lib -L/usr/obj/destdir.i386/lib -B/usr/obj/destdir.i386/usr/lib/ -B/usr/obj/destdir.i386/usr/lib/ cu.o prot.o log.o chat.o conn.o copy.o /usr/obj/gnu/libexec/uucp/libunix/libunix.a /usr/obj/gnu/libexec/uucp/libuuconf/libuuconf.a /usr/obj/gnu/libexec/uucp/libuucp/libuucp.a -L/usr/obj/destdir.i386/usr/lib -L/usr/obj/destdir.i386/usr/lib
/usr/obj/destdir.i386/lib/libc.so: undefined reference to `getfsstat'
/usr/obj/destdir.i386/lib/libc.so: undefined reference to `SYS_statfs'
collect2: ld returned 1 exit status
# ll /usr/obj/destdir.i386/lib/
total 4768
lrwxr-xr-x 1 current wheel 14 Apr 23 18:39 libc.so -> libc.so.12.116
lrwxr-xr-x 1 current wheel 14 Apr 23 18:39 libc.so.12 -> libc.so.12.116
-r--r--r-- 1 current wheel 799522 Apr 23 15:51 libc.so.12.116
...
--
William Allen Simpson
Key fingerprint = 17 40 5E 67 15 6F 31 26 DD 0D B9 9B 6A 15 2C 32