Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Installing Unicode::LineBreak on Strawberry Perl v 5.18.2

by wind (Priest)
on Apr 02, 2014 at 01:31 UTC ( #1080666=perlquestion: print w/replies, xml ) Need Help??

wind has asked for the wisdom of the Perl Monks concerning the following question:

I'm attempting to install Unicode::LineBreak with the eventual goal of of install vCard on Strawberry Perl v 5.16.2. (now on v 5.18.2)

The following is the output of my original attempt to installing to v 5.16.2:

C:\windows\system32>cpan Unicode::LineBreak CPAN: CPAN::SQLite loaded ok (v0.202) Database was generated on Tue, 01 Apr 2014 23:21:07 GMT Running install for module 'Unicode::LineBreak' Running make for N/NE/NEZUMI/Unicode-LineBreak-2013.11.tar.gz CPAN: Digest::SHA loaded ok (v5.73) CPAN: Compress::Zlib loaded ok (v2.055) Checksum for C:\strawberry\cpan\sources\authors\id\N\NE\NEZUMI\Unicode +-LineBreak-2013.11.tar.gz ok CPAN: Archive::Tar loaded ok (v1.90) CPAN: File::Temp loaded ok (v0.22) CPAN: Parse::CPAN::Meta loaded ok (v1.4414) CPAN: CPAN::Meta loaded ok (v2.140640) CPAN: Module::CoreList loaded ok (v2.76) CPAN.pm: Building N/NE/NEZUMI/Unicode-LineBreak-2013.11.tar.gz 'pkg-config' is not recognized as an internal or external command, operable program or batch file. 'pkg-config' is not recognized as an internal or external command, operable program or batch file. Use bundled sombok 2.3.1 with Unicode 6.3.0 Checking if your kit is complete... Looks good Writing Makefile for sombok Writing MYMETA.yml and MYMETA.json Writing Makefile for Unicode::LineBreak Writing MYMETA.yml and MYMETA.json cp lib/Unicode/LineBreak/Constants.pm blib\lib\Unicode\LineBreak\Const +ants.pm cp lib/POD2/JA/Unicode/GCString.pod blib\lib\POD2\JA\Unicode\GCString. +pod cp lib/Unicode/LineBreak.pm blib\lib\Unicode\LineBreak.pm cp lib/POD2/JA/Unicode/LineBreak.pod blib\lib\POD2\JA\Unicode\LineBrea +k.pod cp lib/Unicode/GCString.pod blib\lib\Unicode\GCString.pod cp lib/Text/LineFold.pm blib\lib\Text\LineFold.pm cp lib/POD2/JA/Text/LineFold.pod blib\lib\POD2\JA\Text\LineFold.pod cp lib/Unicode/GCString.pm blib\lib\Unicode\GCString.pm cp lib/Unicode/LineBreak/Defaults.pm.sample blib\lib\Unicode\LineBreak +\Defaults.pm.sample cp lib/Unicode/LineBreak.pod blib\lib\Unicode\LineBreak.pod cd sombok && dmake all cd lib && gcc -c "-IC:\strawberry\perl\lib\CORE" "-IC:/strawberry/cpa +n/build/Unicode-LineBreak-2013.11-9VJpoe/sombok\include" -s -O2 -DWI +N32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CO +NTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -s -O2 + -DVERSION=\"\" -DXS_VERSION=\"\" "-IC:\strawberry\perl\l +ib\CORE" -DWIN32 -DPERL_STATIC_SYMS ..\lib\break.c cd lib && gcc -c "-IC:\strawberry\perl\lib\CORE" "-IC:/strawberry/cpa +n/build/Unicode-LineBreak-2013.11-9VJpoe/sombok\include" -s -O2 -DWI +N32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CO +NTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -s -O2 + -DVERSION=\"\" -DXS_VERSION=\"\" "-IC:\strawberry\perl\l +ib\CORE" -DWIN32 -DPERL_STATIC_SYMS ..\lib\charprop.c ..\lib\charprop.c: In function 'linebreak_charprop': ..\lib\charprop.c:156:10: warning: assignment discards 'const' qualifi +er from pointer target type [enabled by default] cd lib && gcc -c "-IC:\strawberry\perl\lib\CORE" "-IC:/strawberry/cpa +n/build/Unicode-LineBreak-2013.11-9VJpoe/sombok\include" -s -O2 -DWI +N32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CO +NTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -s -O2 + -DVERSION=\"\" -DXS_VERSION=\"\" "-IC:\strawberry\perl\l +ib\CORE" -DWIN32 -DPERL_STATIC_SYMS ..\lib\gcstring.c cd lib && gcc -c "-IC:\strawberry\perl\lib\CORE" "-IC:/strawberry/cpa +n/build/Unicode-LineBreak-2013.11-9VJpoe/sombok\include" -s -O2 -DWI +N32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CO +NTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -s -O2 + -DVERSION=\"\" -DXS_VERSION=\"\" "-IC:\strawberry\perl\l +ib\CORE" -DWIN32 -DPERL_STATIC_SYMS ..\lib\linebreak.c cd lib && gcc -c "-IC:\strawberry\perl\lib\CORE" "-IC:/strawberry/cpa +n/build/Unicode-LineBreak-2013.11-9VJpoe/sombok\include" -s -O2 -DWI +N32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CO +NTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -s -O2 + -DVERSION=\"\" -DXS_VERSION=\"\" "-IC:\strawberry\perl\l +ib\CORE" -DWIN32 -DPERL_STATIC_SYMS ..\lib\southeastasian.c cd lib && gcc -c "-IC:\strawberry\perl\lib\CORE" "-IC:/strawberry/cpa +n/build/Unicode-LineBreak-2013.11-9VJpoe/sombok\include" -s -O2 -DWI +N32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CO +NTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -s -O2 + -DVERSION=\"\" -DXS_VERSION=\"\" "-IC:\strawberry\perl\l +ib\CORE" -DWIN32 -DPERL_STATIC_SYMS ..\lib\utf8.c cd lib && gcc -c "-IC:\strawberry\perl\lib\CORE" "-IC:/strawberry/cpa +n/build/Unicode-LineBreak-2013.11-9VJpoe/sombok\include" -s -O2 -DWI +N32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CO +NTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -s -O2 + -DVERSION=\"\" -DXS_VERSION=\"\" "-IC:\strawberry\perl\l +ib\CORE" -DWIN32 -DPERL_STATIC_SYMS ..\lib\utils.c cd lib && gcc -c "-IC:\strawberry\perl\lib\CORE" "-IC:/strawberry/cpa +n/build/Unicode-LineBreak-2013.11-9VJpoe/sombok\include" -s -O2 -DWI +N32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CO +NTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -s -O2 + -DVERSION=\"\" -DXS_VERSION=\"\" "-IC:\strawberry\perl\l +ib\CORE" -DWIN32 -DPERL_STATIC_SYMS ..\lib\6.3.0.c C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e rm_rf -- libsom +bok.a ar -ru libsombok.a lib/break.o lib/charprop.o lib/gcstring.o lib/li +nebreak.o lib/southeastasian.o lib/utf8.o lib/utils.o + lib/6.3.0.o Use of assignment to $[ is deprecated at C:/strawberry/perl/lib/getopt +s.pl line 19. C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 755 li +bsombok.a C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp + -typemap C:\strawberry\perl\lib\ExtUtils\typemap -typemap typemap +LineBreak.xs > LineBreak.xsc && C:\strawberry\perl\bin\perl.exe -MExt +Utils::Command -e mv -- LineBreak.xsc LineBreak.c gcc -c -Isombok\include -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE +-DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS - +fno-strict-aliasing -mms-bitfields -s -O2 -DVERSION=\"2013.11\" + -DXS_VERSION=\"2013.11\" "-IC:\strawberry\perl\lib\CORE" L +ineBreak.c LineBreak.xs: In function 'XS_Unicode__LineBreak_as_scalarref': LineBreak.xs:1061:4: warning: cast from pointer to integer of differen +t size [-Wpointer-to-int-cast] LineBreak.xs: In function 'XS_Unicode__LineBreak_as_string': LineBreak.xs:1074:4: warning: cast from pointer to integer of differen +t size [-Wpointer-to-int-cast] LineBreak.xs: In function 'XS_Unicode__GCString_as_scalarref': LineBreak.xs:1306:4: warning: cast from pointer to integer of differen +t size [-Wpointer-to-int-cast] Running Mkbootstrap for Unicode::LineBreak () C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 Li +neBreak.bs C:\strawberry\perl\bin\perl.exe -MExtUtils::Mksymlists \ -e "Mksymlists('NAME'=>\"Unicode::LineBreak\", 'DLBASE' => 'LineB +reak', 'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_V +ARS' => []);" dlltool --def LineBreak.def --output-exp dll.exp g++ -o blib\arch\auto\Unicode\LineBreak\LineBreak.dll -Wl,--base-file +-Wl,dll.base -mdll -s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawberr +y\c\lib" LineBreak.o sombok\libsombok.a C:\strawberry\perl\lib\CORE\ +libperl516.a -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomd +lg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_ +32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 dll.exp c:/strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x8 +6_64-w64-mingw32/bin/ld.exe:sombok\libsombok.a: file format not recog +nized; treating as linker script c:/strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x8 +6_64-w64-mingw32/bin/ld.exe:sombok\libsombok.a:1: syntax error collect2: ld returned 1 exit status dmake.exe: Error code 129, while making 'blib\arch\auto\Unicode\LineB +reak\LineBreak.dll' NEZUMI/Unicode-LineBreak-2013.11.tar.gz C:\strawberry\c\bin\dmake.exe -- NOT OK CPAN: YAML::XS loaded ok (v0.38) Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible Stopping: 'install' failed for 'Unicode::LineBreak'.

Update

After feedback from syphilis, I decided it was worthwhile to try upgrade to the latest version 5.18.2 and try to install again. Unfortunately, it also failed with new errors:

C:\strawberry\cpan\build>cpan Unicode::LineBreak CPAN: CPAN::SQLite loaded ok (v0.203) Database was generated on Wed, 02 Apr 2014 06:07:27 GMT Running install for module 'Unicode::LineBreak' Running make for N/NE/NEZUMI/Unicode-LineBreak-2013.11.tar.gz CPAN: Digest::SHA loaded ok (v5.85) CPAN: Compress::Zlib loaded ok (v2.063) Checksum for C:\strawberry\cpan\sources\authors\id\N\NE\NEZUMI\Unicode +-LineBreak-2013.11.tar.gz ok CPAN: Archive::Tar loaded ok (v1.96) CPAN: File::Temp loaded ok (v0.2304) CPAN: Parse::CPAN::Meta loaded ok (v1.4409) CPAN: CPAN::Meta loaded ok (v2.133380) CPAN: Module::CoreList loaded ok (v3.03) CPAN.pm: Building N/NE/NEZUMI/Unicode-LineBreak-2013.11.tar.gz 'pkg-config' is not recognized as an internal or external command, operable program or batch file. 'pkg-config' is not recognized as an internal or external command, operable program or batch file. Use bundled sombok 2.3.1 with Unicode 6.3.0 Checking if your kit is complete... Looks good Generating a dmake-style Makefile Writing Makefile for sombok Writing MYMETA.yml and MYMETA.json Generating a dmake-style Makefile Writing Makefile for Unicode::LineBreak Writing MYMETA.yml and MYMETA.json cp lib/Unicode/LineBreak.pm blib\lib\Unicode\LineBreak.pm cp lib/Unicode/GCString.pm blib\lib\Unicode\GCString.pm cp lib/Unicode/LineBreak.pod blib\lib\Unicode\LineBreak.pod cp lib/POD2/JA/Unicode/LineBreak.pod blib\lib\POD2\JA\Unicode\LineBrea +k.pod cp lib/Text/LineFold.pm blib\lib\Text\LineFold.pm cp lib/Unicode/GCString.pod blib\lib\Unicode\GCString.pod cp lib/POD2/JA/Unicode/GCString.pod blib\lib\POD2\JA\Unicode\GCString. +pod cp lib/Unicode/LineBreak/Defaults.pm.sample blib\lib\Unicode\LineBreak +\Defaults.pm.sample cp lib/POD2/JA/Text/LineFold.pod blib\lib\POD2\JA\Text\LineFold.pod cp lib/Unicode/LineBreak/Constants.pm blib\lib\Unicode\LineBreak\Const +ants.pm cd sombok && dmake all cd lib && gcc -c "-IC:\strawberry\perl\lib\CORE" "-IC:/strawberry/cpa +n/build/Unicode-LineBreak-2013.11-jDmghX/sombok\include" -s -O2 -DWI +N32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CO +NTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fno-strict-aliasing -mms-bitf +ields -s -O2 -DVERSION=\"\" -DXS_VERSION=\"\" "-IC:\s +trawberry\perl\lib\CORE" -DWIN32 -DPERL_STATIC_SYMS ..\lib\6.3.0.c cd lib && gcc -c "-IC:\strawberry\perl\lib\CORE" "-IC:/strawberry/cpa +n/build/Unicode-LineBreak-2013.11-jDmghX/sombok\include" -s -O2 -DWI +N32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CO +NTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fno-strict-aliasing -mms-bitf +ields -s -O2 -DVERSION=\"\" -DXS_VERSION=\"\" "-IC:\s +trawberry\perl\lib\CORE" -DWIN32 -DPERL_STATIC_SYMS ..\lib\break.c cd lib && gcc -c "-IC:\strawberry\perl\lib\CORE" "-IC:/strawberry/cpa +n/build/Unicode-LineBreak-2013.11-jDmghX/sombok\include" -s -O2 -DWI +N32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CO +NTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fno-strict-aliasing -mms-bitf +ields -s -O2 -DVERSION=\"\" -DXS_VERSION=\"\" "-IC:\s +trawberry\perl\lib\CORE" -DWIN32 -DPERL_STATIC_SYMS ..\lib\charprop. +c ..\lib\charprop.c: In function 'linebreak_charprop': ..\lib\charprop.c:156:10: warning: assignment discards 'const' qualifi +er from pointer target type [enabled by default] cd lib && gcc -c "-IC:\strawberry\perl\lib\CORE" "-IC:/strawberry/cpa +n/build/Unicode-LineBreak-2013.11-jDmghX/sombok\include" -s -O2 -DWI +N32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CO +NTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fno-strict-aliasing -mms-bitf +ields -s -O2 -DVERSION=\"\" -DXS_VERSION=\"\" "-IC:\s +trawberry\perl\lib\CORE" -DWIN32 -DPERL_STATIC_SYMS ..\lib\gcstring. +c cd lib && gcc -c "-IC:\strawberry\perl\lib\CORE" "-IC:/strawberry/cpa +n/build/Unicode-LineBreak-2013.11-jDmghX/sombok\include" -s -O2 -DWI +N32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CO +NTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fno-strict-aliasing -mms-bitf +ields -s -O2 -DVERSION=\"\" -DXS_VERSION=\"\" "-IC:\s +trawberry\perl\lib\CORE" -DWIN32 -DPERL_STATIC_SYMS ..\lib\linebreak +.c cd lib && gcc -c "-IC:\strawberry\perl\lib\CORE" "-IC:/strawberry/cpa +n/build/Unicode-LineBreak-2013.11-jDmghX/sombok\include" -s -O2 -DWI +N32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CO +NTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fno-strict-aliasing -mms-bitf +ields -s -O2 -DVERSION=\"\" -DXS_VERSION=\"\" "-IC:\s +trawberry\perl\lib\CORE" -DWIN32 -DPERL_STATIC_SYMS ..\lib\southeast +asian.c cd lib && gcc -c "-IC:\strawberry\perl\lib\CORE" "-IC:/strawberry/cpa +n/build/Unicode-LineBreak-2013.11-jDmghX/sombok\include" -s -O2 -DWI +N32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CO +NTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fno-strict-aliasing -mms-bitf +ields -s -O2 -DVERSION=\"\" -DXS_VERSION=\"\" "-IC:\s +trawberry\perl\lib\CORE" -DWIN32 -DPERL_STATIC_SYMS ..\lib\utf8.c cd lib && gcc -c "-IC:\strawberry\perl\lib\CORE" "-IC:/strawberry/cpa +n/build/Unicode-LineBreak-2013.11-jDmghX/sombok\include" -s -O2 -DWI +N32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CO +NTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fno-strict-aliasing -mms-bitf +ields -s -O2 -DVERSION=\"\" -DXS_VERSION=\"\" "-IC:\s +trawberry\perl\lib\CORE" -DWIN32 -DPERL_STATIC_SYMS ..\lib\utils.c C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e rm_rf -- libsom +bok.a ar -ru libsombok.a lib/6.3.0.o lib/break.o lib/charprop.o lib/gc +string.o lib/linebreak.o lib/southeastasian.o lib/utf8.o + lib/utils.o C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 755 li +bsombok.a Running Mkbootstrap for Unicode::LineBreak () C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 Li +neBreak.bs C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp + -typemap C:\strawberry\perl\lib\ExtUtils\typemap -typemap typemap +LineBreak.xs > LineBreak.xsc && C:\strawberry\perl\bin\perl.exe -MExt +Utils::Command -e mv -- LineBreak.xsc LineBreak.c gcc -c -Isombok\include -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE +-DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS - +DUSE_PERLIO -fno-strict-aliasing -mms-bitfields -s -O2 -DVERS +ION=\"2013.11\" -DXS_VERSION=\"2013.11\" "-IC:\strawberry\pe +rl\lib\CORE" LineBreak.c LineBreak.xs: In function 'XS_Unicode__LineBreak_as_scalarref': LineBreak.xs:1061:4: warning: cast from pointer to integer of differen +t size [-Wpointer-to-int-cast] LineBreak.xs: In function 'XS_Unicode__LineBreak_as_string': LineBreak.xs:1074:4: warning: cast from pointer to integer of differen +t size [-Wpointer-to-int-cast] LineBreak.xs: In function 'XS_Unicode__GCString_as_scalarref': LineBreak.xs:1306:4: warning: cast from pointer to integer of differen +t size [-Wpointer-to-int-cast] C:\strawberry\perl\bin\perl.exe -MExtUtils::Mksymlists \ -e "Mksymlists('NAME'=>\"Unicode::LineBreak\", 'DLBASE' => 'LineB +reak', 'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_V +ARS' => []);" dlltool --def LineBreak.def --output-exp dll.exp g++ -o blib\arch\auto\Unicode\LineBreak\LineBreak.dll -Wl,--base-file +-Wl,dll.base -mdll -s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawberr +y\c\lib" LineBreak.o sombok\libsombok.a C:\strawberry\perl\lib\CORE\ +libperl518.a -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomd +lg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_ +32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 dll.exp c:/strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/4.7.3/../../../../x8 +6_64-w64-mingw32/bin/ld.exe:sombok\libsombok.a: file format not recog +nized; treating as linker script c:/strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/4.7.3/../../../../x8 +6_64-w64-mingw32/bin/ld.exe:sombok\libsombok.a:1: syntax error collect2.exe: error: ld returned 1 exit status dmake.exe: Error code 129, while making 'blib\arch\auto\Unicode\LineB +reak\LineBreak.dll' NEZUMI/Unicode-LineBreak-2013.11.tar.gz C:\strawberry\c\bin\dmake.exe -- NOT OK CPAN: YAML::XS loaded ok (v0.41) Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible Stopping: 'install' failed for 'Unicode::LineBreak'.

Any advice would be much appreciated,
Miller

Replies are listed 'Best First'.
Re: Installing Unicode::LineBreak on Strawberry Perl v 5.16.2
by syphilis (Archbishop) on Apr 02, 2014 at 02:18 UTC
    Any advice would be much appreciated

    I don't really have any advice but this module builds, tests and installs ok for me on 64-bit Strawberry-5.18.2 (portable).
    I'm even getting the same compiler warnings, and the same warnings regarding the absence of 'pkg-config'.

    However, I'm not getting the
    "Use of assignment to $[ is deprecated at C:/strawberry/perl/lib/getop +ts.pl line 19"
    warning that you're getting.
    I don't know what that's about, or if it might be relevant to the problem, but there's obviously something wrong with the ./sombok/libsombok.a that your build has created.

    Update: My full build log is below my sig.

    Cheers,
    Rob

      You inspired me to try upgraded my perl to v 5.18.2. I now get a slightly different error, but mostly of the same vain. Update included in my original post.

      Thanks for checking against your system though. Appreciate the second data point. I have to admit that I get self conscious with sharing problems with simple module installations, but it's worth a shot.

Re: Installing Unicode::LineBreak on Strawberry Perl v 5.16.2
by Anonymous Monk on Apr 02, 2014 at 07:24 UTC

    sombok\libsombok.a: file format not recognized; treating as linker script

    What does file ...libsombok.a return, and what does md5sum ...libsombok.a return?

    Which http://strawberryperl.com/releases.html did you get, 5.16.2.2 / 32bit ? 5.16.2.1 / 32bit?

      Perl version: 5.18.2.1 / 64bit

      >perl -MDigest::MD5::File=file_md5_hex -e "print file_md5_hex(q{libsom +bok.a})"; f7c2e96f8fe5d6ecfdd73adfaeedb1a4
        Yes, I get a different digest for sombok/libsombok.a - though we sort of already knew that:
        C:\sisyphusion\Unicode-LineBreak-2013.11>perl -MDigest::MD5::File=file +_md5_hex -e "print file_md5_hex(q{sombok/libsombok.a})"; cbe8b0ea8b125eb5ce42f36476d95ddb
        So let's do as AM suggests and compare our respective ar.exe files:
        C:\sisyphusion\Unicode-LineBreak-2013.11>pwhich ar.exe C:\_64\strawberry5.18.2\c\bin\ar.exe C:\sisyphusion\Unicode-LineBreak-2013.11>pwhich ar C:\_64\strawberry5.18.2\c\bin\ar.EXE C:\sisyphusion\Unicode-LineBreak-2013.11>perl -MDigest::MD5::File=file +_md5_hex -e "print file_md5_hex(q{C:/_64/strawberry5.18.2/c/bin/ar.ex +e})"; cc088517b6edf56b4e7b643dde58d6b7
        Cheers,
        Rob

        And the output of file is?

        where is libsombook.a, and is that the only one?

        which ar.exe is used (version and/or md5sum), is that the only one?

        And now for syphilis to post md5sums :)

Re: Installing Unicode::LineBreak on Strawberry Perl v 5.18.2
by wind (Priest) on Apr 11, 2014 at 05:15 UTC

    I gave up for a week, and when I come back to it, it suddenly works. :/

    C:\Users\Public\Desktop>cpan Unicode::LineBreak CPAN: CPAN::SQLite loaded ok (v0.203) CPAN: LWP::UserAgent loaded ok (v6.05) CPAN: Time::HiRes loaded ok (v1.9726) Fetching with LWP: http://cpan.strawberryperl.com/authors/01mailrc.txt.gz CPAN: YAML::XS loaded ok (v0.41) Fetching with LWP: http://cpan.strawberryperl.com/modules/02packages.details.txt.gz Fetching with LWP: http://cpan.strawberryperl.com/modules/03modlist.data.gz Database was generated on Thu, 10 Apr 2014 02:01:50 GMT Updating database file ... Done! Running install for module 'Unicode::LineBreak' Running make for N/NE/NEZUMI/Unicode-LineBreak-2013.11.tar.gz CPAN: Digest::SHA loaded ok (v5.85) CPAN: Compress::Zlib loaded ok (v2.063) Checksum for C:\strawberry\cpan\sources\authors\id\N\NE\NEZUMI\Unicode +-LineBreak-2013.11.tar.gz ok CPAN: Archive::Tar loaded ok (v1.96) CPAN: File::Temp loaded ok (v0.2304) CPAN: Parse::CPAN::Meta loaded ok (v1.4409) CPAN: CPAN::Meta loaded ok (v2.133380) CPAN: Module::CoreList loaded ok (v3.03) CPAN.pm: Building N/NE/NEZUMI/Unicode-LineBreak-2013.11.tar.gz 'pkg-config' is not recognized as an internal or external command, operable program or batch file. 'pkg-config' is not recognized as an internal or external command, operable program or batch file. Use bundled sombok 2.3.1 with Unicode 6.3.0 Checking if your kit is complete... Looks good Generating a dmake-style Makefile Writing Makefile for sombok Writing MYMETA.yml and MYMETA.json Generating a dmake-style Makefile Writing Makefile for Unicode::LineBreak Writing MYMETA.yml and MYMETA.json cp lib/Unicode/LineBreak/Constants.pm blib\lib\Unicode\LineBreak\Const +ants.pm cp lib/Unicode/GCString.pod blib\lib\Unicode\GCString.pod cp lib/POD2/JA/Text/LineFold.pod blib\lib\POD2\JA\Text\LineFold.pod cp lib/Unicode/LineBreak.pod blib\lib\Unicode\LineBreak.pod cp lib/Unicode/GCString.pm blib\lib\Unicode\GCString.pm cp lib/Text/LineFold.pm blib\lib\Text\LineFold.pm cp lib/Unicode/LineBreak/Defaults.pm.sample blib\lib\Unicode\LineBreak +\Defaults.pm.sample cp lib/POD2/JA/Unicode/GCString.pod blib\lib\POD2\JA\Unicode\GCString. +pod cp lib/POD2/JA/Unicode/LineBreak.pod blib\lib\POD2\JA\Unicode\LineBrea +k.pod cp lib/Unicode/LineBreak.pm blib\lib\Unicode\LineBreak.pm cd sombok && dmake all cd lib && gcc -c "-IC:\strawberry\perl\lib\CORE" "-IC:/strawberry/cpa +n/build/Unicode-LineBreak-2013.11-n_OykD/sombok\includ -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMP +LICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fno-st liasing -mms-bitfields -s -O2 -DVERSION=\"\" -DXS_VERSION=\ +"\" "-IC:\strawberry\perl\lib\CORE" -DWIN32 -DPERL_S SYMS ..\lib\6.3.0.c cd lib && gcc -c "-IC:\strawberry\perl\lib\CORE" "-IC:/strawberry/cpa +n/build/Unicode-LineBreak-2013.11-n_OykD/sombok\includ -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMP +LICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fno-st liasing -mms-bitfields -s -O2 -DVERSION=\"\" -DXS_VERSION=\ +"\" "-IC:\strawberry\perl\lib\CORE" -DWIN32 -DPERL_S SYMS ..\lib\break.c cd lib && gcc -c "-IC:\strawberry\perl\lib\CORE" "-IC:/strawberry/cpa +n/build/Unicode-LineBreak-2013.11-n_OykD/sombok\includ -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMP +LICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fno-st liasing -mms-bitfields -s -O2 -DVERSION=\"\" -DXS_VERSION=\ +"\" "-IC:\strawberry\perl\lib\CORE" -DWIN32 -DPERL_S SYMS ..\lib\charprop.c ..\lib\charprop.c: In function 'linebreak_charprop': ..\lib\charprop.c:156:10: warning: assignment discards 'const' qualifi +er from pointer target type [enabled by default] cd lib && gcc -c "-IC:\strawberry\perl\lib\CORE" "-IC:/strawberry/cpa +n/build/Unicode-LineBreak-2013.11-n_OykD/sombok\includ -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMP +LICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fno-st liasing -mms-bitfields -s -O2 -DVERSION=\"\" -DXS_VERSION=\ +"\" "-IC:\strawberry\perl\lib\CORE" -DWIN32 -DPERL_S SYMS ..\lib\gcstring.c cd lib && gcc -c "-IC:\strawberry\perl\lib\CORE" "-IC:/strawberry/cpa +n/build/Unicode-LineBreak-2013.11-n_OykD/sombok\includ -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMP +LICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fno-st liasing -mms-bitfields -s -O2 -DVERSION=\"\" -DXS_VERSION=\ +"\" "-IC:\strawberry\perl\lib\CORE" -DWIN32 -DPERL_S SYMS ..\lib\linebreak.c cd lib && gcc -c "-IC:\strawberry\perl\lib\CORE" "-IC:/strawberry/cpa +n/build/Unicode-LineBreak-2013.11-n_OykD/sombok\includ -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMP +LICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fno-st liasing -mms-bitfields -s -O2 -DVERSION=\"\" -DXS_VERSION=\ +"\" "-IC:\strawberry\perl\lib\CORE" -DWIN32 -DPERL_S SYMS ..\lib\southeastasian.c cd lib && gcc -c "-IC:\strawberry\perl\lib\CORE" "-IC:/strawberry/cpa +n/build/Unicode-LineBreak-2013.11-n_OykD/sombok\includ -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMP +LICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fno-st liasing -mms-bitfields -s -O2 -DVERSION=\"\" -DXS_VERSION=\ +"\" "-IC:\strawberry\perl\lib\CORE" -DWIN32 -DPERL_S SYMS ..\lib\utf8.c cd lib && gcc -c "-IC:\strawberry\perl\lib\CORE" "-IC:/strawberry/cpa +n/build/Unicode-LineBreak-2013.11-n_OykD/sombok\includ -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMP +LICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fno-st liasing -mms-bitfields -s -O2 -DVERSION=\"\" -DXS_VERSION=\ +"\" "-IC:\strawberry\perl\lib\CORE" -DWIN32 -DPERL_S SYMS ..\lib\utils.c C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e rm_rf -- libsom +bok.a ar -ru libsombok.a lib/6.3.0.o lib/break.o lib/charprop.o lib/gc +string.o lib/linebreak.o lib/southeastasian.o b/utf8.o lib/utils.o ar: creating libsombok.a C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 755 li +bsombok.a Running Mkbootstrap for Unicode::LineBreak () C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 Li +neBreak.bs C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp + -typemap C:\strawberry\perl\lib\ExtUtils\typemap -ty typemap LineBreak.xs > LineBreak.xsc && C:\strawberry\perl\bin\perl.e +xe -MExtUtils::Command -e mv -- LineBreak.xsc LineBrea gcc -c -Isombok\include -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE +-DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL CIT_SYS -DUSE_PERLIO -fno-strict-aliasing -mms-bitfields -s -O2 + -DVERSION=\"2013.11\" -DXS_VERSION=\"2013.11\" :\strawberry\perl\lib\CORE" LineBreak.c LineBreak.xs: In function 'XS_Unicode__LineBreak_as_scalarref': LineBreak.xs:1061:4: warning: cast from pointer to integer of differen +t size [-Wpointer-to-int-cast] LineBreak.xs: In function 'XS_Unicode__LineBreak_as_string': LineBreak.xs:1074:4: warning: cast from pointer to integer of differen +t size [-Wpointer-to-int-cast] LineBreak.xs: In function 'XS_Unicode__GCString_as_scalarref': LineBreak.xs:1306:4: warning: cast from pointer to integer of differen +t size [-Wpointer-to-int-cast] C:\strawberry\perl\bin\perl.exe -MExtUtils::Mksymlists \ -e "Mksymlists('NAME'=>\"Unicode::LineBreak\", 'DLBASE' => 'LineB +reak', 'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' }, 'DL_VARS' => []);" dlltool --def LineBreak.def --output-exp dll.exp g++ -o blib\arch\auto\Unicode\LineBreak\LineBreak.dll -Wl,--base-file +-Wl,dll.base -mdll -s -L"C:\strawberry\perl\lib\CORE" strawberry\c\lib" LineBreak.o sombok\libsombok.a C:\strawberry\perl\l +ib\CORE\libperl518.a -lmoldname -lkernel32 -luser32 -l -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi +32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -l 32 -lcomctl32 dll.exp dlltool --def LineBreak.def --base-file dll.base --output-exp dll.exp g++ -o blib\arch\auto\Unicode\LineBreak\LineBreak.dll -mdll -s -L"C:\s +trawberry\perl\lib\CORE" -L"C:\strawberry\c\lib" LineB sombok\libsombok.a C:\strawberry\perl\lib\CORE\libperl518.a -lmoldna +me -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 - i32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwi +nmm -lversion -lodbc32 -lodbccp32 -lcomctl32 dll.exp C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 755 bl +ib\arch\auto\Unicode\LineBreak\LineBreak.dll NEZUMI/Unicode-LineBreak-2013.11.tar.gz C:\strawberry\c\bin\dmake.exe -- OK Running make test C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-MTest::Har +ness" "-e" "undef *Test::Harness::Switches; test_harne 'blib\lib', 'blib\arch')" t/*.t t/000.t .................. # sombok 2.3.1 with Unicode 6.3.0 t/000.t .................. ok t/00GraphemeBreakTest.t .. # GraphemeBreakTest-6.3.0.txt Date: 2012-1 +2-20, 22:18:29 GMT [MD] t/00GraphemeBreakTest.t .. ok t/00LineBreakTest.t ...... # LineBreakTest-6.3.0.txt Date: 2012-12-20 +, 22:18:30 GMT [MD] t/00LineBreakTest.t ...... ok t/01break.t .............. ok t/02hangul.t ............. ok t/03ns.t ................. ok t/04fold.t ............... ok t/05urgent.t ............. ok t/06context.t ............ ok t/07sea.t ................ skipped: SA word segmentation not supported +. t/08partial.t ............ ok t/09uri.t ................ ok t/10gcstring.t ........... ok t/11format.t ............. ok t/12fold2.t .............. ok t/13flowedsp.t ........... ok t/14sea_al.t ............. ok t/15array.t .............. ok t/16regex.t .............. ok t/17prop.t ............... ok t/18currency.t ........... ok t/pod.t .................. skipped: Test::Pod 1.00 or later required f +or testing POD All tests successful. Files=22, Tests=6947, 6 wallclock secs ( 0.94 usr + 0.03 sys = 0.97 + CPU) Result: PASS 'No tests defined for sombok extension.' NEZUMI/Unicode-LineBreak-2013.11.tar.gz C:\strawberry\c\bin\dmake.exe test -- OK Running make install Files found in blib\arch: installing files in blib\lib into architectu +re dependent library tree Installing C:\strawberry\perl\site\lib\auto\sombok\extralibs.ld Installing C:\strawberry\perl\site\lib\auto\Unicode\LineBreak\LineBrea +k.dll Installing C:\strawberry\perl\site\lib\POD2\JA\Text\LineFold.pod Installing C:\strawberry\perl\site\lib\POD2\JA\Unicode\GCString.pod Installing C:\strawberry\perl\site\lib\POD2\JA\Unicode\LineBreak.pod Installing C:\strawberry\perl\site\lib\Text\LineFold.pm Installing C:\strawberry\perl\site\lib\Unicode\GCString.pm Installing C:\strawberry\perl\site\lib\Unicode\GCString.pod Installing C:\strawberry\perl\site\lib\Unicode\LineBreak.pm Installing C:\strawberry\perl\site\lib\Unicode\LineBreak.pod Installing C:\strawberry\perl\site\lib\Unicode\LineBreak\Constants.pm Installing C:\strawberry\perl\site\lib\Unicode\LineBreak\Defaults.pm.s +ample Appending installation info to C:\strawberry\perl\lib/perllocal.pod NEZUMI/Unicode-LineBreak-2013.11.tar.gz C:\strawberry\c\bin\dmake.exe install UNINST=1 -- OK
    Just going to take the good news and walk for now. Although wish I knew what in my system changed to suddenly fix things.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1080666]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2022-12-05 21:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?