NetBSD Problem Report #45553

From kre@munnari.OZ.AU  Tue Nov  1 05:21:56 2011
Return-Path: <kre@munnari.OZ.AU>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 79F2263B9F9
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  1 Nov 2011 05:21:56 +0000 (UTC)
Message-Id: <201111010521.pA15LXNX008283@epsilon.noi.kre.to>
Date: Tue, 1 Nov 2011 12:21:33 +0700 (ICT)
From: kre@munnari.OZ.AU
To: gnats-bugs@gnats.NetBSD.org
Subject: mozilla packages on NetBSD 4.0 should not use --with-system-libevent
X-Send-Pr-Version: 3.95

>Number:         45553
>Category:       pkg
>Synopsis:       mozilla packages on NetBSD 4.0 should not use --with-system-libevent
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 01 05:25:00 +0000 2011
>Closed-Date:    Fri Feb 01 22:52:29 +0000 2013
>Last-Modified:  Fri Feb 01 22:52:29 +0000 2013
>Originator:     Robert Elz
>Release:        NetBSD 4.0 (pkgsrc current 2011-11-01)
>Organization:
	Prince of Songkla University
>Environment:
System: NetBSD epsilon.noi.kre.to 5.99.55 NetBSD 5.99.55 (EPSILON-1.2-20110825) #10: Fri Aug 26 00:02:21 ICT 2011 kre@jade.coe.psu.ac.th:/usr/obj/current/kernels/i386/EPSILONhdaudio i386
Architecture: i386
Machine: i386
>Description:
	The /usr/include/event.h that exists on NetBSD 4.0 is inadequate
	to build packages (mozilla packages anyway) --with-system-libevent

>How-To-Repeat:
	I use pkg_comp with NetBSD 4.0 release sets installed, and libkver
	to similate a fairly pure NetBSD 4.0 environment.  X11_TYPE=modular

	In that environment, attempting to build (for example) devel/xulrunner
	results in ...

checking for event.h... no
configure: error: --with-system-libevent requested but event.h not found
*** Error code 1

Stop.

	The same thing happens with www/seamonley, and most probably any other
	mozilla packages that exist (thunderbird?).

	Of course, event.h is found, it just doesn't work as expected, this
	is from the config.log for xulrunner:

configure:13720: checking for event.h
configure:13732: cc -c -I/usr/include -O2 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -fno-strict-aliasing -ffunction-sections -fdata-sections -Dunix -pthread -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 conftest.c 1>&5
In file included from configure:13726:
/usr/include/event.h:89: error: field 'ev_timeout' has incomplete type
/usr/include/event.h:189: error: expected specifier-qualifier-list before 'u_char'
/usr/include/event.h:212: error: expected specifier-qualifier-list before 'size_t'
/usr/include/event.h:241: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/event.h:243: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bufferevent_read'
/usr/include/event.h:256: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/event.h:257: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/event.h:258: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/event.h:261: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/event.h:264: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/include/event.h:265: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/event.h:265: error: expected declaration specifiers or '...' before 'size_t'
configure: failed program was:
#line 13725 "configure"
#include "confdefs.h"
#include <event.h>
int main() {

; return 0; }

>Fix:
	??   Somehow, I assume, --with-system-libevent needs to be
	disabled for NetBSD 4.0 (and probably all NetBSD 4*)

>Release-Note:

>Audit-Trail:
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/45553: mozilla packages on NetBSD 4.0 should not use
 --with-system-libevent
Date: Tue, 01 Nov 2011 16:23:06 +0900

 On Tue, 01 Nov 2011 14:25:00 +0900, <kre@munnari.oz.au> wrote:

 >> Fix:
 > 	??   Somehow, I assume, --with-system-libevent needs to be
 > 	disabled for NetBSD 4.0 (and probably all NetBSD 4*)

 BUILDLINK_API_DEPENDS.libevent+= libevent>=?.?

 I don't know mozilla packages require what version of libevent,
 but probably NetBSD-4 builtin version is too old for those packages.

 -- 
 OBATA Akio / obache@NetBSD.org

From: Robert Elz <kre@munnari.OZ.AU>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45553: mozilla packages on NetBSD 4.0 should not use --with-system-libevent
Date: Tue, 01 Nov 2011 15:26:58 +0700

     Date:        Tue,  1 Nov 2011 07:25:02 +0000 (UTC)
     From:        "OBATA Akio" <obache@NetBSD.org>
     Message-ID:  <20111101072502.B400A63BA70@www.NetBSD.org>

 Thanks...

   |  BUILDLINK_API_DEPENDS.libevent+= libevent>=?.?

 At least 1.1 I'm guessing.   I am testing it now.   I will append a
 patch to the PR if it works.

   |  I don't know mozilla packages require what version of libevent,
   |  but probably NetBSD-4 builtin version is too old for those packages.

 Yes, I just was not sure how to handle that properly.   I've added the
 BUILDLINK_API_DEPENDS.libevent+= line now, and am testing.   1.1 looks
 like it should split out NetBSD 4 from NetBSD 5 (NetBSD 4, according to
 the tests done in libevent/builtin.mk seems to be 1.0c or something like
 that).

 Incidentally, I see what appears to be a cu&pasto in devel/libevent/builtin.mk
 that someone can probably fix very easily ...

 # libevent>=1.0d: evbuffer_readline added
 _BLTN_EVENT_10d!=       \ 
         ${GREP} -c event_base_loopexit ${H_LIBEVENT} || ${TRUE}
 # libevent>=1.0c: event_set_log_callback, event_base_loopexit and
 #                 event_get_{version,method} added
 _BLTN_EVENT_10c!=       \
         ${GREP} -c event_base_loopexit ${H_LIBEVENT} || ${TRUE}


 As it exists now, _BLTN_EVENT_10d and _BLTN_EVENT_10c are set identically,
 which makes no sense, clearly the grep for _BLTN_EVENT_10d was supposed
 to be looking for evbuffer_readline rather than event_base_loopexit

 (and it is from this that I conclude that NetBSD 4.0 is 1.0c, as it has
 event_base_loopexit but does not have evbuffer_readline).

 kre

Responsible-Changed-From-To: pkg-manager->tnn
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Tue, 01 Nov 2011 09:20:18 +0000
Responsible-Changed-Why:
Over to mozilla maintainer.


From: Robert Elz <kre@munnari.OZ.AU>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45553: mozilla packages on NetBSD 4.0 should not use --with-system-libevent
Date: Tue, 01 Nov 2011 20:20:28 +0700

 I added the patch below, that's enough to allow both xulrunner and seamonkey to
 configure, but neither builds - they fail the same way, in what (given
 that they build on NetBSD 5) suggests to me that perhaps we also need to
 use a newer gcc than the standard one on NetBSD 4.   I'll try that later.

 kre

 Index: mozilla-common.mk
 ===================================================================
 RCS file: /cvsroot/NetBSD/pkgsrc/devel/xulrunner/mozilla-common.mk,v
 retrieving revision 1.26
 diff -u -r1.26 mozilla-common.mk
 --- mozilla-common.mk	19 Aug 2011 14:31:10 -0000	1.26
 +++ mozilla-common.mk	1 Nov 2011 13:17:39 -0000
 @@ -86,6 +86,8 @@
  BUILDLINK_API_DEPENDS.sqlite3+=	sqlite3>=3.7.5
  CONFIGURE_ENV+=	ac_cv_sqlite_secure_delete=yes	# c.f. patches/patch-al
  .include "../../databases/sqlite3/buildlink3.mk"
 +# not sure if 1.1 is sufficient, but earlier (like in NetBSD 4) is not.
 +BUILDLINK_API_DEPENDS.libevent+=	libevent>=1.1
  .include "../../devel/libevent/buildlink3.mk"
  .include "../../devel/zlib/buildlink3.mk"
  .include "../../mk/jpeg.buildlink3.mk"


From: Robert Elz <kre@munnari.OZ.AU>
To: gnats-bugs@NetBSD.org
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...)

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45553: mozilla packages on NetBSD 4.0 should not use
 --with-system-libevent
Date: Sat, 5 Nov 2011 15:40:27 +0000

 On Thu, Nov 03, 2011 at 07:10:05AM +0000, Robert Elz wrote:
  >  /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

 #ifdef _SC_NPROCESSORS_ONLN
    ...
 #else
    return 1;
 #endif

 is probably good enough for that, at least given how well netbsd-4's
 threads work. :-/

  >  /pkg_comp/obj/pkgsrc/www/seamonkey/4x/comm-release/mozilla/js/src/jsstr.cpp:3301: error: invalid use of non-lvalue array

 that's odd... the gcc in -4 and -5 isn't that different.

 -- 
 David A. Holland
 dholland@netbsd.org

From: "Tobias Nygren" <tnn@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45553 CVS commit: pkgsrc/devel/xulrunner
Date: Sun, 27 Nov 2011 10:01:05 +0000

 Module Name:	pkgsrc
 Committed By:	tnn
 Date:		Sun Nov 27 10:01:05 UTC 2011

 Modified Files:
 	pkgsrc/devel/xulrunner: mozilla-common.mk

 Log Message:
 need libevent>=1.1. Part of PR pkg/45553


 To generate a diff of this commit:
 cvs rdiff -u -r1.27 -r1.28 pkgsrc/devel/xulrunner/mozilla-common.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Tobias Nygren" <tnn@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45553 CVS commit: pkgsrc
Date: Sun, 27 Nov 2011 13:09:01 +0000

 Module Name:	pkgsrc
 Committed By:	tnn
 Date:		Sun Nov 27 13:09:01 UTC 2011

 Modified Files:
 	pkgsrc/devel/xulrunner: distinfo
 	pkgsrc/devel/xulrunner/patches:
 	    patch-ipc_chromium_src_base_sys__info__posix.cc
 	pkgsrc/mail/thunderbird: distinfo
 	pkgsrc/mail/thunderbird/patches:
 	    patch-ipc_chromium_src_base_sys__info__posix.cc
 	pkgsrc/www/seamonkey: distinfo
 	pkgsrc/www/seamonkey/patches:
 	    patch-ipc_chromium_src_base_sys__info__posix.cc

 Log Message:
 Work around lack of _SC_NPROCESSORS_ONLN on some platforms (like netbsd4).
 Observed in PR pkg/45553.


 To generate a diff of this commit:
 cvs rdiff -u -r1.54 -r1.55 pkgsrc/devel/xulrunner/distinfo
 cvs rdiff -u -r1.1 -r1.2 \
     pkgsrc/devel/xulrunner/patches/patch-ipc_chromium_src_base_sys__info__posix.cc
 cvs rdiff -u -r1.85 -r1.86 pkgsrc/mail/thunderbird/distinfo
 cvs rdiff -u -r1.1 -r1.2 \
     pkgsrc/mail/thunderbird/patches/patch-ipc_chromium_src_base_sys__info__posix.cc
 cvs rdiff -u -r1.69 -r1.70 pkgsrc/www/seamonkey/distinfo
 cvs rdiff -u -r1.1 -r1.2 \
     pkgsrc/www/seamonkey/patches/patch-ipc_chromium_src_base_sys__info__posix.cc

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Tobias Nygren <tnn@NetBSD.org>
To: kre@munnari.OZ.AU
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/45553: mozilla packages on NetBSD 4.0 should not use
 --with-system-libevent
Date: Sun, 27 Nov 2011 13:15:41 +0100

 >   >  /pkg_comp/obj/pkgsrc/www/seamonkey/4x/comm-release/mozilla/js/src/jsstr.cpp:3301: error: invalid use of non-lvalue array
 >  
 >  that's odd... the gcc in -4 and -5 isn't that different.

 Hi,

 Please try this patch for the non-lvalue GCC bug:

 http://www.netbsd.org/~tnn/pr45553.diff

 I just committed fixes for the other NetBSD 4.x issues.

 Best,
 -Tobias

From: Robert Elz <kre@munnari.OZ.AU>
To: Tobias Nygren <tnn@NetBSD.org>
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/45553: mozilla packages on NetBSD 4.0 should not use --with-system-libevent
Date: Tue, 29 Nov 2011 00:23:12 +0700

     Date:        Sun, 27 Nov 2011 13:15:41 +0100
     From:        Tobias Nygren <tnn@NetBSD.org>
     Message-ID:  <20111127131541.94137818.tnn@NetBSD.org>

   | Please try this patch for the non-lvalue GCC bug:

 I'll try that in a few minutes, I wanted to first test the updated package
 using a newer compiler to see if it would then build successfully.  It
 still doesn't, but ...

   | I just committed fixes for the other NetBSD 4.x issues.

 It looks as if all the previously detected problems (the gcc issue left
 aside for now) are fixed, but that just revealed a new one.

 Here's the end of the build log using GCC_REQD=4.4 to get a compiler that
 gets past the problem.   When I apply your gcc patch (and remove the
 GCC_REQD) I'll let you know if it gets this far (in which case you'll
 need to wait a while, the compile isn't that fast (for me)) or if it
 still aborts earlier.

 Aside from the "official branding" option (which probably doesn't affect
 xulrunner) there are no options set that should have any impact (inet6
 is turned on of course.)   X11_TYPE=modular, USE_DESTDIR=no.

 kre

 rm -f libxul.so
 /usr/pkg/bin/python2.6 ../../config/pythonpath.py -I../../config ../../config/expandlibs_exec.py --uselist --  c++ -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-virtual-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 -fno-strict-aliasing -Dunix -fshort-wchar -pthread -ffunction-sections -fdata-sections -pipe  -DNDEBUG -DTRIMMED -O2 -fPIC -DPIC -shared -Wl,--gc-sections -Wl,-soname,libxul.so -o libxul.so  nsStaticXULComponents.o nsUnicharUtils.o nsBidiUtils.o nsRDFResource.o    -lpthread -L/usr/pkg/gcc44/lib/gcc/i386-unknown-netbsdelf4.0/4.4.6 -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-!
  unknown-netbsdelf4.0/4.4.6 -L/usr/pkg/gcc44/lib -Wl,-R/usr/pkg/gcc44/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -L/usr/pkg/gcc44/lib/gcc/i386-unknown-netbsdelf4.0/4.4.6/ -Wl,-R/usr/pkg/gcc44/lib/gcc/i386-unknown-netbsdelf4.0/4.4.6/ -Wl,-R/usr/pkg/lib  -Wl,-rpath-link,/pkg_comp/obj/pkgsrc/devel/xulrunner/4x/mozilla-release/dist/bin -Wl,-rpath-link,/usr/pkg/lib  ../../toolkit/xre/libxulapp_s.a  ../../staticlib/components/libnecko.a ../../staticlib/components/libuconv.a ../../staticlib/components/libi18n.a ../../staticlib/components/libchardet.a ../../staticlib/components/libjar50.a ../../staticlib/components/libstartupcache.a ../../staticlib/components/libpref.a ../../staticlib/components/libhtmlpars.a ../../staticlib/components/libimglib2.a ../../staticlib/components/libgkgfx.a ../../staticlib/components/libgklayout.a ../../staticlib/components/libdocshell.a ../../staticlib/components/libembedcomponents.a ../../staticlib/components/libwebbrwsr.a ../../staticlib/components/!
  libnsappshell.a ../../staticlib/components/libtxmgr.a ../../st!
  aticlib/components/libcommandlines.a ../../staticlib/components/libtoolkitcomps.a ../../staticlib/components/libpipboot.a ../../staticlib/components/libpipnss.a ../../staticlib/components/libappcomps.a ../../staticlib/components/libjsreflect.a ../../staticlib/components/libcomposer.a ../../staticlib/components/libjetpack_s.a ../../staticlib/components/libtelemetry.a ../../staticlib/components/libstoragecomps.a ../../staticlib/components/libjsctypes.a ../../staticlib/components/libjsperf.a ../../staticlib/components/libgkplugin.a ../../staticlib/components/libunixproxy.a ../../staticlib/components/libjsd.a ../../staticlib/components/libautoconfig.a ../../staticlib/components/libauth.a ../../staticlib/components/libcookie.a ../../staticlib/components/libpermissions.a ../../staticlib/components/libuniversalchardet.a ../../staticlib/components/librdf.a ../../staticlib/components/libwindowds.a ../../staticlib/components/libfileview.a ../../staticlib/components/libplaces.a ../../!
  staticlib/components/libtkautocomplete.a ../../staticlib/components/libsatchel.a ../../staticlib/components/libpippki.a ../../staticlib/components/libwidget_gtk2.a ../../staticlib/components/libsystem-pref.a ../../staticlib/components/libimgicon.a ../../staticlib/components/libaccessibility.a ../../staticlib/components/libremoteservice.a ../../staticlib/components/libspellchecker.a ../../staticlib/components/libzipwriter.a ../../staticlib/components/libservices-crypto.a ../../staticlib/libjsipc_s.a ../../staticlib/libdomipc_s.a ../../staticlib/libdomplugins_s.a ../../staticlib/libmozipc_s.a ../../staticlib/libmozipdlgen_s.a ../../staticlib/libipcshell_s.a ../../staticlib/libgfx2d.a ../../staticlib/libgfxipc_s.a ../../staticlib/libxpcom_core.a ../../staticlib/libucvutil_s.a ../../staticlib/libchromium_s.a ../../staticlib/libmozreg_s.a ../../staticlib/libgtkxtbin.a ../../staticlib/libthebes.a ../../staticlib/libycbcr.a ../../staticlib/libangle.a  -L../../dist/bin -L../../dist!
  /lib -ljpeg  ../../modules/libimg/png/libmozpng.a ../../gfx/qcms/libmoz!
  qcms.a /pkg_comp/obj/pkgsrc/devel/xulrunner/4x/mozilla-release/dist/lib/libjs_static.a -L../../dist/bin -L../../dist/lib -lcrmf -lsmime3 -lssl3 -lnss3 -lnssutil3 ../../gfx/cairo/cairo/src/libmozcairo.a  ../../gfx/cairo/libpixman/src/libmozlibpixman.a  -lXrender -lfreetype -lfontconfig ../../gfx/harfbuzz/src/libmozharfbuzz.a ../../gfx/ots/src/libmozots.a  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lsqlite3    -lz  -L/usr/pkg/lib -levent -lrt -L../../dist/bin -L../../dist/lib  -Wl,-R/usr/pkg/lib/xulrunner -L/pkg_comp/obj/pkgsrc/devel/xulrunner/4x/mozilla-release/dist/lib -lplds4 -lplc4 -lnspr4 -L/usr/pkg/gcc44/lib/gcc/i386-unknown-netbsdelf4.0/4.4.6 -L/usr/pkg/gcc44/lib -L/usr/lib -L/usr/pkg/lib -L/usr/pkg/gcc44/lib/gcc/i386-unknown-netbsdelf4.0/4.4.6/ -pthread ../../dist/lib/libmozalloc.a -lossaudio  -lX11  -lXext  -Wl,-R/usr/pkg/lib -pthread -L/usr/pkg/lib -lpangocairo-1.0 -lcairo -lpangoft2-1.0 -lpango-1.0 -lm -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lgli!
  b-2.0 -lintl   -Wl,-R/usr/pkg/lib -pthread -L/usr/pkg/lib -lgtk-x11-2.0 -latk-1.0 -lgdk-x11-2.0 -lpangocairo-1.0 -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lgdk_pixbuf-2.0 -lpangoft2-1.0 -lpango-1.0 -lm -lfreetype -lfontconfig -lgio-2.0 -lgmodule-2.0 -lXfixes -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lintl -lcairo -lX11   -lXt -lgthread-2.0 -L/usr/pkg/lib -lfreetype -lz -lbz2 -lossaudio     
 /usr/bin/ld: Warning: gc-sections option ignored
 ../../media/libsydneyaudio/src/sydney_audio_oss.o: In function `sa_stream_get_position':
 sydney_audio_oss.c:(.text.sa_stream_get_position+0x49): undefined reference to `_oss_ioctl'
 ../../media/libsydneyaudio/src/sydney_audio_oss.o: In function `audio_callback':
 sydney_audio_oss.c:(.text.audio_callback+0x28): undefined reference to `_oss_ioctl'
 ../../media/libsydneyaudio/src/sydney_audio_oss.o: In function `sa_stream_open':
 sydney_audio_oss.c:(.text.sa_stream_open+0x67): undefined reference to `_oss_ioctl'
 sydney_audio_oss.c:(.text.sa_stream_open+0x80): undefined reference to `_oss_ioctl'
 sydney_audio_oss.c:(.text.sa_stream_open+0x99): undefined reference to `_oss_ioctl'
 ../../ipc/chromium/platform_thread_posix.o: In function `PlatformThread::CurrentId()':
 platform_thread_posix.cc:(.text._ZN14PlatformThread9CurrentIdEv+0x8): undefined reference to `_lwp_self'
 /usr/bin/ld: libxul.so: hidden symbol `_oss_ioctl' isn't defined
 /usr/bin/ld: final link failed: Nonrepresentable section on output
 collect2: ld returned 1 exit status
 gmake[3]: *** [libxul.so] Error 1
 gmake[3]: Leaving directory `/pkg_comp/obj/pkgsrc/devel/xulrunner/4x/mozilla-release/toolkit/library'
 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.


From: Robert Elz <kre@munnari.OZ.AU>
To: Tobias Nygren <tnn@NetBSD.org>
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/45553: mozilla packages on NetBSD 4.0 should not use --with-system-libevent
Date: Tue, 29 Nov 2011 04:00:04 +0700

     Date:        Sun, 27 Nov 2011 13:15:41 +0100
     From:        Tobias Nygren <tnn@NetBSD.org>
     Message-ID:  <20111127131541.94137818.tnn@NetBSD.org>

   | Please try this patch for the non-lvalue GCC bug:
   | http://www.netbsd.org/~tnn/pr45553.diff

 That appears to work just fine.

   | I just committed fixes for the other NetBSD 4.x issues.

 And with that patch, and without the GCC_REQD+=4.4 that I had as the
 alternative method of avoiding the gcc bug, the whole package builds,
 so the oss_ioctl undefined reference that I reported earlier was
 either caused by using the different compiler (huh?) or just vanished
 by itself (or almost by itself, there is a small possibility that
 a cvs update caused some other bl3 file to have altered between the two
 builds).

 I also did this build in a slightly unusual (for me) way, in order to
 apply the patch without actually installing it in the xulrunner/patches
 directory, but I can't see any reason that would have changed anything
 (the actual difference would mostly have been that this build would have
 had a controlling terminal that worked all the way, whereas I more normally
 do builds in background processes with the output directed to a file rather
 that a tty (pseudo-tty) and stdin from /dev/null).

 I am currently testing www/firefox (that I expect to work) and www/seamonkey
 (that I expect to run into the gcc bug, as the patch is not actually
 installed anywhere, and won't get used for that build).

 Thanks for the help.

 kre

Responsible-Changed-From-To: tnn->pkg-manager
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Fri, 01 Feb 2013 22:52:29 +0000
Responsible-Changed-Why:
Back to role account.


State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Fri, 01 Feb 2013 22:52:29 +0000
State-Changed-Why:
NetBSD-4 isn't supported any longer, sorry.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.