On Monday 15 September 2003 16:30, ashish b\\ wrote: > 1. ran the ext_skel command i.e. ext_skel --extname=rot13 --proto=rot13.def > 2. with rot13 as current folder I ran phpize for creating a self contained > extension. 3. /usr/local/php-4.3.2/ext/rot13> ./configure > 4. /usr/local/php-4.3.2/ext/rot13> make > 5. /usr/local/php-4.3.2/ext/rot13> make install > 6. librot13.a is generated. > 7. when I do a ldd ./librot13.a i get error as > exec(): 0509-036 Cannot load program ./librot13.a. because of the > following errors: 0509-022 Cannot load module ./librot13.a. > 0509-103 The module has an invalid magic number. > 8. so I used the library rot13.so.0 and got the core dump at > zend_parse_parameters. It seems my extension is not getting the reference > to zend_parse_parameters function in php.The same thing runs withou any > problem on Linux as well as Windows.
What's the output of: dump -h rot13.so.0 Does it work, when using the 'non-phpize' approach - ie: compile the extension into php itself. See README.EXT_SKEL for details. -- Melvyn -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php