I was finally able to use the stock Makefile provided by Valve under
linux_sdk and after recompiling the code I have come to the conclusion that
there must be something wrong with the code itself.
I suspect it is creating a conflict within Counter-Strike Source and Steam,
maybe with memory mapping. I am making this guess based on what I am seeing
in 'strace', specifically the following:
open("./csp11_i486.so", O_RDONLY) = 8
read(8, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\302\0"..., 512) =
512
fstat64(8, {st_mode=S_IFREG|0775, st_size=161745, ...}) = 0
getcwd("/usr/local/games/hlds_l/source", 128) = 31
old_mmap(NULL, 169740, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 8, 0)
= 0xb25b4000
old_mmap(0xb25d4000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 8, 0x20000) = 0xb25d4000
old_mmap(0xb25d5000, 34572, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb25d5000
close(8) = 0
mprotect(0xb25b4000, 131072, PROT_READ|PROT_WRITE) = 0
munmap(0xb25b4000, 169740) = 0
write(1, "Unable to load plugin \"csp11\"\n", 30) = 30
write(1, "Unable to load plugin \"csp11\"\n", 30) = 30
If you look, you can see the .so is opened, it does a read of the file,
performs an fstat64 call, then tries to perform some old_mmap calls, then
closes the file, and reports to console "Unable to load plugin".
I went back and looked through my other 'strace' runs and see the same
things going on there as well.
So, I guess I will be cracking into the code and running this with debug on
to what is happening.
Any suggestions?
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux