James Keenan via RT a écrit :
On Mon Jul 07 04:46:52 2008, [EMAIL PROTECTED] wrote:

Do you think you could 'svn up', reconfigure, and then let me know if
your patch is still needed?


Also send output of 'prove -v t/steps/auto_icu*.t' and 'perl
Configure.pl --verbose-step=auto::icu'.

Thanks.


output with & without my patch.

François.





D:\fperrad\Parrot\trunk>prove -v t/steps/auto_icu*.t
t/steps/auto_icu-01....1..81
ok 1 - use config::init::defaults;
ok 2 - use config::auto::icu;
ok 3 - init::defaults constructor returned defined value
ok 4 - The object isa init::defaults
ok 5 - init::defaults has description
Set up gcc environment - 3.4.5 (mingw special)
ok 6 - init::defaults runstep() returned defined value
ok 7 - auto::icu constructor returned defined value
ok 8 - The object isa auto::icu
ok 9 - auto::icu has description
ok 10 - auto::icu runstep() returned true value
ok 11 - Got expected value for 'has_icu'
ok 12 - Got expected value for 'icu_shared'
ok 13 - Got expected value for 'icu_dir'
ok 14 - Got expected result
ok 15 - Got expected value for icu-config
ok 16 - Got expected value for icu-config
ok 17 - Got expected value for icu-config
ok 18 - icu-config not found, as expected
ok 19 - Autodetection cancelled, as expected
ok 20 - Continuing to configure without ICU
ok 21 - icu-config not found, as expected
ok 22 - Autodetection cancelled, as expected
ok 23 - Continuing to configure without ICU
ok 24 - icu-config found, as expected
ok 25 - Autodetection continues, as expected
ok 26 - Continuing to try to configure with ICU
ok 27 - icu-config found, as expected
ok 28 - Autodetection continues, as expected
ok 29 - Continuing to try to configure with ICU
ok 30 - Got expected verbose output
ok 31 - icu-config unchanged, as expected
ok 32 - Autodetection still active, as expected
ok 33 - Continuing to try to configure with ICU
ok 34 - icu-config unchanged, as expected
ok 35 - Autodetection still inactive, as expected
ok 36 - Continuing to try to configure with ICU
ok 37 - Got expected verbose output
ok 38 - Got expected ld flags
ok 39 - Continuing to try to configure with ICU
ok 40 - No icushared, as expected
ok 41 - No longer trying to configure with ICU
ok 42 - icushared remains undefined, as expected
ok 43 - Continuing to try to configure with ICU
ok 44 - icuheaders path undefined, as expected
ok 45 - Continuing to try to configure with ICU
ok 46 - Got expected icuheaders path value
ok 47 - No longer trying to configure with ICU
ok 48 - Got expected icuheaders path value
ok 49 - No longer trying to configure with ICU
ok 50 - Got expected icuheaders path value
ok 51 - Continuing to try to configure with ICU
ok 52 - Not trying to configure with ICU
ok 53 - icushared undefined, as expected
ok 54 - icuheaders undefined, as expected
ok 55 - result is still empty string, as expected
ok 56 - Still trying to configure with ICU
ok 57 - icushared undefined, as expected
ok 58 - icuheaders undefined, as expected
ok 59 - result is still empty string, as expected
ok 60 - Still trying to configure with ICU
ok 61 - icushared undefined, as expected
ok 62 - icuheaders undefined, as expected
ok 63 - result is still empty string, as expected
ok 64 - Got expected die message
ok 65 - Got expected verbose output
ok 66 - Got expected verbose output
ok 67 - Got expected verbose output
ok 68 - No verbose output, as expected
ok 69 - Got expected warnings
ok 70 - Got expected warnings
ok 71 - Got expected warnings
ok 72 - Got expected verbose output
ok 73 - Got expected verbose output
ok 74 - ccflags augmented as expected
ok 75 - No verbose output, as expected
ok 76 - ccflags augmented as expected
ok 77 - Got expected value for 'has_icu'
ok 78 - Got expected value for 'icu_shared'
ok 79 - Got expected value for 'icu_dir'
ok 80 - Got expected result
ok 81 - Completed all tests in t/steps/auto_icu-01.t
ok
t/steps/auto_icu-02....1..15
ok 1 - use config::init::defaults;
ok 2 - use config::auto::icu;
ok 3 - init::defaults constructor returned defined value
ok 4 - The object isa init::defaults
ok 5 - init::defaults has description
Set up gcc environment - 3.4.5 (mingw special)
ok 6 - init::defaults runstep() returned defined value
ok 7 - auto::icu constructor returned defined value
ok 8 - The object isa auto::icu
ok 9 - auto::icu has description
ok 10 - auto::icu runstep() returned true value
ok 11 - Got expected value for 'has_icu'
ok 12 - Got expected value for 'icu_shared'
ok 13 - Got expected value for 'icu_dir'
ok 14 - Got expected result
ok 15 - Completed all tests in t/steps/auto_icu-02.t
ok
t/steps/auto_icu-03....1..0 # Skip icu-config not available
skipped
        all skipped: icu-config not available
t/steps/auto_icu-04....1..17
ok 1 - use config::init::defaults;
ok 2 - use config::auto::icu;
ok 3 - init::defaults constructor returned defined value
ok 4 - The object isa init::defaults
ok 5 - init::defaults has description
Set up gcc environment - 3.4.5 (mingw special)
ok 6 - init::defaults runstep() returned defined value
ok 7 - auto::icu constructor returned defined value
ok 8 - The object isa auto::icu
ok 9 - auto::icu has description
ok 10 - auto::icu runstep() returned true value
ok 11 - Got expected return value: no icu-config
ok 12 - Got expected verbose output re return value
ok 13 - Got expected verbose output re inability to locate icu-config program
ok 14 - auto::icu runstep() returned true value
ok 15 - Got expected return value: no icu-config
ok 16 - No verbose output captured, as expected
ok 17 - Completed all tests in t/steps/auto_icu-04.t
ok
t/steps/auto_icu-05....1..0 # Skip icu-config not available
skipped
        all skipped: icu-config not available
t/steps/auto_icu-06....1..0 # Skip icu-config not available
skipped
        all skipped: icu-config not available
All tests successful, 3 tests skipped.
Files=6, Tests=113,  5 wallclock secs ( 0.00 cusr +  0.00 csys =  0.00 CPU)

D:\fperrad\Parrot\trunk>perl Configure.pl --cc=gcc --verbose-step=auto::icu 
--icushared="D:\icu-3.8\icu\lib\icudt.lib D:\icu-3.8\icu\lib\icuuc.lib" 
--icuheaders="D:\icu-3.8\icu\include"
Parrot Version 0.6.3 Configure 2.0
Copyright (C) 2001-2008, The Perl Foundation.

Hello, I'm Configure. My job is to poke and prod your system to figure out
how to build Parrot. The process is completely automated, unless you passed in
the `--ask' flag on the command line, in which case I'll prompt you for a few
pieces of info.

Since you're running this program, you obviously have Perl 5--I'll be pulling
some defaults from its configuration.

Checking MANIFEST.....................................................done.
Setting up Configure's default values...Set up gcc environment - 3.4.5 (mingw 
special)..............................done.
Setting up installation paths.........................................done.
Tweaking settings for miniparrot...................................skipped.
Loading platform and local hints files................................done.
Finding header files distributed with Parrot..........................done.
Determining what C compiler and linker to use.........................done.
Determining whether make is installed..................................yes.
Determining whether lex is installed...............................skipped.
Determining whether yacc is installed..............................skipped.
Determining if your C compiler is actually gcc.........................yes.
Seeing if GNU libc is installed.........................................no.
Determining whether libc has the backtrace* functions...................no.
Determining Fink location on Darwin................................skipped.
Determining Macports location on Darwin............................skipped.
Determining if your C compiler is actually Visual C++...................no.
Detecting compiler attributes (-DHASATTRIBUTE_xxx)....................done.
Detecting supported compiler warnings (-Wxxx)..................set for gcc.
Enabling optimization...................................................no.
Determining flags for building shared libraries.......................done.
Determine if parrot should be linked against a shared library..........yes.
Determining what charset files should be compiled in..................done.
Determining what encoding files should be compiled in.................done.
Determining what types Parrot should use..............................done.
Determining what opcode files should be compiled in...................done.
Determining what pmc files should be compiled in......................done.
Determining your minimum pointer alignment......................... 1 byte.
Probing for C headers.................................................done.
Determining some sizes................................................done.
Computing native byteorder for Parrot's wordsize.............little-endian.
Test the type of va_ptr (this test is likely to segfault)............stack.
Figuring out how to pack() Parrot's types.............................done.
Figuring out what formats should be used for sprintf..................done.
Determining if your C library has a working S_ISREG....................yes.
Determining CPU architecture and OS...................................done.
Determining architecture, OS and JIT capability.......................done.
Generating CPU specific stuff.........................................done.
Verifying that the compiler supports function pointer casts............yes.
Determining whether your compiler supports computed goto...............yes.
Determining if your compiler supports inline...........................yes.
Determining what allocator to use.....................................done.
Determining if your C library supports memalign.........................no.
Determining some signal stuff.........................................done.
Determining whether there is socklen_t..................................no.
Determining if your C library has setenv / unsetenv...............unsetenv.
Determining if your platform supports AIO...............................no.
Determining if your platform supports GMP..............................yes.
Determining if your platform supports readline.........................yes.
Determining if your platform supports gdbm.............................yes.
Determining if your platform supports pcre........................yes, 7.0.
Determining if your platform supports OpenGL...................yes, GLUT 3.
Determining if your platform supports crypto...................yes, 0.9.8g.
Seeing if your configuration includes gettext..........................yes.
Testing snprintf......................................................done.
Determining whether perldoc is installed...............................yes.
Determining whether (exuberant) ctags is installed.....................yes.
Determining Parrot's revision.......................................r29116.
Determining whether ICU is installed...Specified an ICU config parameter,
ICU autodetection disabled.
icuconfig:
icushared='D:\icu-3.8\icu\lib\icudt.lib D:\icu-3.8\icu\lib\icuuc.lib'
headers='D:\icu-3.8\icu\include'
gcc -DWIN32  -DHASATTRIBUTE_CONST  -DHASATTRIBUTE_DEPRECATED  -DHASATTRIBUTE_MAL
LOC  -DHASATTRIBUTE_NONNULL  -DHASATTRIBUTE_NORETURN  -DHASATTRIBUTE_PURE  -DHAS
ATTRIBUTE_UNUSED  -DHASATTRIBUTE_WARN_UNUSED_RESULT  -falign-functions=16 -maccu
mulate-outgoing-args -W -Wall -Waggregate-return -Wcast-align -Wcast-qual -Wchar
-subscripts -Wcomment -Wdisabled-optimization -Wendif-labels -Wextra -Wformat -W
format-extra-args -Wformat-nonliteral -Wformat-security -Wformat-y2k -Wimplicit
-Wimport -Winit-self -Winline -Winvalid-pch -Wmissing-braces -Wno-missing-format
-attribute -Wpacked -Wparentheses -Wpointer-arith -Wreturn-type -Wsequence-point
 -Wno-shadow -Wsign-compare -Wstrict-aliasing -Wstrict-aliasing=2 -Wswitch -Wswi
tch-default -Wtrigraphs -Wundef -Wunknown-pragmas -Wno-unused -Wwrite-strings -W
bad-function-cast -Wdeclaration-after-statement -Wimplicit-function-declaration
-Wimplicit-int -Wmain -Wmissing-declarations -Wmissing-prototypes -Wnested-exter
ns -Wnonnull -DHAS_GETTEXT  -I./include -c test.c
test.c:1:26: unicode/ucnv.h: No such file or directory
Adding -I D:\icu-3.8\icu\include to ccflags for icu headers.
................................yes.
Setting Configuration Data:
(
        verbose => undef,
);

Generating C headers..................................................done.
Generating core pmc list..............................................done.
Generating Digest PMC files...........................................done.
Generating runtime/parrot/include.....................................done.
Generating OpenGL bindings............................................done.
Generating NCI signature list.........................................done.
Configuring languages.................................................done.
Generating makefiles and other build files............................done.
Moving platform files into place......................................done.
Recording configuration data for later retrieval......................done.
Okay, we're done!

You can now use `mingw32-make' to build your Parrot.
After that, you can use `mingw32-make test' to run the test suite.

Happy Hacking,
        The Parrot Team

D:\fperrad\Parrot\trunk>prove -v t/steps/auto_icu*.t
t/steps/auto_icu-01....1..81
ok 1 - use config::init::defaults;
ok 2 - use config::auto::icu;
ok 3 - init::defaults constructor returned defined value
ok 4 - The object isa init::defaults
ok 5 - init::defaults has description
Set up gcc environment - 3.4.5 (mingw special)
ok 6 - init::defaults runstep() returned defined value
ok 7 - auto::icu constructor returned defined value
ok 8 - The object isa auto::icu
ok 9 - auto::icu has description
ok 10 - auto::icu runstep() returned true value
ok 11 - Got expected value for 'has_icu'
ok 12 - Got expected value for 'icu_shared'
ok 13 - Got expected value for 'icu_dir'
ok 14 - Got expected result
ok 15 - Got expected value for icu-config
ok 16 - Got expected value for icu-config
ok 17 - Got expected value for icu-config
ok 18 - icu-config not found, as expected
ok 19 - Autodetection cancelled, as expected
ok 20 - Continuing to configure without ICU
ok 21 - icu-config not found, as expected
ok 22 - Autodetection cancelled, as expected
ok 23 - Continuing to configure without ICU
ok 24 - icu-config found, as expected
ok 25 - Autodetection continues, as expected
ok 26 - Continuing to try to configure with ICU
ok 27 - icu-config found, as expected
ok 28 - Autodetection continues, as expected
ok 29 - Continuing to try to configure with ICU
ok 30 - Got expected verbose output
ok 31 - icu-config unchanged, as expected
ok 32 - Autodetection still active, as expected
ok 33 - Continuing to try to configure with ICU
ok 34 - icu-config unchanged, as expected
ok 35 - Autodetection still inactive, as expected
ok 36 - Continuing to try to configure with ICU
ok 37 - Got expected verbose output
ok 38 - Got expected ld flags
ok 39 - Continuing to try to configure with ICU
ok 40 - No icushared, as expected
ok 41 - No longer trying to configure with ICU
ok 42 - icushared remains undefined, as expected
ok 43 - Continuing to try to configure with ICU
ok 44 - icuheaders path undefined, as expected
ok 45 - Continuing to try to configure with ICU
ok 46 - Got expected icuheaders path value
ok 47 - No longer trying to configure with ICU
ok 48 - Got expected icuheaders path value
ok 49 - No longer trying to configure with ICU
ok 50 - Got expected icuheaders path value
ok 51 - Continuing to try to configure with ICU
ok 52 - Not trying to configure with ICU
ok 53 - icushared undefined, as expected
ok 54 - icuheaders undefined, as expected
ok 55 - result is still empty string, as expected
ok 56 - Still trying to configure with ICU
ok 57 - icushared undefined, as expected
ok 58 - icuheaders undefined, as expected
ok 59 - result is still empty string, as expected
ok 60 - Still trying to configure with ICU
ok 61 - icushared undefined, as expected
ok 62 - icuheaders undefined, as expected
ok 63 - result is still empty string, as expected
ok 64 - Got expected die message
ok 65 - Got expected verbose output
ok 66 - Got expected verbose output
ok 67 - Got expected verbose output
ok 68 - No verbose output, as expected
ok 69 - Got expected warnings
ok 70 - Got expected warnings
ok 71 - Got expected warnings
ok 72 - Got expected verbose output
ok 73 - Got expected verbose output
ok 74 - ccflags augmented as expected
ok 75 - No verbose output, as expected
ok 76 - ccflags augmented as expected
ok 77 - Got expected value for 'has_icu'
ok 78 - Got expected value for 'icu_shared'
ok 79 - Got expected value for 'icu_dir'
ok 80 - Got expected result
ok 81 - Completed all tests in t/steps/auto_icu-01.t
ok
t/steps/auto_icu-02....1..15
ok 1 - use config::init::defaults;
ok 2 - use config::auto::icu;
ok 3 - init::defaults constructor returned defined value
ok 4 - The object isa init::defaults
ok 5 - init::defaults has description
Set up gcc environment - 3.4.5 (mingw special)
ok 6 - init::defaults runstep() returned defined value
ok 7 - auto::icu constructor returned defined value
ok 8 - The object isa auto::icu
ok 9 - auto::icu has description
ok 10 - auto::icu runstep() returned true value
ok 11 - Got expected value for 'has_icu'
ok 12 - Got expected value for 'icu_shared'
ok 13 - Got expected value for 'icu_dir'
ok 14 - Got expected result
ok 15 - Completed all tests in t/steps/auto_icu-02.t
ok
t/steps/auto_icu-03....1..0 # Skip icu-config not available
skipped
        all skipped: icu-config not available
t/steps/auto_icu-04....1..17
ok 1 - use config::init::defaults;
ok 2 - use config::auto::icu;
ok 3 - init::defaults constructor returned defined value
ok 4 - The object isa init::defaults
ok 5 - init::defaults has description
Set up gcc environment - 3.4.5 (mingw special)
ok 6 - init::defaults runstep() returned defined value
ok 7 - auto::icu constructor returned defined value
ok 8 - The object isa auto::icu
ok 9 - auto::icu has description
ok 10 - auto::icu runstep() returned true value
ok 11 - Got expected return value: no icu-config
ok 12 - Got expected verbose output re return value
ok 13 - Got expected verbose output re inability to locate icu-config program
ok 14 - auto::icu runstep() returned true value
ok 15 - Got expected return value: no icu-config
ok 16 - No verbose output captured, as expected
ok 17 - Completed all tests in t/steps/auto_icu-04.t
ok
t/steps/auto_icu-05....1..0 # Skip icu-config not available
skipped
        all skipped: icu-config not available
t/steps/auto_icu-06....1..0 # Skip icu-config not available
skipped
        all skipped: icu-config not available
All tests successful, 3 tests skipped.
Files=6, Tests=113,  4 wallclock secs ( 0.00 cusr +  0.00 csys =  0.00 CPU)

D:\fperrad\Parrot\trunk>
D:\fperrad\Parrot\trunk>perl Configure.pl --cc=gcc --verbose-step=auto::icu 
--icushared="D:\icu-3.8\icu\lib\icudt.lib D:\icu-3.8\icu\lib\icuuc.lib" 
--icuheaders="D:\icu-3.8\icu\include"
Parrot Version 0.6.3 Configure 2.0
Copyright (C) 2001-2008, The Perl Foundation.

Hello, I'm Configure. My job is to poke and prod your system to figure out
how to build Parrot. The process is completely automated, unless you passed in
the `--ask' flag on the command line, in which case I'll prompt you for a few
pieces of info.

Since you're running this program, you obviously have Perl 5--I'll be pulling
some defaults from its configuration.

Checking MANIFEST.....................................................done.
Setting up Configure's default values...Set up gcc environment - 3.4.5 (mingw 
special)..............................done.
Setting up installation paths.........................................done.
Tweaking settings for miniparrot...................................skipped.
Loading platform and local hints files................................done.
Finding header files distributed with Parrot..........................done.
Determining what C compiler and linker to use.........................done.
Determining whether make is installed..................................yes.
Determining whether lex is installed...............................skipped.
Determining whether yacc is installed..............................skipped.
Determining if your C compiler is actually gcc.........................yes.
Seeing if GNU libc is installed.........................................no.
Determining whether libc has the backtrace* functions...................no.
Determining Fink location on Darwin................................skipped.
Determining Macports location on Darwin............................skipped.
Determining if your C compiler is actually Visual C++...................no.
Detecting compiler attributes (-DHASATTRIBUTE_xxx)....................done.
Detecting supported compiler warnings (-Wxxx)..................set for gcc.
Enabling optimization...................................................no.
Determining flags for building shared libraries.......................done.
Determine if parrot should be linked against a shared library..........yes.
Determining what charset files should be compiled in..................done.
Determining what encoding files should be compiled in.................done.
Determining what types Parrot should use..............................done.
Determining what opcode files should be compiled in...................done.
Determining what pmc files should be compiled in......................done.
Determining your minimum pointer alignment......................... 1 byte.
Probing for C headers.................................................done.
Determining some sizes................................................done.
Computing native byteorder for Parrot's wordsize.............little-endian.
Test the type of va_ptr (this test is likely to segfault)............stack.
Figuring out how to pack() Parrot's types.............................done.
Figuring out what formats should be used for sprintf..................done.
Determining if your C library has a working S_ISREG....................yes.
Determining CPU architecture and OS...................................done.
Determining architecture, OS and JIT capability.......................done.
Generating CPU specific stuff.........................................done.
Verifying that the compiler supports function pointer casts............yes.
Determining whether your compiler supports computed goto...............yes.
Determining if your compiler supports inline...........................yes.
Determining what allocator to use.....................................done.
Determining if your C library supports memalign.........................no.
Determining some signal stuff.........................................done.
Determining whether there is socklen_t..................................no.
Determining if your C library has setenv / unsetenv...............unsetenv.
Determining if your platform supports AIO...............................no.
Determining if your platform supports GMP..............................yes.
Determining if your platform supports readline.........................yes.
Determining if your platform supports gdbm.............................yes.
Determining if your platform supports pcre........................yes, 7.0.
Determining if your platform supports OpenGL...................yes, GLUT 3.
Determining if your platform supports crypto...................yes, 0.9.8g.
Seeing if your configuration includes gettext..........................yes.
Testing snprintf......................................................done.
Determining whether perldoc is installed...............................yes.
Determining whether (exuberant) ctags is installed.....................yes.
Determining Parrot's revision.......................................r29116.
Determining whether ICU is installed...Specified an ICU config parameter,
ICU autodetection disabled.
icuconfig:
error: icushared not defined
error: icuheaders not defined or invalid
Something is wrong with your ICU installation!

   If you do not have a full ICU installation:

   --without-icu        Build parrot without ICU support
   --icu-config=(file)  Location of icu-config
   --icuheaders=(path)  Location of ICU headers without /unicode
   --icushared=(flags)  Full linker command to create shared libraries

step auto::icu failed: no result returned at Configure.pl line 66

Generating C headers...value for 'has_icu' in config/gen/config_h/config_h.in is
 undef at lib/Parrot/Configure/Compiler.pm line 400, <$in> line 146.
...............................................done.
Setting Configuration Data:
(
        verbose => undef,
);

Generating core pmc list..............................................done.
Generating Digest PMC files...........................................done.
Generating runtime/parrot/include.....................................done.
Generating OpenGL bindings............................................done.
Generating NCI signature list.........................................done.
Configuring languages.................................................done.
Generating makefiles and other build files...value for 'icu_shared' in config/ge
n/makefiles/dynpmc_pl.in is undef at lib/Parrot/Configure/Compiler.pm line 400,
<$in> line 80.
value for 'icu_shared' in config/gen/makefiles/dynpmc_pl.in is undef at lib/Parr
ot/Configure/Compiler.pm line 400, <$in> line 95.
value for 'icu_shared' in config/gen/makefiles/parrot_pc.in is undef at lib/Parr
ot/Configure/Compiler.pm line 400, <$in> line 9.
value for 'icu_shared' in config/gen/makefiles/dynoplibs_pl.in is undef at lib/P
arrot/Configure/Compiler.pm line 400, <$in> line 84.
.........................done.
Moving platform files into place......................................done.
Recording configuration data for later retrieval......................done.
During configuration the following steps failed:
    58:  auto::icu
You should diagnose and fix these errors before calling 'mingw32-make'

Reply via email to