pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/45553: mozilla packages on NetBSD 4.0 should not use --with-system-libevent



The following reply was made to PR pkg/45553; it has been noted by GNATS.

From: Robert Elz <kre%munnari.OZ.AU@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/45553: mozilla packages on NetBSD 4.0 should not use 
--with-system-libevent
Date: Thu, 03 Nov 2011 14:08:59 +0700

 I added
        GCC_REQD+=              4.4
 to devel/xulrunner/mozilla-common.mk which allowed the compile of
 xulrunner on NetBSD 4.0 to proceed a lot further - I'm reasonably
 sure that gcc 4.4 is beyond what is needed, given that NetBSD 5.0 has
 4.1.3 installed, and that seems to be OK (whereas the 4.1.2 from about
 2 years earlier, that's on NetBSD 4 is not - actual errors from it below)
 but pkgsrc seems to have nothing earlier than that 4.4 version to
 select, so that's what I asked for.
 
 Unfortunately, that's not enough, but now rather than a compiler issue,
 we're back to OS support issues, and I'm not sure what should be done
 to handle this one ...
 
 sys_info_posix.cc
 c++ -o sys_info_posix.o -c -I../../dist/stl_wrappers 
-I../../dist/system_wrappers -include ../../config/gcc_hidden.h 
-DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API 
-D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  
-DSTATIC_EXPORTABLE_JS_API -DOSTYPE=\"NetBSD4\" -DOSARCH=NetBSD 
-DEXCLUDE_SKIA_DEPENDENCIES -DCHROMIUM_MOZILLA_BUILD  -DOS_LINUX=1 -DOS_POSIX=1 
 -I../../dist -I../../ipc/chromium/src -I../../ipc/glue 
-I../../ipc/ipdl/_ipdlheaders  -I. -I. -I../../dist/include 
-I../../dist/include/nsprpub  
-I/pkg_comp/obj/pkgsrc/devel/xulrunner/4x/mozilla-release/dist/include/nspr 
-I/pkg_comp/obj/pkgsrc/devel/xulrunner/4x/mozilla-release/dist/include/nss      
 -fPIC -DPIC -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 
-I/usr/pkg/gcc44/include 
-I/usr/pkg/gcc44/lib/gcc/i386-unknown-netbsdelf4.0/4.4.6/include -fno-rtti 
-fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth 
-Wno-ctor-dtor-privacy -Wno-non-vi
 !
  rtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros 
-Werror=return-type -O2 -I/usr/include -I/usr/pkg/include 
-I/usr/pkg/include/freetype2 -I/usr/pkg/gcc44/include 
-I/usr/pkg/gcc44/lib/gcc/i386-unknown-netbsdelf4.0/4.4.6/include 
-ffunction-sections -fdata-sections -fno-strict-aliasing -Dunix -pthread -pipe 
-DNDEBUG -DTRIMMED -D_REENTRANT -pthread -I/usr/pkg/include/gtk-2.0 
-I/usr/pkg/lib/gtk-2.0/include -I/usr/pkg/include/atk-1.0 
-I/usr/pkg/include/cairo -I/usr/pkg/include/gdk-pixbuf-2.0 
-I/usr/pkg/include/pango-1.0 -I/usr/pkg/include/glib/gio-unix-2.0/ 
-I/usr/pkg/include -I/usr/pkg/include/glib/glib-2.0 
-I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/pixman-1 
-I/usr/pkg/include/freetype2 -I/usr/pkg/include/libpng15 
-I/usr/pkg/include/gtk-unix-print-2.0   -O2  -I/usr/include -I/usr/pkg/include 
-I/usr/pkg/include/freetype2 -I/usr/pkg/gcc44/include 
-I/usr/pkg/gcc44/lib/gcc/i386-unknown-netbsdelf4.0/4.4.6/include 
-DMOZILLA_CLIENT -include ../../mozilla-config
 !
  .h -MD -MF .deps/sys_info_posix.pp /pkg_comp/obj/pkgsrc/devel/!
  xulrunner/4x/mozilla-release/ipc/chromium/src/base/sys_info_posix.cc
 
/pkg_comp/obj/pkgsrc/devel/xulrunner/4x/mozilla-release/ipc/chromium/src/base/sys_info_posix.cc:
 In static member function 'static int base::SysInfo::NumberOfProcessors()':
 
/pkg_comp/obj/pkgsrc/devel/xulrunner/4x/mozilla-release/ipc/chromium/src/base/sys_info_posix.cc:34:
 error: '_SC_NPROCESSORS_ONLN' was not declared in this scope
 gmake[4]: *** [sys_info_posix.o] Error 1
 gmake[4]: Leaving directory 
`/pkg_comp/obj/pkgsrc/devel/xulrunner/4x/mozilla-release/ipc/chromium'
 gmake[3]: *** [libs] Error 2
 gmake[3]: Leaving directory 
`/pkg_comp/obj/pkgsrc/devel/xulrunner/4x/mozilla-release/ipc'
 gmake[2]: *** [libs_tier_platform] Error 2
 gmake[2]: Leaving directory 
`/pkg_comp/obj/pkgsrc/devel/xulrunner/4x/mozilla-release'
 gmake[1]: *** [tier_platform] Error 2
 gmake[1]: Leaving directory 
`/pkg_comp/obj/pkgsrc/devel/xulrunner/4x/mozilla-release'
 gmake: *** [all] Error 2
 *** Error code 2
 
 Stop.
 make: stopped in /usr/pkgsrc/devel/xulrunner
 *** Error code 1
 
 Stop.
 
 Perhaps this is going to mean that these packages will turn into
 NOT_FOR_PLATFORM for NetBSD 4.0 (which is a pity, as even though the
 old xulrunner still builds, and so the old firefox that uses it, there's
 no old version of seamonkey, which is the browser with the best UI of
 all of this set.)
 
 kre
 
 ps: for reference, when compiling with the standard 4.0 compiler, things
 abort much earlier in the build with errors like these (from a build of
 seamonkey, rather than xulrunner, but the error type is identical, from
 the same apparent file...)
 
 jsstr.cpp
 c++ -o jsstr.o -c  -fvisibility=hidden -DOSTYPE=\"NetBSD4\" -DOSARCH=NetBSD 
-DEXPORT_JS_API -DIMPL_MFBT -D__STDC_LIMIT_MACROS -DJS_HAS_CTYPES 
-DDLL_PREFIX=\"lib\" -DDLL_SUFFIX=\".so\" -Ictypes/libffi/include -I.  -I. -I. 
-I./../../dist/include -I./../../dist/include/nsprpub  
-I/pkg_comp/obj/pkgsrc/www/seamonkey/4x/comm-release/mozilla/dist/include/nspr  
 -I. -I./assembler -I./yarr  -fPIC -DPIC -I/usr/include -I/usr/pkg/include 
-I/usr/pkg/include/freetype2 -fno-rtti -fno-exceptions -Wall -Wpointer-arith 
-Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor 
-Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -O2 -I/usr/include 
-I/usr/pkg/include -I/usr/pkg/include/freetype2 -fno-strict-aliasing -Dunix 
-pthread -pipe  -DNDEBUG -DTRIMMED -O2 -DUSE_SYSTEM_MALLOC=1 
-DENABLE_ASSEMBLER=1 -DENABLE_JIT=1  -I/usr/include -I/usr/pkg/include 
-I/usr/pkg/include/freetype2 -DMOZILLA_CLIENT -include ./js-confdefs.h -MD -MF 
.deps/jsstr.pp /pkg_comp/obj/pkgsrc/www/seamo
 !
  nkey/4x/comm-release/mozilla/js/src/jsstr.cpp
 
/pkg_comp/obj/pkgsrc/www/seamonkey/4x/comm-release/mozilla/js/src/jsstrinlines.h:
 In function 'bool js::CheckStringLength(JSContext*, size_t)':
 
/pkg_comp/obj/pkgsrc/www/seamonkey/4x/comm-release/mozilla/js/src/jsstrinlines.h:61:
 warning: converting to non-pointer type 'bool' from NULL
 /pkg_comp/obj/pkgsrc/www/seamonkey/4x/comm-release/mozilla/js/src/jsstr.cpp: 
In function 'bool BuildDollarReplacement(JSContext*, JSString*, 
JSLinearString*, const jschar*, const FlatMatch&, js::Value*)':
 
/pkg_comp/obj/pkgsrc/www/seamonkey/4x/comm-release/mozilla/js/src/jsstr.cpp:2321:
 warning: converting to non-pointer type 'bool' from NULL
 /pkg_comp/obj/pkgsrc/www/seamonkey/4x/comm-release/mozilla/js/src/jsstr.cpp: 
At global scope:
 
/pkg_comp/obj/pkgsrc/www/seamonkey/4x/comm-release/mozilla/js/src/jsstr.cpp:3245:
 warning: #pragma pack(push[, id], <n>) is not supported on this target
 
/pkg_comp/obj/pkgsrc/www/seamonkey/4x/comm-release/mozilla/js/src/jsstr.cpp:3301:
 error: invalid use of non-lvalue array
 
/pkg_comp/obj/pkgsrc/www/seamonkey/4x/comm-release/mozilla/js/src/jsstr.cpp:3301:
 error: invalid use of non-lvalue array
 
/pkg_comp/obj/pkgsrc/www/seamonkey/4x/comm-release/mozilla/js/src/jsstr.cpp:3301:
 error: invalid use of non-lvalue array
 
/pkg_comp/obj/pkgsrc/www/seamonkey/4x/comm-release/mozilla/js/src/jsstr.cpp:3301:
 error: invalid use of non-lvalue array
 
/pkg_comp/obj/pkgsrc/www/seamonkey/4x/comm-release/mozilla/js/src/jsstr.cpp:3301:
 error: invalid use of non-lvalue array
 
 
 Those later errors continue thousands of times (literally - the lines extracted
 above are around 3150 lines into a build log file that is 8500+ lines long,
 and aside from the cleanup stuff at end, all of the rest of it looks just
 like those last few...)
 


Home | Main Index | Thread Index | Old Index