mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
884ebdc49c
Example of such toolchain is clang-12: $ nix-build -E 'with import ./. { }; gdome2.override { stdenv = clang12Stdenv; }' ... libgdome/xpath/gdome-xpath-xpnsresolv.c:33: multiple definition of `gdome_xpath_xpnsresolv_vtab'; gdome-xpath.lo:libgdome/xpath/gdome-xpath-xpnsresolv.h:45: first defined here
12 lines
654 B
Diff
12 lines
654 B
Diff
On gcc-10 -fno-common is the default which forbids miltiple definitions.
|
|
--- a/libgdome/xpath/gdome-xpath-xpnsresolv.h
|
|
+++ b/libgdome/xpath/gdome-xpath-xpnsresolv.h
|
|
@@ -42,6 +42,6 @@ void gdome_xpath_xpnsresolv_ref (GdomeXPathNSResolver *self, GdomeException *exc
|
|
void gdome_xpath_xpnsresolv_unref (GdomeXPathNSResolver *self, GdomeException *exc);
|
|
GdomeDOMString * gdome_xpath_xpnsresolv_lookupNamespaceURI( GdomeXPathNSResolver *self, GdomeDOMString *prefix, GdomeException *exc);
|
|
|
|
-const GdomeXPathNSResolverVtab gdome_xpath_xpnsresolv_vtab;
|
|
+extern const GdomeXPathNSResolverVtab gdome_xpath_xpnsresolv_vtab;
|
|
|
|
#endif /* GDOME_XPNSRESOLV_FILE */
|