Re: Building PHP extensions

From: Date: Tue, 25 Dec 2001 22:44:51 +0000
Subject: Re: Building PHP extensions
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-74978@lists.php.net to get a copy of this message
First, the documentation doesn't cover the latest changes. Read the source, luke. On Tue, Dec 25, 2001 at 05:25:49PM -0500, Craig Morrison wrote : > Using the 4.0.6 source tree I get preprocessor errors for undefined symbols > (STANDARD_MODULE_HEADERS is one). When trying to build under the 4.1.0 tree > these errors go away, but I get linker errors because of missing libs. That's one of the major differences. You need some zend api dependend #ifdef's to make the module header work under both API's: #if ZEND_MODULE_API_NO >= 20010901 STANDARD_MODULE_HEADER, #endif and #if ZEND_MODULE_API_NO >= 20010901 NO_VERSION, #endif > [...] have all the neccessary include and lib directories set. I have checked both > trees and the libs in question do not exist. The exact error (what lib is missing? whats your config.m4 and Makefile.in is looking like? Have you checked against other extensions how they do it? Have you used ./ext_skel? etc...) would help. - Markus -- Please always Cc to me when replying to me on the lists.

« previous php.dev (#74978) next »