Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129400 - dev-lang/php-5.1.2 will not install with msql and mysql in use flags
Summary: dev-lang/php-5.1.2 will not install with msql and mysql in use flags
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
: 129401 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-09 17:46 UTC by anthony
Modified: 2006-04-10 00:33 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 anthony 2006-04-09 17:46:07 UTC
msql-3.7 is installed manually. mysql 5.0.19 is installed via emerge.


Portage 2.1_pre7-r3 (default-linux/amd64/2005.0, gcc-3.4.6, glibc-2.4-r1, 2.6.13-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.13-gentoo-r2 x86_64 AMD Opteron(tm) Processor 246
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.3.5-r2, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Os -march=k8 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -march=k8 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo ftp://planetmirror.com/pub/gentoo/  http://gentoo.binarycompass.org  http://mirror.gentoo.ru/pub/mirror/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
MAKEOPTS="-j12"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="amd64 X acpi aim alsa apache2 apm avi berkdb bitmap-fonts bzlib caps cdb crypt cups curl dri eds emboss encode exim extensions fam flash foomaticdb fortran ftp gd gif gnome gnutls gpm gstreamer gtk gtk2 icq imagemagick imap imlib innodb ipv6 isdnlog ithreads jpeg kde lcms lzw lzw-tiff mbox ming mng mp3 mpeg msql mysql ncurses nls nptl nptlonly ogg oggvorbis opengl pam pdflib perl png postgres pppd python qt quicktime quotas readline sdl spell sqlite ssl sziptcltk tcpd theora threads tiff tokenizer truetype truetype-fonts type1-fonts usb vhosts xml xpm xsl xv xvid zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTDIR_OVERLAY

[root@home]:/etc/php$ emerge -pv =dev-lang/php-5.1.2

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-lang/php-5.1.2  USE="apache2 bcmath calendar cdb cgi crypt curl curlwrappers discard-path ftp gd iconv ipv6 memlimit mhash ming msql mysql ncurses nls postgres qdbm readline session sharedmem spell sqlite ssl tokenizer truetype vm-goto wddx xml xmlrpc xpm xsl zip zlib -apache -berkdb -bzip2 -cjk -cli -ctype -db2 -dbase -debug -doc -exif -fastbuild -flatfile -force-cgi-redirect -gd-external -gdbm -gmp -hardenedphp -hash -hyperwave-api -imap -inifile -interbase -iodbc -java-external -kerberos -ldap -libedit -mcve -mssql -mysqli -oci8 -odbc -pcntl -pcre -pdo -pdo-external -pic -posix -recode -reflection -sapdb -sasl -sharedext -simplexml -snmp -soap -sockets -spl -sysvipc -threads -tidy -vm-switch -xmlreader -xmlwriter -yaz" 0 kB 

Total size of downloads: 0 kB


checking mSQL version... 1.0
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... /var/run/mysqld/mysqld.sock
checking for MySQL UNIX socket location... /var/run/mysqld/mysqld.sock
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more information.

!!! ERROR: dev-lang/php-5.1.2 failed.
Call stack:
ebuild.sh, line 1526: Called dyn_compile
ebuild.sh, line 923: Called src_compile
php-5.1.2.ebuild, line 105: Called src_compile_normal
php-5.1.2.ebuild, line 218: Called php5_1-sapi_src_compile
php5_1-sapi.eclass, line 568: Called die


configure:75951: result: 1.0
configure:75959: checking for MSSQL support via FreeTDS
configure:75998: result: no
configure:76648: checking for MySQL support
configure:76687: result: yes
configure:76695: checking for specified location of the MySQL UNIX socket
configure:76713: result: /var/run/mysqld/mysqld.sock
configure:76755: checking for MySQL UNIX socket location
configure:76764: result: /var/run/mysqld/mysqld.sock
configure:76954: checking for mysql_close in -lmysqlclient
configure:76984: gcc -o conftest -I/usr/include -Os -march=k8 -fomit-frame-pointer -pipe -L/usr/lib64 -Wl,-O1 -Wl,
--enable-new-dtags -Wl,--sort-common -s -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/local/lib64
-L/usr/local/lib64 -Wl,-rpath,/usr/X11R6/lib64 -L/usr/X11R6/lib64 -Wl,-rpath,/lib -L/lib -Wl,-rpath,/usr/local/Hughes/lib
-L/usr/local/Hughes/lib conftest.c -lmysqlclient -lmsql -lming -lm -lmhash -lmcrypt -lltdl -lt1 -lfreetype -lX11 -lXpm
-lpng -lz -ljpeg -lqdbm -lcurl -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lssl -lcrypto -ldl -lcurl -lssl -lcrypto -ldl
-lssl -lcrypto -ldl -lz -lxml2 -lz -lm -lssl -lcrypto -ldl >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmsql
collect2: ld returned 1 exit status
configure:76990: $? = 1
configure: failed program was:
| /* confdefs.h. */ 



The only solution was to disable msql with -msql in the use flags. But I need msql and mysql.

I attempted to compile php manually (before emerging) in getting msql to work. I am getting the following error on compile.

/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/local/msql3/lib/libmsql.a(libmsql.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/msql3/lib/libmsql.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1 

Does that mean msql isn't 64bit compatable?
tx
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-09 23:56:00 UTC
*** Bug 129401 has been marked as a duplicate of this bug. ***
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-04-10 00:33:48 UTC
Attach the config.log here and reopen.