On Wed, 2005-05-25 at 10:37 +0200, Piotras wrote:
> Mike Bedwell <[EMAIL PROTECTED]> wrote:
> 
> > Ok, so here is the problem I am having.  My mod_php is built with zts
> > enabled. However, I can't seem to get midgard-php4 to compile with zts
> > enabled.  I'm sure the answer is simple and easy, but after banging my
> > head on the desk for 2 days learning gentoos ebuilds system and puting
> > together these ebuild, I'm completely braindead.  Any ideas would be
> > greatly appreciated.  
> > 
> > When I compile midgard-php4 it's not including, and ZTS doesn't seem to
> > be defined.  If I set ZTS to defined, i get a load of errors, quoted
> > below
> 
> Sorry, I do not understand. How you do "set" ZTS?  What do You mean?
> It should be defined in php header files.

Since my mod_php install was installed with ZTS enabled, and since
midgard-php4 didn't seem to be setting ZTS to defined, i used
preprocessor commands  in the header files to #define ZTS

> > In file included from /usr/include/php/Zend/zend_alloc.h:26,
> >                  from /usr/include/php/Zend/zend.h:223,
> >                  from /usr/include/php/main/php.h:34,
> >                  from /root/midgard/midgard-php4-1.6.3/php_midgard.h:55,
> >                  from /root/midgard/midgard-php4-1.6.3/midgard.c:24:
> > /usr/include/php/TSRM/TSRM.h:105: error: syntax error before "THREAD_T"
> > /usr/include/php/TSRM/TSRM.h:120: error: syntax error before "thread_id"
> > /usr/include/php/TSRM/TSRM.h:121: error: syntax error before "thread_id"
> > /usr/include/php/TSRM/TSRM.h:128: error: syntax error before
> > "tsrm_thread_id"
> 
> Are you sure , you use the same version of php4 and php4-dev?
> 
> Piotras

Yes I am.  I uninstalled all of my php, then re-installed just to cover
that base.  The only thing I can think of that might be an issue here,
is that gentoo installs php (cli) without zts enabled, and installed
mod_php with zts enabled (via --enable-experimental-zts)

-- 
Mike


Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to