Hi everybody, 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.
Any thoughts? Thanks in advance. Relevant snippet: [start of output] 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 dialog.o: In function `g_bit_nth_lsf': dialog.c:(.text+0x0): multiple definition of `g_bit_nth_lsf' FvwmGtk.o:FvwmGtk.c:(.text+0x0): first defined here dialog.o: In function `g_bit_nth_msf': dialog.c:(.text+0x30): multiple definition of `g_bit_nth_msf' FvwmGtk.o:FvwmGtk.c:(.text+0x30): first defined here dialog.o: In function `g_bit_storage': dialog.c:(.text+0x60): multiple definition of `g_bit_storage' FvwmGtk.o:FvwmGtk.c:(.text+0x60): first defined here expand.o: In function `g_bit_nth_lsf': expand.c:(.text+0x0): multiple definition of `g_bit_nth_lsf' FvwmGtk.o:FvwmGtk.c:(.text+0x0): first defined here expand.o: In function `g_bit_nth_msf': expand.c:(.text+0x30): multiple definition of `g_bit_nth_msf' FvwmGtk.o:FvwmGtk.c:(.text+0x30): first defined here expand.o: In function `g_bit_storage': expand.c:(.text+0x60): multiple definition of `g_bit_storage' FvwmGtk.o:FvwmGtk.c:(.text+0x60): first defined here windowlist.o: In function `g_bit_nth_lsf': windowlist.c:(.text+0x0): multiple definition of `g_bit_nth_lsf' FvwmGtk.o:FvwmGtk.c:(.text+0x0): first defined here windowlist.o: In function `g_bit_nth_msf': windowlist.c:(.text+0x30): multiple definition of `g_bit_nth_msf' FvwmGtk.o:FvwmGtk.c:(.text+0x30): first defined here windowlist.o: In function `g_bit_storage': windowlist.c:(.text+0x60): multiple definition of `g_bit_storage' FvwmGtk.o:FvwmGtk.c:(.text+0x60): first defined here menu.o: In function `g_bit_nth_lsf': menu.c:(.text+0x0): multiple definition of `g_bit_nth_lsf' FvwmGtk.o:FvwmGtk.c:(.text+0x0): first defined here menu.o: In function `g_bit_nth_msf': menu.c:(.text+0x30): multiple definition of `g_bit_nth_msf' FvwmGtk.o:FvwmGtk.c:(.text+0x30): first defined here menu.o: In function `g_bit_storage': menu.c:(.text+0x60): multiple definition of `g_bit_storage' FvwmGtk.o:FvwmGtk.c:(.text+0x60): first defined here clang: error: linker command failed with exit code 1 (use -v to see invocation) Makefile:421: recipe for target 'FvwmGtk' failed gmake[3]: *** [FvwmGtk] Error 1 gmake[3]: Leaving directory '/usr/ports/x11-wm/fvwm2/work/fvwm-2.6.5/modules/FvwmGtk' Makefile:369: recipe for target 'all-recursive' failed gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory '/usr/ports/x11-wm/fvwm2/work/fvwm-2.6.5/modules' Makefile:430: recipe for target 'all-recursive' failed gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory '/usr/ports/x11-wm/fvwm2/work/fvwm-2.6.5' Makefile:368: recipe for target 'all' failed gmake: *** [all] Error 2 ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** [do-build] Error code 1 Stop in /usr/ports/x11-wm/fvwm2. *** [build] Error code 1 Stop in /usr/ports/x11-wm/fvwm2. [end of output] Other information: # uname -a FreeBSD gargamel.skysmurf.nl 9.3-RELEASE-p6 FreeBSD 9.3-RELEASE-p6 #4 r269163M: Sun Dec 21 13:31:52 CET 2014 r...@gargamel.skysmurf.nl:/usr/obj/usr/src/sys/SPECTRUM amd64 Ports tree revision: 375649 Relevant entries in /etc/make.conf: [start of file content] WITH_PKGNG=yes WITHOUT_HAL=yes CC=clang CXX=clang++ CPP=clang-cpp .if ${.CURDIR:M/usr/ports*} CFLAGS+=-fstack-protector CXXFLAGS+=-fstack-protector .endif [end of file content] Full build logs: http://www.skysmurf.nl/~fonz/tmp/fvwm2_default.txt (Clang from base) http://www.skysmurf.nl/~fonz/tmp/fvwm2_unsafe.txt (MAKE_JOBS_UNSAFE=yes) http://www.skysmurf.nl/~fonz/tmp/fvwm2_gcc48.txt (successful gcc48 run) -- Imbibo, ergo sum.
pgpeT8C2pevkc.pgp
Description: PGP signature