Thread: [Module::Build] make test failure report
Status: Beta
Brought to you by:
kwilliams
|
From: Terrence B. <met...@ur...> - 2003-10-08 15:45:42
|
This is Cygwin installed just 4 days ago (the latest). Here is the command-line used: ~/.cpan/build/Module-Build-0.20 $ ./Build test 2> Build.err > Build.out The output is quite large, so it is attached. |
|
From: Yitzchak Scott-T. <sth...@ef...> - 2003-10-08 18:00:39
|
On Wed, Oct 08, 2003 at 08:45:35AM -0700, Terrence Brannon <met...@ur...> wrote: > Can't open blib/libdoc/Sample::Docs.3pm for writing: Invalid argument > at /home/metaperl/.cpan/build/Module-Build-0.20/blib/lib/Module/Build/Base.pm line 1286 I posted a patch for the manfile names a few weeks ago. > t/xs.t 11 2 18.18% 4 8 Someone needs to figure out how to translate ExtUtils::MM_Cygwin::init_linker and cflags into Module::Build terms. |
|
From: Randy W. S. <Ra...@Th...> - 2003-10-09 02:56:51
|
On 10/8/2003 11:45 AM, Terrence Brannon wrote:
> gcc -shared -o XSTest.dll -Wl,--out-implib=libXSTest.dll.a -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608 \
> -s -L/usr/local/lib lib/XSTest.o
Adding "-l$Config{libperl}" to the linker command should remove all the
unresolved references.
Randy.
--
A little learning is a dang'rous thing;
Drink deep, or taste not the Pierian spring;
There shallow draughts intoxicate the brain;
And drinking largely sobers us again.
- Alexander Pope
|
|
From: Terrence B. <met...@ur...> - 2003-10-09 10:57:51
|
Randy W. Sims wrote:
> On 10/8/2003 11:45 AM, Terrence Brannon wrote:
>
>> gcc -shared -o XSTest.dll -Wl,--out-implib=libXSTest.dll.a
>> -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608 \
>> -s -L/usr/local/lib lib/XSTest.o
>
>
> Adding "-l$Config{libperl}" to the linker command should remove all
> the unresolved references.
I am not sure how I am supposed to do this... I added:
$path .= ' -l$Config{libperl} ' ;
to sub format_linker_cmd in package Module::Build::Platform::Windows
(because I did not see a Cygwin package).
but that did not alter the command-line and the test still has the same
problems
|
|
From: Yitzchak Scott-T. <sth...@ef...> - 2003-10-09 12:41:54
|
On Thu, Oct 09, 2003 at 03:57:42AM -0700, Terrence Brannon <met...@ur...> wrote:
> Randy W. Sims wrote:
>
> >On 10/8/2003 11:45 AM, Terrence Brannon wrote:
> >
> >>gcc -shared -o XSTest.dll -Wl,--out-implib=libXSTest.dll.a
> >>-Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608 \
> >>-s -L/usr/local/lib lib/XSTest.o
> >
> >
> >Adding "-l$Config{libperl}" to the linker command should remove all
> >the unresolved references.
>
> I am not sure how I am supposed to do this... I added:
>
> $path .= ' -l$Config{libperl} ' ;
>
> to sub format_linker_cmd in package Module::Build::Platform::Windows
> (because I did not see a Cygwin package).
>
> but that did not alter the command-line and the test still has the same
> problems
Right now, cygwin uses Module::Build::Platform::Unix, not Windows.
|
|
From: Terrence B. <met...@ur...> - 2003-10-09 13:32:16
|
Randy W. Sims wrote:
> On 10/8/2003 11:45 AM, Terrence Brannon wrote:
>
>> gcc -shared -o XSTest.dll -Wl,--out-implib=libXSTest.dll.a
>> -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608 \
>> -s -L/usr/local/lib lib/XSTest.o
>
>
> Adding "-l$Config{libperl}" to the linker command should remove all
> the unresolved references.
>
I just attempted to do this by editing Build.PL ni the home directory:
my $build = new Module::Build
(
module_name => 'Module::Build',
license => 'perl',
requires => {
'perl' => '5.005_03',
'Config' => 0,
'Data::Dumper' => 0,
'File::Basename' => 0,
'File::Compare' => 0,
'File::Copy' => 0,
'File::Find' => 0,
'File::Path' => 0,
'File::Spec' => 0,
'ExtUtils::Install' => 0,
'IO::File' => 0,
'Cwd' => 0,
},
recommends => {
'YAML' => 0.35,
'Archive::Tar' => '1.00',
'ExtUtils::Install' => 0.30,
'ExtUtils::ParseXS' => 2.02,
# 'Module::Signature' => 0.21, # Our support isn't good
enough yet
},
build_requires => {
Test => 0,
},
extra_linker_flags => '-L $Config{libperl}'
);
but the problem is still there (sorry for the ugly transcript):
~/.cpan/build/Module-Build-0.20 $ make test
/usr/bin/perl Build test
t/basic.........
t/basic.........ok 1/19
t/basic.........ok 2/19
t/basic.........ok 3/19
t/basic.........ok 4/19
t/basic.........ok 5/19
t/basic.........ok 6/19
t/basic.........ok 7/19
t/basic.........ok 8/19
t/basic.........ok 9/19
t/basic.........ok 10/19
t/basic.........ok 11/19
t/basic.........ok 12/19
t/basic.........ok 13/19
t/basic.........ok 14/19
t/basic.........ok 15/19
t/basic.........ok 16/19
t/basic.........ok 17/19
t/basic.........ok 18/19
t/basic.........ok 19/19
t/basic.........ok
t/compat........
t/compat........ok 1/23
t/compat........ok 2/23
t/compat........ok 3/23
t/compat........ok 4/23Can't open blib/libdoc/Sample::Docs.3pm for
writing: Invalid argument
at
/home/metaperl/.cpan/build/Module-Build-0.20/blib/lib/Module/Build/Base.pm
line 1286
make[1]: *** [all] Error 255
# Failed test 5 in t/compat.t at line 33
t/compat........NOK 5
t/compat........ok 6/23
t/compat........ok 7/23
t/compat........ok 8/23
t/compat........ok 9/23
t/compat........ok 10/23
t/compat........ok 11/23Can't open blib/libdoc/Sample::Docs.3pm for
writing: Invalid argument
at
/home/metaperl/.cpan/build/Module-Build-0.20/blib/lib/Module/Build/Base.pm
line 1286
make[1]: *** [all] Error 255
# Failed test 12 in t/compat.t at line 33 fail #2
t/compat........NOK 12
t/compat........ok 13/23
t/compat........ok 14/23
t/compat........ok 15/23
t/compat........ok 16/23
t/compat........ok 17/23
t/compat........ok 18/23
t/compat........ok 19/23
t/compat........ok 20/23
t/compat........ok 21/23
t/compat........ok 22/23
t/compat........ok 23/23
t/compat........FAILED tests 5, 12
Failed 2/23 tests, 91.30% okay
t/extend........
t/extend........ok 1/9
t/extend........ok 2/9
t/extend........ok 3/9
t/extend........ok 4/9
t/extend........ok 5/9
t/extend........ok 6/9
t/extend........ok 7/9
t/extend........ok 8/9
t/extend........ok 9/9
t/extend........ok
t/install.......
t/install.......ok 1/17
t/install.......ok 2/17# Test 3 got: 'Can't open
blib/libdoc/Sample::Docs.3pm for writing: Invalid argument
at
/home/metaperl/.cpan/build/Module-Build-0.20/blib/lib/Module/Build/Base.pm
line 1286
' (t/install.t at line 32)
# Expected: ''
t/install.......NOK 3# Failed test 4 in t/install.t at line 37
t/install.......NOK 4# Test 5 got: 'Can't open
blib/libdoc/Sample::Docs.3pm for writing: Invalid argument
at
/home/metaperl/.cpan/build/Module-Build-0.20/blib/lib/Module/Build/Base.pm
line 1286
' (t/install.t at line 42)
t/install.......NOK 5# Expected: ''
# Failed test 6 in t/install.t at line 46
t/install.......NOK 6# Test 7 got: 'Can't open
blib/libdoc/Sample::Docs.3pm for writing: Invalid argument
at
/home/metaperl/.cpan/build/Module-Build-0.20/blib/lib/Module/Build/Base.pm
line 1286
' (t/install.t at line 52)
t/install.......NOK 7# Expected: ''
# Failed test 8 in t/install.t at line 55
t/install.......NOK 8# Test 9 got: 'Can't open
blib/libdoc/Sample::Docs.3pm for writing: Invalid argument
at
/home/metaperl/.cpan/build/Module-Build-0.20/blib/lib/Module/Build/Base.pm
line 1286
' (t/install.t at line 61)
# Expected: ''
t/install.......NOK 9
t/install.......NOK 10# Failed test 10 in t/install.t at line 64
t/install.......ok 11/17
t/install.......ok 12/17Can't open blib/libdoc/Sample::Docs.3pm for
writing: Invalid argument
at
/home/metaperl/.cpan/build/Module-Build-0.20/blib/lib/Module/Build/Base.pm
line 1286
t/install.......ok 13/17# Failed test 14 in t/install.t at line 80
t/install.......NOK 14Can't open blib/libdoc/Sample::Docs.3pm for
writing: Invalid argument
at
/home/metaperl/.cpan/build/Module-Build-0.20/blib/lib/Module/Build/Base.pm
line 1286
t/install.......ok 15/17# Failed test 16 in t/install.t at line 90
t/install.......NOK 16
t/install.......ok 17/17
t/install.......FAILED tests 3-10, 14, 16
Failed 10/17 tests, 41.18% okay
t/manifypods....
t/manifypods....ok 1/17
t/manifypods....ok 2/17Can't open blib/libdoc/Sample::Docs.3pm for
writing: Invalid argument
at
/home/metaperl/.cpan/build/Module-Build-0.20/blib/lib/Module/Build/Base.pm
line 1286
t/manifypods....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 3-17
Failed 15/17 tests, 11.76% okay
t/notes.........
t/notes.........ok 1/5
t/notes.........ok 2/5
t/notes.........ok 3/5
t/notes.........ok 4/5
t/notes.........ok 5/5
t/notes.........ok
t/runthrough....
t/runthrough....ok 1/24
t/runthrough....ok 2/24
t/runthrough....ok 3/24
t/runthrough....ok 4/24
t/runthrough....ok 5/24
t/runthrough....ok 6/24
t/runthrough....ok 7/24
t/runthrough....ok 8/24
t/runthrough....ok 9/24
t/runthrough....ok 10/24
t/runthrough....ok 11/24Can't open blib/libdoc/Sample::Docs.3pm for
writing: Invalid argument
at
/home/metaperl/.cpan/build/Module-Build-0.20/blib/lib/Module/Build/Base.pm
line 1286
# Test 12 got: 'Error executing 'Build' in dist directory: at
/home/metaperl/.cpan/build/Module-Build-0.20/blib/lib/Module/Build/Base.pm
line 1530.
' (t/runthrough.t at line 63)
# Expected: ''
t/runthrough....NOK 12# Failed test 13 in t/runthrough.t at line 66
t/runthrough....NOK 13
t/runthrough....ok 14/24
t/runthrough....ok 15/24
t/runthrough....ok 16/24
t/runthrough....ok 17/24
t/runthrough....ok 18/24
t/runthrough....ok 19/24
t/runthrough....ok 20/24
t/runthrough....ok 21/24
t/runthrough....ok 22/24
t/runthrough....ok 23/24
t/runthrough....ok 24/24
t/runthrough....FAILED tests 12-13
Failed 2/24 tests, 91.67% okay
t/signature.....skipped
all skipped: Skipping unless $ENV{TEST_SIGNATURE} is true
t/versions......
t/versions......ok 1/2
t/versions......ok 2/2
t/versions......ok
t/xs............
t/xs............ok 1/11
t/xs............ok 2/11
t/xs............ok 3/11Creating library file: libXSTest.dll.a
lib/XSTest.o(.text+0x31):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x3b):XSTest.c: undefined reference to
`_Perl_Tstack_sp_ptr'
lib/XSTest.o(.text+0x49):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x53):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0x61):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x6b):XSTest.c: undefined reference to
`_Perl_Tmarkstack_ptr_ptr'
lib/XSTest.o(.text+0x8c):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x96):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0xb1):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0xc3):XSTest.c: undefined reference to `_Perl_croak'
lib/XSTest.o(.text+0xcf):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0xd9):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0xf4):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0xfe):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0x117):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x121):XSTest.c: undefined reference to `_Perl_Top_ptr'
lib/XSTest.o(.text+0x139):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x143):XSTest.c: undefined reference to
`_Perl_Tcurpad_ptr'
lib/XSTest.o(.text+0x151):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x15b):XSTest.c: undefined reference to `_Perl_Top_ptr'
lib/XSTest.o(.text+0x17d):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x187):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0x19a):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x1b5):XSTest.c: undefined reference to `_Perl_sv_setiv'
lib/XSTest.o(.text+0x1c9):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x1d3):XSTest.c: undefined reference to
`_Perl_Tstack_sp_ptr'
lib/XSTest.o(.text+0x1e1):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x1eb):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0x208):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x216):XSTest.c: undefined reference to `_Perl_mg_set'
lib/XSTest.o(.text+0x228):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x232):XSTest.c: undefined reference to
`_Perl_sv_newmortal'
lib/XSTest.o(.text+0x248):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x252):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0x260):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x271):XSTest.c: undefined reference to `_Perl_sv_2iv'
lib/XSTest.o(.text+0x2b0):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x2ba):XSTest.c: undefined reference to
`_Perl_Tstack_sp_ptr'
lib/XSTest.o(.text+0x2c6):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x2d0):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0x2de):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x2e8):XSTest.c: undefined reference to
`_Perl_Tmarkstack_ptr_ptr'
lib/XSTest.o(.text+0x302):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x30c):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0x31f):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x342):XSTest.c: undefined reference to `_Perl_newXS'
lib/XSTest.o(.text+0x34e):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x358):XSTest.c: undefined reference to
`_Perl_Isv_yes_ptr'
lib/XSTest.o(.text+0x366):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x370):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0x381):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x38b):XSTest.c: undefined reference to
`_Perl_Tstack_sp_ptr'
lib/XSTest.o(.text+0x399):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x3a3):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
collect2: ld returned 1 exit status
perlld: *** system() failed to execute
gcc -shared -o XSTest.dll -Wl,--out-implib=libXSTest.dll.a
-Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608 \
-s -L/usr/local/lib lib/XSTest.o
# Test 4 got: 'error building lib/XSTest.o from 'lib/XSTest.dll' at
/home/metaperl/.cpan/build/Module-Build-0.20/blib/lib/Module/Build/Base.pm
line 1797, <File0000> line 14.
' (t/xs.t at line 33)
# Expected: ''
t/xs............NOK 4
t/xs............ok 5/11
t/xs............ok 6/11Creating library file: libXSTest.dll.a
lib/XSTest.o(.text+0x31):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x3b):XSTest.c: undefined reference to
`_Perl_Tstack_sp_ptr'
lib/XSTest.o(.text+0x49):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x53):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0x61):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x6b):XSTest.c: undefined reference to
`_Perl_Tmarkstack_ptr_ptr'
lib/XSTest.o(.text+0x8c):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x96):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0xb1):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0xc3):XSTest.c: undefined reference to `_Perl_croak'
lib/XSTest.o(.text+0xcf):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0xd9):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0xf4):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0xfe):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0x117):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x121):XSTest.c: undefined reference to `_Perl_Top_ptr'
lib/XSTest.o(.text+0x139):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x143):XSTest.c: undefined reference to
`_Perl_Tcurpad_ptr'
lib/XSTest.o(.text+0x151):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x15b):XSTest.c: undefined reference to `_Perl_Top_ptr'
lib/XSTest.o(.text+0x17d):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x187):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0x19a):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x1b5):XSTest.c: undefined reference to `_Perl_sv_setiv'
lib/XSTest.o(.text+0x1c9):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x1d3):XSTest.c: undefined reference to
`_Perl_Tstack_sp_ptr'
lib/XSTest.o(.text+0x1e1):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x1eb):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0x208):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x216):XSTest.c: undefined reference to `_Perl_mg_set'
lib/XSTest.o(.text+0x228):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x232):XSTest.c: undefined reference to
`_Perl_sv_newmortal'
lib/XSTest.o(.text+0x248):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x252):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0x260):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x271):XSTest.c: undefined reference to `_Perl_sv_2iv'
lib/XSTest.o(.text+0x2b0):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x2ba):XSTest.c: undefined reference to
`_Perl_Tstack_sp_ptr'
lib/XSTest.o(.text+0x2c6):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x2d0):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0x2de):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x2e8):XSTest.c: undefined reference to
`_Perl_Tmarkstack_ptr_ptr'
lib/XSTest.o(.text+0x302):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x30c):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0x31f):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x342):XSTest.c: undefined reference to `_Perl_newXS'
lib/XSTest.o(.text+0x34e):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x358):XSTest.c: undefined reference to
`_Perl_Isv_yes_ptr'
lib/XSTest.o(.text+0x366):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x370):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0x381):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x38b):XSTest.c: undefined reference to
`_Perl_Tstack_sp_ptr'
lib/XSTest.o(.text+0x399):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x3a3):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
collect2: ld returned 1 exit status
perlld: *** system() failed to execute
gcc -shared -o XSTest.dll -Wl,--out-implib=libXSTest.dll.a
-Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608 \
-s -L/usr/local/lib lib/XSTest.o
error building lib/XSTest.o from 'lib/XSTest.dll' at
/home/metaperl/.cpan/build/Module-Build-0.20/blib/lib/Module/Build/Base.pm
line 1797, <File0000> line 14.
t/xs............ok 7/11Creating library file: libXSTest.dll.a
lib/XSTest.o(.text+0x31):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x3b):XSTest.c: undefined reference to
`_Perl_Tstack_sp_ptr'
lib/XSTest.o(.text+0x49):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x53):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0x61):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x6b):XSTest.c: undefined reference to
`_Perl_Tmarkstack_ptr_ptr'
lib/XSTest.o(.text+0x8c):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x96):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0xb1):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0xc3):XSTest.c: undefined reference to `_Perl_croak'
lib/XSTest.o(.text+0xcf):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0xd9):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0xf4):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0xfe):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0x117):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x121):XSTest.c: undefined reference to `_Perl_Top_ptr'
lib/XSTest.o(.text+0x139):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x143):XSTest.c: undefined reference to
`_Perl_Tcurpad_ptr'
lib/XSTest.o(.text+0x151):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x15b):XSTest.c: undefined reference to `_Perl_Top_ptr'
lib/XSTest.o(.text+0x17d):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x187):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0x19a):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x1b5):XSTest.c: undefined reference to `_Perl_sv_setiv'
lib/XSTest.o(.text+0x1c9):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x1d3):XSTest.c: undefined reference to
`_Perl_Tstack_sp_ptr'
lib/XSTest.o(.text+0x1e1):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x1eb):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0x208):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x216):XSTest.c: undefined reference to `_Perl_mg_set'
lib/XSTest.o(.text+0x228):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x232):XSTest.c: undefined reference to
`_Perl_sv_newmortal'
lib/XSTest.o(.text+0x248):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x252):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0x260):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x271):XSTest.c: undefined reference to `_Perl_sv_2iv'
lib/XSTest.o(.text+0x2b0):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x2ba):XSTest.c: undefined reference to
`_Perl_Tstack_sp_ptr'
lib/XSTest.o(.text+0x2c6):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x2d0):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0x2de):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x2e8):XSTest.c: undefined reference to
`_Perl_Tmarkstack_ptr_ptr'
lib/XSTest.o(.text+0x302):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x30c):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0x31f):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x342):XSTest.c: undefined reference to `_Perl_newXS'
lib/XSTest.o(.text+0x34e):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x358):XSTest.c: undefined reference to
`_Perl_Isv_yes_ptr'
lib/XSTest.o(.text+0x366):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest.o(.text+0x370):XSTest.c: undefined reference to
`_Perl_Tstack_base_ptr'
lib/XSTest.o(.text+0x381):XSTest.c: undefined reference to
`_Perl_Gcurinterp_ptr'
lib/XSTest...
[truncated message content] |
|
From: Chris D. <ch...@cl...> - 2003-10-09 13:46:00
|
On Thursday, October 9, 2003, at 08:32 AM, Terrence Brannon wrote:
> Randy W. Sims wrote:
>
>>
>> Adding "-l$Config{libperl}" to the linker command should remove all
>> the unresolved references.
>>
>
> extra_linker_flags => '-L $Config{libperl}'
I believe you may have misread the previous message. This should
probably be
extra_linker_flags => '-l$Config{libperl}'
That is, import the library called libperl.{dll,so,dylib,whatever}
Chris
--
Chris Dolan, Software Developer, Clotho Advanced Media Inc.
ch...@cl..., 294-7900, 211 S Paterson, Madison WI 53703
|
|
From: Randy W. S. <Ra...@Th...> - 2003-10-10 01:20:46
|
On 10/9/2003 9:45 AM, Chris Dolan wrote:
> On Thursday, October 9, 2003, at 08:32 AM, Terrence Brannon wrote:
>
>> Randy W. Sims wrote:
>>
>>>
>>> Adding "-l$Config{libperl}" to the linker command should remove all
>>> the unresolved references.
>>>
>>
>> extra_linker_flags => '-L $Config{libperl}'
>
>
> I believe you may have misread the previous message. This should
> probably be
> extra_linker_flags => '-l$Config{libperl}'
>
> That is, import the library called libperl.{dll,so,dylib,whatever}
>
> Chris
Yes, except that should be double quotes, and there seems to be another
problem in that none of that ended up on the command line.
gcc -shared -o XSTest.dll -Wl,--out-implib=libXSTest.dll.a \
-Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608 \
-s -L/usr/local/lib lib/XSTest.o
I'm not real familiar with the build process under Cygwin. When I wrote
the stuff in M::B::Platform::Windows it was my intention to add support
for Cygwin, UWIN, djgpp (maybe Interix & MKS) and I have no idea how
this will work with Windows CE, but I never could get a working Cygwin &
Perl on my system (some problem with MakeMaker) and I also didn't have a
lot of spare time. I'll try to revisit it now as traffic on P5P seems to
indicate that a lot of those problems have been solved with perl-5.8.1.
I'm thinking now that it might be slightly more complicated that my
previous message may have indicated. $Config{lddlflags} &
$Config{libperl} (if it's not already in $Config{lddlflags} on Cygwin)
should be on that command line, but do not appear to be. Also, I think
Cygwin will require the same prelink step as Windows (same sub can be
used as is).
I had originally thought that Cygwin would inherit from
M::B::Platform::Windows::GCC, but that may have been ignorance on my
part. I'll see what MakeMaker does and follow suite. One thing I'm
afraid of is that if it is significantly different from Windows::GCC and
the default Unix like build process, I think things need to be
reorganized a good bit: The class hierarchy cludge in Platform::Windows
needs to be fixed and the default compile routines should be pulled out
of M::B and put in a separate class (M::B::cc ???) and move
Platform::Windows::GCC, ::BCC, & ::MSC so that they are subclasses of
M::B::cc.
I'll defer to Ken on the design. Meanwhile, I'm downloading the latest
Cygwin and will play for a while.
Randy.
|
|
From: Terrence B. <met...@ur...> - 2003-10-10 04:50:22
|
Randy W. Sims wrote:
> I believe you may have misread the previous message. This should
> probably be
>
>> extra_linker_flags => '-l$Config{libperl}'
>>
>> That is, import the library called libperl.{dll,so,dylib,whatever}
>>
>> Chris
>
>
> Yes, except that should be double quotes, and there seems to be
> another problem in that none of that ended up on the command line.
you're right: even after double quotes it does not include the extra
linker flags
>
> gcc -shared -o XSTest.dll -Wl,--out-implib=libXSTest.dll.a \
> -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608 \
> -s -L/usr/local/lib lib/XSTest.o
>
> I'm not real familiar with the build process under Cygwin. When I
> wrote the stuff in M::B::Platform::Windows it was my intention to add
> support for Cygwin, UWIN, djgpp (maybe Interix & MKS) and I have no
> idea how this will work with Windows CE, but I never could get a
> working Cygwin & Perl on my system (some problem with MakeMaker) and I
> also didn't have a lot of spare time. I'll try to revisit it now as
> traffic on P5P seems to indicate that a lot of those problems have
> been solved with perl-5.8.1.
ahh, I am using 5.8.0... but you speak on M::B::Platform::Windows when
an earlier msg indicated that Cygwin used M::B::Platform::Unix, most of
which defaults to M::B::Base
|
|
From: Randy W. S. <Ra...@Th...> - 2003-10-10 05:01:21
|
On 10/10/2003 12:50 AM, Terrence Brannon wrote: > ahh, I am using 5.8.0... but you speak on M::B::Platform::Windows when > an earlier msg indicated that Cygwin used M::B::Platform::Unix, most of > which defaults to M::B::Base Cygwin is a little of Unix and a little of Windows. I have downloaded Cygwin and am now installing. The download was quick. The installation is taking a loooooonnnnnnnnngggggggg time. Randy. |
|
From: Randy W. S. <Ra...@Th...> - 2003-10-11 16:16:08
Attachments:
cygwin.pm
|
On 10/10/2003 1:00 AM, Randy W. Sims wrote: > On 10/10/2003 12:50 AM, Terrence Brannon wrote: > > ahh, I am using 5.8.0... but you speak on M::B::Platform::Windows when > >> an earlier msg indicated that Cygwin used M::B::Platform::Unix, most >> of which defaults to M::B::Base > > > Cygwin is a little of Unix and a little of Windows. > > I have downloaded Cygwin and am now installing. The download was quick. > The installation is taking a loooooonnnnnnnnngggggggg time. > > Randy. > Ok. It took a loooooonnnnnnnnngggggggg time--*TWICE*, but I finally got a working Cygwin & Perl. And Cygwin is very slow on my system, as in it took nearly an hour to run './Build test', so please have patience. I've hacked the attached file which gets nearly everything working. NOTE: This is a hack module, the final patch I submit will not be anything like this; It is just easier to break it out into a separate file to see what changes need to be made. There is one problem left that has me kinda confused because I didn't see any signs of it in the log posted. If some other Cygwin users would place the attached file in their <module-build-source>/lib/Module/Build/Platform/ directory, perform the build incantation, and post the results I would appreciate it as I'm suspicious that it might have something to do with my configuration. The tests that are failing are runthrough.t #22 and xs.t #8. Both are tests of PPMMaker. Please let me know if you get a different result. Thanks, Randy. |
|
From: Ken W. <ke...@ma...> - 2003-10-11 17:37:00
|
On Saturday, October 11, 2003, at 11:15 AM, Randy W. Sims wrote: > On 10/10/2003 1:00 AM, Randy W. Sims wrote: >> On 10/10/2003 12:50 AM, Terrence Brannon wrote: >> > ahh, I am using 5.8.0... but you speak on M::B::Platform::Windows >> when >>> an earlier msg indicated that Cygwin used M::B::Platform::Unix, most >>> of which defaults to M::B::Base >> Cygwin is a little of Unix and a little of Windows. >> I have downloaded Cygwin and am now installing. The download was >> quick. The installation is taking a loooooonnnnnnnnngggggggg time. >> Randy. > > Ok. It took a loooooonnnnnnnnngggggggg time--*TWICE*, but I finally > got a working Cygwin & Perl. And Cygwin is very slow on my system, as > in it took nearly an hour to run './Build test', so please have > patience. Hi Randy, Thanks doubly much for looking into this, then! I'll await a final patch once you get things worked out with the other cygwin folks. Incidentally, you can remove that new() subroutine, as it's redundant. -Ken |
|
From: Ken W. <ke...@ma...> - 2003-10-11 17:48:00
|
On Saturday, October 11, 2003, at 11:15 AM, Randy W. Sims wrote:
> $self->do_system(@shrp, @ld, @lddlflags, '-o', $lib_file,
> "$file_base$cf->{obj_ext}", @$objects,
> '-L'.File::Spec->catdir($cf->{archlibexp},
> 'CORE'),
> '-lperl', @linker_flags)
Hi Randy,
It looks like the -L/foo/perl/CORE and -lperl arguments are the only
differences here, right? I'm curious about something - on my system
(darwin), $Config{shrpenv} is defined as 'env
LD_RUN_PATH=/sw/lib/perl5/5.6.1/darwin/CORE', and that ends up in the
@shrp variable.
On your cygwin, is $Config{shrpenv} empty, or not having any effect, or
what?
I think in general this is a case of Config.pm being a micro-manager.
It's not describing what it wants done, it's describing how to do it.
That's making our job of interface-writing sort of hard to do.
-Ken
|
|
From: Randy W. S. <Ra...@Th...> - 2003-10-11 18:32:18
|
Ken Williams wrote:
>
> On Saturday, October 11, 2003, at 11:15 AM, Randy W. Sims wrote:
>
>> $self->do_system(@shrp, @ld, @lddlflags, '-o', $lib_file,
>> "$file_base$cf->{obj_ext}", @$objects,
>> '-L'.File::Spec->catdir($cf->{archlibexp}, 'CORE'),
>> '-lperl', @linker_flags)
>
>
> Hi Randy,
>
> It looks like the -L/foo/perl/CORE and -lperl arguments are the only
> differences here, right?
Correct. I just copied and pasted the whole function, makeing only the
changes you pointed out. But this may be a simplification (hack) of what
needs to be done that just works for the most common case. MakeMaker
allows for the case of a statically linked perl under cygwin; I don't
know if anyone actually uses that option. I guess I should probably put
it in as it's a very minor change to allow for both static and dynamic
builds.
> I'm curious about something - on my system
> (darwin), $Config{shrpenv} is defined as 'env
> LD_RUN_PATH=/sw/lib/perl5/5.6.1/darwin/CORE', and that ends up in the
> @shrp variable.
>
> On your cygwin, is $Config{shrpenv} empty, or not having any effect, or
> what?
It's the same as yours, but for some reason it is not being used. Like I
said earlier, I'm a little uncertain of the differences in the build
process under Cygwin as compared to either Windows or *nix. I intend to
investigate further--maybe I can learn something on the Cygwin mailing
list...
> I think in general this is a case of Config.pm being a micro-manager.
> It's not describing what it wants done, it's describing how to do it.
> That's making our job of interface-writing sort of hard to do.
>
> -Ken
>
Randy.
|
|
From: Ken W. <ke...@ma...> - 2003-10-11 17:57:53
|
On Saturday, October 11, 2003, at 11:15 AM, Randy W. Sims wrote:
> Ok. It took a loooooonnnnnnnnngggggggg time--*TWICE*, but I finally
> got a working Cygwin & Perl. And Cygwin is very slow on my system, as
> in it took nearly an hour to run './Build test', so please have
> patience.
>
> I've hacked the attached file which gets nearly everything working.
Hi Randy, me again.
Here's a simpler version of the subroutine which should also work:
sub link_c {
my $self = shift;
my ($cf, $p) = ($self->{config}, $self->{properties}); # For
convenience
my $flags = $p->{extra_linker_flags};
local $p->{extra_linker_flags} =
['-L'.File::Spec->catdir($cf->{archlibexp}, 'CORE'),
'-lperl',
ref $flags ? @$flags : $self->split_like_shell($flags)];
return $self->SUPER::link_c(@_);
}
-Ken
|
|
From: Randy W. S. <Ra...@Th...> - 2003-10-15 04:38:08
|
On 10/11/2003 1:57 PM, Ken Williams wrote:
> sub link_c {
> my $self = shift;
> my ($cf, $p) = ($self->{config}, $self->{properties}); # For convenience
> my $flags = $p->{extra_linker_flags};
> local $p->{extra_linker_flags} =
> ['-L'.File::Spec->catdir($cf->{archlibexp}, 'CORE'),
> '-lperl',
> ref $flags ? @$flags : $self->split_like_shell($flags)];
> return $self->SUPER::link_c(@_);
> }
>
> -Ken
This works very nicely. I see no reason not to go ahead and tack it onto
cygwin.pm at this point.
--
A little learning is a dang'rous thing;
Drink deep, or taste not the Pierian spring;
There shallow draughts intoxicate the brain;
And drinking largely sobers us again.
- Alexander Pope
|
|
From: Randy W. S. <Ra...@Th...> - 2003-10-15 03:05:20
Attachments:
runthrough.out
|
On 10/14/2003 3:59 AM, Greg Matheson wrote:
> On Sat, 11 Oct 2003, Randy W. Sims wrote:
>
>
>>There is one problem left that has me kinda confused because I didn't
>>see any signs of it in the log posted. If some other Cygwin users would
>>place the attached file in their
>><module-build-source>/lib/Module/Build/Platform/ directory, perform the
>>build incantation, and post the results I would appreciate it as I'm
>>suspicious that it might have something to do with my configuration.
>
>
> I have Gerrit Haase's debugging build of perl-5.8.0 on cygwin-1.3.22 on Win98.
>
> Here is the output of ./Build test up until gdb takes over and XS code
> starts being tested. On Win98, there is/was a dll rebasing problem with
> 5.8.0.
>
> t/basic.........ok
> t/compat........# Failed test 5 in t/compat.t at line 25
> # Failed test 6 in t/compat.t at line 32
> # Test 7 got: 'MAKE TEST
> ' (t/compat.t at line 33)
> # Expected: qr{(?-xism:DONE\.|SUCCESS)}
> # Failed test 8 in t/compat.t at line 35
> # Failed test 11 in t/compat.t at line 54: Makefile shouldn't exist
> # Failed test 14 in t/compat.t at line 54 fail #2: Makefile shouldn't exist
> # Failed test 18 in t/compat.t at line 25 fail #2
> # Failed test 19 in t/compat.t at line 32 fail #2
> # Test 20 got: 'MAKE TEST
> ' (t/compat.t at line 33 fail #2)
> # Expected: qr{(?-xism:DONE\.|SUCCESS)}
> # Failed test 21 in t/compat.t at line 35 fail #2
> # Failed test 24 in t/compat.t at line 54 fail #3: Makefile shouldn't exist
> # Failed test 27 in t/compat.t at line 54 fail #4: Makefile shouldn't exist
> # Failed test 31 in t/compat.t at line 25 fail #3
> # Failed test 32 in t/compat.t at line 32 fail #3
> # Test 33 got: 'MAKE TEST
> ' (t/compat.t at line 33 fail #3)
> # Expected: qr{(?-xism:DONE\.|SUCCESS)}
> # Failed test 34 in t/compat.t at line 35 fail #3
> # Failed test 37 in t/compat.t at line 54 fail #5: Makefile shouldn't exist
> # Failed test 40 in t/compat.t at line 54 fail #6: Makefile shouldn't exist
> FAILED tests 5-8, 11, 14, 18-21, 24, 27, 31-34, 37, 40
> Failed 18/41 tests, 56.10% okay
> t/extend........ok
> t/install.......ok
> t/manifypods....ok
> t/notes.........ok
> t/runthrough....ok
> t/signature.....GNU gdb 2003-03-03-cvs (cygwin-special)
> Copyright 2003 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for details.
> This GDB was configured as "i686-pc-cygwin"...(no debugging symbols found)...
> Attaching to program `/usr/bin/PERL.EXE', process -1028635
> 113 [main] perl 412467 sync_with_child: WaitForMultipleObjects timed out
> skipped
> all skipped: Skipping unless $ENV{TEST_SIGNATURE} is true
> t/versions......ok
> t/xs............Creating library file: libXSTest.dll.a
> Creating library file: libXSTest.dll.a
> C:\CYGWIN\BIN\PERL.EXE: *** couldn't allocate memory 0x10000(4128768) for 'C:\CYGWIN\LIB\PERL5\5.8.0\CYGWIN-MULTI-64INT\AUTO\POSIX\POSIX.DLL' alignment, Win32 error 8
>
> 533 [main] perl 1029071 sync_with_child: child -1028803(0x114) died before initialization with status code 0x1
> 2147 [main] perl 1029071 sync_with_child: *** child state child loading dlls
> C:\CYGWIN\BIN\PERL.EXE: *** couldn't allocate memory 0x10000(4128768) for 'C:\CYGWIN\LIB\PERL5\5.8.0\CYGWIN-MULTI-64INT\AUTO\POSIX\POSIX.DLL' alignment, Win32 error 8
>
> You can ignore all the stuff after gdb shows up. It appears that all
> t/runthrough tests pass. It's the t/compat ones which fail.
>
> --
> Greg Matheson, Taiwan
>
>
Ahh, good! I was afraid that the results might be consistent; that would
have made things much less interesting. ;)
Actually, this might point in the right direction after all. I suspect
the different results are because of the differences in the IO subsystem
between Win9x and Win2k (which is what I'm using).
It looks like most of the errors your getting are due to a cascading
effect, i.e. it looks like only 1 or 2 tests are actually failing. If
you would (or anyone else with Win9x & Cygwin), could you try running
the test again with verbose output:
perl Build test test_files=t/compat.t verbose=1
Thanks for the help Greg.
Randy.
PS. I've attached output of the error I'm getting from t/runthrough.t on
Win2k for the archives.
|
|
From: Randy W. S. <Ra...@Th...> - 2003-10-15 04:52:24
Attachments:
patch
|
On 10/14/2003 11:04 PM, Randy W. Sims wrote: > PS. I've attached output of the error I'm getting from t/runthrough.t on > Win2k for the archives. > > not ok 23# Test 23 got: '<SOFTPKG NAME="Sample" VERSION="0,01,0,0"> > > <TITLE>Sample</TITLE> > </ABSTRACT>CT>Foo foo sample foo > <AUTHOR>Sample Man <sa...@ex...></AUTHOR> > <IMPLEMENTATION> > <DEPENDENCY NAME="File-Spec" VERSION="0,0,0,0" /> > <CODEBASE HREF="/path/to/codebase" /> > </IMPLEMENTATION> > </SOFTPKG> > ' (t/runthrough.t at line 130) > # Expected: '<SOFTPKG NAME="Sample" VERSION="0,01,0,0"> > <TITLE>Sample</TITLE> > <ABSTRACT>Foo foo sample foo</ABSTRACT> > <AUTHOR>Sample Man <sa...@ex...></AUTHOR> > <IMPLEMENTATION> > <DEPENDENCY NAME="File-Spec" VERSION="0,0,0,0" /> > <CODEBASE HREF="/path/to/codebase" /> > </IMPLEMENTATION> > </SOFTPKG> > ' > Deleting Sample.ppd > Deleting save_out > Deleting Sample-0.01.tar.gz > Deleting lib/Sample/Script > Deleting blib > Deleting _build > Deleting Build And here is the patch to fix it; It seems the line ending in the abstract was causing trouble. BTW, wouldn't it be better to use Pod::Parser in the dist_* routines for more acurate results? This gets Cygwin Win2k working. Now I got figure out what is happening on Win9x. Randy. |
|
From: Ken W. <ke...@ma...> - 2003-10-15 12:46:56
|
On Tuesday, October 14, 2003, at 11:52 PM, Randy W. Sims wrote: > On 10/14/2003 11:04 PM, Randy W. Sims wrote: > >> PS. I've attached output of the error I'm getting from t/runthrough.t >> on Win2k for the archives. >> not ok 23# Test 23 got: '<SOFTPKG NAME="Sample" VERSION="0,01,0,0"> >> <TITLE>Sample</TITLE> >> </ABSTRACT>CT>Foo foo sample foo >> <AUTHOR>Sample Man <sa...@ex...></AUTHOR> >> <IMPLEMENTATION> >> <DEPENDENCY NAME="File-Spec" VERSION="0,0,0,0" /> >> <CODEBASE HREF="/path/to/codebase" /> >> </IMPLEMENTATION> >> </SOFTPKG> >> ' (t/runthrough.t at line 130) >> # Expected: '<SOFTPKG NAME="Sample" VERSION="0,01,0,0"> >> <TITLE>Sample</TITLE> >> <ABSTRACT>Foo foo sample foo</ABSTRACT> >> <AUTHOR>Sample Man <sa...@ex...></AUTHOR> >> <IMPLEMENTATION> >> <DEPENDENCY NAME="File-Spec" VERSION="0,0,0,0" /> >> <CODEBASE HREF="/path/to/codebase" /> >> </IMPLEMENTATION> >> </SOFTPKG> >> ' >> Deleting Sample.ppd >> Deleting save_out >> Deleting Sample-0.01.tar.gz >> Deleting lib/Sample/Script >> Deleting blib >> Deleting _build >> Deleting Build > > And here is the patch to fix it; It seems the line ending in the > abstract was causing trouble. Wow, what a weird way to manifest that error. I'll apply the patch, thanks. > BTW, wouldn't it be better to use Pod::Parser in the dist_* routines > for more acurate results? Probably so, yeah. Is that a core module? -Ken |
|
From: Randy W. S. <Ra...@Th...> - 2003-10-16 03:08:49
Attachments:
patch
|
On 10/15/2003 8:46 AM, Ken Williams wrote: > >> BTW, wouldn't it be better to use Pod::Parser in the dist_* routines >> for more acurate results? > > > Probably so, yeah. Is that a core module? > > -Ken Yeah, though I'm not sure when it was added. The attached patch should be safe though. Randy. |
|
From: Randy W. S. <Ra...@Th...> - 2003-10-23 15:02:41
|
On 10/15/2003 11:08 PM, Randy W. Sims wrote:
> On 10/15/2003 8:46 AM, Ken Williams wrote:
>
>>
>>> BTW, wouldn't it be better to use Pod::Parser in the dist_* routines
>>> for more acurate results?
>>
>>
>>
>> Probably so, yeah. Is that a core module?
>>
>> -Ken
>
>
> Yeah, though I'm not sure when it was added. The attached patch should
> be safe though.
>
> Randy.
>
I forgot to follow up on this. I also forgot how easy it is to find out
when a module was added to CORE with Module::CoreList:
$ perl -MModule::CoreList -e "print
Module::CoreList->first_release('Pod::Parser')"
5.006
Even though it's kind of new, I'd recommend using it if it's present
since the current method is flawed.
Randy.
|
|
From: Ken W. <ke...@ma...> - 2003-10-28 03:27:35
|
On Wednesday, October 22, 2003, at 08:15 PM, Randy W. Sims wrote:
>
>
> On 10/15/2003 11:08 PM, Randy W. Sims wrote:
>
>> On 10/15/2003 8:46 AM, Ken Williams wrote:
>>>
>>>> BTW, wouldn't it be better to use Pod::Parser in the dist_*
>>>> routines for more acurate results?
>>>
>>>
>>>
>>> Probably so, yeah. Is that a core module?
>>>
>>> -Ken
>> Yeah, though I'm not sure when it was added. The attached patch
>> should be safe though.
>> Randy.
>
> I forgot to follow up on this. I also forgot how easy it is to find
> out when a module was added to CORE with Module::CoreList:
>
> $ perl -MModule::CoreList -e "print
> Module::CoreList->first_release('Pod::Parser')"
> 5.006
>
> Even though it's kind of new, I'd recommend using it if it's present
> since the current method is flawed.
Okay, I've committed a patch that uses Pod::Parser if available. I
based it on your code, but moved it out into a new
Module::Build::PodParser module that can transmogrify itself based on
whether Pod::Parser is available.
-Ken
|
|
From: Randy W. S. <Ra...@Th...> - 2003-10-15 12:30:06
|
Greg Matheson wrote: > On Wed, 15 Oct 2003, Greg Matheson wrote: > > >>Failed Test Stat Wstat Total Fail Failed List of Failed >>------------------------------------------------------------------------------- >>t/compat.t 41 18 43.90% 5-8 11 14 18-21 24 27 31-34 37 40 > > > Sorry, I didn't have make installed. I guess I've been installing all my modules with Module::Build recently. > > Here is the output after installing make. > > t/compat....1..41 > # Running under perl version 5.008001 for cygwin > # Current time local: Wed Oct 15 08:03:02 2003 > # Current time GMT: Wed Oct 15 08:03:02 2003 > # Using Test.pm version 1.24 <snipped verbose output> > All tests successful. > Files=1, Tests=41, 135 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 CPU) > Ahh, I was on the wrong trail. Thanks for the help on this; I think the solution is to guard t/compat.t with a test for the make utility and warn if it's not found (but not error)? > PS. My messages aren't making it to the list, > because my school's mail server is in an > open relay database. I get messages from the list, however. Thanks, Randy. |
|
From: Randy W. S. <Ra...@Th...> - 2003-10-16 04:45:36
Attachments:
patch
|
On 10/15/2003 8:41 AM, Randy W. Sims wrote: > Greg Matheson wrote: > >> On Wed, 15 Oct 2003, Greg Matheson wrote: >> >> >>> Failed Test Stat Wstat Total Fail Failed List of Failed >>> ------------------------------------------------------------------------------- >>> >>> t/compat.t 41 18 43.90% 5-8 11 14 18-21 24 27 >>> 31-34 37 40 >> >> >> >> Sorry, I didn't have make installed. I guess I've been installing all >> my modules with Module::Build recently. >> >> Here is the output after installing make. >> > > <snipped verbose output> > >> All tests successful. >> Files=1, Tests=41, 135 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 >> CPU) >> > > I think the solution is to guard t/compat.t with a test > for the make utility and warn if it's not found (but not error)? > patch attached. Randy. |
|
From: Ken W. <ke...@ma...> - 2003-10-18 03:31:14
|
Applied, thanks.
-Ken
On Wednesday, October 15, 2003, at 11:44 PM, Randy W. Sims wrote:
> patch attached.
>
> Randy.
> diff -ur Module-Build-0.21-orig/t/common.pl
> Module-Build-0.21/t/common.pl
> --- Module-Build-0.21-orig/t/common.pl 2003-10-16 00:38:57.000000000
> -0400
> +++ Module-Build-0.21/t/common.pl 2003-10-16 00:29:57.000000000 -0400
> @@ -36,4 +36,21 @@
> return <$fh>;
> }
>
> +sub find_in_path {
> + my $thing = shift;
> +
> + require Config;
> + my @path = split $Config{path_sep}, $ENV{PATH};
> + my @exe_ext = $^O eq 'MSWin32' ? ('', # may have extension already
> + split($Config{path_sep}, $ENV{PATHEXT} || '.com;.exe;.bat')) :
> + ('');
> + foreach (@path) {
> + my $fullpath = File::Spec->catfile($_, $thing);
> + foreach my $ext ( @exe_ext ) {
> + return "$fullpath$ext" if -e "$fullpath$ext";
> + }
> + }
> + return;
> +}
> +
> 1;
> diff -ur Module-Build-0.21-orig/t/compat.t Module-Build-0.21/t/compat.t
> --- Module-Build-0.21-orig/t/compat.t 2003-10-16 00:38:57.000000000
> -0400
> +++ Module-Build-0.21/t/compat.t 2003-10-16 00:32:33.000000000 -0400
> @@ -6,7 +6,8 @@
> use Config;
> require File::Spec->catfile('t', 'common.pl');
>
> -skip_test("Don't know how to invoke 'make'") unless $Config{make};
> +skip_test("Don't know how to invoke 'make'")
> + unless $Config{make} and find_in_path($Config{make});
> plan tests => 2 + 3*13;
> ok(1); # Loaded
>
|