Re: Extending PHP

From: Date: Thu, 25 Jan 2001 12:36:34 +0000
Subject: Re: Extending PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-36605@lists.php.net to get a copy of this message
Hi Rasmus, Thank you for the link - and sorry about the empty messages ;-) The slides did help to some extend. But I'm only able to compile as described in slide 28. When I try to compile it as a shared module no .so file is generated. I do however get the following warnings: *** Warning: This library needs some functionality provided by -lstocks. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. *** Warning: libtool could not satisfy all declared inter-library *** dependencies of module stocks. Therefore, libtool will create *** a static module, that should work as long as the dlopening *** application is linked with the -dlopen flag. The dlopening appliations is that PHP itself? BR Thomas Rasmus Lerdorf wrote: > > > After 3½ day with the same stupid problem I am borderline crazy and > > beginning to get REALLY fed up with PHP ;-) > > Could it be a bug in the ext_skel "and friends" utilities??? > > No, they work quite well. Try going to http://conf.php.net and > pick the > New York Linuxworld Advanced presentation near the bottom. Then go to > slide #26. This is a walkthrough of building a simple extension which > adds functions for the external libstocks.a library > (http://libstocks.sourceforge.net/) > > Grab the library and try each step and see if you get a working extension > at the end of it. I have actually given this talk a couple of times and > performed each step right in front of everybody and ended up with a > perfectly working extension. > > -Rasmus > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#36605) next »