Skip Menu |

This queue is for tickets about the Sys-Syslog CPAN distribution.

Report information
The Basics
Id: 60763
Status: resolved
Priority: 0/
Queue: Sys-Syslog

People
Owner: Nobody in particular
Requestors: njh [...] bandsman.co.uk
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.27
Fixed in: (no value)



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.
Subject: Re: [rt.cpan.org #60763] Fix for link error on BeOS
Date: Sat, 18 Aug 2012 23:14:20 +0200
To: bug-Sys-Syslog [...] rt.cpan.org
From: Sébastien Aperghis-Tramoni <saper [...] cpan.org>
Hello, Apologies for answering so late. njh@bandsman.co.uk wrote via RT: Show quoted text
> 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.
You can already pass these variables to make in argument (make LDLOADLIBS=-lbe), but as you already noted, you really should build Perl itself with the appropriate flags. Regards -- Sébastien Aperghis-Tramoni Close the world, txEn eht nepO.