From:             artooro at gmail dot com
Operating system: Mac OS X 10.4.1
PHP version:      5CVS-2005-06-13 (dev)
PHP Bug Type:     Compile Failure
Bug description:  Cannot build extensions with phpize

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 bug report at http://bugs.php.net/?id=33326&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33326&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33326&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33326&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33326&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33326&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33326&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33326&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33326&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33326&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33326&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33326&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33326&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33326&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33326&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33326&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33326&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33326&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33326&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33326&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33326&r=mysqlcfg

Reply via email to