From owner-freebsd-ports@FreeBSD.ORG Tue May 7 07:58:17 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 8D8AB91E for ; Tue, 7 May 2013 07:58:17 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mail-pb0-x22c.google.com (mail-pb0-x22c.google.com [IPv6:2607:f8b0:400e:c01::22c]) by mx1.freebsd.org (Postfix) with ESMTP id 68AA16C0 for ; Tue, 7 May 2013 07:58:17 +0000 (UTC) Received: by mail-pb0-f44.google.com with SMTP id wz17so219582pbc.31 for ; Tue, 07 May 2013 00:58:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:reply-to:user-agent:mime-version:to :cc:subject:references:in-reply-to:x-enigmail-version:content-type; bh=rAjNQQMFFtrGNNmQf5LdoB2qPcAqrkfo+qt15mnHvR0=; b=fAGAysJDOKVglSVM61X+fw7uZBamqBrEsaVf8kqGVaR5eyblIjSmK+uHlRNg+FEXJD 2Awg50mZAS41SrUC+SDhcNGb9W6BwmSzXzP7qilfMv4PSTZVXneC5cMH7QRP/kWg+IXS /vljtd1S7WIiyYfpmKdFit/m4xRr7gOj38XMxDPMSfOoCXCHd9a9swvzn+hbK9PBY2JR EB6iWBYMv9knIgcaa/d3GWnu/4I2jtP5ay2QmqfyMsdGL0ZCuYl7/w+CceOYAYrtaphG qN983GqD1+RumJolNGzOcn9jDYLpYyhzjDXsJlVlaW+uD8U0VXM9q+HmDvIWoJbeALi5 Vjcg== X-Received: by 10.66.48.197 with SMTP id o5mr1556190pan.196.1367913497222; Tue, 07 May 2013 00:58:17 -0700 (PDT) Received: from [192.168.1.7] (ppp59-167-128-11.static.internode.on.net. [59.167.128.11]) by mx.google.com with ESMTPSA id wl5sm29306307pac.18.2013.05.07.00.58.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 May 2013 00:58:16 -0700 (PDT) Message-ID: <5188B410.4030408@FreeBSD.org> Date: Tue, 07 May 2013 17:58:08 +1000 From: Kubilay Kocak User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: Beeblebrox Subject: Re: lang/spidermonkey185 build breaks References: <1367859768520-5809189.post@n5.nabble.com> In-Reply-To: <1367859768520-5809189.post@n5.nabble.com> X-Enigmail-Version: 1.5.1 Content-Type: multipart/mixed; boundary="------------020805070708020607030403" Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: koobs@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 May 2013 07:58:17 -0000 This is a multi-part message in MIME format. --------------020805070708020607030403 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 7/05/2013 3:02 AM, Beeblebrox wrote: > Err Msg is: > > In file included from jsapi.cpp:1: > jsapi.cpp:1641:14: warning: cast from 'char *' to 'JSAtom **' increases > required alignment from 1 to 8 [-Wcast-align] > atom = (*(JSAtom **)((char*)&(cx->runtime)->atomState + (offset))); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > jsapi.cpp:1646:15: warning: cast from 'char *' to 'JSAtom **' increases > required alignment from 1 to 8 [-Wcast-align] > (*(JSAtom **)((char*)&(cx->runtime)->atomState + (offset))) = > atom; > ....... > jsapi.cpp:3988:16: warning: initialization of pointer of type 'JSIdArray *' > to null from a constant boolean expression [-Wbool-conversion] > return false; > ^~~~~ > In file included from jsapi.cpp:1: > In file included from jsapi.cpp:57: > In file included from ./jsarray.h:47: > In file included from ./jsatom.h:52: > ./jsstr.h:525:14: warning: private field 'mDummy' is not used > [-Wunused-private-field] > JSString mDummy; > ^ > 87 warnings and 4 errors generated. > gmake[1]: *** [jsatom.o] Error 1 > gmake[1]: *** [jsapi.o] Error 1 > gmake[1]: Leaving directory > `/wrkdirs/usr/ports/lang/spidermonkey185/work/js-1.8.5/js/src' > gmake: *** [all] Error 2 > *** [do-build] Error code 1 > > Stop in /usr/ports/lang/spidermonkey185. > > > Hi, Can you test the attached patch for me and let me know how it goes? -koobs --------------020805070708020607030403 Content-Type: text/plain; charset=windows-1252; name="sm185.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="sm185.diff" Index: Makefile =================================================================== --- Makefile (revision 309185) +++ Makefile (working copy) @@ -3,7 +3,7 @@ PORTNAME= spidermonkey185 PORTVERSION= 1.8.5 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= lang MASTER_SITES= ${MASTER_SITE_MOZILLA} MASTER_SITE_SUBDIR= js @@ -17,6 +17,7 @@ CONFLICTS= njs-[0-9]* +USE_AUTOTOOLS= autoconf213:env GNU_CONFIGURE= yes USE_GMAKE= yes USE_GNOME= gnomehack @@ -151,6 +152,9 @@ PLIST_SUB+= SPARC="@comment " .endif +pre-configure: + (cd ${WRKSRC} && ${AUTOCONF}) + regression-test: build @${ECHO_MSG} -n "===> Running jstests.py: " @cd ${WRKSRC} && ${SETENV} TZ=PST8PDT ${PYTHON_CMD} tests/jstests.py \ Index: files/patch-js-src-configure.in =================================================================== --- files/patch-js-src-configure.in (revision 0) +++ files/patch-js-src-configure.in (working copy) @@ -0,0 +1,12 @@ +--- configure.in.orig 2011-03-31 21:08:36.000000000 +0200 ++++ configure.in 2012-12-17 23:12:14.000000000 +0100 +@@ -3378,7 +3378,8 @@ + rm -f conftest.{c,S} + ]) + if test "$ac_cv_have_visibility_builtin_bug" = "no" -a \ +- "$ac_cv_have_visibility_class_bug" = "no"; then ++ "$ac_cv_have_visibility_class_bug" = "no" -a \ ++ "$OS_ARCH" != "FreeBSD" ; then + VISIBILITY_FLAGS='-I$(DIST)/system_wrappers_js -include $(topsrcdir)/config/gcc_hidden.h' + WRAP_SYSTEM_INCLUDES=1 + STL_FLAGS='-I$(DIST)/stl_wrappers' Property changes on: files/patch-js-src-configure.in ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property --------------020805070708020607030403--