Subject: Re: statfs->statvfs troubles.
To: William Allen Simpson <wsimpson@greendragon.com>
From: Hisashi T Fujinaka <htodd@twofifty.com>
List: current-users
Date: 04/23/2004 20:52:27
On Fri, 23 Apr 2004, William Allen Simpson wrote:

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

I fixed cu/cu by deleting my obj directories randomly. That worked until
I tried this morning, and I keep getting:

#   compile  libpci/pci_subr.ln
CC=/usr/src/obj.i386/tooldir.NetBSD-2.0D-i386/bin/i386--netbsdelf-gcc /usr/src/obj.i386/tooldir.NetBSD-2.0D-i386/bin/i386--netbsdelf-lint -chapbxzF -d /usr/src/obj.i386/destdir.i386/usr/include  -DPCIVERBOSE    -i /usr/src/sys/dev/pci/pci_subr.c
/usr/src/sys/dev/pci/pci_subr.c(331): redeclaration of pci_devinfo [27]
/usr/src/sys/dev/pci/pci_subr.c(393): warning: conversion to 'unsigned int' due to prototype, arg #2 [259]
/usr/src/sys/dev/pci/pci_subr.c(396): warning: conversion to 'unsigned int' due to prototype, arg #2 [259]
/usr/src/sys/dev/pci/pci_subr.c(399): warning: conversion to 'unsigned int' due to prototype, arg #2 [259]
/usr/src/sys/dev/pci/pci_subr.c(401): warning: conversion to 'unsigned int' due to prototype, arg #2 [259]
/usr/src/sys/dev/pci/pci_subr.c(404): warning: conversion to 'unsigned int' due to prototype, arg #2 [259]
/usr/src/sys/dev/pci/pci_subr.c(409): warning: conversion to 'unsigned int' due to prototype, arg #2 [259]
/usr/src/sys/dev/pci/pci_subr.c(412): warning: conversion to 'unsigned int' due to prototype, arg #2 [259]
/usr/src/sys/dev/pci/pci_subr.c(416): warning: conversion to 'unsigned int' due to prototype, arg #2 [259]
/usr/src/sys/dev/pci/pci_subr.c(419): warning: conversion to 'unsigned int' due to prototype, arg #2 [259]
/usr/src/sys/dev/pci/pci_subr.c(420): warning: conversion to 'unsigned int' due to prototype, arg #2 [259]
/usr/src/sys/dev/pci/pci_subr.c(656): warning: c89 C does not support 'long long' [265]
/usr/src/sys/dev/pci/pci_subr.c(1178): warning: conversion to 'unsigned int' due to prototype, arg #5 [259]

*** Failed target:  pci_subr.ln
*** Failed command: CC=/usr/src/obj.i386/tooldir.NetBSD-2.0D-i386/bin/i386--netbsdelf-gcc /usr/src/obj.i386/tooldir.NetBSD-2.0D-i386/bin/i386--netbsdelf-lint -chapbxzF -d /usr/src/obj.i386/destdir.i386/usr/include -DPCIVERBOSE -i /usr/src/sys/dev/pci/pci_subr.c
*** Error code 1

Stop.


-- 
Hisashi T Fujinaka - htodd@twofifty.com
BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte