Re: recompiling php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chris wrote:
Jochem Maas wrote:
blackwater dev wrote:

I am trying to recompile php 5 with freetds so am using this :


which specific version?
try another [pristine] src tarball.


./configure '--with-apxs2=/usr/local/apache2/bin/apxs'
'--with-mysql=/root/mysql-standard-4.1.9-pc-linux-gnu-i686'
'--with-mssql=/usr/local/freetds'


you found freetds there I take it? (I saw your previous related post)


Things seem ok so I do make and at the end of make I get this error:

/usr/bin/ld:ext/mssql/php_mssql.lo: file format not recognized; treating as
linker script
/usr/bin/ld:ext/mssql/php_mssql.lo:2: syntax error
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1

I then did make install and of course got the same error:

/usr/bin/ld:ext/mssql/php_mssql.lo: file format not recognized; treating as
linker script
/usr/bin/ld:ext/mssql/php_mssql.lo:2: syntax error
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1


I then do make clean.  Of course, it doesn't seem to regenerate the
libphp5.so so once I restart apache, and check out phpinfo, it shows the old


'make clean' doesn't install anything. it's the 'make install' that would
install the .so if the error didn't occur. no?


'make clean' undoes all of the compiling, so you have to do at least 'make' again (maybe configure too, can't remember off hand).
<snip>

make clean removes the compiled binaries from the source tree. It won't effect anything installed with 'make install' (ie in it's system locations). You don't *have* to reconfigure after a make clean, but it won't hurt (not to mention that you might want to remove config.cache if it exists). So, to the OP, 'make clean' will not touch your previous install of php. Since your 'make' failed, it didn't finish compiling the binaries and you wouldn't be able to do a 'make install'

As to why your make is failing, I don't know.  ;)

--
By-Tor.com
...it's all about the Rush
http://www.by-tor.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux