From owner-freebsd-ports@FreeBSD.ORG Mon Apr 15 10:47:28 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D1729981; Mon, 15 Apr 2013 10:47:28 +0000 (UTC) (envelope-from jbeich@tormail.org) Received: from outgoing.tormail.org (outgoing.tormail.org [82.221.96.22]) by mx1.freebsd.org (Postfix) with ESMTP id 8FF5634C; Mon, 15 Apr 2013 10:47:28 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=internal.tormail.org) by outgoing.tormail.org with esmtp (Exim 4.72) (envelope-from ) id 1URgwR-00089S-NM; Mon, 15 Apr 2013 14:47:20 +0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tormail.org; s=tm; h=Message-Id:X-TorMail-User:Content-Transfer-Encoding:Content-Type:MIME-Version:References:Date:In-Reply-To:Subject:Cc:To:From; bh=g+g6mwAh0s+4O68TPx7bKu1/sLinxuYE9aXnhbvCNiU=; b=eVQHYubYUzcqQec4p0P7eihusM9PqNeJZ0lbw/sk7szPywM7weZLB9ZIxmVEs66i3DHfUEKHkfsyvqcd0PjUTQe9Zc/Nem/DWpdybxG4HKVSHXG1x5iSTXOkYtq1/JavcmbhgyxwaasE5wVunD1++1r7T9JT9t1pTa9SeXDoSlg=; Received: from jbeich by internal.tormail.org with local (Exim 4.63) (envelope-from ) id 1URgtG-000Fg0-Vd; Mon, 15 Apr 2013 10:44:06 +0000 From: Jan Beich To: Matthias Apitz Subject: Re: www/firefox (r315793, 20.0.1) does not compile In-Reply-To: <20130415050258.GA2351@tinyCurrent> (Matthias Apitz's message of "Mon, 15 Apr 2013 07:02:59 +0200") Date: Mon, 15 Apr 2013 16:44:43 +0600 References: <20130413142647.GA2196@tinyCurrent> <51698370.5000107@smeets.im> <20130413173629.GA2627__22839.3189413056$1365874613$gmane$org@tinyCurrent> <1UR4wA-000Fut-76@internal.tormail.org> <20130415050258.GA2351@tinyCurrent> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-TorMail-User: jbeich Message-Id: <1URgtG-000Fg0-Vd@internal.tormail.org> Cc: gecko@freebsd.org, freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Apr 2013 10:47:28 -0000 Matthias Apitz writes: > El d=C3=ADa Saturday, April 13, 2013 a las 01:13:46PM -0500, Jan Beich es= cribi=C3=B3: > >> Matthias Apitz writes: >>=20 >> > # uname -a >> > FreeBSD aurora.Sisis.de 10.0-CURRENT FreeBSD 10.0-CURRENT #0 >> > r235646: Sat May 19 15:52:36 CEST 2012 >> > guru@aurora.Sisis.de:/usr/obj/usr/src/sys/GENERIC i386 >> > >>=20 >> At that time jemalloc 3.0.0 was imported, expect regressions. >>=20 >> /head had recently imported clang 3.3 so www/firefox may have compile >> and runtime regressions. Be prepared or add USE_GCC=3Dyes to Makefile.lo= cal. >> > > With gcc it gives the same error; and if I add to the source > /usr/ports/www/firefox/work/mozilla-release/memory/mozalloc/mozalloc.cpp > the following include (as the man page requests): > > #include // for malloc, free > #include // added by me mozalloc.cpp uses malloc_usable_size() only if configure detects its presence in libc or LIBS and malloc_np.h if it exists and is not buggy i.e., simply including the header doesn't produce errors. On /head firefox also uses the new jemalloc3 api in malloc_np.h to implement jemalloc_stats and malloc_good_size() instead of overriding the malloc() in libc like it does for /stable/[89]. > > it gives other errors: > > ... > gmake[3]: Entering directory > `/usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd10.0= /memory/mozalloc' > g++46 -o mozalloc.o -c -DMOZ_GLUE_IN_PROGRAM -DNO_NSPR_10_SUPPORT > -I../../xpcom -I../../../memory/mozalloc -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=3Dreturn-type -Wtype-limits > -Wempty-body -Wno-ctor-dtor-privacy -Wno-overlength-strings > -Wno-invalid-offsetof -Wno-variadic-macros -Wcast-align -O2 -pipe > -Wl,-rpath=3D/usr/local/lib/gcc46 -fno-strict-aliasing > -Wl,-rpath=3D/usr/local/lib/gcc46 -fno-exceptions -fno-strict-aliasing > -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions > -std=3Dgnu++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/mozalloc.o.pp > /usr/ports/www/firefox/work/mozilla-release/memory/mozalloc/mozalloc.cpp > In file included from > /usr/ports/www/firefox/work/mozilla-release/memory/mozalloc/mozalloc.cpp:= 19:0: > /usr/include/malloc_np.h:59:19: error: expected '(' before 'nonnull' > /usr/include/malloc_np.h:59:30: error: expected ')' before ';' token > /usr/include/malloc_np.h:61:30: error: expected '(' before 'nonnull' > /usr/include/malloc_np.h:61:41: error: expected ')' before ';' token > /usr/include/malloc_np.h:63:19: error: expected '(' before 'nonnull' > /usr/include/malloc_np.h:63:30: error: expected ')' before ';' token > /usr/include/malloc_np.h:64:49: error: expected '(' before 'nonnull' > /usr/include/malloc_np.h:64:60: error: expected ')' before ';' token > gmake[3]: *** [mozalloc.o] Error 1 > > And now? Thanks http://svnweb.freebsd.org/changeset/base/235780 > > matthias