From owner-freebsd-ports@FreeBSD.ORG Sat Dec 27 15:38:06 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D7DF83DF for ; Sat, 27 Dec 2014 15:38:06 +0000 (UTC) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 920C66414D for ; Sat, 27 Dec 2014 15:38:06 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::e117:2cd1:3de0:93be] (unknown [IPv6:2001:7b8:3a7:0:e117:2cd1:3de0:93be]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id DA200B80A; Sat, 27 Dec 2014 16:37:57 +0100 (CET) Subject: Re: [x11-wm/fvwm2] Build failure with Clang Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Content-Type: multipart/signed; boundary="Apple-Mail=_2FEB6962-2FFC-4449-8678-4D516FCE6710"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.5b3 From: Dimitry Andric In-Reply-To: <20141226203851.GA833@spectrum.skysmurf.nl> Date: Sat, 27 Dec 2014 16:37:54 +0100 Message-Id: <4F54394C-79C8-4471-B82A-250FC950F9DA@FreeBSD.org> References: <20141226203851.GA833@spectrum.skysmurf.nl> To: "A.J. 'Fonz' van Werven" X-Mailer: Apple Mail (2.1993) Cc: FreeBSD ports mailing list 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: Sat, 27 Dec 2014 15:38:06 -0000 --Apple-Mail=_2FEB6962-2FFC-4449-8678-4D516FCE6710 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii on 26 Dec 2014, at 21:38, A.J. 'Fonz' van Werven = wrote: >=20 > Before asking the maintainer and/or submitting a PR, perhaps someone = here > knows what's up with the following. Since I rebuilt several ports due = to > graphics/imlib having been deleted and graphics/png having been = updated, > now building x11-wm/fvwm2 with Clang fails with a linking error at > FvwmGtk. But with lang/gcc48 it rather strangely builds just fine. ... > clang -Wall -Wno-implicit-int -O2 -pipe -fno-color-diagnostics = -fstack-protector -fstack-protector -fno-strict-aliasing = -I/usr/local/include -I/usr/local/include/libpng15 = -I/usr/local/include/freetype2 -I/usr/local/include/libpng16 = -fstack-protector -o FvwmGtk FvwmGtk.o gtkpixmapmenuitem.o dialog.o = expand.o windowlist.o menu.o -L../../libs -L/usr/local/lib -lfvwm -lSM = -lICE -lXext -lX11 -lm -L/usr/local/lib -L/usr/local/lib -lgtk -lgdk = -lgmodule -lglib -lintl -lXi -lXext -lX11 -lm -lfontconfig = -L/usr/local/lib -lfreetype > gtkpixmapmenuitem.o: In function `g_bit_nth_lsf': > gtkpixmapmenuitem.c:(.text+0x0): multiple definition of = `g_bit_nth_lsf' > FvwmGtk.o:FvwmGtk.c:(.text+0x0): first defined here > gtkpixmapmenuitem.o: In function `g_bit_nth_msf': > gtkpixmapmenuitem.c:(.text+0x30): multiple definition of = `g_bit_nth_msf' > FvwmGtk.o:FvwmGtk.c:(.text+0x30): first defined here > gtkpixmapmenuitem.o: In function `g_bit_storage': > gtkpixmapmenuitem.c:(.text+0x60): multiple definition of = `g_bit_storage' > FvwmGtk.o:FvwmGtk.c:(.text+0x60): first defined here 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=3D gnu89 Somewhere near the top should be fine. -Dimitry --Apple-Mail=_2FEB6962-2FFC-4449-8678-4D516FCE6710 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.26 iEYEARECAAYFAlSe0lYACgkQsF6jCi4glqNi0gCdGC0oOFvYLOiss0V0UWK294MC QfcAn3Dm4MdprnuvNL86eAOZqQ88ekSM =edfC -----END PGP SIGNATURE----- --Apple-Mail=_2FEB6962-2FFC-4449-8678-4D516FCE6710--