Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#14250 - [libmysqlclient] fail on getting PIC static libs on x86_64

Attached to Project: Arch Linux
Opened by Maik Beckmann (Salamander1978) - Wednesday, 15 April 2009, 09:19 GMT
Last edited by Tobias Powalowski (tpowa) - Saturday, 18 April 2009, 18:21 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Douglas Soares de Andrade (dsa)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The PKGBUILD contains:
{{{
#PIC
...
export CFLAGS="-fPIC ${CFLAGS}"
}}}
which gives me the impression this package wants to solve the isse amarok2 two has by linking a static library into
a shared one (which is a bad idea anyway, but not of arch's business).

amarok2-devel form aur fails with
{{{
[ 85%] /usr/bin/ld: /usr/lib/mysql/libmysqld.a(net_serv.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
}}}
FAIL :)

Additional info:
* package version(s)
libmysqlclient-5.1.33-1

Steps to reproduce:
- run a x86_64 box and try to compile amarok2
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Saturday, 18 April 2009, 18:21 GMT
Reason for closing:  Fixed
Comment by Maik Beckmann (Salamander1978) - Wednesday, 15 April 2009, 09:22 GMT
This changes to PKGBUILD (in pseudo diff notation :P)
{{{
export CFLAGS="-fPIC ${CFLAGS}"
+ export CXXFLAGS="-fPIC ${CXXFLAGS}"
...
- --with-embedded-server --with-libwrap
+ --with-embedded-server --with-libwrap --with-pic
}}}
fixe it.

-- Maik
Comment by Pierre Schmitz (Pierre) - Wednesday, 15 April 2009, 09:48 GMT
Btw: fPIC is not needed at all; Amarok2 builds its own mysql server to link to. So "export CFLAGS="-fPIC ${CFLAGS}"" can be removed anyway.
Comment by Maik Beckmann (Salamander1978) - Wednesday, 15 April 2009, 10:07 GMT
Pierre, I took a look at the cmake files an the README shiped with amarok. There mysql compiled as PIC is stated as a requirement. Do you mean there are PKGBUIDs around which manage to download and compile the mysql stuff?
Comment by Pierre Schmitz (Pierre) - Wednesday, 15 April 2009, 18:19 GMT
Yes, at least the PKGBUILD tpowa should me last time builds its own minimal mysql with pic. So this is not needed in the mysql package (as it might decrease performance etc.)
Comment by Denis A. Altoe Falqueto (denisfalqueto) - Thursday, 16 April 2009, 00:05 GMT
Amarok2.1 beta1 links against libmysqlclient now, so this is important. Amarok2.0.2 doesn't work in x86_64 with mysql 5.1.33, so the only hope for amarok is the new beta and the fixed version of mysqlclient.
Comment by Tobias Powalowski (tpowa) - Friday, 17 April 2009, 09:52 GMT
i didn't get a working amarok 2.1beta up to now, will do some research, i guess mysql is too new.
Comment by Tobias Powalowski (tpowa) - Saturday, 18 April 2009, 18:20 GMT
ok amarok 2.x fixed expect it in extra now :)

Loading...