From: Thorsten Kranzkowski <dl8bcu@dl8bcu.de>
To: Will L G <diskman@kc.rr.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: pam_debug.o: gp-relative relocation against dynamic symbol _pam_token_returns
Date: Wed, 17 Dec 2003 18:46:54 +0000 [thread overview]
Message-ID: <20031217184654.A4279@Marvin.DL8BCU.ampr.org> (raw)
In-Reply-To: <001e01c3c459$49a66180$6401a8c0@zephyr>; from diskman@kc.rr.com on Tue, Dec 16, 2003 at 10:50:13PM -0600
On Tue, Dec 16, 2003 at 10:50:13PM -0600, Will L G wrote:
> When ever I attempt to compile Linux-Pam, I receive the following error
> immediately after running 'make':
>
> /usr/bin/ld: dynamic/pam_debug.o: gp-relative relocation against dynamic
> symbol _pam_token_returns
Always use '-fpic' in CFLAGS when compiling for shared objects (.so)
Otherwise (as in your case) the compiler is allowed to emit machine code
that may not work in shared objects.
When I was hit by this error, the offending library was istself linked to
another, static library. This isn't allowed either. IIRC my fix was compiling
that .a library with -fpic :)
Thorsten
--
| Thorsten Kranzkowski Internet: dl8bcu@dl8bcu.de |
| Mobile: ++49 170 1876134 Snail: Kiebitzstr. 14, 49324 Melle, Germany |
| Ampr: dl8bcu@db0lj.#rpl.deu.eu, dl8bcu@marvin.dl8bcu.ampr.org [44.130.8.19] |
prev parent reply other threads:[~2003-12-17 18:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-17 4:50 Will L G
2003-12-17 18:46 ` Thorsten Kranzkowski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031217184654.A4279@Marvin.DL8BCU.ampr.org \
--to=dl8bcu@dl8bcu.de \
--cc=diskman@kc.rr.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®