1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/deskutils/xneur/files/patch-lib_lib_xneur.h
Tobias Kortkamp 18b509f215 deskutils/xneur: Unbreak build with GCC 10
/usr/local/bin/ld: ../main/.libs/libxnmain.a(libxnmain_la-bind_table.o):(.bss+0x0): multiple definition of `main_window'; .libs/libxneur_la-xneurlib.o:(.bss+0x8): first defined here
/usr/local/bin/ld: ../main/.libs/libxnmain.a(libxnmain_la-buffer.o):(.bss+0x10): multiple definition of `main_window'; .libs/libxneur_la-xneurlib.o:(.bss+0x8): first defined here
/usr/local/bin/ld: ../main/.libs/libxnmain.a(libxnmain_la-event.o):(.bss+0x0): multiple definition of `main_window'; .libs/libxneur_la-xneurlib.o:(.bss+0x8): first defined here
/usr/local/bin/ld: ../main/.libs/libxnmain.a(libxnmain_la-focus.o):(.bss+0x0): multiple definition of `main_window'; .libs/libxneur_la-xneurlib.o:(.bss+0x8): first defined here
/usr/local/bin/ld: ../main/.libs/libxnmain.a(libxnmain_la-keymap.o):(.bss+0x0): multiple definition of `main_window'; .libs/libxneur_la-xneurlib.o:(.bss+0x8): first defined here
/usr/local/bin/ld: ../main/.libs/libxnmain.a(libxnmain_la-plugin.o):(.bss+0x0): multiple definition of `main_window'; .libs/libxneur_la-xneurlib.o:(.bss+0x8): first defined here
/usr/local/bin/ld: ../main/.libs/libxnmain.a(libxnmain_la-program.o):(.bss+0x8): multiple definition of `main_window'; .libs/libxneur_la-xneurlib.o:(.bss+0x8): first defined here
/usr/local/bin/ld: ../main/.libs/libxnmain.a(libxnmain_la-selection.o):(.bss+0x0): multiple definition of `main_window'; .libs/libxneur_la-xneurlib.o:(.bss+0x8): first defined here
/usr/local/bin/ld: ../main/.libs/libxnmain.a(libxnmain_la-switchlang.o):(.bss+0x0): multiple definition of `main_window'; .libs/libxneur_la-xneurlib.o:(.bss+0x8): first defined here
/usr/local/bin/ld: ../main/.libs/libxnmain.a(libxnmain_la-utils.o):(.bss+0x0): multiple definition of `main_window'; .libs/libxneur_la-xneurlib.o:(.bss+0x8): first defined here
/usr/local/bin/ld: ../main/.libs/libxnmain.a(libxnmain_la-window.o):(.bss+0x0): multiple definition of `main_window'; .libs/libxneur_la-xneurlib.o:(.bss+0x8): first defined here
/usr/local/bin/ld: ../ai/.libs/libxnai.a(libxnai_la-detection.o):(.bss+0x0): multiple definition of `main_window'; .libs/libxneur_la-xneurlib.o:(.bss+0x8): first defined here
/usr/local/bin/ld: ../notify/.libs/libxnnotify.a(libxnnotify_la-notify.o):(.bss+0x0): multiple definition of `main_window'; .libs/libxneur_la-xneurlib.o:(.bss+0x8): first defined here
/usr/local/bin/ld: ../notify/.libs/libxnnotify.a(libxnnotify_la-popup.o):(.bss+0x8): multiple definition of `main_window'; .libs/libxneur_la-xneurlib.o:(.bss+0x8): first defined here
/usr/local/bin/ld: ../notify/.libs/libxnnotify.a(libxnnotify_la-sound.o):(.bss+0x0): multiple definition of `main_window'; .libs/libxneur_la-xneurlib.o:(.bss+0x8): first defined here

http://package18.nyi.freebsd.org/data/121amd64-default-PR244494/2020-06-10_18h04m44s/logs/errors/xneur-0.20.0.log

PR:		246700
2020-06-21 16:41:58 +00:00

12 lines
224 B
C

--- lib/lib/xneur.h.orig 2020-06-21 16:29:31 UTC
+++ lib/lib/xneur.h
@@ -32,7 +32,7 @@
# include <enchant/enchant.h>
#endif
-struct _window *main_window;
+extern struct _window *main_window;
struct _xneur_language
{