Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180675 - dev-python/mysql-python fails when mysql is compiled with USE="static"
Summary: dev-python/mysql-python fails when mysql is compiled with USE="static"
Status: RESOLVED DUPLICATE of bug 88360
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-02 23:35 UTC by Thomas Anderson (tanderson) (RETIRED)
Modified: 2007-06-03 07:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2007-06-02 23:35:43 UTC
>>> Compiling source in /var/tmp/portage/dev-python/mysql-python-1.2.1_p2/work/MySQL-python-1.2.1_p2 ...
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.4
copying _mysql_exceptions.py -> build/lib.linux-x86_64-2.4
creating build/lib.linux-x86_64-2.4/MySQLdb
copying MySQLdb/__init__.py -> build/lib.linux-x86_64-2.4/MySQLdb
copying MySQLdb/converters.py -> build/lib.linux-x86_64-2.4/MySQLdb
copying MySQLdb/connections.py -> build/lib.linux-x86_64-2.4/MySQLdb
copying MySQLdb/cursors.py -> build/lib.linux-x86_64-2.4/MySQLdb
copying MySQLdb/release.py -> build/lib.linux-x86_64-2.4/MySQLdb
copying MySQLdb/times.py -> build/lib.linux-x86_64-2.4/MySQLdb
creating build/lib.linux-x86_64-2.4/MySQLdb/constants
copying MySQLdb/constants/__init__.py -> build/lib.linux-x86_64-2.4/MySQLdb/constants
copying MySQLdb/constants/CR.py -> build/lib.linux-x86_64-2.4/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-2.4/MySQLdb/constants
copying MySQLdb/constants/ER.py -> build/lib.linux-x86_64-2.4/MySQLdb/constants
copying MySQLdb/constants/FLAG.py -> build/lib.linux-x86_64-2.4/MySQLdb/constants
copying MySQLdb/constants/REFRESH.py -> build/lib.linux-x86_64-2.4/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py -> build/lib.linux-x86_64-2.4/MySQLdb/constants
running build_ext
building '_mysql' extension
creating build/temp.linux-x86_64-2.4
x86_64-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=athlon64 -O2 -pipe -fPIC -I/usr/include/mysql -I/usr/include/python2.4 -c _mysql.c -o build/temp.linux-x86_64-2.4/_mysql.o -DHAVE_ERRNO_AS_DEFINE=1 -Dversion_info="(1,2,1,'final',2)" -D__version__="1.2.1_p2"
x86_64-pc-linux-gnu-gcc -pthread -shared -march=athlon64 -O2 -pipe build/temp.linux-x86_64-2.4/_mysql.o -L/usr/lib64/mysql -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lpthread -o build/lib.linux-x86_64-2.4/_mysql.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/mysql/libmysqlclient_r.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/lib64/mysql/libmysqlclient_r.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1

!!! ERROR: dev-python/mysql-python-1.2.1_p2 failed.
Call stack:
  ebuild.sh, line 1615:   Called dyn_compile
  ebuild.sh, line 972:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  ebuild.sh, line 1305:   Called distutils_src_compile
  distutils.eclass, line 38:   Called die

!!! compilation failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/log/portage/dev-python:mysql-python-1.2.1_p2:20070602-233450.log'.



Reproducible: Always

Steps to Reproduce:
1.USE="static" emerge dev-db/mysql
2.emerge mysql-python
3. Die!

Actual Results:  
Install blows up.

Expected Results:  
It works? Argh, I hate these questions!
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-06-03 07:56:24 UTC

*** This bug has been marked as a duplicate of bug 88360 ***