Re: Creation of a new external module

From: Date: Fri, 04 May 2001 11:28:13 +0000
Subject: Re: Creation of a new external module
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-53800@lists.php.net to get a copy of this message
On Fri, 4 May 2001, Denis Gasparin wrote: > I'm trying to create a new external module for PHP called acme. I used > the > ext_skel script to create the module directory and skeleton and then > modified the config.m4 as indicated in that file. Then I moved to the > created acme directory, issued the phpize command, configure and make. > The > compilation worked well and i found in ext/acme/modules the library > acme.so. I installed in my PHP extension dir and the used the dl php > command to load the module but php has given me this error: > > Warning: Invalid library (maybe not a PHP library) 'acme.so' in > /u/WEB/www.testtest.it/denis/index.php on line 4 > > Why does it give me this error? Currently phpize is not well working without following ugly sequence to build extension: phpize CFLAGS="$CFLAGS -DHAVE_ACME=1 -DCOMPILE_DL_ACME=1" configure --with-acme make make install -- Sincerely yours, Alexander Bokovoy The Midgard Project | www.midgard-project.org | ALT Linux Team Minsk Linux Users Group | www.minsk-lug.net | www.altlinux.ru -- Better hope you get what you want before you stop wanting it.

« previous php.dev (#53800) next »