Compiling the example hello world extension on OSX with PHP 5.1
| From: | Dan Rossi | Date: | Thu, 07 Jul 2005 01:28:44 +0000 |
| Subject: | Compiling the example hello world extension on OSX with PHP 5.1 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-218275@lists.php.net to get a copy of this message | ||
Hi there I am trying to compile the demo example hello world extension on OSX with no luck I keep getting errors when trying to compile.
iElectro:/usr/share/php-5.1.0b2/ext/hello electroteque$ make
gcc -dynamic -flat_namespace -bundle -undefined suppress -DPHP_ATOM_INC -I/usr/share/php-5.1.0b2/ext/hello/include -I/usr/share/php-5.1.0b2/ext/hello/main -I/usr/share/php-5.1.0b2/ext/hello -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/sw/include -DHAVE_CONFIG_H -I/sw/include -L/sw/lib -o hello.so hello.lo
ld: hello.lo bad magic number (not a Mach-O file)
Extension link is http://www.zend.com/php/internals/extension-writing1.php#Heading5
Any ideas what the issue is ?