Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PerlProc_setjmp undefined under WIN32 #8496

Open
p5pRT opened this issue Jun 23, 2006 · 4 comments
Open

PerlProc_setjmp undefined under WIN32 #8496

p5pRT opened this issue Jun 23, 2006 · 4 comments

Comments

@p5pRT
Copy link

p5pRT commented Jun 23, 2006

Migrated from rt.perl.org#39614 (status was 'open')

Searchable as RT39614$

@p5pRT
Copy link
Author

p5pRT commented Jun 23, 2006

From jerry@hedden.us

Created by jerry@hedden.us

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.

Perl Info

Flags:
    category=core
    severity=high

Site configuration information for perl v5.8.8:

Configured by builder at Mon Mar 20 17:54:00 2006.

Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
  Platform:
    osname=MSWin32, osvers=5.0, archname=MSWin32-x86-multi-thread
    uname=''
    config_args='undef'
    hint=recommended, useposix=true, d_sigaction=undef
    usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT
-DHAVE_DES_FCRYPT -DNO_HASH_SEED -DUSE_SITECUSTOMIZE
-DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO
-DPERL_MSVCRT_READFIX -DHASATTRIBUTE -fno-strict-aliasing',
    optimize='-O2',
    cppflags='-DWIN32'
    ccversion='12.00.8804', gccversion='3.4.2 (mingw-special)',
gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64',
lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf 
-libpath:"C:\Perl\lib\CORE"  -machine:x86'
    libpth=\lib
    libs=-lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32
-lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm
-lversion -lodbc32 -lodbccp32 -lmsvcrt
    perllibs=-lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32
-ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32
-lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lmsvcrt
    libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl58.lib
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-mdll'

Locally applied patches:
    ACTIVEPERL_LOCAL_PATCHES_ENTRY
    Iin_load_module moved for compatibility with build 806
    Avoid signal flag SA_RESTART for older versions of HP-UX
    PerlEx support in CGI::Carp
    Less verbose ExtUtils::Install and Pod::Find
    Patch for CAN-2005-0448 from Debian with modifications
    Partly reverted 24733 to preserve binary compatibilty
    27528 win32_pclose() error exit doesn't unlock mutex
    27527 win32_async_check() can loop indefinitely
    27515 ignore directories when searching @INC
    27359 Fix -d:Foo=bar syntax
    27210 Fix quote typo in c2ph
    27203 Allow compiling swigged C++ code
    27200 Make stat() on Windows handle trailing slashes correctly
    27194 Get perl_fini() running on HP-UX again
    27133 Initialise lastparen in the regexp structure
    27034 Avoid \"Prototype mismatch\" warnings with autouse
    26970 Make Passive mode the default for Net::FTP
    26921 Avoid getprotobyname/number calls in IO::Socket::INET
    26897,26903 Make common IPPROTO_* constants always available
    26670 Make '-s' on the shebang line parse -foo=bar switches
    26379 Fix alarm() for Windows 2003
    26087 Storable 0.1 compatibility
    25861 IO::File performace issue
    25084 long groups entry could cause memory exhaustion
    24699 ICMP_UNREACHABLE handling in Net::Ping


@INC for perl v5.8.8:
    C:/Perl/lib
    C:/Perl/site/lib
    .


Environment for perl v5.8.8:
    CYGWIN=server ntsec
    HOME (unset)
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=C:\Perl\bin;C:\djgpp\bin;C:\Program Files\WiX;C:\Program
Files\nant-0.85-rc3\bin;C:\Program
Files\apache-ant-1.6.3\bin;C:\j2sdk1.4.2_08\bin;C:\Program
Files\Documentum\Shared;C:\blp\API;C:\oracle\ora92\bin;C:\Program
Files\Oracle\jre\1.3.1\bin;C:\Program
Files\Oracle\jre\1.1.8\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\system32\WBEM;C:\Program
Files\cvsnt;c:\dev-cpp\bin
    PERL_BADLANG (unset)
    SHELL (unset)


@p5pRT
Copy link
Author

p5pRT commented May 27, 2013

From @jkeenan

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

@p5pRT
Copy link
Author

p5pRT commented May 27, 2013

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Aug 17, 2013

From @Hugmeir

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants