Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Apr 2013 06:40:01 GMT
From:      Michael Fausten <ports@michael-fausten.de>
To:        gecko@FreeBSD.org
Subject:   Re: ports/177812: Can't build Firefox 20 on FreeBSD 9.1
Message-ID:  <201304170640.r3H6e1GT069144@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/177812; it has been noted by GNATS.

From: Michael Fausten <ports@michael-fausten.de>
To: Jan Beich <jbeich@tormail.org>
Cc: bug-followup@freebsd.org
Subject: Re: ports/177812: Can't build Firefox 20 on FreeBSD 9.1
Date: Wed, 17 Apr 2013 08:24:44 +0200

 Am 13.04.2013 03:04, schrieb Jan Beich:
 > Michael Fausten <ports@michael-fausten.de> 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 <fcntl.h>.
 >
 >    #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 :(
 
 # head work/mozilla-release/xpcom/glue/FileUtils.cpp
 
 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
   * This Source Code Form is subject to the terms of the Mozilla Public
   * License, v. 2.0. If a copy of the MPL was not distributed with this
   * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 #if defined(XP_UNIX)
 #define _XOPEN_SOURCE 600
 #include <fcntl.h>
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 
 I guess the error is stillt the same:
 
 ### start error message ###
 
 [...]
 gmake[4]: Leaving directory 
 `/usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd8.3/xpcom/typelib'
 gmake -C string libs
 gmake[4]: Entering directory 
 `/usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd8.3/xpcom/string'
 gmake -C public libs
 gmake[5]: Entering directory 
 `/usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd8.3/xpcom/string/public'
 gmake[5]: Für das Ziel »libs« ist nichts zu tun.
 gmake[5]: Leaving directory 
 `/usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd8.3/xpcom/string/public'
 gmake -C src libs
 gmake[5]: Entering directory 
 `/usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd8.3/xpcom/string/src'
 gmake[5]: Für das Ziel »libs« ist nichts zu tun.
 gmake[5]: Leaving directory 
 `/usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd8.3/xpcom/string/src'
 gmake[4]: Leaving directory 
 `/usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd8.3/xpcom/string'
 gmake -C glue libs
 FileUtils.cpp
 gmake[4]: Entering directory 
 `/usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd8.3/xpcom/glue'
 g++46 -o FileUtils.o -c -I../../dist/stl_wrappers 
 -I../../dist/system_wrappers -include ../../../config/gcc_hidden.h 
 -DMOZ_GLUE_IN_PROGRAM -DNO_NSPR_10_SUPPORT 
 -DTARGET_XPCOM_ABI=\"x86-gcc3\" -I../../../xpcom/glue/../build 
 -I../../../xpcom/glue -I. -I../../dist/include -I/usr/local/include/nspr 
 -I/usr/local/include/nss -I/usr/local/include/nss/nss 
 -I/usr/local/include -I/usr/local/include    -fPIC 
 -isystem/usr/local/include -I/usr/local/include -Wall -Wpointer-arith 
 -Woverloaded-virtual -Werror=return-type -Wtype-limits -Wempty-body 
 -Wno-ctor-dtor-privacy -Wno-overlength-strings -Wno-invalid-offsetof 
 -Wno-variadic-macros -Wcast-align -O2 -pipe 
 -Wl,-rpath=/usr/local/lib/gcc46 -fno-strict-aliasing 
 -Wl,-rpath=/usr/local/lib/gcc46 -fno-exceptions -fno-strict-aliasing 
 -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions 
 -std=gnu++0x -pipe  -DNDEBUG -DTRIMMED -fno-omit-frame-pointer 
 -isystem/usr/local/include  -I/usr/local/include -DMOZILLA_CLIENT 
 -include ../../mozilla-config.h -MD -MF .deps/FileUtils.o.pp 
 /usr/ports/www/firefox/work/mozilla-release/xpcom/glue/FileUtils.cpp
 /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:26:67: 
 error: 'posix_fallocate' was not declared in this scope
 gmake[4]: *** [FileUtils.o] Fehler 1
 gmake[4]: Leaving directory 
 `/usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd8.3/xpcom/glue'
 gmake[3]: *** [libs] Fehler 2
 gmake[3]: Leaving directory 
 `/usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd8.3/xpcom'
 gmake[2]: *** [libs_tier_platform] Fehler 2
 gmake[2]: Leaving directory 
 `/usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd8.3'
 gmake[1]: *** [tier_platform] Fehler 2
 gmake[1]: Leaving directory 
 `/usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd8.3'
 gmake: *** [default] Fehler 2
 *** Error code 1
 
 Stop in /usr/ports/www/firefox.
 *** Error code 1
 
 Stop in /usr/ports/www/firefox.
 
 ### end error message ###
 
 > Otherwise, make sure gcc private copies of system headers under
 > /usr/local/lib/gcc46/gcc/*/*/include-fixed/ are up to date.
 
 I removed gcc46 with pkg delete gcc46 and installed it again. The path 
 you mentioned above did temporary not exist (after the deinstallation).
 Anyway, also after this the build went wrong with the same error.
 Thanks for your help.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304170640.r3H6e1GT069144>