Re: Gentoo ebuilds

Mike Bedwell <[email protected]>
Newsgroups gmane.comp.web.midgard.user
Message-ID <[email protected]>
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
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQBClCfkE8/6810jZicRAmeYAKCbhgXbmYdYARiSrVxd54O29JDMTQCfTmTj
DdlrVJEbfayeqZ578hEp4CA=
=deva
-----END PGP SIGNATURE-----
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.