[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-modperl
Subject: Re: embperl doesn't compile with the latest apache and 5.005_01
From: Sverre Stoltenberg <sverre.stoltenberg-hansson () stv ! uio ! no>
Date: 1998-07-31 12:07:02
[Download RAW message or body]
[Ask Bjoern Hansen]
| embperl (latest from cvs) doesn't compile with the latest apache (from
| cvs) and perl 5.005_01 (-V output below):
|
| epmain.c: In function `SetupRequest':
| epmain.c:1508: `thr' undeclared (first use this function)
| epmain.c:1508: (Each undeclared identifier is reported only once
| epmain.c:1508: for each function it appears in.)
| make: *** [epmain.o] Error 1
|
| DBI 0.93 had a similar problem.. (afair)
From the last two line of DBI 0.93's README file :)
> For perl5.004_5x: If you get "`thr' undeclared" compiler error, you'll
> need to add "dTHR;" to the top of the function that has the error.
Just add dTHR; as fist line of the function in the .xs file, run perl
Makefile.PL again. Worked with other perl modules too.
DBI.xs example:
static int
dbih_set_attr_k(h, keysv, dbikey, valuesv) /* XXX split into dr/db/st funcs */
SV *h;
SV *keysv;
int dbikey;
SV *valuesv;
{
dTHR; /* <---- */
D_imp_xxh(h);
STRLEN keylen;
--
Norsk Hydro DREPER!
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic