How so I tell PHP to compile in or use a static library in a module I wrote?
Can someone please give me an example of the appropriate entries in the ext/<module>/config.m4 file to compile in a custom library? Background: I've been given the task of creating our own custom PHP module so that we can make calls to a 3rd party library using the API they provided us. The vendor provides a static library, lets call it "client.a" and some C header files "client.h" etc. The library and headers are designed to be incorporated into your own C solution and I have in fact done this creating a command line version of the code that can be called from PHP using exec() or something similar. Its ugly and I'd really much rather call it directly from PHP by making it into a module. I've made quite a bit progress towards this but I can't seem to get the 3rd part static library to compile into PHP (I'm running PHP as a module under apache). When I try to start Apache after compiling PHP, it says "undefined symbol client_function". client_function is a call to a function in the client.a that was supplied by the 3rd party vendor. I know this is because the appropriate "-lclient" is not being passed during the linking stage but I can't seem to figure out how to get this working. I've edited the config.m4 file in every way I can think of, but still, it will not compile. In fact every change I've made to the config.m4 in the section that talks about extra libs just results in it failing to "configure" (I can't even compile). Thanks very much for any help. John -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]