Created attachment 151552 [details] A patch for x11-wm/fvwm2. 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) and disabled in pkg-plist. 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 which is not listed in pkg-plist. Unfortunately FvwmGtk cannot be compiled with clang and causes a compilation error. To fix the problem, add a missing "--disable-gtk" argument to the CONFIGURE_ARGS variable. # If we really want to compile FvwmGtk with clang, at least we have to add # "USE_CSTD=gnu89" to Makefile [2]. [1] http://svnweb.freebsd.org/ports/head/x11-wm/fvwm2/Makefile?view=log#rev375573 [2] https://lists.freebsd.org/pipermail/freebsd-ports/2014-December/thread.html#97303
Auto-assigned to maintainer cy@FreeBSD.org
Created attachment 151553 [details] Build log on 10.1-RELEASE without x11-toolkits/gtk12.
Created attachment 151554 [details] Build error log on 10.1-RELEASE with x11-toolkits/gtk12.
Created attachment 151555 [details] Build log on 10.1-RELEASE with x11-toolkits/gtk12 and the patch.
Created attachment 151556 [details] poudriere testport log with the patch (10.1-RELEASE amd64)
A commit references this bug: Author: cy Date: Wed Jan 14 02:53:53 UTC 2015 New revision: 376992 URL: https://svnweb.freebsd.org/changeset/ports/376992 Log: Fix gtk12/clang compile error. PR: 196679 Submitted by: WATANABE Kazuhiro <CQG00620@nifty.ne.jp> Broken by: r375573 Changes: head/x11-wm/fvwm2/Makefile
Broken by r375573. Committed and fixed. Thanks.