From owner-freebsd-ports@FreeBSD.ORG Tue Dec 30 13:49:37 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A5458D2 for ; Tue, 30 Dec 2014 13:49:37 +0000 (UTC) Received: from condef009-v.nifty.com (condef009-v.nifty.com [210.131.4.246]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4C52F3A64 for ; Tue, 30 Dec 2014 13:49:36 +0000 (UTC) Received: from conssluserg002-v.nifty.com ([10.16.229.201])by condef009-v.nifty.com with ESMTP id sBUDheOs031504 for ; Tue, 30 Dec 2014 22:43:40 +0900 Received: from nifty.com (g037116.dynamic.ppp.asahi-net.or.jp [211.132.37.116]) (authenticated) by conssluserg002-v.nifty.com with ESMTP id sBUDhTvA031080; Tue, 30 Dec 2014 22:43:29 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=mar2011msa; t=1419947010; bh=IFvqv6bRNZsYpiKziz+Xlwo0kRAFFapehj6W432nLgE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:MIME-Version: Content-Type; b=e595cZbxD1aOG8uhBIZSMlnu6Zqa/7oDaBeqH9xAK3JQh35FYR7UtFnYsoPGWJO5O IKGid+znb2yTLBahbFQhJXYre61ykth4GSYGeIjsJnJK9AZx+DMwcpFq7DYE7/YIsv Ht2Jf7u9xzeGUzikSAYF/MsECjMTyaP7Jx/Pmeik= X-Nifty-SrcIP: [211.132.37.116] Message-Id: <201412301343.sBUDhTvA031080@conssluserg002-v.nifty.com> Date: Tue, 30 Dec 2014 22:43:31 +0900 From: WATANABE Kazuhiro To: "A.J. 'Fonz' van Werven" Subject: Re: [x11-wm/fvwm2] Build failure with Clang In-Reply-To: <20141229093047.GA3583@spectrum.skysmurf.nl> References: <20141226203851.GA833@spectrum.skysmurf.nl> <4F54394C-79C8-4471-B82A-250FC950F9DA@FreeBSD.org> <20141229093047.GA3583@spectrum.skysmurf.nl> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-2022-JP-2?B?R29qGyQoRCtXGyhC?=) APEL/10.8 Emacs/24.4 (amd64-portbld-freebsd10.1) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2014 13:49:37 -0000 Hello. At Mon, 29 Dec 2014 10:30:47 +0100, A.J. 'Fonz' van Werven wrote: > Dimitry Andric wrote: > > >> now building x11-wm/fvwm2 with Clang fails with a linking error at > >> FvwmGtk. But with lang/gcc48 it rather strangely builds just fine. > > > > I've tried building this port with various options enabled and disabled, > > but I cannot reproduce your linking errors. If I would have to guess, I > > would say that either Fvwm or gtk headers are using inline functions, > > and are counting on "gnu89" inline semantics. > > > > If that is the case, you can try to add the following line to > > x11-wm/fvwm2/Makefile: > > > > USE_CSTD= gnu89 > > Thanks, that did fix it. > > I still find it puzzling, though. As far as I can tell, the port itself > hasn't changed except for the Imlib and/or PNG dependencies. And those > built perfectly fine without USE_CSTD=gnu89. So I'm at a loss as to what > could have been changed that makes Fvwm2 suddenly require gnu89. I've encontered the same problem on 10.1-RELEASE/amd64. Have you installed gtk12 (x11-toolkits/gtk12) on your system? The previous version of x11-wm/fvwm2 had IMLIB option [1], and the option was disabled by default. If the option was disabled, added "--disable-gtk" to the CONFIGURE_ARGS variable like this: | .if ${PORT_OPTIONS:MIMLIB} | USE_GNOME+= imlib | .else | CONFIGURE_ARGS+=--disable-gtk | .endif and the FvwmGtk module was not compiled (it requires GTK). But the latest x11-wm/fvwm2 doesn't specify "--disable-gtk" anywhere. So if x11-toolkits/gtk12 has been installed to the system, the configure script detects the library automatically and tries to compile FvwmGtk. Would you try to add "--disable-gtk" to the CONFIGURE_ARGS variable? If you really want to compile FvwmGtk, some fixes will be needed (library dependency, pkg-plist and USE_CSTD?). For USE_CSTD, bsd.gnome.mk says: | # Set USE_CSTD for all ports that depend on glib12 | .if defined(_USE_GNOME) && !empty(_USE_GNOME:Mglib12) | USE_CSTD= gnu89 | .endif [1] http://svnweb.freebsd.org/ports/head/x11-wm/fvwm2/Makefile?view=log#rev375573 --- WATANABE Kazuhiro (CQG00620@nifty.ne.jp)