From owner-freebsd-questions@FreeBSD.ORG Sun Oct 6 07:44:17 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 98A4C79A for ; Sun, 6 Oct 2013 07:44:17 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 398952CA9 for ; Sun, 6 Oct 2013 07:44:17 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.7/8.14.7) with ESMTP id r967iBg5075673 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 6 Oct 2013 08:44:11 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk r967iBg5075673 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1381045451; bh=lGiCWsx9uHyiFQTUCJ8r49AZDK/7uu8LijVU5ngmb+A=; h=Date:From:To:CC:Subject:References:In-Reply-To; z=Date:=20Sun,=2006=20Oct=202013=2008:44:04=20+0100|From:=20Matthew =20Seaman=20|To:=20Eric=20Feldhus en=20|CC:=20freebsd-questions@freebsd. org|Subject:=20Re:=20Problem=20completing=20a=209.1=20release=20to =209.2=20release=20upgrade|References:=20=20<525069AD.7040505@Fr eeBSD.org>=20=20<20131005224132.baf52b18.freebsd@edvax.de>=20| In-Reply-To:=20; b=MgMOx5SaiVIdRwzsqsqKD3qr3OIQguReJVQQaTKB1YbYXNNSxK6y82MxE4PDKnI/6 tX+TAIfodtQ+KJlfOubSP4POt0ifz4efUxQtCHnDkhs40JijKH+i7AX8MDiv3qF3K4 UxSVGUJ9wcLjR5AyLuiO7FCOLxD1TLR0JD4R0XiU= Message-ID: <525114C4.1020801@infracaninophile.co.uk> Date: Sun, 06 Oct 2013 08:44:04 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Eric Feldhusen Subject: Re: Problem completing a 9.1 release to 9.2 release upgrade References: <525069AD.7040505@FreeBSD.org> <20131005224132.baf52b18.freebsd@edvax.de> In-Reply-To: X-Enigmail-Version: 1.5.2 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ceAv3LwdtPj4UvpQ2fNx6baVwuCsAQLj7" X-Virus-Scanned: clamav-milter 0.97.8 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Oct 2013 07:44:17 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --ceAv3LwdtPj4UvpQ2fNx6baVwuCsAQLj7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 06/10/2013 04:51, Eric Feldhusen wrote: > I figured I'd walk through those steps from start to finish and just > correct my main problem and any other little glitches I might have. >=20 > I'm on step 6 and when I run mergemaster -p, I get the following error.= >=20 > *** Creating the temporary root environment in /var/tmp/temproot > *** /var/tmp/temproot ready for use > *** Creating and populating directory structure in /var/tmp/temproot >=20 > /usr/bin/install: Undefined symbol "gid_from_group" >=20 > *** FATAL ERROR: Cannot copy files to the temproot environment >=20 > I found this thread on the Freebsd forums > http://forums.freebsd.org/showthread.php?t=3D41779 with the same error = and if > I do the same diagnostic steps of >=20 > truss install -d -g wheel ~/testdirectory >=20 > I find an error of >=20 > lstat("/usr/local/etc/libmap.d",0x7fffffffb990) ERR#2 'No such file= or > directory' >=20 > Any suggestions? Thank you for the help thus far. The 'undefined symbol' error means you have a binary which is somehow not dynamically linking against the shared libraries it was compiled to use. As install(1) has pretty simple dynamic library usage -- just libmd and libc: # ldd /usr/bin/install /usr/bin/install: libmd.so.5 =3D> /lib/libmd.so.5 (0x800822000) libc.so.7 =3D> /lib/libc.so.7 (0x800a33000) =2E.. and libmd.so just contains code for computing various checksums, nothing to do with groups and GIDs. This suggests that your libc.so is somehow incompatible with your /usr/bin/install. Which really shouldn't be the case given that you'ld previously used freebsd-update to upgrade your userland to 9.2-RELEASE. Things to double check: * you haven't been faffing about with /etc/libmap.conf -- that file or any file it includes should basically be empty except in quite unusual circumstances. Remember folks: libmap is not your solution of choice. It's what you turn to when there are no other viable alternatives. * Your freebsd-update really has been updating the source tree you attempted to upgrade from. Check /etc/freebsd-update.conf. By default it contains: # Components of the base system which should be kept updated. Components src world kernel If you don't have src in there your buildworld procedure will at best be trying to take you back down to 9.1-RELEASE-p???, and at worst trying to create some unholy mixture of 9.2 kernel with earlier bits of the system. I think you should be able to recover to a system managed via freebsd-update by something like: # vi /etc/freebsd-update.conf { Make sure you're getting 'src world kernel' components as shown above } # freebsd-update fetch # freebsd-update install but I haven't tested that so ICBW. In any case, this should get you back to the state where you have a 9.2-RELEASE world but your modified 9.1-RELEASE kernel. If you still need a custom kernel then you can build and install it like so: # cd /usr/src # make KERNCONF=3DMYKERNEL buildkernel # make KERNCONF=3DMYKERNEL installkernel and reboot. Otherwise, I'm not sure exactly how you'ld revert from a custom kernel to the standard generic kernel you'ld normally get via freebsd-update. What I'd try is moving aside my customized kernel and re-running freebsd-update: # cd /boot # mv kernel kernel-MYKERNEL # freebsd-update install If that creates a new /boot/kernel and populates with a new kernel and many loadable modules then you're golden. If not, move your saved kernel back into place (mv kernel-MYKERNEL kernel) and ask here again. The 'no such file or directory' error for /usr/local/etc/libmap.d thing is a false problem: /usr/local/etc/libmap.d is an optional directory -- all you are seeing is install(1) trying to open it and discovering that it doesn't exist. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matthew@infracaninophile.co.uk --ceAv3LwdtPj4UvpQ2fNx6baVwuCsAQLj7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iKYEARECAGYFAlJRFMtfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl bnBncC5maWZ0aGhvcnNlbWFuLm5ldEI1NTUyQTk2Mjc0RUQyNDg1NzM0MEVCNEYw QzhFNEU3NjBBRTkwOEMACgkQ8Mjk52CukIwXPACgiFteys0VL+a6zoCZW9fN0JOu auAAnA+yVYRD9d+p6wOVzJKLJxj7byec =lWhq -----END PGP SIGNATURE----- --ceAv3LwdtPj4UvpQ2fNx6baVwuCsAQLj7--