You are here: Re: [PHP] Compiling the example hello world extension on OSX with PHP 5.1 « PHP « IT news, forums, messages
Re: [PHP] Compiling the example hello world extension on OSX with PHP 5.1

Posted by Rasmus Lerdorf on 07/07/05 04:43

Dan Rossi wrote:
> 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 ?

Yeah, the OSX build is a bit messed up right now. You can fix it
manually by doing a copy-paste of the final link line and replace
hello.lo with hello.o

-Rasmus

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация