Re: Cygwin - compilation of PHP extension
| From: | Martin Zvarík | Date: | Mon, 30 Mar 2009 10:59:43 +0000 |
| Subject: | Re: Cygwin - compilation of PHP extension | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-290815@lists.php.net to get a copy of this message | ||
Martin Zvarík napsal(a):
Per Jessen napsal(a):Hmm, it seemed all working, but... $ make ...created 4 files: /usr/local/src/extension/.libs/extension.a, extension.la.lnk, extension.o (280 kB, the other 3 had few bytes, *.a, *.la, *.lai) $ make install ... created: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ one file *.a (8 bytes "!<arch>") ---- So, I did: $ gcc -shared -o extname.dll extension.o (the 280 kB file) And it showed 100's of errors like "undefined reference to '_php_printf' ---- Can you help? I searched, but I am helpless.Martin Zvarík wrote:Hi, I am totally new in compiling under cygwin. I need to compile an PHP extension, and this is what I figured so far:I wouldn't expect cygwin to be that different to a real Linux environment - how about: untar the extension cd dir phpize ./configure make make install