Updates to JPL

[email protected] (Brian Jepson) Mon, 29 May 2000 10:04:31 -0700 (PDT)
Newsgroups perl.jpl
Message-ID <[email protected]>
I had a chance to mess around with the JPL code today (but I didn't get
in very deep).  

* I have incorporated the code from the latest.tar.gz Perl distribution.

* On Win32, I tried to work with ActivePerl 5.6 and JDK 1.2.2.

  I fixed the C++ style function calls that were wrapped in a #ifdef WIN32
  block - these seem to work now as  (*env)->FUNCTIONNAME(env, args) where
  I previously had these env->FUNCTIONAME(args) under WIN32.

  However, a number of errors still occur under Win32:

    O:\Projects\jpl\jpl\JNI>nmake

    Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
    Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

    "Running Mkbootstrap for JNI ()"
        C:\Perl\bin\Perl.exe -IC:\Perl\lib -IC:\Perl\lib
        -MExtUtils::Command -e chmod 644 JNI.bs

        C:\Perl\bin\Perl.exe "-IC:\Perl\lib" "-IC:\Perl\lib"
        -MExtUtils::Mksymlists  -e "Mksymlists('NAME' => 'JNI', 'DLBASE'
        => 'JNI', 'DL_FUNCS' => {  }, 'FUNCLIST' => [], 'IMPORTS' => {  },
        'DL_VARS' => []);"
        link -out:blib\arch\auto\JNI\JNI.dll -dll -nologo -nodefaultlib
        -release  -libpath:"C:\Perl\lib\CORE"  -machine:x86 JNI.obj
        C:\Perl\lib\CORE\perl56.lib C:\\JDK1.2.2\\lib\\\jvm.lib -def:JNI.def
     Creating library blib\arch\auto\JNI\JNI.lib and object
     blib\arch\auto\JNI\JNI.exp
  JNI.obj : error LNK2001: unresolved external symbol __imp__strncmp
  JNI.obj : error LNK2001: unresolved external symbol __imp__fprintf
  JNI.obj : error LNK2001: unresolved external symbol __fltused
  JNI.obj : error LNK2001: unresolved external symbol __ftol
  JNI.obj : error LNK2001: unresolved external symbol _strcmp
  JNI.obj : error LNK2001: unresolved external symbol __imp___errno
  JNI.obj : error LNK2001: unresolved external symbol __imp__LoadLibraryA@4
  LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
  blib\arch\auto\JNI\JNI.dll : fatal error LNK1120: 8 unresolved externals
  NMAKE : fatal error U1077: 'link' : return code '0x460'
  Stop.

* On Linux, I worked with RedHat 6.1, the Perl that comes with RedHat 6.1,
  and IBM JDK 1.1.8.  The instructions in README.JUST-JNI work through
  'make test' and 'make install', but I have not tried to stress it too
  much.

The latest changes are now in the CVS archive, and you can get
instructions for accessing it at:

  http://users.ids.net/~bjepson/jpl/cvs.html

Cheers,

--
Brian Jepson * ([email protected])  *  http://www.jepstone.net/