Solved gtk-3 update

fails with:

Code:
gmake[6]: Entering directory '/usr/ports/x11-toolkits/gtk30/work/gtk+-3.14.15/gtk'
  CCLD  gtk-query-immodules-3.0
  CCLD  gtk-launch
  GISCAN  Gtk-3.0.gir
./.libs/libgtk-3.so: undefined reference to `g_set_object'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:2482: recipe for target 'gtk-launch' failed
gmake[6]: *** [gtk-launch] Error 1
gmake[6]: *** Waiting for unfinished jobs....
./.libs/libgtk-3.so: undefined reference to `g_set_object'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:2486: recipe for target 'gtk-query-immodules-3.0' failed
gmake[6]: *** [gtk-query-immodules-3.0] Error 1
gtkentry.c:2038: Warning: Gtk: multiple comment blocks documenting 'GtkEntry:inner-border:' identifier (already seen at gtkentry.c:824).
gtksettings.c:909: Warning: Gtk: unexpected annotation: element-type
./.libs/libgtk-3.so: undefined reference to `g_set_object'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
linking of temporary binary failed: Command '['/bin/sh', '../libtool', '--mode=link', '--tag=CC', '--silent', 'clang35', '-o', '/usr/ports/x11-toolkits/gtk30/work/gtk+-3.14.15/gtk/tmp-introspectMZR4HC/Gtk-3.0', '-export-dynamic', '-I/usr/local/include', '-fno-omit-frame-pointer', '-I/usr/local/include', '-D_THREAD_SAFE', '-O2', '-pipe', '-Wno-invalid-source-encoding', '-fstack-protector', '-fno-strict-aliasing', '-Wall', '-fstack-protector', '/usr/ports/x11-toolkits/gtk30/work/gtk+-3.14.15/gtk/tmp-introspectMZR4HC/Gtk-3.0.o', '-L.', 'libgtk-3.la', '../gdk/libgdk-3.la', '-L/usr/local/lib', '-lgio-2.0', '-lgobject-2.0', '-Wl,--export-dynamic', '-lgmodule-2.0', '-pthread', '-lglib-2.0', '-lintl']' returned non-zero exit status 1
/usr/local/share/gobject-introspection-1.0/Makefile.introspection:153: recipe for target 'Gtk-3.0.gir' failed
gmake[6]: *** [Gtk-3.0.gir] Error 1
gmake[6]: Leaving directory '/usr/ports/x11-toolkits/gtk30/work/gtk+-3.14.15/gtk'
Makefile:6189: recipe for target 'all-recursive' failed
gmake[5]: *** [all-recursive] Error 1
gmake[5]: Leaving directory '/usr/ports/x11-toolkits/gtk30/work/gtk+-3.14.15/gtk'
Makefile:2347: recipe for target 'all' failed
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory '/usr/ports/x11-toolkits/gtk30/work/gtk+-3.14.15/gtk'
Makefile:711: recipe for target 'all-recursive' failed
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory '/usr/ports/x11-toolkits/gtk30/work/gtk+-3.14.15'
Makefile:609: recipe for target 'all' failed
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory '/usr/ports/x11-toolkits/gtk30/work/gtk+-3.14.15'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/x11-toolkits/gtk30
*** Error code 1

on FreeBSD-10.1 amd64.
 
For anyone finding this later and attempting to build from source, you can apply the patch here to resolve the issue:

https://github.com/freebsd/freebsd-...346ff5d#diff-30c69b5cb0facd8b4b360f2c4528fbcf

For example, assuming your source is in [FONT=Courier New]./gtk+-3.14.15:[/FONT]

Code:
cd gtk+-3.14.15
wget https://raw.githubusercontent.com/freebsd/freebsd-ports/ce6859959eec69a56681d6a06bb9a4ee8346ff5d/x11-toolkits/gtk30/files/patch-34e6e1a
patch -p0 < patch-34e6e1a
make ...
 
Back
Top