[mapserver-users] Problems with mapscript on win32
Lars Holm Loldrup
LLO at carlbro.dk
Mon Jun 18 03:02:15 PDT 2001
I have build a mapscript.dll for win32 and installed it in my perl
directory-structure. The
compile seems ok, but I get some warnings that can be seen below.
I the wrote a small perl script that does some spatial queries using the
mapscript.pm.
The output from the script is ok, but perl.exe dies when the script is done:
Cut from Dr. Watson window that pops up:
Perl.exe: Exception: access violation (0xc00000005), Address: 0x10098359
Is anyone using mapscript for win32 (with success) ?, if so how was it build
?
My build system:
Win NT4 sp3.
ActiveState perl, v5.6.1
MS Visual c++ 5.0
Mapserv 3.4
My target system:
Win NT4 sp5.
Relevant output from mapscript build (with warnings):
mapscript_wrap.c
mapscript_wrap.c(418) : warning C4113: 'int (__cdecl *)(struct sv *,struct
magic *)' differs in parameter lists from 'int (__cdecl *)(struct
interpreter *,struct sv *,struct magic *)'
mapscript_wrap.c(419) : warning C4113: 'int (__cdecl *)(struct sv *,struct
magic *)' differs in parameter lists from 'int (__cdecl *)(struct
interpreter *,struct sv *,struct magic *)'
mapscript_wrap.c(13698) : warning C4028: formal parameter 1 different from
declaration
mapscript_wrap.c(13698) : warning C4029: declared formal parameter list
different from definition
"Running Mkbootstrap for mapscript ()"
C:\Perl\bin\Perl.exe -IC:\Perl\lib -IC:\Perl\lib -MExtUtils::Command
-e chmod 644 mapscript.bs
link -out:blib\arch\auto\mapscript\mapscript.dll -dll -nologo
-nodefaultlib -release -libpath:"C:\Perl\lib\CORE"
-libpath:c:\users\llo\mapserv\mapserver
-libpath:c:\users\llo\mapserv\mapserver\gd-1.2
-libpath:c:\users\llo\mapserv\mapserver\gdft
-libpath:c:\users\llo\mapserv\tiff-v3.5.5\libtiff
-libpath:C:\users\llo\mapserv\freetype\lib -machine:x86 mapscript_wrap.obj
C:\Perl\lib\CORE\perl56.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 libcmt.lib mapserver.lib libtiff.lib freetype.lib gdft.lib
gd.lib -def:mapscript.def
mapscript_wrap.obj : warning LNK4197: export "_boot_mapscript" specified
multiple times; using first specification
Creating library blib\arch\auto\mapscript\mapscript.lib and object
blib\arch\auto\mapscript\mapscript.exp
LINK : warning LNK4049: locally defined symbol "_strncat" imported
LINK : warning LNK4049: locally defined symbol "_qsort" imported
LINK : warning LNK4049: locally defined symbol "_strncmp" imported
LINK : warning LNK4049: locally defined symbol "_malloc" imported
LINK : warning LNK4049: locally defined symbol "_free" imported
C:\Perl\bin\Perl.exe -IC:\Perl\lib -IC:\Perl\lib -MExtUtils::Command
-e
chmod 755 blib\arch\auto\mapscript\mapscript.dll
C:\Perl\bin\Perl.exe -IC:\Perl\lib -IC:\Perl\lib -MExtUtils::Command
-e
cp mapscript.bs blib\arch\auto\mapscript\mapscript.bs
C:\Perl\bin\Perl.exe -IC:\Perl\lib -IC:\Perl\lib -MExtUtils::Command
-e
chmod 644 blib\arch\auto\mapscript\mapscript.bs
Best regards
Lars Holm Loldrup
Carl Bro as
Granskoven 8, DK 2600 Glostrup
Tel (dir): 4348 6466
mailto:llo at carlbro.dk
http://www.carlbro.dk
More information about the MapServer-users
mailing list