Subject: | Fix for link error on BeOS |
Running Mkbootstrap for Sys::Syslog ()
/boot/home/perl-5.12.1/cpan/Sys-Syslog/../../miniperl "-I../../lib"
"-I../../lib" -MExtUtils::Command -e 'chmod' -- 644 Syslog.bs
/boot/home/perl-5.12.1/cpan/Sys-Syslog/../../miniperl "-I../../lib"
"-I../../lib" -MExtUtils::Command -e 'rm_f' --
../../lib/auto/Sys/Syslog/Syslog.so
gcc -nostart -L/boot/home/config/lib Syslog.o -o
../../lib/auto/Sys/Syslog/Syslog.so \
../../libperl.so -lnet -lflock \
Syslog.o: In function `XS_Sys__Syslog_openlog_xs':
Syslog.o(.text+0x893): undefined reference to `openlog'
Syslog.o: In function `XS_Sys__Syslog_syslog_xs':
Syslog.o(.text+0x974): undefined reference to `syslog'
Syslog.o: In function `XS_Sys__Syslog_setlogmask_xs':
Syslog.o(.text+0xa53): undefined reference to `setlogmask'
Syslog.o: In function `XS_Sys__Syslog_closelog_xs':
Syslog.o(.text+0xaf3): undefined reference to `closelog'
collect2: ld returned 1 exit status
make[1]: *** [../../lib/auto/Sys/Syslog/Syslog.so] Error 1
make[1]: Leaving directory `/boot/home/perl-5.12.1/cpan/Sys-Syslog'
Unsuccessful make(cpan/Sys-Syslog): code=2 at make_ext.pl line 449.
make: *** [lib/auto/Sys/Syslog/Syslog.so] Error 3
This is because it needs to include -lbe to the link line. The simplest
way is to add it to LDLOADLIBS=, though I am concerned that
it may be needed later on when building CPAN modules and somehow that
needs to get in to perl's configuration.