Subject: | make fails with Strawberry Perl / Win32 |
Hi,
make fails on Win32 with Strawberry Perl; this was tested with five
different Windows/Perl-Installations, with one it works, the other throw
the following error:
MOP.o:MOP.c:(.text+0x2f): undefined reference to `Perl_mro_meta_init'
collect2: ld returned 1 exit status
Complete output since Makefile Building:
Writing Makefile for Class::MOP
cp lib/Class/MOP/Method/Accessor.pm blib\lib\Class\MOP\Method\Accessor.pm
cp lib/Class/MOP/Method/Constructor.pm
blib\lib\Class\MOP\Method\Constructor.pm
cp lib/metaclass.pm blib\lib\metaclass.pm
cp lib/Class/MOP/Method.pm blib\lib\Class\MOP\Method.pm
cp lib/Class/MOP/Method/Generated.pm blib\lib\Class\MOP\Method\Generated.pm
cp lib/Class/MOP/Instance.pm blib\lib\Class\MOP\Instance.pm
cp lib/Class/MOP.pm blib\lib\Class\MOP.pm
cp lib/Class/MOP/Class.pm blib\lib\Class\MOP\Class.pm
cp lib/Class/MOP/Method/Wrapped.pm blib\lib\Class\MOP\Method\Wrapped.pm
cp lib/Class/MOP/Immutable.pm blib\lib\Class\MOP\Immutable.pm
cp lib/Class/MOP/Object.pm blib\lib\Class\MOP\Object.pm
cp lib/Class/MOP/Attribute.pm blib\lib\Class\MOP\Attribute.pm
cp lib/Class/MOP/Module.pm blib\lib\Class\MOP\Module.pm
cp lib/Class/MOP/Package.pm blib\lib\Class\MOP\Package.pm
C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp
-typemap C:\strawberry\perl\lib\ExtUtils\typemap -typemap typemap
MOP.xs > MO
P.xsc && C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e mv
MOP.xsc MOP.c
gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT
-DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX -s -O2
-DVE
RSION=\"0.72\" -DXS_VERSION=\"0.72\" "-IC:\strawberry\perl\lib\CORE"
MOP.c
Running Mkbootstrap for Class::MOP ()
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod 644 MOP.bs
C:\strawberry\perl\bin\perl.exe -MExtUtils::Mksymlists \
-e "Mksymlists('NAME'=>\"Class::MOP\", 'DLBASE' => 'MOP',
'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);"
dlltool --def MOP.def --output-exp dll.exp
g++ -o blib\arch\auto\Class\MOP\MOP.dll -Wl,--base-file -Wl,dll.base
-mdll -s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawberry\c\lib" MOP.o
-Wl,--imag
e-base,0x29230000 C:\strawberry\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
MOP.o:MOP.c:(.text+0x2f): undefined reference to `Perl_mro_meta_init'
collect2: ld returned 1 exit status
dmake.EXE: Error code 129, while making 'blib\arch\auto\Class\MOP\MOP.dll'
DROLSKY/Class-MOP-0.72.tar.gz
C:\strawberry\c\bin\dmake.EXE -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
DROLSKY/Class-MOP-0.72.tar.gz : make NO
The same error exists when compiling manually or via CPAN shell.
Perl -V is:
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_CONTEXT -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', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='g++', ldflags ='-s -L"C:\strawberry\perl\lib\CORE"
-L"C:\strawberry\c\lib"'
libpth=C:\strawberry\c\lib
libs= -lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool
-lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid
-lws2_32 -lm
pr -lwinmm -lversion -lodbc32 -lodbccp32
perllibs= -lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool
-lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid
-lws2_32
-lmpr -lwinmm -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:\strawberry\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 Oct 19 2008 15:47:04
@INC:
C:/strawberry/perl/lib
C:/strawberry/perl/site/lib
.
Ciao
Alvar