Re: Gentoo ebuilds

Piotras <pp-VVDi8QVAvoBWk0Htik3J/[email protected]>
Newsgroups gmane.comp.web.midgard.user
Message-ID <[email protected]>
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.

> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.