mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* pam_debug.o: gp-relative relocation against dynamic symbol _pam_token_returns
@ 2003-12-17  4:50 Will L G
  2003-12-17 18:46 ` Thorsten Kranzkowski
  0 siblings, 1 reply; 2+ messages in thread
From: Will L G @ 2003-12-17  4:50 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 850 bytes --]

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
/usr/bin/ld: dynamic/pam_debug.o: gp-relative relocation against dynamic
symbol _pam_token_returns
collect2: ld returned 1 exit status
make[2]: *** [pam_debug.so] Error 1
make[1]: *** [all] Error 1
make: *** [modules] Error 2

I've included the pertinent information supplied at
(http://www.kernel.org/pub/linux/docs/lkml/reporting-bugs.html), the actual
error msg generated and system information. One other thing, I've tried
different versions of "Binutils" but the error persists. I've even tried
different versions of GCC but unfortunately GCC 2.96 was considered
'unacceptable' by the config script.  Thank you, Will L G

[-- Attachment #2: PAM-ERROR.log.tgz --]
[-- Type: application/x-compressed, Size: 1638 bytes --]

[-- Attachment #3: systeminfo.tgz --]
[-- Type: application/x-compressed, Size: 903 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: pam_debug.o: gp-relative relocation against dynamic symbol _pam_token_returns
  2003-12-17  4:50 pam_debug.o: gp-relative relocation against dynamic symbol _pam_token_returns Will L G
@ 2003-12-17 18:46 ` Thorsten Kranzkowski
  0 siblings, 0 replies; 2+ messages in thread
From: Thorsten Kranzkowski @ 2003-12-17 18:46 UTC (permalink / raw)
  To: Will L G; +Cc: linux-kernel

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] |

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-12-17 18:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-17  4:50 pam_debug.o: gp-relative relocation against dynamic symbol _pam_token_returns Will L G
2003-12-17 18:46 ` Thorsten Kranzkowski

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®