Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Compiling JPL on darwin

Compiling JPL on darwin
Thread Tools
Fresh-Faced Recruit
Join Date: Jun 2001
Location: Rochester, NY
Status: Offline
Reply With Quote
Aug 7, 2001, 08:50 AM
 
Has anyone successfully compiled jpl (java perl lingo) on osx? I can get through most of the compile, but then I get the following error:

--- lots of compile stuff snipped ---
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
+ perl Makefile.PL
Writing Makefile <font color = green>for</font> JNI
+ make
cp JNI.pm blib/lib/JNI.pm
AutoSplitting blib/lib/JNI.pm (blib/lib/<font color = green>auto</font>/JNI)
/usr/bin/perl -I/System/Library/Perl/darwin -I/System/Library/Perl /System/Library/Perl/ExtUtils/xsubpp -typemap /System/Library/Perl/ExtUtils/typemap -typemap typemap JNI.xs &gt; JNI.xsc && mv JNI.xsc JNI.c
cc -c -I/usr/include -I/usr/include/darwin -I/usr/include/genunix -g -pipe -pipe -fno-common -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing -I/usr/local/include -DEMBEDDEDPERL -O3 -DVERSION=\<font color = red>"<font color = blue>0.01</font>\"</font> -DXS_VERSION=\<font color = red>"<font color = blue>0.01</font>\"</font> -I/System/Library/Perl/darwin/CORE JNI.c
JNI.xs: In function `XS_JNI_GetJavaVM':
JNI.xs:<font color = blue>4088</font>: warning: passing arg <font color = blue>2</font> of `JNI_CreateJavaVM' from incompatible pointer type
Running Mkbootstrap <font color = green>for</font> JNI ()
chmod <font color = blue>644</font> JNI.bs
rm -f blib/arch/<font color = green>auto</font>/JNI/JNI.bundle
LD_RUN_PATH=<font color = red>"/System/Library/Perl/darwin/CORE:/usr/local/jpl/lib/darwin"</font> cc -bundle -undefined suppress -L/usr/local/lib JNI.o -o blib/arch/<font color = green>auto</font>/JNI/JNI.bundle -L/usr/local/jpl/lib/darwin -L/System/Library/Perl/darwin/CORE -lperl -lPerlInterpreter
/usr/bin/ld: /usr/local/jpl/lib/darwin/libPerlInterpreter.dylib is input <font color = green>for</font> the dynamic link editor, is not relocatable by the <font color = green>static</font> link editor again
make: *** [blib/arch/<font color = green>auto</font>/JNI/JNI.bundle] Error <font color = blue>1</font>
</font>[/code]

Any help would be greatly appreciated - I'm trying to use perl and java for my master's project (perl for all the string and database manipulation, java for the aqua interface) and I need to get this to work so I can glue them together!

Thanks in advance!
Sarah
     
Senior User
Join Date: Sep 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Aug 10, 2001, 06:44 AM
 
You need to take a step or two backwards.

libPerlInterpreter should have been built as a dynmaic library
(.dylib (but they call erroneously call them .so (shared object)))and
it apparently wasn't.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:23 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2