Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#457915: libmysqlclient15-dev: relocation R_X86_64_32S against `client_errors'...recompile with -fPIC

9 views
Skip to first unread message

Marc J. Driftmeyer

unread,
Dec 27, 2007, 2:10:07 AM12/27/07
to
Package: libmysqlclient15-dev
Version: 5.0.51-1
Severity: important

Compiling against KDE 4 Trunk revealed that the amd64 build produces bad
value reads in /usr/lib/mysql/libmysqld.a

To be exact:

Linking CXX shared module ../../../lib/libqsqlmysqlembedded.so
/usr/bin/ld: /usr/lib/mysql/libmysqld.a(client.o): relocation
R_X86_64_32S against `client_errors' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/mysql/libmysqld.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [lib/libqsqlmysqlembedded.so] Error 1
make[1]: ***
[akonadi/server/sqlplugin/CMakeFiles/qsql_mysql_embedded.dir/all] Error
2
make[1]: *** Waiting for unfinished jobs...

Package KDEPIM for KDE 4.0 build fails for both 5.0 and 5.1
experimental.

Suggestion: Build packages explicitly with the -fPIC flag.

-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.23-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libmysqlclient15-dev depends on:
ii libc6 2.7-5 GNU C Library: Shared libraries
ii libmysqlclient15off 5.0.51-1 MySQL database client library
ii zlib1g-dev 1:1.2.3.3.dfsg-8 compression library - development

libmysqlclient15-dev recommends no packages.

-- no debconf information

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Monty Taylor

unread,
Dec 27, 2007, 12:50:11 PM12/27/07
to
I've been working on this bug upstream where it's causing problems with
libndbclient. We have a fix around, but it's just for libndbclient. I'm
glad to see there's a larger issue, and I'll include this on the
upstream bug, which is http://bugs.mysql.com/bug.php?id=29791

Monty

> _______________________________________________
> pkg-mysql-maint mailing list
> pkg-mys...@lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-mysql-maint

Julien Cristau

unread,
Jan 4, 2008, 7:30:21 AM1/4/08
to
reopen 457915
kthxbye

On Fri, Jan 4, 2008 at 10:53:21 +0000, Debian Bug Tracking System wrote:

> [ Norbert Tretkowski ]
> * Add -fPIC to CFLAGS to allow other packages to be built against
> libmysqld.a on amd64. (closes: #457915)

Quoting policy:
As to the static libraries, the common case is not to have relocatable
code, since there is no benefit, unless in specific cases; therefore
the static version must not be compiled with the `-fPIC' flag. Any
exception to this rule should be discussed on the mailing list
_debia...@lists.debian.org_, and the reasons for compiling with
the `-fPIC' flag must be recorded in the file `README.Debian'. [3]

If you need a libmysqld which can be used by shared objects, then please
add libmysqld_pic.a in addition to the non-PIC version.

Cheers,
Julien

0 new messages