#33326 [Fbk->Opn]: Cannot build extensions with phpize
| From: | artooro at gmail dot com | Date: | Tue, 14 Jun 2005 13:15:20 +0000 |
| Subject: | #33326 [Fbk->Opn]: Cannot build extensions with phpize | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-80307@lists.php.net to get a copy of this message | ||
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] rasmus@php.net
Apple's dev environment. For our purposes it means gcc-4.0.0.
------------------------------------------------------------------------
[2005-06-14 02:54:13] sniper@php.net
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] sniper@php.net
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=33326&edit=1