Ovid has asked for the wisdom of the Perl Monks concerning the following question:

I was trying to fix a small program written in Inline::C when I found out that Inline would no longer compile with my installation of Cygwin. Here's the relevant portion of the errror (I think):

s_add_pl_98b8.o /usr/lib/perl5/5.6.1/cygwin/CORE/libperl5_6_1.a i see no perl executable around there perl is required to build dynamic libraries

That's odd because I definitely have Perl and I haven't updated it recently. Further, the file referred to in that first line (libperl5_6_1.a) definitely exists in that path. I tried to reinstall Inline 0.43 over the top of an old install, but I was getting the same error messages during make test, so I halted the install and have assumed that Inline, in fact, is not the problem. I've included the full out.make file text below (yes, it's ugly -- sorry 'bout that).

/usr/bin/perl -I/usr/lib/perl5/5.6.1/cygwin -I/usr/lib/perl5/5.6.1 /usr/lib/perl5/5.6.1/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.6.1/Ex +tUtils/typemap s_add_pl_98b8.xs > s_add_pl_98b8.xsc && mv s_add_pl_98b8.xsc s_add_pl_ +98b8.c gcc -c -I/home/Ovid/inline -DPERL_USE_SAFE_PUTENV -DHAS_SBRK_PROTO -fn +o-strict-aliasing -DUSEIMPORTLIB -O2 -DVERSION=\"0.00\" -DXS_VERSION=\"0.00\" -I/usr/ +lib/perl5/5.6.1/cygwin/CORE s_add_pl_98b8.c Running Mkbootstrap for s_add_pl_98b8 () chmod 644 s_add_pl_98b8.bs rm -f blib/arch/auto/s_add_pl_98b8/s_add_pl_98b8.dll LD_RUN_PATH="" ld2 -o blib/arch/auto/s_add_pl_98b8/s_add_pl_98b8.dll +-s -L/usr/local/lib s_add_pl_98b8.o /usr/lib/perl5/5.6.1/cygwin/CORE/libperl5_6_1.a i see no perl executable around there perl is required to build dynamic libraries go fetch one or build this one static make: *** [blib/arch/auto/s_add_pl_98b8/s_add_pl_98b8.dll] Error 1

Anyone know what I'm missing, or is there something else I should provide for debugging?

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.

Replies are listed 'Best First'.
Re: Inline::C will no longer run
by samtregar (Abbot) on Jul 02, 2002 at 15:43 UTC
    Quick guess: is perl.exe not in your PATH? For the real answer, post your question to the Inline mailing-list. If there's an answer they'll have it.

    -sam

Re: Inline::C will no longer run
by rbc (Curate) on Jul 02, 2002 at 18:33 UTC
    I have never used Inline::C but this ...
    LD_RUN_PATH=""
    ... jumps out at me. Also I don't know if
    this is the case with Cygwin but I have ran into
    problems on Solaris where my perl was a symbolic link to the
    actual executable and I need the path to the actual executable
    for some reason. If all else fails check out the cygwin
    mailing list archieve. They (Cygwin) are pretty good
    at fixing any problems users find.

    Good luck!
Re: Inline::C will no longer run
by mattr (Curate) on Jul 04, 2002 at 14:00 UTC
    Just thinking about some recent cygwin-perl quirks..

    Is it possible that you could have a shares/permissions problem?
    Does it persist if you use /cygdrive/C/cygwin/usr/lib pathname format?
    Possibly the make script is not resolving -L/usr/local/lib correctly?

    By the way was that you or did someone else have the same problem? I see the CPAN page does note cygwin fails. Strange the Changelog says it works on *all* perl versions, a year ago. My Activestate bad?

    Sorry I can't be of more help. Usually on linux. (/me nukes linux laptop by trying to install redhat base onto a suse layout)

Re: Inline::C will no longer run
by flounder99 (Friar) on Jul 05, 2002 at 13:08 UTC
    I had the same problem. I think it happened when I built perl 5.8.0-RC1. All I did to fix the problem is rm /usr/bin/ld2 It is a shell script wrapper around ld I think that it got overwritten when I built the new perl RC. It had some weird paths in it, pointing to the directories where I built the RC. I don't know why since I never installed the RC. Anyway, I deleted it and it seems to have been re-created when I re-installed Inline.

    --

    flounder