Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 121190 - dev-lang/php-5.0.5-r5 failed: libgds, libib_util or libfbclient not found!
Summary: dev-lang/php-5.0.5-r5 failed: libgds, libib_util or libfbclient not found!
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
: 124034 124509 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-02-01 08:47 UTC by Carsten Lohrke (RETIRED)
Modified: 2006-03-12 05:51 UTC (History)
2 users (show)

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


Attachments
config.log (config.log,242.45 KB, text/plain)
2006-02-01 15:17 UTC, Carsten Lohrke (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Lohrke (RETIRED) gentoo-dev 2006-02-01 08:47:24 UTC
checking for InterBase support... yes
checking for isc_detach_database in -lfbclient... no
checking for isc_detach_database in -lgds... no
checking for isc_detach_database in -lib_util... no
configure: error: libgds, libib_util or libfbclient not found! Check config.log for more information.

!!! ERROR: dev-lang/php-5.0.5-r5 failed.


Beside that it fails (I have Firebird 1.5.3 installed.) it is the case that the configure script is autodetecting it, instead obeying the "-interbase" use flag. It's also the question why the flag is named interbase while we have a global firebird use flag.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-02-01 08:52:52 UTC
(In reply to comment #0)
> It's also the question why the flag is named interbase while we have a
> global firebird use flag.

That's very simple - firebird != interbase. You need *commercial* interbase for this to compile. As you can notice, there are both firebird and interbase use flags.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-02-01 08:58:12 UTC
Also, please attach config.log, messages given by php are ofter way off track...
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-02-01 11:07:52 UTC
Attach config.log and reopen then...
Comment 4 Carsten Lohrke (RETIRED) gentoo-dev 2006-02-01 15:17:12 UTC
Jakub, please do not resolve to needinfo within hours. It's not worth the hassle.
Comment 5 Carsten Lohrke (RETIRED) gentoo-dev 2006-02-01 15:17:58 UTC
Created attachment 78683 [details]
config.log
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-02-01 15:56:23 UTC
> /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../crt1.o: In function `_start':
> init.c:(.text+0x18): undefined reference to `main'

I'd say your toolchain is kinda screwed...
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-02-02 17:05:12 UTC
Not a php bug, compiles fine here. Your broken gcc causes all the firefird checks to fail.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-02-25 00:09:11 UTC
*** Bug 124034 has been marked as a duplicate of this bug. ***
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-03-01 08:45:40 UTC
*** Bug 124509 has been marked as a duplicate of this bug. ***
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-03-01 08:46:50 UTC
Reopen and assign to toolchain guys.
Comment 11 SpanKY gentoo-dev 2006-03-01 09:00:55 UTC
has nothing to do with the toolchain, read the config.log file and you can clearly see the error

configure:62045: gcc -o conftest -O2 -march=athlon-xp -pipe -fforce-addr -mfpmath=sse  -Wl,-rpath, -L  conftest.c -lfbclient  -lcrypt -lpam -lgmp -lt1 -lfreetype -lpng -lz -ljpeg -lcurl -lbz2 -lz -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lssl -lcrypto -ldl -lcurl -lidn -lssl -lcrypto -ldl -lz -lxml2 -lz -lm -lssl -lcrypto -ldl >&5

notice the missing path to -L
Comment 12 Luca Longinotti (RETIRED) gentoo-dev 2006-03-03 04:30:52 UTC
Indeed, tnx Spanky for noticing that! :)
I think the fix is relatively easy, could some of the people experiencing this bug test it?
You just need to open the PHP eclass for the version of PHP you want to compile:
/usr/portage/eclass/php4_4-sapi.eclass for PHP 4.3/4.4
/usr/portage/eclass/php5_0-sapi.eclass for PHP 5.0
/usr/portage/eclass/php5_1-sapi.eclass for PHP 5.1
And search for "--with-interbase", and edit that so that it looks like "--with-interbase=/usr", save the eclass and try again emerging PHP.
Please report back if this helps, best regards, CHTEKK.
Comment 13 trinite 2006-03-03 09:17:23 UTC
This fix does work :D I've compiled php 5.0.5 with firebird support without any errors!

Comment 14 Luca Longinotti (RETIRED) gentoo-dev 2006-03-12 05:51:57 UTC
The fix was now added to the PHP eclasses in Portage, thanks for testing it!
Best regards, CHTEKK.