From f88e7c60816883bdde8dfc342a84a81791a232b1 Mon Sep 17 00:00:00 2001 From: Felix Janda Date: Sun, 2 Aug 2020 17:42:47 -0400 Subject: [PATCH] Fix compilation with gcc-10 Fixes the errors x86_64-pc-linux-gnu-ld: hooks.o:(.bss+0x0): multiple definition of `erb_module'; core.o:(.bss+0x0): first defined here x86_64-pc-linux-gnu-ld: ruby.o:(.bss+0x0): multiple definition of `erb_module'; core.o:(.bss+0x0): first defined here Bug: https://bugs.gentoo.org/730658 --- src/scripting/ruby/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/ruby/core.h b/src/scripting/ruby/core.h index f75745d9..74b66cd9 100644 --- a/src/scripting/ruby/core.h +++ b/src/scripting/ruby/core.h @@ -21,7 +21,7 @@ struct session; #define RB_ERRINFO (ruby_errinfo) #endif -VALUE erb_module; +extern VALUE erb_module; void alert_ruby_error(struct session *ses, unsigned char *msg); void erb_report_error(struct session *ses, int state);