develooper Front page | perl.perl5.porters | Postings from March 2007

Win32CORE causing problems with non-threaded MinGW build

Thread Next
From:
Steve Hay
Date:
March 22, 2007 09:25
Subject:
Win32CORE causing problems with non-threaded MinGW build
Message ID:
4602ADDC.1030606@uk.radan.com
Recent smokes of mine have shown that the Win32CORE changes are causing 
problems with non-threaded builds when using MinGW.

The following errors occur when it gets to linking the perl59.dll:

g++ -mdll -o ..\perl59.dll -Wl,--base-file -Wl,perl.base  -s 
-L"c:\perl\lib\CORE" -L"C:\MinGW\lib" \
	    C:\DOCUME~1\steveh\LOCALS~1\Temp\mk18
..\lib\auto\Win32CORE\Win32CORE.a(Win32CORE.o)(.text+0xd):Win32CORE.c: 
undefined reference to `_imp__PL_markstack_ptr'
..\lib\auto\Win32CORE\Win32CORE.a(Win32CORE.o)(.text+0x18):Win32CORE.c: 
undefined reference to `_imp__PL_stack_sp'
..\lib\auto\Win32CORE\Win32CORE.a(Win32CORE.o)(.text+0x27):Win32CORE.c: 
undefined reference to `_imp__PL_stack_base'
..\lib\auto\Win32CORE\Win32CORE.a(Win32CORE.o)(.text+0x6b):Win32CORE.c: 
undefined reference to `_imp__PL_stack_sp'
..\lib\auto\Win32CORE\Win32CORE.a(Win32CORE.o)(.text+0x72):Win32CORE.c: 
undefined reference to `_imp__PL_markstack_ptr'
..\lib\auto\Win32CORE\Win32CORE.a(Win32CORE.o)(.text+0x7e):Win32CORE.c: 
undefined reference to `_imp__PL_markstack_max'
..\lib\auto\Win32CORE\Win32CORE.a(Win32CORE.o)(.text+0x87):Win32CORE.c: 
undefined reference to `_imp__PL_markstack_ptr'
..\lib\auto\Win32CORE\Win32CORE.a(Win32CORE.o)(.text+0x97):Win32CORE.c: 
undefined reference to `_imp__PL_stack_base'
..\lib\auto\Win32CORE\Win32CORE.a(Win32CORE.o)(.text+0xa5):Win32CORE.c: 
undefined reference to `_imp__PL_op'
..\lib\auto\Win32CORE\Win32CORE.a(Win32CORE.o)(.text+0x249):Win32CORE.c: 
undefined reference to `_imp__PL_markstack_ptr'
..\lib\auto\Win32CORE\Win32CORE.a(Win32CORE.o)(.text+0x4b0):Win32CORE.c: 
undefined reference to `_imp__PL_stack_base'
..\lib\auto\Win32CORE\Win32CORE.a(Win32CORE.o)(.text+0x4b7):Win32CORE.c: 
undefined reference to `_imp__PL_sv_yes'
..\lib\auto\Win32CORE\Win32CORE.a(Win32CORE.o)(.text+0x4bf):Win32CORE.c: 
undefined reference to `_imp__PL_stack_base'
..\lib\auto\Win32CORE\Win32CORE.a(Win32CORE.o)(.text+0x4c9):Win32CORE.c: 
undefined reference to `_imp__PL_stack_sp'
collect2: ld returned 1 exit status
dmake:  Error code 129, while making '..\perl59.dll'

This may be related to the "locally defined symbol XXX imported" 
warnings that are emitted lately when building with VC++:

LINK : warning LNK4049: locally defined symbol "_PL_op" imported
LINK : warning LNK4049: locally defined symbol "_PL_markstack_max" imported
LINK : warning LNK4049: locally defined symbol "_PL_stack_base" imported
LINK : warning LNK4049: locally defined symbol "_PL_stack_sp" imported
LINK : warning LNK4049: locally defined symbol "_PL_markstack_ptr" imported
LINK : warning LNK4049: locally defined symbol "_PL_sv_yes" imported

-- 

Thread Next


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