Your particular problem is still puzzling me no end :-) What does 'perl -V' output ? (That's an uppercase 'V'). Also, how did you install MinGW (was it via 'ppm', or some other way) ?
I'm thinking you could try using the freely available dmake instead of that crappy old version of nmake that you have, though I'm not sure it will improve things for you. Anyway, with answers to the above questions, we might be better equipped to work out how to deal with this.
Cheers, Rob | [reply] |
Your particular problem is still puzzling me no end :-)
Glad I could muster up a challenge...
What does 'perl -V' output ? (That's an uppercase 'V').
Lessee here...
Also, how did you install MinGW (was it via 'ppm', or some other way) ?
Got it off Sourceforge, automated installer; version 5.1.4
I'm thinking you could try using the freely available dmake instead of that crappy old version of nmake that you have, though I'm not sure it will improve things for you.
Same exact deal except the last line goes "dmake: Error code 129, while making 'PLJava.dll'"
| [reply] [d/l] |
It gets weirder by the minute. (You did run 'nmake realclean' before starting with dmake ? And you'll need to remove 'nmake.exe' from your path in order to successfully use 'dmake'. Check that 'perl -V:make' reports 'make=dmake' before running 'perl Makefile.PL') I've got the same as you, yet the build succeeds. ('dmake test' won't work, so there's still some work to do, but at least the 'Makefile.PL' and 'dmake' steps work ok - though there's a couple of warnings during 'dmake' that bother me a bit.)
So, probably best to post the entire output you get from running 'perl Makefile.PL' and 'dmake'. I've copied the output I'm getting, and placed it below my sig - maybe you can spot something relevant.
What version of ExtUtils::MakeMaker do you have ? I have 6.42_01 which is the version that shipped with build 1005.
Cheers, Rob
C:\_32\comp\PLJava-0.04>perl Makefile.PL
Set up gcc environment - 3.4.5 (mingw-vista special r3)
Note (probably harmless): No library found for -lkernel32
Note (probably harmless): No library found for -luser32
Note (probably harmless): No library found for -lgdi32
Note (probably harmless): No library found for -lwinspool
Note (probably harmless): No library found for -lcomdlg32
Note (probably harmless): No library found for -ladvapi32
Note (probably harmless): No library found for -lshell32
Note (probably harmless): No library found for -lole32
Note (probably harmless): No library found for -loleaut32
Note (probably harmless): No library found for -lnetapi32
Note (probably harmless): No library found for -luuid
Note (probably harmless): No library found for -lws2_32
Note (probably harmless): No library found for -lmpr
Note (probably harmless): No library found for -lwinmm
Note (probably harmless): No library found for -lversion
Note (probably harmless): No library found for -lodbc32
Note (probably harmless): No library found for -lodbccp32
Note (probably harmless): No library found for -lmsvcrt
Writing Makefile for PLJava
C:\_32\comp\PLJava-0.04>dmake
gcc -c -I"C:\jdk1.5.0_07\include" -I"C:\jdk1.5.0_07\include/win32" -Wa
+ll -Wno-co
mments -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DUS
+E_SITECUST
OMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SY
+S -DUSE_PE
RLIO -DPERL_MSVCRT_READFIX -DHASATTRIBUTE -fno-strict-aliasing -mms-bi
+tfields -
I"C:\_32\ap1005\lib\CORE" PLJava.c
PLJava.c: In function `PLJava_eval':
PLJava.c:81: warning: unused variable `my_perl'
PLJava.c: In function `PLJava_eval_sv':
PLJava.c:95: warning: unused variable `my_perl'
PLJava.c: In function `PLJava_error':
PLJava.c:115: warning: unused variable `my_perl'
gcc -c -I"C:\jdk1.5.0_07\include" -I"C:\jdk1.5.0_07\include/win32" -Wa
+ll -Wno-co
mments -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DUS
+E_SITECUST
OMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SY
+S -DUSE_PE
RLIO -DPERL_MSVCRT_READFIX -DHASATTRIBUTE -fno-strict-aliasing -mms-bi
+tfields -
I"C:\_32\ap1005\lib\CORE" PLJava_wrap.c
PLJava_wrap.c:39: warning: 'SWIG_JavaThrowException' defined but not u
+sed
C:\jdk1.5.0_07\bin\javac -d ./ *.java
g++ PLJava.o PLJava_wrap.o -s -L"C:\_32\ap1005\lib\CORE" C:\_32\ap1
+005\lib\CO
RE\perl510.lib -shared -dll -o PLJava.dll
C:\_32\ap1005\bin\perl.exe MakeFile.PL renametree basiclib txt
Set up gcc environment - 3.4.5 (mingw-vista special r3)
C:\_32\ap1005\bin\perl.exe -MExtUtils::Command -e rm_rf lib
C:\_32\ap1005\bin\perl.exe -MExtUtils::Command -e rm_rf built
C:\_32\ap1005\bin\perl.exe MakeFile.PL renametree basiclib .
Set up gcc environment - 3.4.5 (mingw-vista special r3)
C:\_32\ap1005\bin\perl.exe -MExtUtils::Manifest=manicopy,maniread -e "
+chdir('basiclib') ; manicopy( { %{ maniread('MANIFEST-LIB') } } ,'../
+lib');"
mkdir ../lib
mkdir ../lib/XML
mkdir ../lib/XML/Smart
mkdir ../lib/auto
mkdir ../lib/auto/DynaLoader
mkdir ../lib/Carp
mkdir ../lib/warnings
mkdir ../lib/Object
mkdir ../lib/Exporter
mkdir ../lib/Data
C:\_32\ap1005\bin\perl.exe -MExtUtils::Manifest=manicopy,maniread -e "
+manicopy(
{ 'PLJava.dll' => '' , %{ maniread('MANIFEST-BUILT') } } ,'built');"
mkdir built
mkdir built/lib
mkdir built/lib/XML
mkdir built/lib/XML/Smart
mkdir built/perl5
mkdir built/perl5/lib
mkdir built/lib/Carp
mkdir built/lib/Object
mkdir built/lib/warnings
mkdir built/lib/Data
mkdir built/lib/auto
mkdir built/lib/auto/DynaLoader
mkdir built/lib/Exporter
C:\_32\comp\PLJava-0.04>dmake test
C:\jdk1.5.0_07\bin\java test
PLJava - Native code library failed to load. See the chapter on Dynami
+c Linking
Problems in the SWIG Java documentation for help.
java.lang.UnsatisfiedLinkError: PLJava_start
dmake.exe: Error code 129, while making 'test'
C:\_32\comp\PLJava-0.04>
| [reply] [d/l] |