David writes:



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.

So a mysql compile problem?

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


So mysql is really _not_ compiled with -fPIC? But is says in the mysql
release notes that it is... darn... so at this stage I'm looking for a
version of mysql compiled with -fPIC (shared library support)?

How about one that actually _comes_ with Fedora, instead of one downloaded from some mysterious web site somewhere?

There's a perfectly working, valid set of MySQL RPMs that comes with Fedora, so why exactly are you looking for something, somewhere else, which you already have?

Attachment: pgpQEAcBQQJa1.pgp
Description: PGP signature

Reply via email to