Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136677 - php 5.1.4 msql lib compile bug
Summary: php 5.1.4 msql lib compile bug
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 139927 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-13 09:42 UTC by Doktor
Modified: 2006-07-11 01:13 UTC (History)
2 users (show)

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 Doktor 2006-06-13 09:42:54 UTC
configure:76053: result: no
configure:76261: checking for mysql_error in -lmysqlclient
configure:76291: i686-pc-linux-gnu-gcc -o conftest -I/usr/include -mtune=pentium4 -O3 -pipe  -Wl,-rpath,/usr/lib/mysql -L/usr/lib/mysql -L/usr/lib -L/usr/lib  -Wl,-rpath,/usr/local/Hughes/lib -L/usr/local/Hughes/lib -Wl,-rpath,/usr -L/usr conftest.c -lmysqlclient  -lz -lsybdb -lmsql -lming -lm -lmhash -
Portage 2.1 (default-linux/x86/2006.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
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/gcc-config: 1.3.12-r6
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-mtune=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-mtune=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.uni-c.dk/pub/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 apm arts avi berkdb bitmap-fonts cli crypt dri eds emboss encode esd foomaticdb fortran gdbm gif gpm gstreamer imlib ipv6 isdnlog jpeg libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl ogg opengl oss pam pcre pdflib perl png pppd python quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev vorbis xml xmms xorg xv zlib elibc_glibc kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


When i try to install php 5.1.4 with msql lib i get error:

config.log:
lmcrypt -lltdl -lt1 -lfreetype -lpng -lz -ljpeg -ldb-4.2 -ldb-4.2 -lgdbm -lcurl -lbz2 -lz -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lssl -lcrypto -ldl -lcurl -lssl -lcrypto -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: cannot find -lmsql
collect2: ld returned 1 exit status
configure:76297: $? = 1
configure: failed program was:
Comment 1 Doktor 2006-06-13 09:51:59 UTC
(In reply to comment #0)
> configure:76053: result: no
> configure:76261: checking for mysql_error in -lmysqlclient
> configure:76291: i686-pc-linux-gnu-gcc -o conftest -I/usr/include
> -mtune=pentium4 -O3 -pipe  -Wl,-rpath,/usr/lib/mysql -L/usr/lib/mysql
> -L/usr/lib -L/usr/lib  -Wl,-rpath,/usr/local/Hughes/lib -L/usr/local/Hughes/lib
> -Wl,-rpath,/usr -L/usr conftest.c -lmysqlclient  -lz -lsybdb -lmsql -lming -lm
> -lmhash -
> Portage 2.1 (default-linux/x86/2006.0, gcc-3.4.4, glibc-2.3.5-r2,
> 2.6.15-gentoo-r1 i686)
> =================================================================
> System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
> Gentoo Base System version 1.6.14
> dev-lang/python:     2.4.2
> dev-python/pycrypto: 2.0.1-r5
> dev-util/ccache:     [Not Present]
> dev-util/confcache:  [Not Present]
> 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/gcc-config: 1.3.12-r6
> sys-devel/libtool:   1.5.22
> virtual/os-headers:  2.6.11-r2
> ACCEPT_KEYWORDS="x86"
> AUTOCLEAN="yes"
> CBUILD="i686-pc-linux-gnu"
> CFLAGS="-mtune=pentium4 -O3 -pipe"
> CHOST="i686-pc-linux-gnu"
> CONFIG_PROTECT="/etc"
> CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
> CXXFLAGS="-mtune=pentium4 -O3 -pipe"
> DISTDIR="/usr/portage/distfiles"
> FEATURES="autoaddcvs autoconfig ccache distcc distlocks metadata-transfer
> sandbox sfperms strict"
> GENTOO_MIRRORS="http://mirror.uni-c.dk/pub/gentoo http://distfiles.gentoo.org
> http://www.ibiblio.org/pub/Linux/distributions/gentoo"
> MAKEOPTS="-j2"
> PKGDIR="/usr/portage/packages"
> PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
> --force --whole-file --delete --delete-after --stats --timeout=180
> --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
> PORTAGE_TMPDIR="/var/tmp"
> PORTDIR="/usr/portage"
> SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
> USE="x86 apm arts avi berkdb bitmap-fonts cli crypt dri eds emboss encode esd
> foomaticdb fortran gdbm gif gpm gstreamer imlib ipv6 isdnlog jpeg libg++ libwww
> mad mikmod motif mp3 mpeg ncurses nls nptl ogg opengl oss pam pcre pdflib perl
> png pppd python quicktime readline reflection sdl session spell spl ssl tcpd
> truetype truetype-fonts type1-fonts udev vorbis xml xmms xorg xv zlib
> elibc_glibc kernel_linux userland_GNU"
> Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
> LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
> 
> 
> When i try to install php 5.1.4 with msql lib i get error:
> 
> config.log:
> lmcrypt -lltdl -lt1 -lfreetype -lpng -lz -ljpeg -ldb-4.2 -ldb-4.2 -lgdbm -lcurl
> -lbz2 -lz -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lssl -lcrypto -ldl -lcurl
> -lssl -lcrypto -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:
> cannot find -lmsql
> collect2: ld returned 1 exit status
> configure:76297: $? = 1
> configure: failed program was:
> 

Sorry:
If i try to compile with msql and mysql support for php.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-06-13 09:57:23 UTC
Not a supported extension, sorry. There's is a big fat flashy warning in the ebuild to not file bugs about unsupported extensions.

Feel free to reopen if you have a patch. Thanks.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-06-13 09:58:42 UTC
And - in case you did actually miss it, you actually need to install msql _prior_ to emerging PHP, it's not provided in portage.
Comment 4 Doktor 2006-06-13 10:11:00 UTC
(In reply to comment #3)
> And - in case you did actually miss it, you actually need to install msql
> _prior_ to emerging PHP, it's not provided in portage.
> 

Hm, but if i try to compile from sources there is no problem. So i think its a bug. I don`t understand why you wont help me to resolve it.

I install:
--with-mssql[=DIR]      Include MSSQL-DB support.  DIR is the FreeTDS home
                          directory, defaults to /usr/local/freetds

Searching...
[ Results for search key : FreeTDS ]
[ Applications found : 1 ]

*  dev-db/freetds
      Latest version available: 0.62.3
      Latest version installed: 0.62.3
      Size of files: 1,158 kB
      Homepage:      http://www.freetds.org/
      Description:   Tabular Datastream Library
      License:       GPL-2


Before i post bug.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-06-13 10:15:01 UTC
(In reply to comment #4)
> Hm, but if i try to compile from sources there is no problem. So i think its a
> bug. I don`t understand why you wont help me to resolve it.

Because it's explicitely declared as an unsupported extension.

> *  dev-db/freetds
>       Latest version available: 0.62.3
>       Latest version installed: 0.62.3
>       Size of files: 1,158 kB
>       Homepage:      http://www.freetds.org/
>       Description:   Tabular Datastream Library
>       License:       GPL-2

Eh? What does this have in common w/ USE=msql? msql != mssql

$ euse -i msql
global use flags (searching: msql)
************************************************************

[-    ] msql - Adds support for the MSQL database server

$ euse -i mssql
global use flags (searching: mssql)
************************************************************

[-    ] mssql - Adds support for Microsoft SQL Server database
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-07-10 15:00:13 UTC
*** Bug 139927 has been marked as a duplicate of this bug. ***
Comment 7 Doktor 2006-07-11 01:13:24 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > Hm, but if i try to compile from sources there is no problem. So i think its a
> > bug. I don`t understand why you wont help me to resolve it.
> 
> Because it's explicitely declared as an unsupported extension.
> 
> > *  dev-db/freetds
> >       Latest version available: 0.62.3
> >       Latest version installed: 0.62.3
> >       Size of files: 1,158 kB
> >       Homepage:      http://www.freetds.org/
> >       Description:   Tabular Datastream Library
> >       License:       GPL-2
> 
> Eh? What does this have in common w/ USE=msql? msql != mssql
> 
> $ euse -i msql
> global use flags (searching: msql)
> ************************************************************
> 
> [-    ] msql - Adds support for the MSQL database server
> 
> $ euse -i mssql
> global use flags (searching: mssql)
> ************************************************************
> 
> [-    ] mssql - Adds support for Microsoft SQL Server database
> 

Oh tnhx. It`s my mistake.