#44102 [Opn->Fbk]: Problem with compiling SQL Relay & PHP

From: Date: Thu, 13 Mar 2008 12:36:22 +0000
Subject: #44102 [Opn->Fbk]: Problem with compiling SQL Relay & PHP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-123272@lists.php.net to get a copy of this message
ID: 44102 Updated by: jani@php.net Reported By: admin at relax-info dot com -Status: Open +Status: Feedback Bug Type: Compile Failure Operating System: MAC OS X Leopard 10.5.2 PHP Version: 5.2.6RC3-dev New Comment: 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? Previous Comments: ------------------------------------------------------------------------ [2008-03-12 06:43:10] 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-11 22:28:05] jani@php.net Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows (zip): http://snaps.php.net/win32/php5.2-win32-latest.zip For Windows (installer): http://snaps.php.net/win32/php5.2-win32-installer-latest.msi ------------------------------------------------------------------------ [2008-03-03 17:53:56] 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-03 17:43:27] 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-02-13 16:50:31] 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.. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/44102 -- Edit this bug report at http://bugs.php.net/?id=44102&edit=1

« previous php.bugs (#123272) next »