David Branford writes:

Hi all,

I am unable to compile courier-authlib 0.58 under fc4 on x86_64 (amd64). I
receive the messages:

Linking libauthmysql.la
/usr/bin/ld: /usr/lib/libmysqlclient.a(libmysql.o): relocation R_X86_64_32
against `a local symbol' can not be used when making a shared object;
recompile with -fPIC
/usr/lib/libmysqlclient.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
gmake[2]: *** [libauthmysql.la] Error 1

I have the latest version of mysql (5.0.17-1) installed from generic rpm
for x86_64, and in the release notes it says that mysql is compiled with
the -fPIC parameter.

But you're linking against the static library, libmysqlclient.a. -fPIC is only used to build shared libraries.

Has anybody else encountered this problem? I have tried everything I can
think of, and some things I couldn't (thanks to the shupp toaster mailing
list members :)) and I can't get past this error. It almost looks as
though the mysql build itself is lacking compilation with the -fPIC
parameter.

Correct.

Attachment: pgpzfe6WST6R9.pgp
Description: PGP signature

Reply via email to