わたなべです。
藤岡和夫 <kazuf@...> writes:
> LD_RUN_PATH="" ld2 -s -L/usr/local/lib Parser.o -o blib/arch/auto/HTML/Parser/
> Parser.dll /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/libperl.dll.a
> i see no perl executable around there
> perl is required to build dynamic libraries
> go fetch one or build this one static
このメッセージはld2が出してます。ld2自体は単なるshell script
で、中を見ると/usr/bin/perlにexcute permissionがないってこと
にありますが、それはちょっとありえない気もするし、うーむ。
ls -l /usr/bin/perlを実行するとどうなりますか?
#!/bin/sh
#
# ld wrapper, passes all args to perlld;
#
for trythis in /usr/bin/perl
do
if [ -x $trythis ]
then
$trythis /usr/bin/perlld "$@"
exit $?
fi
done
# hard luck!
echo i see no perl executable around there
echo perl is required to build dynamic libraries
echo look if the path to perl in /bin/ld2 is correct
exit 1
正しくmakeできればそこから先はこうなります。
LD_RUN_PATH="" ld2 -s -L/usr/local/lib Parser.o -o blib/arch/auto/HTML/Parser/Parser.dll /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/libperl.dll.a
gcc -shared -o Parser.dll -Wl,--out-implib=libParser.dll.a -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608 \
-s -L/usr/local/lib Parser.o /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/libperl.dll.a
Creating library file: libParser.dll.a
mv Parser.dll libParser.dll.a blib/arch/auto/HTML/Parser/
chmod 755 blib/arch/auto/HTML/Parser/Parser.dll
cp Parser.bs blib/arch/auto/HTML/Parser/Parser.bs
chmod 644 blib/arch/auto/HTML/Parser/Parser.bs
Manifying blib/man3/HTML.PullParser.3pm
Manifying blib/man3/HTML.Parser.3pm
Manifying blib/man3/HTML.Entities.3pm
Manifying blib/man3/HTML.LinkExtor.3pm
Manifying blib/man3/HTML.TokeParser.3pm
Manifying blib/man3/HTML.Filter.3pm
Manifying blib/man3/HTML.HeadParser.3pm
--
わたなべひろふみ