Re: Installing new world failed (install -l)

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Mon, 29 Apr 2013 12:42:33 +0400
On Mon, Apr 29, 2013 at 12:39:06PM +0400, Eir Nym wrote:
E> > I came to the following recipe when upgrading from a stale current to
E> > a modern one. This workarounds problem with install(1) and failure of
E> > clang bootstrap with old time.h in /usr/include.
E> >
E> > cd usr.bin/xinstall
E> > make && make install && make clean
E> > cd -
E> > make hierarchy
E> > make includes
E> >
E> > Now, make buildworld is possible.
E> >
E> 
E> I've tried this, but with no hope:
E> 
E> Warning: Object directory not changed from original
E> /usr/head/src/usr.bin/xinstall
E> cc -O2 -pipe  -I/usr/head/src/usr.bin/xinstall/../../contrib/mtree
E> -I/usr/head/src/usr.bin/xinstall/../../lib/libnetbsd
E> -I/usr/head/src/usr.bin/xinstall/../../lib/libmd -DNDEBUG -std=gnu99
E> -fstack-protector -Wsystem-headers -Wall -Wno-format-y2k -W
E> -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
E> -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch
E> -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline
E> -Wnested-externs -Wredundant-decls -Wold-style-definition
E> -Wno-pointer-sign -c xinstall.c
E> xinstall.c: In function 'main':
E> xinstall.c:301: warning: implicit declaration of function 'gid_from_group'
E> xinstall.c:301: warning: nested extern declaration of 'gid_from_group'
E> xinstall.c:311: warning: implicit declaration of function 'uid_from_user'
E> xinstall.c:311: warning: nested extern declaration of 'uid_from_user'
E> xinstall.c: In function 'metadata_log':
E> xinstall.c:1331: warning: implicit declaration of function 'strsvis'
E> xinstall.c:1331: warning: nested extern declaration of 'strsvis'
E> cc -O2 -pipe  -I/usr/head/src/usr.bin/xinstall/../../contrib/mtree
E> -I/usr/head/src/usr.bin/xinstall/../../lib/libnetbsd
E> -I/usr/head/src/usr.bin/xinstall/../../lib/libmd -DNDEBUG -std=gnu99
E> -fstack-protector -Wsystem-headers -Wall -Wno-format-y2k -W
E> -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
E> -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch
E> -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline
E> -Wnested-externs -Wredundant-decls -Wold-style-definition
E> -Wno-pointer-sign -c
E> /usr/head/src/usr.bin/xinstall/../../contrib/mtree/getid.c
E> /usr/head/src/usr.bin/xinstall/../../contrib/mtree/getid.c: In
E> function 'setup_getid':
E> /usr/head/src/usr.bin/xinstall/../../contrib/mtree/getid.c:137:
E> warning: implicit declaration of function 'pwcache_groupdb'
E> /usr/head/src/usr.bin/xinstall/../../contrib/mtree/getid.c:137:
E> warning: nested extern declaration of 'pwcache_groupdb'
E> /usr/head/src/usr.bin/xinstall/../../contrib/mtree/getid.c:139:
E> warning: implicit declaration of function 'pwcache_userdb'
E> /usr/head/src/usr.bin/xinstall/../../contrib/mtree/getid.c:139:
E> warning: nested extern declaration of 'pwcache_userdb'
E> cc -O2 -pipe  -I/usr/head/src/usr.bin/xinstall/../../contrib/mtree
E> -I/usr/head/src/usr.bin/xinstall/../../lib/libnetbsd
E> -I/usr/head/src/usr.bin/xinstall/../../lib/libmd -DNDEBUG -std=gnu99
E> -fstack-protector -Wsystem-headers -Wall -Wno-format-y2k -W
E> -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
E> -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch
E> -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline
E> -Wnested-externs -Wredundant-decls -Wold-style-definition
E> -Wno-pointer-sign  -o xinstall xinstall.o getid.o -lmd
E> xinstall.o: In function `metadata_log':
E> xinstall.c:(.text+0x169): undefined reference to `strsvis'
E> xinstall.c:(.text+0x20e): undefined reference to `strsvis'
E> xinstall.o: In function `main':
E> xinstall.c:(.text+0x2472): undefined reference to `gid_from_group'
E> xinstall.c:(.text+0x24f8): undefined reference to `uid_from_user'
E> getid.o: In function `setup_getid':
E> getid.c:(.text+0x7c2): undefined reference to `pwcache_groupdb'
E> getid.c:(.text+0x7e2): undefined reference to `pwcache_userdb'
E> *** Error code 1

Your current is even older than mine was. Looks like you need to
build and install new libc, then continue with install(1).

-- 
Totus tuus, Glebius.
Received on Mon Apr 29 2013 - 06:42:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:37 UTC