php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15534 Undefined symbol "_mysql_init" w/php4.1.1 & not w/4.0.6 (same parameters)
Submitted: 2002-02-13 03:46 UTC Modified: 2002-08-23 09:57 UTC
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:2 of 3 (66.7%)
Same Version:0 (0.0%)
Same OS:1 (50.0%)
From: martin at marconcini dot com dot ar Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.1.1 OS: OpenBSD 2.9
Private report: No CVE-ID: None
 [2002-02-13 03:46 UTC] martin at marconcini dot com dot ar
Software: 
- OpenBSD 2.9.
- Apache 1.3.19 (comes w/ standard obsd 2.9)
- MySQL 3.23.48 (latest)
- PHP 4.06 / 4.1.1
- ./configure --with-apxs --with-mysql=/usr/local/mysql (and --with-mysql only)

Ladies and Gentlemen: I have had PHP 4.06 working fine w/ MySQL 3.23.39. I decided to Install 4.1.1. I did with the above ./configure. No problems, except that it won't work.

Depending upon the --with-mysql parameter i got these messages:
/usr/libexec/ld.so: Undefined symbol "_floor" called from httpd:/usr/lib/apache/modules/libphp4.so at 0x403235f4

or

/usr/libexec/ld.so: Undefined symbol "_mysql_init" called from httpd:/usr/lib/apache/modules/libphp4.so at 0x4030d304

I decided to upgrade MySQL to latest (3.23.48). I compiled it from Source. MySQL works fine.

But Same Problem with apache/php/mysql. Apache works fine when no php is involved. (either php responds to a php_info(), but it stops on the mysql part).

After hours of multiple make cleans, makes, configures makes install i decided to download php 4.06 again. 

I did compile it with the above options (specifying the MySQL path), and guess what? it works the way it did and I have the latest MySQL. 

I really don't know what to say. This is a P133 and it takes some time to compile. I have tried the --enable-vars-whatever parameter (which gave me the first error above, the _floor one). 

I've been searching on Google/Mailing Lists/etc and found no help on this matter. (It seems like an OLD problem on Older versions of PHP), nothing new. 

I've been playing around w/configuration .ini's (i've tried both recommended and dist).

Any Ideas?

A note. When I returned to php 4.06 i have had a problem with libmysqclient.so.10.0 not being found. I simply made a link from mysql install to /usr/lib 

I will appreciate any help.

Best Regards,

Martin Marconcini

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-07 22:07 UTC] sniper@php.net
Please try this snapshot, some BSD related compile/configure
bugs were fixed lately:

http://snaps.php.net/php4-latest.tar.gz

 [2002-08-08 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2002-08-14 16:46 UTC] skarab13 at yahoo dot com
This problem is still not fixed in PHP 4.2.2 with Apache 1.3.19 up through Apache 2.0.40. I've also tried several versions of MySQL, including the latest. The problem seems to have happened just after 4.0.6 as it was the last version to have worked.
 [2002-08-14 17:55 UTC] martin at marconcini dot com dot ar
I am unable to provide more feedback due to the fact that the box broke and it was reinstalled with openbsd 3.0 (and later the hard disk failed).

When I have the box up and running again I will try it again.

Sorry!

Martin.
 [2002-08-23 09:57 UTC] georg@php.net
This is not a php bug. 

It looks like your mysql client library wasn't installed correctly.
If you can't fix that, use php's embedded libmysql (Note: for using the embedded libmysql, you don't need any special configuration options).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 00:01:28 2024 UTC