Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 116032 - dev-lang/php-5.0.5-r4 compilation fails at configuration with mysql error
Summary: dev-lang/php-5.0.5-r4 compilation fails at configuration with mysql error
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-19 05:26 UTC by Mathieu Z
Modified: 2005-12-19 11:00 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 Mathieu Z 2005-12-19 05:26:33 UTC
emerge =dev-lang/php-5* fails with the following msg:
...
checking for mhash support... yes
checking whether to include mime_magic support... no
checking for MING support... no
checking for mnoGoSearch support... no
checking for msession support... no
checking for mSQL support... yes
checking mSQL version... 1.0
checking for MSSQL support via FreeTDS... yes
checking for dnet_addr in -ldnet_stub... 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.
Comment 1 Mathieu Z 2005-12-19 05:28:06 UTC
# emerge info
Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r3, 2.6.14-gentoo-r2 i686)
=================================================================
System uname: 2.6.14-gentoo-r2 i686 Intel(R) Pentium(R) M processor 1.70GHz
Gentoo Base System version 1.12.0_pre11
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.4.3-r4, 1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.utf-8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X aalib acl acpi aim alsa apache2 apm arts audiofile avi bash-completion berkdb bitmap-fonts bzip2 cdr cjk crypt cups curl dba divx4linux doc dvb dvd dvdr eds emacs emacs-w3 emboss encode esd exif expat fam flac foomaticdb fortran freetds ftp gd gdbm gif glut gmp gnome gnutls gphoto2 gpm gps gstreamer gtk gtk2 gtkhtml guile hal howl icc icq idn imagemagick imap imlib immqt-bc inifile innodb ipv6 jabber java joystick jpeg junit kde kdeenablefinal kdexdeltas lcms ldap libg++ libgda libwww lirc mad mhash mikmod mime mng motif mozilla mp3 mpeg mpi msn msql mssql mule mysql mysqli nas ncurses nls nptl oci8 odbc ogg oggvorbis openal opengl oscar oss pam pcmcia pcre pdflib perl php plotutils png pnp posix postgres python qt quicktime readline real recode ruby samba scanner sdl slang sockets socks5 solid spell spl sse sse2 ssl subversion svg svga tcltk tcpd tetex tidy tiff truetype truetype-fonts trusted type1-fonts udev unicode usb vhosts videos vorbis wifi wmf xine xinerama xml xml2 xmlrpc xmms xpm xsl xslt xv xvid yahoo zip zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS

USE flag for php-5
[ebuild  N    ] dev-lang/php-5.0.5-r4  -adabas -apache +apache2 -bcmath +berkdb -birdstep +bzip2 -calendar -cdb +cgi +cjk +cli +crypt -ctype +curl -curlwrappers -db2 +dba -dbase -dbmaker -debug -discard-path +doc -empress -empress-bcs -esoob +exif -fdftk -filepro -firebird -flatfile +force-cgi-redirect -frontbase +ftp +gd -gd-external +gdbm +gmp -hardenedphp -hyperwave-api -iconv +imap -informix +inifile -interbase -iodbc +ipv6 -java-external -kerberos +ldap -libedit -mcve -memlimit +mhash -ming -mnogosearch +msql +mssql +mysql +mysqli +ncurses +nls -oci8 -oci8-instant-client +odbc -oracle7 -ovrimos -pcntl +pcre -pdo-external -pear -pfpro -pic +posix +postgres -qdbm +readline -recode -sapdb -sasl -session -sharedext -sharedmem -simplexml -snmp -soap +sockets +solid +spell +spl -sqlite +ssl -sybase -sybase-ct -sysvipc +threads +tidy +tiff -tokenizer +truetype -wddx +xml2 +xmlrpc +xpm +xsl -yaz +zip +zlib
Comment 2 Mathieu Z 2005-12-19 05:44:49 UTC
config.log:

configure:77069: checking for mysql_close in -lmysqlclient
configure:77099: gcc -o conftest -O2 -march=pentium-m -pipe -fomit-frame-pointer
 -pthread  -D_REENTRANT -L/usr/lib  -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib -
Wl,-rpath,/usr/local/Hughes/lib -L/usr/local/Hughes/lib conftest.c -lmysqlclient
  -lsybdb -lmsql -lmhash -lmcrypt -lltdl -lldap -llber -lcrypt -lpam -lgmp -lt1
-lfreetype -lX11 -lXpm -lpng -lz -ljpeg -ldb-4.2 -ldb-4.2 -lgdbm -lcurl -lbz2 -l
z -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lssl -lcrypto -ldl -lcurl -lgnutls -l
gcrypt -lgpg-error -lz -lidn -ldl -lz -lxml2 -lz -lm -lssl -lcrypto -ldl >&5
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld: canno
t find -lmsql
collect2: ld returned 1 exit status
configure:77105: $? = 1
configure: failed program was:
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char mysql_close ();

int main (){
  mysql_close ();

  return 0;
}

similar error for mysql_error
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-12-19 11:00:46 UTC
Please, *attach* the complete config.log and reopen then...