Subject: Re: HEADS UP: merging the newlock2 branch
To: Andrew Doran <ad@NetBSD.org>
From: Kouichirou Hiratsuka <hira@po6.nsk.ne.jp>
List: current-users
Date: 02/11/2007 01:14:04
Hello,

At Sat, 10 Feb 2007 00:44:03 +0000,
Andrew Doran wrote:
> If you run into any problems, please do log them via send-pr.

www/firefox2 fails to build.

cc -o prsystem.o -c    -DSQLITE_THREAD_OVERRIDE_LOCK=0 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/X11R6/include -O2 -pipe -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/X11R6/include -pipe -ansi -Wall -pthread -O2 -fPIC -DPIC  -UDEBUG  -DMOZILLA_CLIENT=1 -DNDEBUG=1 -DXP_UNIX=1 -DNETBSD=1 -DHAVE_BSD_FLOCK=1 -DHAVE_SOCKLEN_T=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1  -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_ -I/obj/pkgsrc/www/firefox2/work/mozilla/dist/include/nspr -I../../../pr/include -I../../../pr/include/private  prsystem.c
In file included from /usr/include/machine/lock.h:3,
                 from /usr/include/sys/lock.h:87,
                 from /usr/include/sys/proc.h:85,
                 from /usr/include/sys/sysctl.h:46,
                 from prsystem.c:62:
/usr/include/x86/lock.h:174: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/x86/lock.h:180: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/x86/lock.h:186: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'

[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/obj/pkgsrc/www/firefox2/work/.gcc/bin/gcc -o prsystem.o -c -DSQLITE_THREAD_OVERRIDE_LOCK=0 -I/obj/pkgsrc/www/firefox2/work/.buildlink/include -I/obj/pkgsrc/www/firefox2/work/.buildlink/include/freetype2 -I/obj/pkgsrc/www/firefox2/work/.x11-buildlink/include -O2 -pipe -pipe -ansi -Wall -pthread -O2 -fPIC -DPIC -UDEBUG -DMOZILLA_CLIENT=1 -DNDEBUG=1 -DXP_UNIX=1 -DNETBSD=1 -DHAVE_BSD_FLOCK=1 -DHAVE_SOCKLEN_T=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_ -I/obj/pkgsrc/www/firefox2/work/mozilla/dist/include/nspr -I../../../pr/include -I../../../pr/include/private prsystem.c -L/obj/pkgsrc/www/firefox2/work/.buildlink/lib
make[5]: *** [prsystem.o] Error 1
make[5]: Leaving directory `/obj/pkgsrc/www/firefox2/work/mozilla/nsprpub/pr/src/misc'
make[4]: *** [export] Error 2
make[4]: Leaving directory `/obj/pkgsrc/www/firefox2/work/mozilla/nsprpub/pr/src'
make[3]: *** [export] Error 2
make[3]: Leaving directory `/obj/pkgsrc/www/firefox2/work/mozilla/nsprpub/pr'
make[2]: *** [export] Error 2
make[2]: Leaving directory `/obj/pkgsrc/www/firefox2/work/mozilla/nsprpub'
make[1]: *** [nspr] Error 2
make[1]: Leaving directory `/obj/pkgsrc/www/firefox2/work/mozilla'
gmake: *** [default] Error 2
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/www/firefox2
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/www/firefox2
firefly#

best regards.
-- 
 Kouichirou Hiratsuka
   hira@po6.nsk.ne.jp