Date: Sat, 27 Dec 2014 16:37:54 +0100 From: Dimitry Andric <dim@FreeBSD.org> To: "A.J. 'Fonz' van Werven" <freebsd@skysmurf.nl> Cc: FreeBSD ports mailing list <freebsd-ports@freebsd.org> Subject: Re: [x11-wm/fvwm2] Build failure with Clang Message-ID: <4F54394C-79C8-4471-B82A-250FC950F9DA@FreeBSD.org> In-Reply-To: <20141226203851.GA833@spectrum.skysmurf.nl> References: <20141226203851.GA833@spectrum.skysmurf.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <freebsd@skysmurf.nl> = 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F54394C-79C8-4471-B82A-250FC950F9DA>