Re: [PHP-INSTALL] PHP 5.2.9 + Apache 1.3 Darwin 6.8 MAC OS X 10.2.8+ MYSQL

[email protected] (ruben)
Newsgroups php.install
Message-ID <[email protected]>
Keith Roberts escribió:
> On Mon, 31 Aug 2009, ruben wrote:
> 
>> To: [email protected]
>> From: ruben <[email protected]>
>> Subject: [PHP-INSTALL] PHP 5.2.9 + Apache 1.3 Darwin 6.8 MAC OS X 
>> 10.2.8 +
>>     MYSQL
>>
>> Hello everybody
>> After been using PHP 5.2.9 on a MAC OS 10.2.8 with Apache 1.3 without
>> problems, I decided to add support for MYSQL so I tried to re-compile
>> the php module for apache with this configuration:
>>
>> ../configure --prefix=/user --sysconfdir=/etc --localstatedir=/var
>> --mandir=/usr/share/man --with-apxs --without-sqlite
>> --without-pdo-sqlite --with-zlib --without-iconv --enable-sockets
>> --with-openssl --with-kerberos --with-mysql=/usr --with-mysql-sock
>>
>> The configure script runs with no problems, but then 'make' fails with
>> this message:
>>
>> ld: Undefined symbols:
>> _mysql_create_db
>> _mysql_drop_db
>> make: *** [libs/libphp5.bundle] Error 1
>>
>> I'm really stuck with this...
>>
>> Please help and thank u in advance!!
>>
> 
> Hi Ruben.
> 
> It looks as though the mysql development header files might not be 
> detected correctly.
> 
> Have you installed the mysql client development package?
> 
> See if you can find out where the header files for the mysql library are.
> 
> Then point configure to them with a command-line option.
> 
> I'm on Fedora 10, so I can't tell you where they are.
> 
> Maybe in /usr/include, or /usr/lib/include.
> 
> You could also try searching through the config.log file. That may give 
> you more details of why make failed.
> 
> Try looking for any of the strings that appeared in the make error 
> message, or whatever you might think is causing make to fail.
> 
> Kind Regards,
> 
> Keith Roberts
> 
> -----------------------------------------------------------------
> Websites:
> http://www.php-debuggers.net
> http://www.karsites.net
> http://www.raised-from-the-dead.org.uk
> 
> All email addresses are challenge-response protected with
> TMDA [http://tmda.net]
> -----------------------------------------------------------------
> 
> 

Have you installed the mysql client development package?

I have installed mysql-standard-4.0.26-apple-darwin6.8-powerpc.pkg

Doing some google research I found that what seems to fail is that it 
looks like the functions _mysql_create_db _mysql_drop_db have been 
removed from mysqlclient.a because they are deprecated. In the mysql 
webpage it says about these functions "This function is deprecated. It 
is preferable to use mysql_query() to issue an SQL CREATE DATABASE 
statement instead". But I don't know how to do so.

You think that with the development package I will be able to build the 
mysqlclient library again, instead of using the bundled, right?

Thank you very much for your time, this issue is driving me crazy.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.