PDA

View Full Version : relocation R_X86_64_PC32 ...


wiszmaster
5th April 2005, 04:38 AM
I'm trying to get courier-authlib for courier-imap installed ..... what a PAIN INTHE ASS!

now that i recompiled vpopmail with CFLAGS=-fPIC ..... i get the following error ...


Compiling authvchkpw.c
authvchkpw.c: In function `auth_vchkpw_changepass':
authvchkpw.c:142: warning: passing arg 1 of `parse_email' discards qualifiers from pointer target type
Compiling authvchkpwlib.c
Compiling preauthvchkpw.c
preauthvchkpw.c: In function `auth_vchkpw_pre':
preauthvchkpw.c:67: warning: passing arg 1 of `parse_email' discards qualifiers from pointer target type
preauthvchkpw.c:141: warning: passing arg 3 of `vset_lastauth' discards qualifiers from pointer target type
Linking libauthvchkpw.la
/usr/bin/ld: /home/vpopmail/lib/libvpopmail.a(cdb_seek.o): relocation R_X86_64_PC32 against `read@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libauthvchkpw.la] Error 1
make[2]: Leaving directory `/downloads/qmailrocks/courier-authlib-0.55'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/downloads/qmailrocks/courier-authlib-0.55'
make: *** [all] Error 2
[root@swfl courier-authlib-0.55]#






can ANYBODY help me here?! please?

rarue
13th April 2005, 08:42 PM
I have no specific experience with the courier-imap package per se, but I have run up against the ld error about R_X86_64_PC32 in an entirely different context.

No, I didn't solve the problem. But my guess is that you're trying to link together some 64 bit libraries with 32 bit libraries.

I would attempt to build courier-authlib and everything it depends upon using CC="gcc -m64 -fPIC" to try to coerce the build to link properly.

I promise no guarantees or expertise, just which straw I would grasp under similar circumstances.

Good luck.