php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44102 Problem with compiling SQL Relay & PHP
Submitted: 2008-02-11 22:18 UTC Modified: 2008-03-17 00:40 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: admin at relax-info dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.2.6RC3-dev OS: MAC OS X Leopard 10.5.2
Private report: No CVE-ID: None
 [2008-02-11 22:18 UTC] admin at relax-info dot com
Description:
------------
After PHP compilation the libphp.a are not present on MAC OS X

Reproduce code:
---------------
The PHP configure options:
/configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man --infodir=/usr/share/info --with-apxs2=/usr/sbin/apxs --with-curl --with-gd --enable-exif --enable-cli --enable-zip --with-jpeg-dir=/usr/src/libjpeg --with-zlib=/usr  --with-config-file-path=/etc --with-openssl --with-xmlrpc --with-xsl=/usr --without-pear --with-mysql=/usr/local/mysql --with-mysql-sock=/var/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --disable-ipv6




Expected result:
----------------
Compile SQL Relay as "Additional Modules"





Actual result:
--------------
first try errors : 
ld: library not found for -lphp
collect2: ld returned 1 exit status
make[4]: *** [libsql_relay.la] Error 1

Full log: http://relax-info.com/data/file/Installing_sql_relay.txt

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-02-13 16:50 UTC] jani@php.net
Exactly what does this has to do with PHP? Your log is for something else than building PHP, AFAICT. You should propably be asking support from the sql relay folks..
 [2008-03-03 17:43 UTC] admin at relax-info dot com
Hmm, the linker of libraries in MAC OS X search for libx.dylib or libx.a 
in the library search path. But when I finished compile process with  "-
-enable-static", I do not found libphp.dylib or libphp5.dylib or 
libphp.a or libphp5.a.

Then SQLRelay can't compile because "dl" could not found PHP5 libraries.

P.S: Mac OS X ld manual: http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/
ld.1.html
 [2008-03-03 17:53 UTC] admin at relax-info dot com
Also, then I run searh for "libphp*" on my file system. Search result:
./sapi/apache_hooks/
	libphp5.module.in
./sapi/apache/
	libphp5.module.in
./libs/
	libphp5.bundle
	libphp5.so
 [2008-03-12 06:43 UTC] admin at relax-info dot com
Thank you for answer!

I was successfully recompiled PHP5 (with --enable-static) to lastets 
(PHP Version 5.2.6RC3-dev). Then I run search for "libphp*"... and I 
see result:
- libphp5.module.in
- libphp5.so
- libphp5.bundle

But I do not found libphp.dylib or libphp5.dylib or 
libphp.a or libphp5.a.

Ok... I run compile SQL Relay now:
.... _console errors_ ...
ld: library not found for -lphp
collect2: ld returned 1 exit status
make[4]: *** [libsql_relay.la] Error 1

Hmm, then I copy libphp5.so to /usr/lib/libphp.a and try to compile 
SQLRelay:
... _console error_ ...
ld: warning in /usr/lib/libphp.a, file is not of required architecture
Undefined symbols:
  "_convert_to_double", referenced from:

What now?
 [2008-03-13 12:36 UTC] jani@php.net
Why do you use --enable-static? Try this configure line instead:

The PHP configure options:

# make clean && rm config.cache
# ./configure --prefix=/usr --with-apxs2=/usr/sbin/apxs --disable-all
# make install

Does it compile and install everything without errors?

 [2008-03-13 20:52 UTC] admin at relax-info dot com
>> Why do you use --enable-static? Try this configure line instead
I thought that this option give posibility to receive lib*.a after php 
compilation.

>> Does it compile and install everything without errors?
Please see log:
http://www.relax-info.com/data/file/compilephp5.2.6rc3.txt
 [2008-03-17 00:40 UTC] jani@php.net
Obviously building _PHP_ works just fine. Any sqlrelay (whatever that is..) build problems you have, this is not the place to ask support for those.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 31 14:00:03 2025 UTC