CC: | Jettero Heller <japh [...] voltar-confed.org> |
Subject: | Compile Error in POSIX-Regex-0.89 |
Date: | Tue, 15 Apr 2008 19:39:36 +0200 |
To: | bug-POSIX-Regex [...] rt.cpan.org |
From: | Ralph SOBEK <sobek [...] irit.fr> |
Hi Folks,
Got the following:
make
cp Regex.pm blib/lib/POSIX/Regex.pm
AutoSplitting blib/lib/POSIX/Regex.pm (blib/lib/auto/POSIX/Regex)
/usr/local/bin/perl /usr/local/lib/perl5/5.8.0/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.0/ExtUtils/typemap Regex.xs > Regex.xsc && mv Regex.xsc Regex.c
Please specify prototyping behavior for Regex.xs (see perlxs manual)
gcc -B/usr/ccs/bin/ -c -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"0.89\" -DXS_VERSION=\"0.89\" -fPIC "-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE" Regex.c
Regex.xs: In function `XS_POSIX__Regex_regcomp':
Regex.xs:39: error: `REG_NOERROR' undeclared (first use in this function)
Regex.xs:39: error: (Each undeclared identifier is reported only once
Regex.xs:39: error: for each function it appears in.)
*** Error code 1
make: Fatal error: Command failed for target `Regex.o'
Is REG_NOERROR a typo? If the define is not in Regex.xs it should at least be
mentioned in the README!
perl -v
This is perl, v5.8.0 built for sun4-solaris
uname -a
SunOS sareena 5.8 Generic_108528-19 sun4u sparc SUNW,Sun-Blade-100
After adding the define to Regex.xs the make succeeded, but the make test
failed quite miserably:
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01_load....................ok
t/02_simple_matching.........NOK 1# Test 1 got: '0' (t/02_simple_matching.t at line 13)
# Expected: '1'
t/02_simple_matching.........NOK 2# Test 2 got: '0' (t/02_simple_matching.t at line 14)
# Expected: '1'
t/02_simple_matching.........FAILED tests 1-2
Failed 2/3 tests, 33.33% okay
t/03_complicated_matching....NOK 1# Test 1 got: <UNDEF> (t/03_complicated_matching.t at line 14)
# Expected: 'aac'
t/03_complicated_matching....NOK 2# Test 2 got: <UNDEF> (t/03_complicated_matching.t at line 15)
# Expected: 'a'
t/03_complicated_matching....NOK 3# Test 3 got: <UNDEF> (t/03_complicated_matching.t at line 16)
# Expected: 'c'
t/03_complicated_matching....NOK 4# Test 4 got: <UNDEF> (t/03_complicated_matching.t at line 19)
# Expected: 'abc'
t/03_complicated_matching....NOK 5# Test 5 got: <UNDEF> (t/03_complicated_matching.t at line 20)
# Expected: 'b'
t/03_complicated_matching....NOK 6# Test 6 got: <UNDEF> (t/03_complicated_matching.t at line 21)
# Expected: 'c'
t/03_complicated_matching....FAILED tests 1-6
Failed 6/7 tests, 14.29% okay
t/04_case....................ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/02_simple_matching.t 3 2 66.67% 1-2
t/03_complicated_matching.t 7 6 85.71% 1-6
Failed 2/4 test scripts, 50.00% okay. 8/15 subtests failed, 46.67% okay.
*** Error code 29
I tried all under bot solaris8 and solaris9.
Sincerely,
--Ralph