Re: Gentoo ebuilds

Mike Bedwell <[email protected]>
Newsgroups gmane.comp.web.midgard.user
Message-ID <[email protected]>
On Tue, 2005-05-24 at 16:43 +0000, Mike Bedwell wrote:
> On Tue, 2005-05-24 at 19:25 +0300, Henri Bergius wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: RIPEMD160
> > 
> > Mike Bedwell wrote:
> > | I'm sure this question gets asked for time to time, but are there any
> > | 'current' gentoo ebuilds for midgard?  If there are no current ones, i'm
> > | considering assembling a set.
> > 
> > Would be cool to have Midgard more easily available in Gentoo :-)
> > 
> > And no, I don't think anybody has maintained ebuilds so far...
> > 
> > /Bergie
> > 
> 
> I've created the ebuilds for all the source files.  I'm having a bear
> getting ZTS to play nice though, and, haven't fully automated the
> install of midgard-php(have to manually edit php.ini).  Once I get them
> working on my machine though, I'll post them up somewhere.
> 
-- 
Mike


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
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"
/usr/include/php/TSRM/TSRM.h:128: warning: data definition has no type
or storage class
/usr/include/php/TSRM/TSRM.h:129: error: syntax error before
"tsrm_mutex_alloc"
/usr/include/php/TSRM/TSRM.h:129: warning: data definition has no type
or storage class
/usr/include/php/TSRM/TSRM.h:130: error: syntax error before "mutexp"
/usr/include/php/TSRM/TSRM.h:131: error: syntax error before "mutexp"
/usr/include/php/TSRM/TSRM.h:132: error: syntax error before "mutexp"
make: *** [midgard.lo] Error 1

thoughts anyone?

oh, and, the problem I'm chasing and believe to be related to ZTS is
this

ldd -d /usr/lib/php/extensions/no-debug-zts-20020429/
midgard.so
undefined symbol: zend_execute
(/usr/lib/php/extensions/no-debug-zts-20020429/midgard.so)
undefined symbol: compiler_globals
(/usr/lib/php/extensions/no-debug-zts-20020429/midgard.so)
undefined symbol: sapi_globals
(/usr/lib/php/extensions/no-debug-zts-20020429/midgard.so)
undefined symbol: executor_globals
(/usr/lib/php/extensions/no-debug-zts-20020429/midgard.so)
undefined symbol: zval_used_for_init
(/usr/lib/php/extensions/no-debug-zts-20020429/midgard.so)
        linux-gate.so.1 =>  (0xffffe000)
        libmysqlclient.so.12 => /usr/lib/libmysqlclient.so.12
(0xb7f50000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0xb7f29000)
        libpam.so.0 => /lib/libpam.so.0 (0xb7f21000)
        libm.so.6 => /lib/libm.so.6 (0xb7efe000)
        libz.so.1 => /lib/libz.so.1 (0xb7eed000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7ebf000)
        libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0xb7e9a000)
        libmidgard.so.7 => /usr/lib/libmidgard.so.7 (0xb7e78000)
        libc.so.6 => /lib/libc.so.6 (0xb7d64000)
        libnsl.so.1 => /lib/libnsl.so.1 (0xb7d4f000)
        libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0xb7d1f000)
        libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0xb7c1e000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7c1a000)
        /lib/ld-linux.so.2 (0x80000000)
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQBCk4vsE8/6810jZicRArwdAJ9v9t/oNPlZ3UbsxLx0z143gURHbQCeMCUh
VmwwU9xeEcLMPhVvliPtTJI=
=OOpr
-----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.