2015-12-16

firefox 42

pkgsrcからwww/firefoxを入れます。非力なCPUで、メモリも少ないので、512M用意してあったスワップ領域がほぼ一杯になるほど使われており、コンパイル完了まで約24時間かかりました。

www/firefoxと依存関係にあるdevel/ssの作成中にエラーになりました。NetBSD/i386に入っているgccは4.5.3ですが、どうやらバージョンを上げればなんとかなりそうでした。pkgsrcからgcc48を入れているので、/etc/mk.confに「GCC_REQD=4.8」と指定すると、無事に作成できました。
gmake[2]: Entering directory '/usr/obj/devel/nss/work/nss-3.21/nss/lib/util'
gcc -o NetBSD7.99.21_OPT.OBJ/secoid.o -c -O -fPIC -DPIC -Di386 -ansi -Wall -Wno-switch -pipe -DNETBSD -Dunix -DHAVE_STRERROR -DHAVE_BSD_FLOCK -DXP_UNIX -UDEBUG -DNDEBUG -DUSE_UTIL_DIRECTLY -DNO_NSPR_10_SUPPORT -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES -I/usr/pkg/include/nspr -I/usr/X11R6/include -I./../dist/NetBSD7.99.21_OPT.OBJ/include -I./../dist/public/ -I./../dist/private/ -I/usr/X11R6/include -I../../dist/NetBSD7.99.21_OPT.OBJ/include -I../../dist/public/ -I../../dist/private/ -I/usr/X11R6/include -I../../../dist/NetBSD7.99.21_OPT.OBJ/include -I../../../dist/public/nss -I../../../dist/private/nss  secoid.c
In file included from secoid.c:1915:0:
verref.h: In function 'SECOID_Init':
verref.h:22:9: error: #pragma GCC diagnostic not allowed inside functions
verref.h:23:9: error: #pragma GCC diagnostic not allowed inside functions
verref.h:31:25: warning: unused variable '_nss_version_c'
verref.h:39:9: error: #pragma GCC diagnostic not allowed inside functions
../../coreconf/rules.mk:388: recipe for target 'NetBSD7.99.21_OPT.OBJ/secoid.o' failed
gmake[2]: *** [NetBSD7.99.21_OPT.OBJ/secoid.o] Error 1
gmake[2]: Leaving directory '/usr/obj/devel/nss/work/nss-3.21/nss/lib/util'
../coreconf/rules.mk:101: recipe for target 'libs' failed
gmake[1]: *** [libs] Error 2
gmake[1]: Leaving directory '/usr/obj/devel/nss/work/nss-3.21/nss/lib'
coreconf/rules.mk:101: recipe for target 'libs' failed
gmake: *** [libs] Error 2
*** Error code 2
www/firefox本体の作成中にもエラーになりました。この問題はpkgsrc-usersメーリングリストで2014年10月15日に「Re: pkg/49262: Firefox compile fails at AString.o」としてパッチが出ているので、/etc/mk.confに「LOCALPATCHES=/usr/local/pkgsrcpatches」と指定を加え、ローカルパッチを/usr/local/pkgsrcpatches/www/firefox/pkg-49262として置いておきました。これで無事に作成できました。
c++ -o Unified_cpp_media_libstagefright1.o -c -I../../dist/stl_wrappers -I../../dist/system_wrappers -include /usr/obj/www/firefox/work/firefox-42.0/config/gcc_hidden.h -DANDROID_SMP=0 -DLOG_NDEBUG=1 -D_GLIBCXX_OS_DEFINES -DHAVE_SYS_UIO_H -Doff64_t='off_t' -DFAKE_LOG_DEVICE -DSTATIC_EXPORTABLE_JS_API -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -DAB_CD=en-US -DNO_NSPR_10_SUPPORT -I/usr/obj/www/firefox/work/firefox-42.0/media/libstagefright -I. -I/usr/obj/www/firefox/work/firefox-42.0/media/libstagefright/ports/bsd/include -I/usr/obj/www/firefox/work/firefox-42.0/media/libstagefright/binding/include -I/usr/obj/www/firefox/work/firefox-42.0/media/libstagefright/frameworks/av/include -I/usr/obj/www/firefox/work/firefox-42.0/media/libstagefright/frameworks/av/include/media/stagefright/foundation -I/usr/obj/www/firefox/work/firefox-42.0/media/libstagefright/frameworks/av/media/libstagefright/ -I/usr/obj/www/firefox/work/firefox-42.0/media/libstagefright/stubs/empty -I/usr/obj/www/firefox/work/firefox-42.0/media/libstagefright/stubs/include -I/usr/obj/www/firefox/work/firefox-42.0/media/libstagefright/stubs/include/media/stagefright/foundation -I/usr/obj/www/firefox/work/firefox-42.0/media/libstagefright/system/core/include -I../../dist/include   -I/usr/pkg/include/nspr -I/usr/pkg/include/nss/nss -I/usr/pkg/include/nss -I/usr/pkg/include/nspr    -I/usr/pkg/include/pixman-1   -fPIC -DPIC  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/nspr -I/usr/pkg/include/nss/nss -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/X11R7/include/freetype2 -DMOZILLA_CLIENT -include ../../mozilla-config.h -MD -MP -MF .deps/Unified_cpp_media_libstagefright1.o.pp -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/nspr -I/usr/pkg/include/nss/nss -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/X11R7/include/freetype2 -Wall -Wempty-body -Woverloaded-virtual -Wsign-compare -Wwrite-strings -Wno-invalid-offsetof -Wcast-align -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/nspr -I/usr/pkg/include/nss/nss -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/X11R7/include/freetype2 -march=i586 -mstackrealign -fno-exceptions -fno-strict-aliasing -Dunix -fno-rtti -fno-exceptions -fno-math-errno -std=gnu++0x -pthread -pipe  -DNDEBUG -DTRIMMED -O2 -fomit-frame-pointer -Wno-format -Wno-multichar -Wno-sign-compare -Wno-unused   /usr/obj/www/firefox/work/build/media/libstagefright/Unified_cpp_media_libstagefright1.cpp
In file included from /usr/include/ctype.h:74:0,
                 from ../../dist/system_wrappers/ctype.h:3,
                 from ../../dist/include/nsCharTraits.h:10,
                 from ../../dist/include/nsAlgorithm.h:10,
                 from ../../dist/include/nsTArray.h:25,
                 from /usr/obj/www/firefox/work/firefox-42.0/media/libstagefright/frameworks/av/include/media/stagefright/MediaSource.h:26,
                 from /usr/obj/www/firefox/work/firefox-42.0/media/libstagefright/frameworks/av/media/libstagefright/MediaSource.cpp:17,
                 from /usr/obj/www/firefox/work/build/media/libstagefright/Unified_cpp_media_libstagefright1.cpp:2:
/usr/obj/www/firefox/work/firefox-42.0/media/libstagefright/frameworks/av/include/media/stagefright/foundation/AString.h:78:10: error: expected unqualified-id before 'int'
     void tolower();
          ^
/usr/obj/www/firefox/work/firefox-42.0/media/libstagefright/frameworks/av/include/media/stagefright/foundation/AString.h:78:10: error: expected ')' before 'int'
/usr/obj/www/firefox/work/firefox-42.0/media/libstagefright/frameworks/av/include/media/stagefright/foundation/AString.h:78:10: error: expected ')' before 'int'
In file included from /usr/obj/www/firefox/work/build/media/libstagefright/Unified_cpp_media_libstagefright1.cpp:65:0:
/usr/obj/www/firefox/work/firefox-42.0/media/libstagefright/frameworks/av/media/libstagefright/foundation/AString.cpp:312:23: error: no 'void stagefright::AString::tolower()' member function declared in class 'stagefright::AString'
 void AString::tolower() {
                       ^
/usr/obj/www/firefox/work/firefox-42.0/config/rules.mk:959: recipe for target 'Unified_cpp_media_libstagefright1.o' failed
gmake[3]: *** [Unified_cpp_media_libstagefright1.o] Error 1
gmake[3]: Leaving directory '/usr/obj/www/firefox/work/build/media/libstagefright'
 pkgsrcから入れたfirefoxはNightly版だったので多少驚きました。とりあえず立ち上げてみたところ、日本語は出ているようで、www/firefox-l10nは要らないのでしょうか。

0 件のコメント:

コメントを投稿