Subject: | undefined reference to `Perl_hv_backreferences_p' (Win32) |
Hi,
I tried to buid Data-Swap on WinXP running strawberry-perl 5.10 and got
the following error.
Thanks for any help in resolving this.
Regards, Christoph
C:\Dokumente und Einstellungen\straw1\Desktop\Data-Swap-0.08>perl
Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Data::Swap
C:\Dokumente und Einstellungen\straw1\Desktop\Data-Swap-0.08>dmake
cp lib/Data/Swap.pm blib\lib\Data\Swap.pm
C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp
-typemap
C:\strawberry\perl\lib\ExtUtils\typemap Swap.xs > Swap.xsc &&
C:\strawberry\pe
rl\bin\perl.exe -MExtUtils::Command -e mv Swap.xsc Swap.c
gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT
-DPERL_
IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX -s -O2
-DVERSION=\"0.
08\" -DXS_VERSION=\"0.08\" "-IC:\strawberry\perl\lib\CORE" Swap.c
Running Mkbootstrap for Data::Swap ()
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod 644 Swap.bs
C:\strawberry\perl\bin\perl.exe -MExtUtils::Mksymlists \
-e "Mksymlists('NAME'=>\"Data::Swap\", 'DLBASE' => 'Swap',
'DL_FUNCS' => {
}, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);"
dlltool --def Swap.def --output-exp dll.exp
g++ -o blib\arch\auto\Data\Swap\Swap.dll -Wl,--base-file -Wl,dll.base
-mdll -s -
L"C:\strawberry\perl\lib\CORE" -L"C:\strawberry\c\lib" Swap.o
-Wl,--image-base,0
x7d130000 C:\strawberry\perl\lib\CORE\libperl510.a -lmsvcrt -lmoldname
-lkernel
32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32
-loleaut3
2 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32
dll.exp
Swap.o:Swap.c:(.text+0xc8): undefined reference to
`Perl_hv_backreferences_p'
Swap.o:Swap.c:(.text+0x139): undefined reference to
`Perl_hv_backreferences_p'
collect2: ld returned 1 exit status
dmake: Error code 129, while making 'blib\arch\auto\Data\Swap\Swap.dll'
C:\Dokumente und Einstellungen\straw1\Desktop\Data-Swap-0.08>perl -V
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
Platform:
osname=MSWin32, osvers=5.1, archname=MSWin32-x86-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=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 =' -s -O2 -DWIN32 -DHAVE_DES_FCRYPT
-DPERL_IMPLICIT_CONTE
XT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX',
optimize='-s -O2',
cppflags='-DWIN32'
ccversion='', gccversion='3.4.5', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='long
long', lseek
size=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='g++', ldflags ='-s -L"C:\strawberry\perl\lib\CORE"
-L"C:\strawberry\c\li
b"'
libpth=C:\strawberry\c\lib
libs= -lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool
-lcomdlg32
-ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr
-lwinmm
-lversion -lodbc32 -lodbccp32
perllibs= -lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool
-lcomdl
g32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32
-lmpr -lw
inmm -lversion -lodbc32 -lodbccp32
libc=-lmsvcrt, so=dll, useshrplib=true, libperl=libperl510.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-mdll -s -L"C:\strawberry\perl\lib\CORE"
-L"C:\st
rawberry\c\lib"'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
PERL_MALLOC_WRAP PL_OP_SLAB_ALLOC USE_ITHREADS
USE_LARGE_FILES USE_PERLIO
Built under MSWin32
Compiled at Aug 11 2008 04:41:33
@INC:
c:/strawberry/perl/lib
c:/strawberry/perl/site/lib
.