#33326 [Fbk-Opn]: Cannot build extensions with phpize
ID: 33326 User updated by: artooro at gmail dot com Reported By: artooro at gmail dot com -Status: Feedback +Status: Open Bug Type: Compile Failure Operating System: darwin8.x PHP Version: 5CVS-2005-06-13 (dev) Assigned To: sniper New Comment: I tested your patch on the PHP_5_1 branch and can verify that it fixes the problem. Thanks. Previous Comments: [2005-08-12 12:22:06] [EMAIL PROTECTED] This patch fixed same build problem on one Macosx machine I have access to: http://www.php.net/~jani/patches/bug33326.patch It seemed to have GCC 3.3 though..but do try that. Apply to acinclude.m4 in $prefix/lib/php/build/ or to the one you get after phpize. [2005-08-09 00:17:08] artooro at gmail dot com If ssh or VNC access to an OSX machine would help, let me know and I just might be able to help out. [2005-08-08 23:53:18] [EMAIL PROTECTED] To be able to do anything about this I need access to a Macosx machine where this problem exists..so no, I can't look into this. [2005-08-08 23:44:48] [EMAIL PROTECTED] Jani, can you have a look at this? [2005-07-26 02:00:50] [EMAIL PROTECTED] The temporary fix is to just copy-paste the final link line back with all the .lo filenames replaced with .libs/*.o eg. to build pecl/apc I use: gcc -dynamic -flat_namespace -bundle -undefined suppress -DPHP_ATOM_INC -I/Users/rasmus/pecl/apc/include -I/Users/rasmus/pecl/apc/main -I/Users/rasmus/pecl/apc -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -DHAVE_CONFIG_H -g -O2 -o apc.so .libs/*.o instead of: gcc -dynamic -flat_namespace -bundle -undefined suppress -DPHP_ATOM_INC -I/Users/rasmus/pecl/apc/include -I/Users/rasmus/pecl/apc/main -I/Users/rasmus/pecl/apc -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -DHAVE_CONFIG_H -g -O2 -o apc.so apc.lo php_apc.lo apc_cache.lo apc_compile.lo apc_debug.lo apc_fcntl.lo apc_main.lo apc_mmap.lo apc_optimizer.lo apc_pair.lo apc_sem.lo apc_shm.lo apc_sma.lo apc_stack.lo apc_zend.lo 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/33326 -- Edit this bug report at http://bugs.php.net/?id=33326edit=1
#33326 [Fbk-Opn]: Cannot build extensions with phpize
ID: 33326 User updated by: artooro at gmail dot com Reported By: artooro at gmail dot com -Status: Feedback +Status: Open Bug Type: Compile Failure Operating System: Mac OS X 10.4.1 PHP Version: 5CVS-2005-06-13 (dev) New Comment: Yes to your question. I checked that over and over again because I thought of that too. There are so many changes between the 5.0.4 and CVS HEAD generated libtool (over 500 diffs) that I wasn't sure where to start :) Previous Comments: [2005-06-23 13:08:40] [EMAIL PROTECTED] You're sure you have the correct build files installed? (for example the libtool.m4 is totally different in HEAD) [2005-06-22 18:05:08] artooro at gmail dot com Well I have pin-pointed the problem to the libtool which is generated by the phpize generated configure script. --with-pic does not help, not that I thought it would. I'm not sure what exactly is wrong with libtool yet but I'll look into that today. [2005-06-17 03:57:11] artooro at gmail dot com I have determined the problem is not with the Makefile, but something in the build directory. I have not had the time to find out exactly what yet. I know it's something in the builddir because if I set that one path to a php5.0.4 build dir it works. I'll try the --without-pic option tomorrow, and maybe find out what exactly is causing this. [2005-06-14 17:08:29] [EMAIL PROTECTED] Please try the --without-pic option. And if possible, see how the generated Makefile's differ in HEAD vs. 5.0.4 [2005-06-14 17:07:08] artooro at gmail dot com OK, I just compiled+installed php 5.0.4 and build an extension using it. And it worked without any problems. So it seems this is a problem specific to php5.1.0-dev CVS. I believe it's a problem is phpize but am not totally sure yet. 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/33326 -- Edit this bug report at http://bugs.php.net/?id=33326edit=1
#33326 [Fbk-Opn]: Cannot build extensions with phpize
ID: 33326 User updated by: artooro at gmail dot com Reported By: artooro at gmail dot com -Status: Feedback +Status: Open Bug Type: Compile Failure Operating System: Mac OS X 10.4.1 PHP Version: 5CVS-2005-06-13 (dev) New Comment: I have determined the problem is not with the Makefile, but something in the build directory. I have not had the time to find out exactly what yet. I know it's something in the builddir because if I set that one path to a php5.0.4 build dir it works. I'll try the --without-pic option tomorrow, and maybe find out what exactly is causing this. Previous Comments: [2005-06-14 17:08:29] [EMAIL PROTECTED] Please try the --without-pic option. And if possible, see how the generated Makefile's differ in HEAD vs. 5.0.4 [2005-06-14 17:07:08] artooro at gmail dot com OK, I just compiled+installed php 5.0.4 and build an extension using it. And it worked without any problems. So it seems this is a problem specific to php5.1.0-dev CVS. I believe it's a problem is phpize but am not totally sure yet. [2005-06-14 15:42:52] [EMAIL PROTECTED] Try using --without-pic with configure, that might be the issue here. (try with fresh sources!) [2005-06-14 15:15:18] artooro at gmail dot com Yeah, Apple's Xcode includes GCC, linkers, autoconf, basically everything needed to build source code plus an IDE. I'm testing php 5.0.4 now. [2005-06-14 03:08:35] [EMAIL PROTECTED] Apple's dev environment. For our purposes it means gcc-4.0.0. 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/33326 -- Edit this bug report at http://bugs.php.net/?id=33326edit=1
#33326 [Fbk-Opn]: Cannot build extensions with phpize
ID: 33326 User updated by: artooro at gmail dot com Reported By: artooro at gmail dot com -Status: Feedback +Status: Open Bug Type: Compile Failure Operating System: Mac OS X 10.4.1 PHP Version: 5CVS-2005-06-13 (dev) New Comment: Yeah, Apple's Xcode includes GCC, linkers, autoconf, basically everything needed to build source code plus an IDE. I'm testing php 5.0.4 now. Previous Comments: [2005-06-14 03:08:35] [EMAIL PROTECTED] Apple's dev environment. For our purposes it means gcc-4.0.0. [2005-06-14 02:54:13] [EMAIL PROTECTED] Exactly what is this 'xcode' thing you're referring to and what does it have to do with PHP and phpize?! [2005-06-14 02:01:05] artooro at gmail dot com That is correct. I built and installed PHP from CVS head. Created the extension inside that source tree, built it. And got the error. I can't go back to Xcode 2.0 due to technical reasons but as soon as I have time I'll see if it works with php 5.0.4 as it did before. [2005-06-13 23:02:27] [EMAIL PROTECTED] And you're really using the phpize from the same sources? (ie. you first installed compiled PHP from it?) [2005-06-13 19:19:42] artooro at gmail dot com Description: I cannot build extensions that are generated using ext_skel. Here are the steps to reproduce. 1) cd /php-src/ext 2) ./ext_skel --extname=test 3) cd test // And edit config.m4 to enable extension 4) phpize 5) ./configure; make And I get the following output: /bin/sh /Users/arthur/php-src/ext/test/libtool --mode=compile gcc -I. -I/Users/arthur/php-src/ext/test -DPHP_ATOM_INC -I/Users/arthur/php-src/ext/test/include -I/Users/arthur/php-src/ext/test/main -I/Users/arthur/php-src/ext/test -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -DHAVE_CONFIG_H -g -O2 -c /Users/arthur/php-src/ext/test/test.c -o test.lo mkdir .libs gcc -I. -I/Users/arthur/php-src/ext/test -DPHP_ATOM_INC -I/Users/arthur/php-src/ext/test/include -I/Users/arthur/php-src/ext/test/main -I/Users/arthur/php-src/ext/test -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -DHAVE_CONFIG_H -g -O2 -c /Users/arthur/php-src/ext/test/test.c -fno-common -DPIC -o .libs/test.o gcc -dynamic -flat_namespace -bundle -undefined suppress -DPHP_ATOM_INC -I/Users/arthur/php-src/ext/test/include -I/Users/arthur/php-src/ext/test/main -I/Users/arthur/php-src/ext/test -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -DHAVE_CONFIG_H -g -O2 -o test.so test.lo /usr/bin/ld: test.lo bad magic number (not a Mach-O file) collect2: ld returned 1 exit status make: *** [test.so] Error 1 It should also be noted that it worked fine before, but either something in PHP broke it or Xcode 2.1. Because it worked fine with Xcode 2.0. Reproduce code: --- Not relevant Expected result: It should compile without errors. Actual result: -- See description. -- Edit this bug report at http://bugs.php.net/?id=33326edit=1
#33326 [Fbk-Opn]: Cannot build extensions with phpize
ID: 33326 User updated by: artooro at gmail dot com Reported By: artooro at gmail dot com -Status: Feedback +Status: Open Bug Type: Compile Failure Operating System: Mac OS X 10.4.1 PHP Version: 5CVS-2005-06-13 (dev) New Comment: OK, I just compiled+installed php 5.0.4 and build an extension using it. And it worked without any problems. So it seems this is a problem specific to php5.1.0-dev CVS. I believe it's a problem is phpize but am not totally sure yet. Previous Comments: [2005-06-14 15:42:52] [EMAIL PROTECTED] Try using --without-pic with configure, that might be the issue here. (try with fresh sources!) [2005-06-14 15:15:18] artooro at gmail dot com Yeah, Apple's Xcode includes GCC, linkers, autoconf, basically everything needed to build source code plus an IDE. I'm testing php 5.0.4 now. [2005-06-14 03:08:35] [EMAIL PROTECTED] Apple's dev environment. For our purposes it means gcc-4.0.0. [2005-06-14 02:54:13] [EMAIL PROTECTED] Exactly what is this 'xcode' thing you're referring to and what does it have to do with PHP and phpize?! [2005-06-14 02:01:05] artooro at gmail dot com That is correct. I built and installed PHP from CVS head. Created the extension inside that source tree, built it. And got the error. I can't go back to Xcode 2.0 due to technical reasons but as soon as I have time I'll see if it works with php 5.0.4 as it did before. 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/33326 -- Edit this bug report at http://bugs.php.net/?id=33326edit=1
#33326 [Fbk-Opn]: Cannot build extensions with phpize
ID: 33326 User updated by: artooro at gmail dot com Reported By: artooro at gmail dot com -Status: Feedback +Status: Open Bug Type: Compile Failure Operating System: Mac OS X 10.4.1 PHP Version: 5CVS-2005-06-13 (dev) New Comment: That is correct. I built and installed PHP from CVS head. Created the extension inside that source tree, built it. And got the error. I can't go back to Xcode 2.0 due to technical reasons but as soon as I have time I'll see if it works with php 5.0.4 as it did before. Previous Comments: [2005-06-13 23:02:27] [EMAIL PROTECTED] And you're really using the phpize from the same sources? (ie. you first installed compiled PHP from it?) [2005-06-13 19:19:42] artooro at gmail dot com Description: I cannot build extensions that are generated using ext_skel. Here are the steps to reproduce. 1) cd /php-src/ext 2) ./ext_skel --extname=test 3) cd test // And edit config.m4 to enable extension 4) phpize 5) ./configure; make And I get the following output: /bin/sh /Users/arthur/php-src/ext/test/libtool --mode=compile gcc -I. -I/Users/arthur/php-src/ext/test -DPHP_ATOM_INC -I/Users/arthur/php-src/ext/test/include -I/Users/arthur/php-src/ext/test/main -I/Users/arthur/php-src/ext/test -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -DHAVE_CONFIG_H -g -O2 -c /Users/arthur/php-src/ext/test/test.c -o test.lo mkdir .libs gcc -I. -I/Users/arthur/php-src/ext/test -DPHP_ATOM_INC -I/Users/arthur/php-src/ext/test/include -I/Users/arthur/php-src/ext/test/main -I/Users/arthur/php-src/ext/test -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -DHAVE_CONFIG_H -g -O2 -c /Users/arthur/php-src/ext/test/test.c -fno-common -DPIC -o .libs/test.o gcc -dynamic -flat_namespace -bundle -undefined suppress -DPHP_ATOM_INC -I/Users/arthur/php-src/ext/test/include -I/Users/arthur/php-src/ext/test/main -I/Users/arthur/php-src/ext/test -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -DHAVE_CONFIG_H -g -O2 -o test.so test.lo /usr/bin/ld: test.lo bad magic number (not a Mach-O file) collect2: ld returned 1 exit status make: *** [test.so] Error 1 It should also be noted that it worked fine before, but either something in PHP broke it or Xcode 2.1. Because it worked fine with Xcode 2.0. Reproduce code: --- Not relevant Expected result: It should compile without errors. Actual result: -- See description. -- Edit this bug report at http://bugs.php.net/?id=33326edit=1