Strange make behavior with :M

2018-11-12 Thread Silamael

Hi,

I've noticed a somehow strange behavior of make at least in 6.3 and 6.4 
with this simple Makefile:


--
FILEs=   Makefile Makefile.inc foo/Makefile.inc foo/src/force-build
DIR=  foo/src

# These both do not give me the expected result
FILES=${FILEs:M${DIR}/force-*}
FILES1=   ${FILEs:M${DIR}}

# Only this variant works
FILES2=   ${FILEs:Mfoo/src/force-*}

debug:
.for var in FILEs DIR FILES FILES1 FILES2
@echo ${var} = '${${var}}'
.endfor
--

$ make debug
FILEs = Makefile Makefile.inc foo/Makefile.inc foo/src/force-build
DIR = foo/src
FILES = /force-*}
FILES1 = }
FILES2 = foo/src/force-build

---

Only the variant without the variable in the :M pattern gives the 
expected result.

Is this expected behavior?
Am I making some mistake?

Thanks,
Matthias



Re: error trying to load C/XS Perl module

2017-11-15 Thread Silamael

On 11/15/2017 02:50 PM, Alceu Rodrigues de Freitas Junior wrote:

Hello folks,

I'm struggling to get installed the module PerlIO::eol by downloding it 
from CPAN and installing it.


I tried with both the standard perl in OpenBSD 6.1 and also one that I 
compiled with perlbrew, but the results are the same (after the classic 
"perl Makefile.PL; make"):


bash-4.4$ prove -l -m -v t/1-basic.t
t/1-basic.t ..
1..23
not ok 1 - use PerlIO::eol;
#   Failed test 'use PerlIO::eol;'
#   at t/1-basic.t line 4.
# Tried to use 'PerlIO::eol'.
# Error:  Can't locate loadable object for module PerlIO::eol in 
@INC (@INC contains: /home/vagrant/.cpan/build/PerlIO-eol-0.16-1/lib 
/home/vagrant/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/OpenBSD.amd64-openbsd 
/home/vagrant/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1 
/home/vagrant/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1/OpenBSD.amd64-openbsd 
/home/vagrant/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1) at 
t/1-basic.t line 4.

# Compilation failed in require at t/1-basic.t line 4.
# BEGIN failed--compilation aborted at t/1-basic.t line 4.
Bareword "CR" not allowed while "strict subs" in use at t/1-basic.t line 6.
Bareword "LF" not allowed while "strict subs" in use at t/1-basic.t line 6.
Bareword "CRLF" not allowed while "strict subs" in use at t/1-basic.t 
line 6.

Execution of t/1-basic.t aborted due to compilation errors.
# Looks like your test exited with 255 just after 1.
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 23/23 subtests


Hi,

You could try to set LD_DEBUG=yes before running the test.
With this you should see, what's really missing.

-- Matthias