Subject: | Problem compiling Mouse under Strawberry including Workaround |
Date: | Wed, 10 Mar 2010 11:43:23 +0100 |
To: | bug-Mouse [...] rt.cpan.org |
From: | Ruediger Bodack <Ruediger.Bodack [...] alpine.de> |
Dear All,
when I try to compile Mouse, I get:
C:\strawberry\cpan\build\Mouse-0.50-g96qRh>dmake all
dlltool --def Mouse.def --output-exp dll.exp
g++ -o blib\arch\auto\Mouse\Mouse.dll -Wl,--base-file -Wl,dll.base -mdll
-s -L"C
:\strawberry\perl\lib\CORE" -L"C:\strawberry\c\lib" xs-src/Mouse.o
xs-src/M
ouseAccessor.o xs-src/MouseAttribute.o xs-src/MouseTypeConstraints.o
xs-src/MouseUtil.o -Wl,--image-base,0x28410000
C:\strawberry\perl\lib\CORE\libp
erl510.a -lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool
-lcomdlg32 -
ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr
-lwinmm
-lversion -lodbc32 -lodbccp32 dll.exp
xs-src/Mouse.o:Mouse.c:(.text+0xcb4): undefined reference to
`newSVpvs_flags'
xs-src/Mouse.o:Mouse.c:(.text+0x1dd3): undefined reference to
`newSVpvs_flags'
xs-src/MouseAttribute.o:MouseAttribute.c:(.text+0x61f): undefined
reference to `
newSVpvs_flags'
xs-src/MouseAttribute.o:MouseAttribute.c:(.text+0x667): undefined
reference to `
newSVpvs_flags'
xs-src/MouseAttribute.o:MouseAttribute.c:(.text+0x158f): undefined
reference to
`newSVpvs_flags'
xs-src/MouseAttribute.o:MouseAttribute.c:(.text+0x15d5): more undefined
referenc
es to `newSVpvs_flags' follow
xs-src/MouseTypeConstraints.o:MouseTypeConstraints.c:(.text+0x808):
undefined re
ference to `DEFSV_set'
xs-src/MouseUtil.o:MouseUtil.c:(.text+0xa6): undefined reference to
`mPUSHs'
xs-src/MouseUtil.o:MouseUtil.c:(.text+0xc3): undefined reference to
`mPUSHs'
xs-src/MouseUtil.o:MouseUtil.c:(.text+0xbb3): undefined reference to
`mPUSHs'
xs-src/MouseUtil.o:MouseUtil.c:(.text+0xbe1): undefined reference to
`mPUSHs'
xs-src/MouseUtil.o:MouseUtil.c:(.text+0x11fd): undefined reference to
`mXPUSHs'
collect2: ld returned 1 exit status
dmake: Error code 129, while making 'blib\arch\auto\Mouse\Mouse.dll'
C:\strawberry\cpan\build\Mouse-0.50-g96qRh>
I could fix this by replacing ppport.h by the latest one from
DateTime-0.53-gUC_xN
and inserting the following line to
MouseAccessor.xs
MouseTypeConstraints.xs
MouseUtil.xs
Mouse.xs
#include "ppport.h"
This is of course a stupid workaround by a know-nothing, but it helped me
out.
Rüdiger