From owner-freebsd-gecko@FreeBSD.ORG Fri Apr 19 18:50:01 2013 Return-Path: Delivered-To: gecko@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id BEFE76EA for ; Fri, 19 Apr 2013 18:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 9802E1661 for ; Fri, 19 Apr 2013 18:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r3JIo1Sa095859 for ; Fri, 19 Apr 2013 18:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r3JIo1wj095858; Fri, 19 Apr 2013 18:50:01 GMT (envelope-from gnats) Date: Fri, 19 Apr 2013 18:50:01 GMT Message-Id: <201304191850.r3JIo1wj095858@freefall.freebsd.org> To: gecko@FreeBSD.org From: Michael Fausten Subject: Re: ports/177812: Can't build Firefox 20 on FreeBSD 9.1 X-BeenThere: freebsd-gecko@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Michael Fausten List-Id: Gecko Rendering Engine issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Apr 2013 18:50:01 -0000 The following reply was made to PR ports/177812; it has been noted by GNATS. From: Michael Fausten To: Jan Beich Cc: bug-followup@freebsd.org Subject: Re: ports/177812: Can't build Firefox 20 on FreeBSD 9.1 Date: Fri, 19 Apr 2013 13:19:30 +0200 Am 17.04.2013 11:11, schrieb Jan Beich: > Michael Fausten writes: > >> Am 13.04.2013 03:04, schrieb Jan Beich: >> >>> Michael Fausten writes: >>> >>>> FreeBSD glaukos 8.3-RELEASE-p3 FreeBSD 8.3-RELEASE-p3 #0: Mon Jun 11 >>>> 23:52:38 UTC 2012 >>>> root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 >>> [...] >>>> g++46 -o FileUtils.o ... >>>> /usr/ports/www/firefox/work/mozilla-release/xpcom/glue/FileUtils.cpp: >>>> In function 'bool mozilla::fallocate(PRFileDesc*, int64_t)': >>>> /usr/ports/www/firefox/work/mozilla-release/xpcom/glue/FileUtils.cpp:25:67: >>>> error: 'posix_fallocate' was not declared in this scope >>> Try adding the following line into FileUtils.cpp before . >>> >>> #define _XOPEN_SOURCE 600 >>> >>> If it does help try checking which macro affects __BSD_VISIBLE and >>> __POSIX_VISIBLE by inspecting compiler output from adding -E to cflags. >> Firstly, I want to clarify that the target OS is FreeBSD 8.3 and not >> 9.1 I accidentally wrote. Sorry if that might confused. >> >> I added "#define _XOPEN_SOURCE 600" to my >> work/mozilla-release/xpcom/glue/FileUtils.cpp, but unfortunately it >> didn't help :( > Make sure your /usr/include/fcntl.h is identical to > > http://svnweb.freebsd.org/base/releng/8.3/sys/sys/fcntl.h?view=co I did. I compared my current fcntl.h and the file you posted above with the diff tool. As far as I could see there were only indentation difference. To be sure I made a backup of my current fcntl.h and replaced it with the content from your file. I also did a "make clean" and deleted firefox*.tbz in /usr/ports/distfiles. Still the same error. :( > [...] > > -- > an interrupted upgrade left the system in an inconsistent state? You mean like caused by freebsd-update? Or any port? Should I rebuild all my ports? I noticed that the error occurs also while building mail/thunderbird and database/sqlite3.