develooper Front page | perl.perl5.porters | Postings from August 2013

[perl #39614] PerlProc_setjmp undefined under WIN32

Thread Previous
From:
Brian Fraser via RT
Date:
August 17, 2013 00:31
Subject:
[perl #39614] PerlProc_setjmp undefined under WIN32
Message ID:
rt-3.6.HEAD-2552-1376699453-569.39614-15-0@perl.org
On Mon May 27 06:17:11 2013, jkeenan wrote:
> On Fri Jun 23 08:29:34 2006, jerry@hedden.us wrote:
> > To: perlbug@perl.org
> > Subject: PerlProc_setjmp undefined under WIN32
> > Cc: support@ActiveState.com
> > Reply-To: jerry@hedden.us
> > Message-Id: <5.8.8_19028_1151076078@CORP>
> > 
> > This is a bug report for perl from jerry@hedden.us,
> > generated with the help of perlbug 1.35 running under perl v5.8.8.
> > 
> > -----------------------------------------------------------------
> > [Please enter your report here]
> > 
> > The latest patch to the 'threads' module makes use of:
> >     dJMPENV
> >     JMPENV_PUSH
> >     JMPENV_POP
> > 
> > Compiling under ActivePerl (WIN32) produces the following error:
> > 
> > 	gcc -o blib\arch\auto\threads\threads.dll -Wl,--base-file
> > -Wl,dll.base
> > -mdll threads.o -Wl,--image-base,0x150c0000
> > C:\Perl\lib\CORE\perl58.lib
> > -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32
> > -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion
> > -lodbc32 -lodbccp32 -lmsvcrt dll.exp
> > threads.o(.text+0x5dc):threads.c: undefined reference to
> > `PerlProc_setjmp'
> > threads.o(.text+0x757):threads.c: undefined reference to
> > `PerlProc_setjmp'
> > 
> > Jan Dubois states that this is caused by 'setjmp' being defined to
> > 'PerlProc_setjmp' in XSUB.h
> > 
> > I attempted to use '#define NO_XSLOCKS', but this resulted in
> > intermittent hangs during 'make test'.
> > 
> > XSUB.h needs to be corrected so that 'setjmp' remains defined to the
> > proper value under WIN32.
> > 
> 
> Reviewing older tickets this morning, I came across this one.
> 
> Jerry, Jan:
> 
> Were you ever able to resolve this problem?
> 
> Thank you very much.
> Jim Keenan

This came up again on 2010:
http://comments.gmane.org/gmane.comp.lang.perl.perl5.porters/88252

I also just got it on a cpantesters report, which is what made me find
this bug:
http://www.cpantesters.org/cpan/report/1c38ed62-6c43-1014-8e25-a8ec223f278b

So it looks like this is still an issue. I haven't tried the suggested
workaround yet, but neither of the two affected modules (threads and
Scope::Escape) use it, so perhaps something else has superseded it.


--hugmeir


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=39614

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About