Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Jun 2017 04:52:49 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 219813] wxgtk30 fatal error with ports built with gcc
Message-ID:  <bug-219813-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219813

            Bug ID: 219813
           Summary: wxgtk30 fatal error with ports built with gcc
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: xxjack12xx@gmail.com

ports built with gcc instead of clang will fail to start with a fatal error:

Fatal Error: Mismatch between the program and library build versions detect=
ed.
The library used 3.0 (wchar_t,compiler with C++ ABI 1002,wx
containers,compatible with 2.6,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1009,wx
containers,compatible with 2.6,compatible with 2.8).
Abort (core dumped)

This patch changes the fatal error to a warning to allow the programs to st=
ill
function.

root@upstairs:/usr/ports/x11-toolkits/wxgtk30 # svn diff
Index: files/patch-src-common-appbase.cpp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- files/patch-src-common-appbase.cpp  (nonexistent)
+++ files/patch-src-common-appbase.cpp  (working copy)
@@ -0,0 +1,15 @@
+--- src/common/appbase.cpp.orig        2014-10-06 14:33:44.000000000 -0700
++++ src/common/appbase.cpp     2017-06-05 21:16:18.988544000 -0700
+@@ -762,10 +762,10 @@
+         msg.Printf(wxT("Mismatch between the program and library build
versions detected.\nThe library used %s,\nand %s used %s."),
+                    lib.c_str(), progName.c_str(), prog.c_str());
+=20
+-        wxLogFatalError(msg.c_str());
++        wxLogWarning(msg.c_str());
+=20
+         // normally wxLogFatalError doesn't return
+-        return false;
++        //return false;
+     }
+=20
+     return true;

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-219813-13>