From owner-freebsd-current@FreeBSD.ORG Sun Apr 8 04:24:10 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B794016A405 for ; Sun, 8 Apr 2007 04:24:10 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.freebsd.org (Postfix) with ESMTP id 7CACC13C455 for ; Sun, 8 Apr 2007 04:24:10 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.ntplx.net (8.14.0/8.14.0/NETPLEX) with ESMTP id l3847mTn021798; Sun, 8 Apr 2007 00:07:49 -0400 (EDT) X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-3.0 (mail.ntplx.net [204.213.176.10]); Sun, 08 Apr 2007 00:07:49 -0400 (EDT) Date: Sun, 8 Apr 2007 00:07:48 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Vladimir Kushnir In-Reply-To: <20070407223046.T7086@kushnir1.kiev.ua> Message-ID: References: <20070407223046.T7086@kushnir1.kiev.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-current@freebsd.org Subject: Re: Something's wrong with ld-elf.so.1 when SYMVER_ENABLED=true X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Apr 2007 04:24:10 -0000 On Sun, 8 Apr 2007, Vladimir Kushnir wrote: > Hi, > Here's description. It's amd64-CURRENT. World was rebuilt last night (with > SYMVER_ENABLED=true set in /etc/make.conf long ago). After re-installation, > sudenly everything's falling on its face with segfaults, with "pam_rootok.so > not found", with "Can't allocate initial thread" and so on. After ld-elf.so.1 > and ld-elf32.so.1 were replaced with old ones (from Jan 27 :-() everything > went and still goes on with no problems. > > Indeed, as simple listing (and strings) show, in new (installed => stripped) > ld-elf.so.1 (180 kB) vs old ld-elf.so.1.old (224 kB) lots of symbols (like > _DYNAMIC or .rtld_start, for one) are just absent. I had the same problem and disabled symbol versioning in src/libexec/rtld-elf/Makefile. This was on i386 and caused pam to fail and not allow any logins. login: in openpam_load_module(): no pam_nologin.so found login: pam_start(): system error -- DE Index: Makefile =================================================================== RCS file: /opt/FreeBSD/cvs/src/libexec/rtld-elf/Makefile,v retrieving revision 1.37 diff -u -r1.37 Makefile --- Makefile 3 Apr 2007 19:01:06 -0000 1.37 +++ Makefile 7 Apr 2007 16:04:14 -0000 @@ -21,6 +21,7 @@ DPADD= ${LIBC_PIC} LDADD= -lc_pic +.if 0 .if defined(SYMVER_ENABLED) SYMBOL_MAPS= ${.CURDIR}/Symbol.map VERSION_DEF= ${.CURDIR}/Versions.def @@ -33,6 +34,7 @@ @@ -33,6 +34,7 @@ SYMBOL_MAPS+= ${.CURDIR}/${MACHINE_ARCH}/Symbol.map .endif .endif +.endif .if exists(${.CURDIR}/${MACHINE_ARCH}/Makefile.inc) .include "${.CURDIR}/${MACHINE_ARCH}/Makefile.inc"