Re: Cygwin - compilation of PHP extension

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Martin Zvarík napsal(a):
Per Jessen napsal(a):
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



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.




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux