View Single Post
psychonic

BAFFLED
Join Date: May 2008
Old 10-28-2015 , 21:53   Re: Metamod on Insurgency beta server
Reply With Quote #16

Quote:
Originally Posted by BCG View Post
So I ran strace to see what was going on. Here is something that caught my eye:

(~'s for privacy's sake)

Code:
getcwd("~/srcds/insurgency", 1024) = 31
open("~/srcds/insurgency/bin/GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
getcwd("~/srcds/insurgency", 1024) = 31
open("~/srcds/insurgency/bin/GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
getcwd("~/srcds/insurgency", 1024) = 31
open("~/srcds/insurgency/bin/GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
getcwd("~/srcds/insurgency", 1024) = 31
open("~/srcds/insurgency/bin/GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
getcwd("~/srcds/insurgency", 1024) = 31
open("~/srcds/insurgency/bin/GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("~/srcds/insurgency/insurgency/addons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("~/srcds/insurgency/platform/addons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("~/srcds/insurgency/insurgency/download/addons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
getcwd("~/srcds/insurgency", 1024) = 31
open("~/srcds/insurgency/bin/addons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("addons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
write(1, "Unable to load plugin \"addons/me"..., 50) = 50
GAMEaddons? server_srv.so? Neither are outputs of Metamod compilation. Something funny is going on here.

I went into Metamod's bin folder and symlinked server_srv.so to server.so. After that, another strace shows this:

Code:
open("~/srcds/insurgency/insurgency/addons/metamod/bin/servmetamod.2.insurgency.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("~/srcds/insurgency/insurgency/addons/metamod/bin/servmetamod-fatal.log", O_WRONLY|O_CREAT|O_APPEND, 0666) = 10
fstat64(10, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xffffffffb776c000
fstat64(10, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
_llseek(10, 0, [0], SEEK_SET)           = 0
time(NULL)                              = 1446074249
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
write(10, "L 10/28/2015 - 19:17:29: Detecte"..., 212) = 212
close(10)                               = 0
munmap(0xb776c000, 4096)                = 0
write(1, "Failed to load plugin \"addons/me"..., 50) = 50
Two things of note: servmetamod.2.insurgency.so, and servmetamod-fatal.log. That "serv" prefix is suspicious.

Symlinking servmetamod.2.insurgency.so to metamod.2.insurgency.so doesn't have any effect. Metamod still fails to load. Here is the (complete) contents of the servmetamod-fatal.log:

Code:
L 10/28/2015 - 19:12:52: Detected engine 19 but could not load: ~/srcds/insurgency/insurgency/addons/metamod/bin/servmetamod.2.insurgency.so: undefined symbol: KeyValuesSystem
https://bugs.alliedmods.net/show_bug.cgi?id=6428
psychonic is offline