[Bug 196078] New: [patch] unbreak x11-fm/sushi build on FreeBSD 8

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Dec 17 23:07:36 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196078

            Bug ID: 196078
           Summary: [patch] unbreak x11-fm/sushi build on FreeBSD 8
           Product: Ports Tree
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: gnome at FreeBSD.org
          Reporter: truckman at FreeBSD.org
        Depends on: 196031
             Flags: maintainer-feedback?(gnome at FreeBSD.org)
          Assignee: gnome at FreeBSD.org

Created attachment 150698
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=150698&action=edit
patch to unbreak x11-fm/sushi build on FreeBSD 8

After the patch in PR 196031 to unbreak the build of www/webkit-gtk3 on FreeBSD
8, the build of x11-fm/sushi fails with these errors:

  GISCAN   Sushi-1.0.gir
/usr/local/lib/libwebkitgtk-3.0.so: undefined reference to
`_ZSt25__throw_bad_function_callv at GLIBCXX_3.4.14'
/usr/local/lib/libwebkitgtk-3.0.so: undefined reference to
`_ZNSt18condition_variable4waitERSt11unique_lockISt5mutexE at GLIBCXX_3.4.11'
/usr/local/lib/libjavascriptcoregtk-3.0.so: undefined reference to
`_ZNSt6chrono3_V212system_clock3nowEv at GLIBCXX_3.4.19'
/usr/local/lib/libwebkitgtk-3.0.so: undefined reference to
`_ZSt15__once_callable at GLIBCXX_3.4.11'
/usr/local/lib/libwebkitgtk-3.0.so: undefined reference to
`_ZNSt8__detail15_List_node_base7_M_hookEPS0_ at GLIBCXX_3.4.15'
/usr/local/lib/libwebkitgtk-3.0.so: undefined reference to
`_ZSt11__once_call at GLIBCXX_3.4.11'
/usr/local/lib/libwebkitgtk-3.0.so: undefined reference to
`_ZNSt18condition_variableD1Ev at GLIBCXX_3.4.11'
/usr/local/lib/libwebkitgtk-3.0.so: undefined reference to
`_ZSt20__throw_system_errori at GLIBCXX_3.4.11'
/usr/local/lib/libwebkitgtk-3.0.so: undefined reference to
`_ZNSt18condition_variable10notify_oneEv at GLIBCXX_3.4.11'
/usr/local/lib/libwebkitgtk-3.0.so: undefined reference to
`_ZNSt18condition_variableC1Ev at GLIBCXX_3.4.11'
/usr/local/lib/libjavascriptcoregtk-3.0.so: undefined reference to
`_ZNSt18condition_variable10notify_allEv at GLIBCXX_3.4.11'
/usr/local/lib/libwebkitgtk-3.0.so: undefined reference to
`_ZNSt6chrono3_V212steady_clock3nowEv at GLIBCXX_3.4.19'
/usr/local/lib/libwebkitgtk-3.0.so: undefined reference to
`__once_proxy at GLIBCXX_3.4.11'
Makefile:672: recipe for target 'sushi-start' failed

This patch adds USES=compiler:c++11-lib, which should be a no-op if the base
compiler is clang, but should force the use of gcc and binutils from ports and
also adds -L/usr/local/lib/gcc48 to LDFLAGS.

After that change, the build still fails, but with this error:

  GISCAN   Sushi-1.0.gir
/libexec/ld-elf.so.1: /usr/lib/libstdc++.so.6: version GLIBCXX_3.4.14 required
b
y /usr/local/lib/libwebkitgtk-3.0.so.0 not found
Command
'['/wrkdirs/usr/ports/x11-fm/sushi/work/sushi-3.12.0/src/tmp-introspectj
KttWB/Sushi-1.0',
'--introspect-dump=/wrkdirs/usr/ports/x11-fm/sushi/work/sushi-
3.12.0/src/tmp-introspectjKttWB/functions.txt,/wrkdirs/usr/ports/x11-fm/sushi/wo
rk/sushi-3.12.0/src/tmp-introspectjKttWB/dump.xml']' returned non-zero exit
stat
us 1
/usr/local/share/gobject-introspection-1.0/Makefile.introspection:153: recipe
fo
r target 'Sushi-1.0.gir' failed
gmake[2]: *** [Sushi-1.0.gir] Error 1

For some reason, the linker is using libstdc++.so from base instead of version
installed by the gcc port.  Fortunately, just adding -lstdc++ to LDFLAGS fixes
this problem, so that change is also included in the patch.

I don't know if this is the best fix, but it unbreaks the build for me.

--- Comment #1 from Bugzilla Automation <bugzilla at FreeBSD.org> ---
Auto-assigned to maintainer gnome at FreeBSD.org

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list