in reply to Re: Problem with compiling Inline::C on cygwin
in thread Problem with compiling Inline::C on cygwin

Today I tried to dig it some more and got to this:
$ LD_RUN_PATH="" ld2 -s -L/usr/local/lib _04perlapi_t_3c76.o -o blib +/arch/auto/_04perlapi_t_3c76/_04perlapi_t_3c76.dll /usr/lib/perl5/5. +8.0/cygwin-multi-64int/CORE/libperl.dll.a gcc -shared -o cygperl5_8_0.dll -Wl,--out-implib=lib_04perlapi_t_3c76 +.dll.a -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack, +8388608 \ -s -L/usr/local/lib _04perlapi_t_3c76.o /usr/lib/perl5/5.8.0/cygwin-m +ulti-64int/CORE/libperl.dll.a Creating library file: lib_04perlapi_t_3c76.dll.a mv cygperl5_8_0.dll lib_04perlapi_t_3c76.dll.a blib/arch/auto/_04perla +pi_t_3c76/
This was run for rule to make blib/arch/auto/_04perlapi_t_3c76/_04perlapi_t_3c76.dll - so I believe the problem is with the ld2 script - cause it made lib_04perlapi_t_3c76.dll.a instead.

Replies are listed 'Best First'.
Re^3: Problem with compiling Inline::C on cygwin
by robartes (Priest) on Mar 06, 2003 at 10:08 UTC
    Actually, and I missed this in my first reply, the ld2 line does seem to be linking the library correctly (or at least without errors):
    LD_RUN_PATH="" ld2 -s -L/usr/local/lib _04perlapi_t_3c76.o -o blib/a +rch/auto/_04perlapi_t_3c76/_04perlapi_t_3c76.dll /usr/lib/perl5/5.8.0 +/cygwin-multi-64int/CORE/libperl.dll.a
    It does -o blib/arch/auto/_O4perlapi_t_3c76/_04perlapi_t_3c76.dll. This creates the dll in that directory (-o specifies the output file of the linking operation). So the problem occurs somewhere between this line (inclusive) and the chmod line further downstream. What's in blib/arch/auto/_04perlapi_t_c76 after you did the above steps?

    CU
    Robartes-

      There is lib_04perlapi_t_3c76.dll.a - thats why I say there is something wrong with the ld2.