PHP build problem

This is a discussion on PHP build problem within the PHP Language forums, part of the PHP Programming Forums category; Dear all, downloaded PHP 4.3.2 for installation on Sun Solaris 7, using gcc and GNU's make 3....


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-01-2003
Tony Muler
 
Posts: n/a
Default PHP build problem

Dear all,

downloaded PHP 4.3.2 for installation on Sun Solaris 7,
using gcc and GNU's make 3.8 and alternatively the
make that comes with Solaris (/usr/ccs/bin/make).

../configure \
--with-apxs=/usr/local/apache/bin/apxs \
--with-mysql=/usr/local/mysql

No problems reported.

make

It runs and when linking it stops with:

Undefined symbol First referenced in file
mysql_character_set_name ext/mysql/php_mysql.lo
mysql_real_escape_string ext/mysql/php_mysql.lo

ld: fatal: Symbol referencing errors. No output
written to sapi/cli/php
make: *** [sapi/cli/php] Error 1


As 4.3.2 is quite new, I then downloaded 4.3.1, but
the same problem appeared.

Then I tried if the compilation of PHP 4.1.2 still
works on my system (removed config.cache), and it
does. No problems when building PHP 4.1.2.
But I urgently want to do the upgrade for security
and other reasons.

Thank you very much for any good idea.

Tony



Reply With Quote
  #2 (permalink)  
Old 10-02-2003
jayjwa
 
Posts: n/a
Default Re: PHP build problem

Tony Muler wrote:
> Dear all,
>
> downloaded PHP 4.3.2 for installation on Sun Solaris 7,
> using gcc and GNU's make 3.8 and alternatively the
> make that comes with Solaris (/usr/ccs/bin/make).
>
> ./configure \
> --with-apxs=/usr/local/apache/bin/apxs \
> --with-mysql=/usr/local/mysql
>
> No problems reported.
>
> make
>
> It runs and when linking it stops with:
>
> Undefined symbol First referenced in file
> mysql_character_set_name ext/mysql/php_mysql.lo
> mysql_real_escape_string ext/mysql/php_mysql.lo
>
> ld: fatal: Symbol referencing errors. No output
> written to sapi/cli/php
> make: *** [sapi/cli/php] Error 1
>
>
> As 4.3.2 is quite new, I then downloaded 4.3.1, but
> the same problem appeared.
>
> Then I tried if the compilation of PHP 4.1.2 still
> works on my system (removed config.cache), and it
> does. No problems when building PHP 4.1.2.
> But I urgently want to do the upgrade for security
> and other reasons.
>
> Thank you very much for any good idea.
>
> Tony
>
>
>



I know it's not much help, but I had similar troubles when upgrading,
the verion I had upgraded to just wouldn't work at all, when the older
version did. That was with the Windows pre-compiled binaries too, so I
know it wasn't due to my compilation. You may not be able to run that
version, maybe because of a small bug that wasn't found that affects
your system. I just went to 4.3.2 on Linux yesterday, and so far no trouble.

--
--------------nonoffensive sig.v2.2RC2?------------------------
- jayjwa 4 Spammers: mailto: listme@listme.dsbl.org
The New Atr2. PGP/GPG Keys onsite
"Why do all the noob's use RedHat,
speak 4th grade English,
and cry because their X server crashed?"
Send HTTP1.1 GET to /cgi-bin/ping-jay.cgi, my domain, 2 mail
==Atr2.Ath.Cx: Linux Tough, Powered by Slackware.=============



Reply With Quote
  #3 (permalink)  
Old 10-02-2003
Tony Muler
 
Posts: n/a
Default Re: PHP build problem

jayjwa wrote:

> I know it's not much help, but I had similar troubles when upgrading,
> the verion I had upgraded to just wouldn't work at all, when the older
> version did. That was with the Windows pre-compiled binaries too, so I
> know it wasn't due to my compilation. You may not be able to run that
> version, maybe because of a small bug that wasn't found that affects
> your system. I just went to 4.3.2 on Linux yesterday, and so far no
> trouble.


As 4.3.2 does not build for me, I guess I will have to go back
until I find a version that works for me ;-)

T.


Reply With Quote
  #4 (permalink)  
Old 10-02-2003
jayjwa
 
Posts: n/a
Default Re: PHP build problem

Tony Muler wrote:
> jayjwa wrote:
>
>> I know it's not much help, but I had similar troubles when upgrading,
>> the verion I had upgraded to just wouldn't work at all, when the older
>> version did. That was with the Windows pre-compiled binaries too, so I
>> know it wasn't due to my compilation. You may not be able to run that
>> version, maybe because of a small bug that wasn't found that affects
>> your system. I just went to 4.3.2 on Linux yesterday, and so far no
>> trouble.

>
>
> As 4.3.2 does not build for me, I guess I will have to go back
> until I find a version that works for me ;-)
>
> T.
>
>


That's what I had to do too, until I moved to Linux
> But I urgently want to do the upgrade for security
> and other reasons.


I dont' think security's a big worry really, I haven't seen many
examples of PHP being exploited.
Maybe you could have someone compile it for you, that has the same type
system as yours? Maybe a header file or something got corrupted from
your source code lib...


--
--------------nonoffensive sig.v2.2RC2?------------------------
- jayjwa 4 Spammers: mailto: listme@listme.dsbl.org
The New Atr2. PGP/GPG Keys onsite
"Why do all the noob's use RedHat,
speak 4th grade English,
and cry because their X server crashed?"
Send HTTP1.1 GET to /cgi-bin/ping-jay.cgi, my domain, 2 mail
==Atr2.Ath.Cx: Linux Tough, Powered by Slackware.=============



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:56 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0