Okay I added dTHX to the following subs in epeval.c:
EvalDirect()
EvalAll()
EvalAllNoCache()
CallCV()
Everything builds just fine now but when I run make test it blows up:
$ make test
PERL_DL_NONLAZY=0 /usr/local/bin/perl -Iblib/arch -Iblib/lib
-I/usr/local/lib/perl5/5.6.0/i686-linux-thread -I/usr/local/lib/perl5/5.6.0
test.pl
loading... ok
Testing offline mode...
#0 ascii... make: *** [test_dynamic] Segmentation fault
Should I build it with debugging turned on? If so is it possible to run the
tests under gdb?
Here's my perl details:
$ perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
Platform:
osname=linux, osvers=2.2.15-4mdk, archname=i686-linux-thread
uname='linux jbodnar.teamlinux.net 2.2.15-4mdk #1 wed may 10 15:31:30 cest
2000 i686 unknown '
config_args='-Dusethreads -Duse5005threads -des'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=define useithreads=undef
usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define
use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
Compiler:
cc='cc', optimize='-O2', gccversion=2.95.3 19991030 (prerelease)
cppflags='-D_REENTRANT -fno-strict-aliasing -I/usr/local/include'
ccflags ='-D_REENTRANT -fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
stdchar='char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lpthread -lc -lposix -lcrypt
libc=/lib/libc-2.1.3.so, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_THREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
Built under linux
Compiled at Aug 10 2000 12:20:37
@INC:
/usr/local/lib/perl5/5.6.0/i686-linux-thread
/usr/local/lib/perl5/5.6.0
/usr/local/lib/perl5/site_perl/5.6.0/i686-linux-thread
/usr/local/lib/perl5/site_perl/5.6.0
/usr/local/lib/perl5/site_perl
.
On 17-Aug-2000 Gerald Richter wrote:
>
>
>> I'm trying to build Embperl with a threaded perl5.6.0. I get the following
>> error while running make:
>>..
>> which suggests adding dTHR; to the beginning of any function that results
> in
>> this error. I try adding dTHR; to EvalDirect in epeval.c but still ended
> up
>> with the same error.
>>
>
> dTHR was the solution for perl 5.005, but all these function already contain
> a dSP, which implies dTHR.
>
> For Perl 5.6 try dTHX instead (see also man perlguts at the very end). If
> this work, let me know where you had to add it, so I can put it in the next
> release, if this doesn't work I need to know first how your Perl is build
> (which flags to configure, output of Perl -V)
>
> Gerald
>
>
> -------------------------------------------------------------
> Gerald Richter ecos electronic communication services gmbh
> Internetconnect * Webserver/-design/-datenbanken * Consulting
>
> Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
> E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925151
> WWW: http://www.ecos.de Fax: +49 6133 925152
> -------------------------------------------------------------
--
Jason Bodnar + [EMAIL PROTECTED] + Team Linux
Foul temptress. I'll bet she thinks Ziggy's gotten too preachy, too!
-- Homer Simpson
The Last Temptation of Homer
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]