From owner-freebsd-hackers Mon May 31 12:11:29 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from wopr.caltech.edu (wopr.caltech.edu [131.215.240.222]) by hub.freebsd.org (Postfix) with ESMTP id 4D98014EA9 for ; Mon, 31 May 1999 12:11:24 -0700 (PDT) (envelope-from mph@wopr.caltech.edu) Received: (from mph@localhost) by wopr.caltech.edu (8.9.3/8.9.1) id MAA29335; Mon, 31 May 1999 12:11:23 -0700 (PDT) (envelope-from mph) Date: Mon, 31 May 1999 12:11:22 -0700 From: Matthew Hunt To: John Polstra Cc: hackers@freebsd.org Subject: Re: PAM: Undefined symbols at runtime Message-ID: <19990531121122.A29277@wopr.caltech.edu> References: <19990529151511.A34375@wopr.caltech.edu> <199905310111.SAA02306@vashon.polstra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <199905310111.SAA02306@vashon.polstra.com>; from John Polstra on Sun, May 30, 1999 at 06:11:51PM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, May 30, 1999 at 06:11:51PM -0700, John Polstra wrote: > > My problem is that login fails, due to undefined symbols in the PAM > > modules: > > I don't know what's going on with your system, but something is messed > up. Maybe you're trying to mix and match a.out and ELF files. Try > running "file" on /usr/bin/login as well as your libpam and pam > modules. Upon further investigation, I read the the dlopen(8) manpage and came across: # NOTES # ELF executables need to be linked using the -export-dynamic option to # ld(1) for symbols defined in the executable to become visible to dlsym(). If I add "-export-dynamic" to LDADD in usr.bin/login/Makefile, everything is groovy. I've noticed that dynamic linking in Perl also doesn't work for me, likely for the same reason. I haven't tried rebuilding perl with "-export-dynamic" yet, though. So, the question now is: Why do I need "-export-dynamic", when evidently nobody else does? Matt -- Matthew Hunt * Inertia is a property http://www.pobox.com/~mph/ * of matter. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message