Hello. I have a set of functionality written in Perl that has been bound to Java. I had this setup working for Perl 5.8, but I have now upgraded and built from source Perl 5.10.0 and am trying to use that instead.

The problem is, I have a Makefile looking for DynaLoader.a but it doesn't exist in this distribution. What do I do when running the Configure script to make sure it is built?

Here is a snippet of the Makefile I am trying to make valid:
Makefile:
----------------
# The Perl documentation advises to obtain compiler and linker options + from using the commands # "perl -MExtUtils::Embed -e ccopts" and "perl -MExtUtils::Embed -e ld +opts" respectively. Of the # resulting output, it seemed meaningful to use the linker options # # Wl,-E -Wl,-rpath,/usr/lib/perl5/lib/5.8.8/x86_64-linux/CORE # # This may need to be revised as our understanding of using Perl in th +is way develops. # always: -rm -f $(TARGET_SO) $(JAVAH) -d . -classpath ../build com.dajeil.dais.webui.toolki +t.DaisCliUtil $(CC) $(CFLAGS) -c -shared -fpic -pthread -D _REENTRANT $(INCL +UDES) $(SOURCES) XSInit.c $(LD) -r XSInit.o /usr/lib/perl5/5.10.0/i686-linux/auto/DynaL +oader/DynaLoader.a -o XSInit_r.o $(CC) -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.10.0/i686-linux/CORE +-shared -fpic -pthread -D _REENTRANT $(LIBS) $(OBJECTS) XSInit_r.o -o + $(TARGET_SO) cp $(TARGET_SO) ../dist
XSInit.c
------------------------
#include <jni.h> #include <EXTERN.h> #include <perl.h> #include <dlfcn.h> /* The following code was optained by running the command "perl -MExt +Utils::Embed -e xsinit -- -o perlxsi.c" and pasting the result into this file. */ EXTERN_C void boot_DynaLoader(pTHX_ CV* cv); EXTERN_C void XSInit(pTHX) { char *file = __FILE__; dXSUB_SYS; /* DynaLoader is a special case */ newXS("DynaLoader::boot_DynaLoader", boot_DynaLoader, file); }

In reply to perl-5.10.0: Where is DynaLoader.a? by seank

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.