PHP 4.0 Zend API

From: Date: Wed, 07 Mar 2001 19:52:03 +0000
Subject: PHP 4.0 Zend API
Groups: php.dev 
Request: Send a blank email to php-dev+get-48189@lists.php.net to get a copy of this message
PHP 4.0.4pl1 OS Linux SuSe 7.0 Hi, 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 on www.zend.com/apidoc/examples.tar.gz There is two ways described in www.zend.com/apidoc/c338.php, 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> <your_object_file(s)> ) although produces first_module.so, but after copied to appropriate folder and loaded by dl(lib_name), gives an error: Invalid library (maybe not a PHP library) './first_module.so' Could anyone at least give me a hint in what direction should I look for my mistake ? -- Viktors Krebss, lopik@delfi.lv DELFI Interactive, http://www.delfi.lv/ tel: +371-7777748, mob: +371-9243923, fax: +371-7777701

« previous php.dev (#48189) next »