PHP 4.0.4pl1
OS Linux SuSe 7.0


I am building my custom php extension. For the windows platform it went
fine, but I still
have a problems on Linux. As a matter of fact a can not test even
examples given
There is two ways described in,
make mechanism in ext directory and manual make.

I  have cleaned out previous and compiled and installed fresh PHP
distribution ,
I  took first_module example , which has only one function
returning long digit. Copied first_module folder into ext directory
and after I run buildconf , configure ( of course with :
--enable-first_module )
produces following error:
checking whether to enable the bundled filePro support... no
: command not found
checking BOOK: whether to enable the first module... yes
: command not found
: command not found
./configure: line 45070: syntax error: unexpected end of file
Second, custom make, performed exactly as described
cc -fpic -DCOMPILE_DL=1 -I/usr/local/include -I. -I.. -I../Zend -c
-o           <your_object_file><your_c_file>
cc -shared -L/usr/local/lib -rdynamic -o <your_module_file>
although produces, but after copied to appropriate
folder and
loaded by dl(lib_name), gives an error:
Invalid library (maybe not a PHP library) './'

Could anyone at least give me a hint in what direction should I look for
mistake ?

Viktors Krebss, [EMAIL PROTECTED]
DELFI Interactive,
tel: +371-7777748, mob: +371-9243923, fax: +371-7777701

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to