Wow, thank you so much for taking time to investigate and even writing to ActiveState. It's working now and I'm happy.
Here the successful output:
E:\perl\Win32-JobAdd-0.01>dmake
cp lib/Win32/JobAdd.pm blib\lib\Win32\JobAdd.pm
C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils\xsubpp -typemap C:\Perl\lib
+\ExtUtils\
typemap JobAdd.xs > JobAdd.xsc && C:\Perl\bin\perl.exe -MExtUtils::Co
+mmand -e "
mv" -- JobAdd.xsc JobAdd.c
Please specify prototyping behavior for JobAdd.xs (see perlxs manual)
C:/Perl/site/bin/gcc.exe -c -I. -DNDEBUG -DWIN32 -D_CONSOLE -D
+NO_STRICT
-DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMP
+LICIT_CONT
EXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -DHASATTRIB
+UTE -fno-s
trict-aliasing -mms-bitfields -O2 -DVERSION=\"0.01\" -DXS_V
+ERSION=\"0
.01\" "-IC:\Perl\lib\CORE" JobAdd.c
JobAdd.xs: In function `createJobObject':
JobAdd.xs:18: warning: passing arg 1 of `SetInformationJobObject' make
+s pointer
from integer without a cast
JobAdd.xs: In function `assignProcessToJobObject':
JobAdd.xs:24: warning: passing arg 1 of `AssignProcessToJobObject' mak
+es pointer
from integer without a cast
Running Mkbootstrap for Win32::JobAdd ()
C:\Perl\bin\perl.exe -MExtUtils::Command -e "chmod" -- 644 JobAdd.bs
C:\Perl\bin\perl.exe -MExtUtils::Mksymlists \
-e "Mksymlists('NAME'=>\"Win32::JobAdd\", 'DLBASE' => 'JobAdd', '
+DL_FUNCS'
=> { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);"
Set up gcc environment - 3.4.5 (mingw-vista special r3)
dlltool --def JobAdd.def --output-exp dll.exp
C:\Perl\site\bin\g++.exe -o blib\arch\auto\Win32\JobAdd\JobAdd.dll -Wl
+,--base-fi
le -Wl,dll.base -mdll -L"C:\Perl\lib\CORE" JobAdd.o -Wl,--image-base,0
+x2e0b0000
C:\Perl\lib\CORE\perl510.lib -lkernel32 -luser32 -lgdi32 -lwinspool -
+lcomdlg32
-ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lm
+pr -lwinmm
-lversion -lodbc32 -lodbccp32 -lcomctl32 -lmsvcrt dll.exp
dlltool --def JobAdd.def --base-file dll.base --output-exp dll.exp
C:\Perl\site\bin\g++.exe -o blib\arch\auto\Win32\JobAdd\JobAdd.dll -md
+ll -L"C:\P
erl\lib\CORE" JobAdd.o -Wl,--image-base,0x2e0b0000 C:\Perl\lib\CORE\p
+erl510.lib
-lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell3
+2 -lole32
-loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32
+ -lodbccp3
2 -lcomctl32 -lmsvcrt dll.exp
C:\Perl\bin\perl.exe -MExtUtils::Command -e "chmod" -- 755 blib\arch\a
+uto\Win32\
JobAdd\JobAdd.dll
C:\Perl\bin\perl.exe -MExtUtils::Command -e "cp" -- JobAdd.bs blib\arc
+h\auto\Win
32\JobAdd\JobAdd.bs
C:\Perl\bin\perl.exe -MExtUtils::Command -e "chmod" -- 644 blib\arch\a
+uto\Win32\
JobAdd\JobAdd.bs