Compiling PHP 5.0 Beta 3 *Error*

From: charlie (fake_at_fake.com)
Date: 12/29/03


Date: Sun, 28 Dec 2003 23:05:04 -0600

Hello,
I am trying to compile php-5.0.0b3 on a fedora 1.0 system. I am
beginning with the following:
charliek 12$./configure \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql --prefix=/usr/local/php5

and it completes with the following:
###################################### BEGIN CONFIGURE OUTPUT
+--------------------------------------------------------------------+
| *** ATTENTION *** |
| |
| Something is likely to be messed up here, because the configure |
| script was not able to detect a simple feature on your platform. |
| This is often caused by incorrect configuration parameters. Please |
| see the file debug.log for error messages. |
| |
| If you are unable to fix this, send the file debug.log to the |
| php-install@lists.php.net mailing list and include appropiate |
| information about your setup. |
+--------------------------------------------------------------------+
| License: |
| This software is subject to the PHP License, available in this |
| distribution in the file LICENSE. By continuing this installation |
| process, you are bound by the terms of this license agreement. |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point. |
+--------------------------------------------------------------------+
 
Thank you for using PHP.
####################################### END CONFIGURE OUTPUT

Debug.log contains the following:
######################################## BEGIN DEBUG LOG OUTPUT
CONFIGURE: './configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql' '--prefix=/usr/local/php5'
CC: gcc
CFLAGS: -g -O2
CPPFLAGS:
CXX:
CXXFLAGS:
INCLUDES: -I$(top_builddir)/Zend -I/usr/include/libxml2 -I/usr/include/mysql
LDFLAGS:
LIBS: -lcrypt -lmysqlclient -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt
DLIBS:
SAPI: apache2handler
PHP_RPATHS:
uname -a: Linux localhost.localdomain 2.4.22-1.2115.nptl #1 Wed Oct 29 15:42:51 EST 2003 i686 i686 i386 GNU/Linux
 
gcc -o conftest -g -O2 conftest.c -lcrypt -lmysqlclient -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt 1>&5
./conftest: relocation error: /usr/lib/libmysqlclient.so.10: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
######################################### END DEBUG LOG OUTPUT

I only am getting errors when I include the flag --with-mysql and it does
on help if I point it to the /usr directory where I have mysql installed
(same error). I realize that this is probably an issue on my end and was
wondering what I can do to diagnose the problem. I have all of the newest
updates for fedora 1.0 except the kernel which I update at a slower rate.
My current kernel is 2.4.22-1.2115.nptl from uname -r. I realize that
this is most likely a GLIBC linking error but I do not know what docs I
can read to find out more about this.

Note I have recently compiled and installed apache 2.0.48 and php 4.3.4
with no problems. I also have the following mysql:
$mysql --version
mysql Ver 11.18 Distrib 3.23.54, for pc-linux (i686)

Any help you can give me would be helpful even if it is where I can find
further information on my problem. I could also reinstall mysql, but I
can compile mysql support with php4 with no problems so I did not think
that was the issue.

Thanks,

Charlie



Relevant Pages

  • Re: com_dotnet
    ... And if MySQL isn't installed, the DLL won't load and phpinfowill show MySQL support isn't enabled. ... The MySQL interface is NOT compiled into PHP on the distributed Windows binaries - or you'd never be able to run PHP unless you had MySQL installed. ... *SOME* extensions are protocols, some are functional resources, and some are just type libraries. ... If you're going to compile the extension into PHP itself, the libraries must be available at compile time, and when you run PHP, or PHP won't load. ...
    (comp.lang.php)
  • Re: MySQL JDBC driver - implications for non-GPLed apps
    ... It's a shame, though, that MySQL has gained so much, in terms of ... > people the rights promised by the GPL). ... license it commercially, so in fact almost all of it is written by MySQL ... very passionately about open source. ...
    (comp.lang.java.databases)
  • Re: GNAT GPL 2005 Edition is now available
    ... No, the FSF have two licenses that a relevant, the LGPL and the GPL. ... The FSF license the C runtime libraries using the LGPL. ... as soon as I compile it using the compiler ...
    (comp.lang.ada)
  • Re: MySQL JDBC driver - implications for non-GPLed apps
    ... > by MySQL employees. ... that it's a GPL product. ... motivations behind your adoption of the GPL as a license for MySQL. ... rights you claim to give them -- is downright deceptive. ...
    (comp.lang.java.databases)
  • Re: Will FC2 have MySQL 4?
    ... >> MySQL is GPL'ed which allows and is a good incentive for commercial ... > derives from the spirit of the BSD license. ... > by using the GPL instead of the LGPL for libraries, ... > for open source, i see it as restrictive, lots of people will end up not ...
    (Fedora)