Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge dev-lang/php (with firebird flag enabled) fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
matjaz
n00b
n00b


Joined: 22 Jun 2004
Posts: 4

PostPosted: Thu Feb 23, 2006 10:15 pm    Post subject: emerge dev-lang/php (with firebird flag enabled) fails Reply with quote

I have a problem emerging dev-lang/php-5.0.5-r5 with firebird flag enabled.

Here is what I am trying to emerge

Code:

emerge -v dev-lang/php

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] dev-lang/php-5.0.5-r5  -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 -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 +xml -xmlrpc -xpm -xsl -yaz -zip +zlib 0 kB


The configure phase fails. Here's how it ends:

Code:

checking for Informix support... no
checking for Ingres II support... no
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.
!!! Function php5_0-sapi_src_compile, Line 516, Exitcode 1
!!! configure failed
!!! If you need support, post the topmost build error, NOT this status message.


Of course I have firebird installed and libraries ibgds, libib_util and libfbclient are in LDPATH.

Here is the relevant section of config.log file
Code:

configure:62001: checking for isc_detach_database in -lfbclient
configure:62031: gcc -o conftest -march=pentium3 -pipe -O3  -Wl,-rpath, -L  conftest.c -lfbclient  -lt1 -lfreetype -lpng -lz -ljpeg -lgdbm -lcurl -lbz2 -lz -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lssl -lcrypto -ldl -lcurl -lidn -lssl -lcrypto -ldl -lz -lxml2 -lz -lm >&5
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../crt1.o: In function `_start':
init.c:(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status


What could be the cause of this?
I can successfuly emerge dev-php/php and dev-php/mod_php with firebird support but not dev-lang/php !?

Any clues what is going on? How to fix this?
Back to top
View user's profile Send private message
thejackal13
n00b
n00b


Joined: 01 Feb 2005
Posts: 59

PostPosted: Tue Mar 28, 2006 6:38 am    Post subject: Reply with quote

i have a similar problem:

Code:

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.
!!! Function php5_1-sapi_src_compile, Line 568, Exitcode 1
!!! configure failed
!!! If you need support, post the topmost build error, NOT this status message.



config.log
Code:

| #define MYSQL_UNIX_ADDR "/var/run/mysqld/mysqld.sock"
| /* end 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;
| }
configure:77016: result: no
configure:77224: checking for mysql_error in -lmysqlclient
configure:77254: gcc -o conftest -I/usr/include -Os -march=pentium4 -pipe  -L/usr/lib -L/usr/lib  -Wl,-rpath,/li$
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lmsql
collect2: ld returned 1 exit status
configure:77260: $? = 1
configure: failed program was:
| /* confdefs.h.  */




any help?
Back to top
View user's profile Send private message
llongi
Retired Dev
Retired Dev


Joined: 15 Apr 2004
Posts: 459
Location: Switzerland

PostPosted: Tue Mar 28, 2006 10:30 am    Post subject: Reply with quote

Code:
cannot find -lmsql


Make sure you have the "msql" USE flag disabled, and "mssql" too if you don't need it. For MySQL support you really only need the "mysql" USE flag. ;)

EDIT: for the original poster, the problem with the "firebird" USE flag was solved, just make sure to emerge --sync and install dev-lang/php-5.1.2 again.
_________________
Best regards, Luca.
Back to top
View user's profile Send private message
thejackal13
n00b
n00b


Joined: 01 Feb 2005
Posts: 59

PostPosted: Tue Mar 28, 2006 2:29 pm    Post subject: Reply with quote

thanks, that worked
Back to top
View user's profile Send private message
apryan
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2005
Posts: 124

PostPosted: Sun Apr 09, 2006 4:03 am    Post subject: Reply with quote

CHTEKK wrote:
Code:
cannot find -lmsql


Make sure you have the "msql" USE flag disabled, and "mssql" too if you don't need it. For MySQL support you really only need the "mysql" USE flag. ;)

EDIT: for the original poster, the problem with the "firebird" USE flag was solved, just make sure to emerge --sync and install dev-lang/php-5.1.2 again.


Well what about if you want to use mysql AND msql in php? What do you do then with this error?
-anth
Back to top
View user's profile Send private message
apryan
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2005
Posts: 124

PostPosted: Sun Apr 09, 2006 4:53 am    Post subject: Reply with quote

with mine....

use:
Quote:
[ebuild N ] 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 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 -sharedmem -simplexml -snmp -soap -sockets -spl -sysvipc -threads -tidy -vm-switch -xmlreader -xmlwriter -yaz" 0 kB


error:
Quote:
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


config.log
Quote:
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. */
|


I'm trying to get it to work with msql and mysql support. ideas?[/bug]
Back to top
View user's profile Send private message
thejackal13
n00b
n00b


Joined: 01 Feb 2005
Posts: 59

PostPosted: Sun Apr 09, 2006 5:48 am    Post subject: Reply with quote

i am assuming you need msql support, but mine went smooth as soon as i emerged with out it. i searched all over before posting here, couldn't find a fix other than emerging with out it.
Back to top
View user's profile Send private message
apryan
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2005
Posts: 124

PostPosted: Sun Apr 09, 2006 5:57 am    Post subject: Reply with quote

Yup. msql support is wanted. The funny thing is, I only resorted to trying an emerge of it when I couldnt get it to compile with msql manually. It failed saying a lib was bad or something. Oh well. Hopefully someone knows the answer.
-anth
Back to top
View user's profile Send private message
llongi
Retired Dev
Retired Dev


Joined: 15 Apr 2004
Posts: 459
Location: Switzerland

PostPosted: Wed Apr 12, 2006 11:35 am    Post subject: Reply with quote

Code:
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmsql


The problem here is not in the MySQL extension, that one works perfectly, but in the MSQL one, which we anyway don't support as it's commercial (see your other bug, I've explained that there too).
Anyway the problem here is that the linker can't find a libmsql.so in /usr/lib/ (or in your PATH, don't exactly remember where it searches exactly). You'll probably have to either symlink the needed libraries from /usr/lib to the place where they are located, or install them in /usr/lib, or change the php5_1-sapi.eclass to add the correct path as a parameter to the msql configure switch.
_________________
Best regards, Luca.
Back to top
View user's profile Send private message
apryan
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2005
Posts: 124

PostPosted: Wed Apr 12, 2006 3:59 pm    Post subject: Reply with quote

OK... That actually makes perfect sense as when I was compiling the PHP manually I had to litterally specify the exact directory for msql. I will go ahead and add the exact directory to the ebuild and try again soon.

Thanks!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum