ID:               37427
 User updated by:  vktechnology at uk2 dot net
 Reported By:      vktechnology at uk2 dot net
 Status:           Open
 Bug Type:         Compile Failure
 Operating System: fedora
 PHP Version:      5.1.4
 New Comment:

Sory missed type
if configure like this cannot fix problem
"--with-mysql-dir=/usr/local/mysql"

it can complie and make insall 
but after install 
and when use witj PHP it doesn't work

will see this error in php
"Fatal error: Call to undefined function mysql_connect() "


Previous Comments:
------------------------------------------------------------------------

[2006-05-15 14:02:01] vktechnology at uk2 dot net

another problem..after configure with

The problem is fixed when using 
--with-mysql-dir=/usr/local/mysql

instead of 
--with-mysql=/usr/local/mysql
********************************
cannot fix,
after install will cannot connect to my sql by using PHP
you will see this error

"Fatal error: Call to undefined function mysql_connect() "

and looking in info.php
cannot see mysql...

------------------------------------------------------------------------

[2006-05-15 14:00:11] vktechnology at uk2 dot net

Because in PHP Makefile doesn't complatible with 64 Bits processor

64 Bits processor use "/usr/lib64"
instead of "/usr/local/lib"

***********************************
I found solution to fix this peoblem
now my problem is solved
***********************************

What i did is

after configure and open Makefile to edit Makefile

look example my configure
./configure --libdir=/usr/lib64 --prefix=/usr/local/php-5.1.4
--with-apxs2=/usr/local/apache2/bin/apxs --enable-ftp
--with-mysql-dir=/usr/local/mysql
--with-libxml-dir=/usr/local/libxml2-2.6.24
--with-png-dir=/usr/local/libpng-1.2.8-config
--with-zlib-dir=/usr/local/zlib-1.2.3/ --with-gd
--with-jpeg-dir=/usr/local/lib64/
--with-freetype-dir=/usr/local/freetype-2.2.1 

open Makefile
find for 
"/usr/local/lib"
and replace with "/usr/lib64"

*********
here this is code after replace
4 lines

EXTRA_LDFLAGS = -avoid-version -module -L/usr/lib64
-L/usr/local/zlib-1.2.3//lib
EXTRA_LDFLAGS_PROGRAM = -L/usr/lib64 -L/usr/local/zlib-1.2.3//lib
NATIVE_RPATHS = -Wl,-rpath,/usr/lib64
-Wl,-rpath,/usr/local/zlib-1.2.3//lib
PHP_LDFLAGS = -L/usr/lib64 -L/usr/local/zlib-1.2.3//lib
PHP_RPATHS = -R /usr/lib64 -R /usr/local/zlib-1.2.3//lib

********
type make
make install
..done...

------------------------------------------------------------------------

[2006-05-14 12:30:27] [EMAIL PROTECTED]

And this is PHP problem because .... ?

------------------------------------------------------------------------

[2006-05-13 04:10:20] vktechnology at uk2 dot net

Description:
------------
Install PHP,,has eror after type make

Reproduce code:
---------------
./configure --prefix=/usr/local/php-5.1.4
--with-apxs2=/usr/local/apache2/bin/apxs --enable-ftp 

--with-mysql-dir=/usr/local/mysql-standard-5.0.21-linux-i686 
--with-png-dir=/usr/local/libpng-

1.2.8-config --with-zlib-dir=/usr/local/zlib-1.2.2 --with-gd 
--disable-libxml --disable-dom --

disable-simplexml --disable-xml --disable-pear  --disable-xmlreader 
--disable-xmlwriter

Actual result:
--------------
**********
after type make

have this error

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




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=37427&edit=1

Reply via email to