Skip Menu |

This queue is for tickets about the Enbugger CPAN distribution.

Report information
The Basics
Id: 47093
Status: open
Priority: 0/
Queue: Enbugger

People
Owner: Nobody in particular
Requestors: demosten [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in:
  • 2.005
  • 2.009
Fixed in: (no value)



Subject: Broken build
I've got build errors on Windows: =========================== Compiler: VC2003, Perl: 5.8.5, make tool: nmake (tried both 2.005 and 2.009) =========================== link -out:blib\arch\auto\Enbugger\Enbugger.dll -dll -nologo -nodefaultlib -debug -opt:ref,icf -libpath:"O:\work\perl\lib\CORE" -machine:x86 Enbugger.obj O:\work\perl\lib\CORE\perl58.lib oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib -def:Enbugger.def Creating library blib\arch\auto\Enbugger\Enbugger.lib and object blib\arch\auto\Enbugger\Enbugger.exp Enbugger.obj : error LNK2019: unresolved external symbol _Perl_pp_nextstate referenced in function _alter_cop Enbugger.obj : error LNK2019: unresolved external symbol _Perl_pp_dbstate referenced in function _alter_cop Enbugger.obj : error LNK2019: unresolved external symbol _Perl_init_debugger referenced in function _XS_Enbugger_init_debugger blib\arch\auto\Enbugger\Enbugger.dll : fatal error LNK1120: 3 unresolved externals =========================== Compiler: mingw, Perl: 5.10.0, make tool: dmake (tried version 2.009 with CPAN+) =========================== g++ -o blib\arch\auto\Enbugger\Enbugger.dll -Wl,--base-file -Wl,dll.base -mdll -s -L"I:\dnperl\perl\lib\CORE" -L"I:\dnperl\mingw\lib" Enbugger.o -Wl,--image-base,0x22090000 I:\dnperl\perl\lib\CORE\libperl510.a -lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 dll.exp Enbugger.o:Enbugger.c:(.text+0x82): undefined reference to `Perl_pp_dbstate' Enbugger.o:Enbugger.c:(.text+0x89): undefined reference to `Perl_pp_nextstate' Enbugger.o:Enbugger.c:(.text+0x422): undefined reference to `Perl_pp_nextstate' Enbugger.o:Enbugger.c:(.text+0x42d): undefined reference to `Perl_pp_nextstate' Enbugger.o:Enbugger.c:(.text+0x502): undefined reference to `Perl_pp_dbstate' Enbugger.o:Enbugger.c:(.text+0x50d): undefined reference to `Perl_pp_dbstate' Enbugger.o:Enbugger.c:(.text+0x5dc): undefined reference to `Perl_init_debugger' Enbugger.o:Enbugger.c:(.text+0xcff): undefined reference to `Perl_init_debugger' collect2: ld returned 1 exit status dmake.EXE: Error code 129, while making 'blib\arch\auto\Enbugger\Enbugger.dll'
Ran across this and decided to ask the people in #p5p, since the exports seemed to be perl core stuff. Turned out i was right, but they're not exported on Windows. However, it seems there are some ways to get around that. Nicholas suggested to use PL_ppaddr[OP_DBSTATE], since PL_ppaddr is exported. JJORE, could you please try and make use of that so we can see if it improves things?
Subject: Re: [rt.cpan.org #47093] Broken build
Date: Mon, 19 Mar 2012 07:20:57 -0700
To: bug-Enbugger [...] rt.cpan.org
From: Joshua ben Jore <twists [...] gmail.com>
Ok, I'll see what I can do. On Mon, Mar 19, 2012 at 4:19 AM, Christian Walde via RT <bug-Enbugger@rt.cpan.org> wrote: Show quoted text
>       Queue: Enbugger >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=47093 > > > Ran across this and decided to ask the people in #p5p, since the exports > seemed to be perl core stuff. Turned out i was right, but they're not > exported on Windows. > > However, it seems there are some ways to get around that. Nicholas > suggested to use PL_ppaddr[OP_DBSTATE], since PL_ppaddr is exported. > JJORE, could youS