Raised This Month: $32 Target: $400
 8% 

cstrike.so undefined symbols


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 07-31-2018 , 22:08   cstrike.so undefined symbols
Reply With Quote #1

Code:
@sabertooth-lnx:~/Downloads/alliedmodders/sourcemod/build$ python ../configure.py --sdks csgo
Checking CC compiler (vendor test gcc)... ['cc', 'test.c', '-o', 'test']
found gcc version 5.4
Checking CXX compiler (vendor test gcc)... ['c++', 'test.cpp', '-o', 'testp']
found gcc version 5.4
@sabertooth-lnx:~/Downloads/alliedmodders/sourcemod/build$ ambuild
Build succeeded.
@sabertooth-lnx:~/Downloads/alliedmodders/sourcemod/build$
Compiled sm project from sources, but cstrike ext wasn't loaded / what a hell?
Code:
[01] <FAILED> file "game.cstrike.ext.2.csgo.so": /home/~/CLASSIC/csgo/addons/sourcemod/extensions/game.cstrike.ext.2.csgo.so: undefined symbol: Warning
p.s. at last this fkng problem happens only after latest updates. Normally works cstrike of 1.8 version only, but 1.8 hasn't full compatibility with sm1.10 core, some native calls crush the server

Last edited by ZASTRELIS; 07-31-2018 at 22:18.
ZASTRELIS is offline
psychonic

BAFFLED
Join Date: May 2008
Old 08-01-2018 , 13:27   Re: cstrike.so undefined symbols
Reply With Quote #2

There is a bug with GCC in the linking of tier0 and vstdlib. Compiling with Clang (as the official builds do) is the workaround. You can do that by setting the CC and CXX env vars when running configure.py.
psychonic is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 08-01-2018 , 19:10   Re: cstrike.so undefined symbols
Reply With Quote #3

If you insist on GCC, you can update to 6.4. As psychonic said clang is preferred, but gcc 6.4 should also work just fine (especially on master).

Last edited by headline; 08-01-2018 at 19:13.
headline is offline
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 08-02-2018 , 10:33   Re: cstrike.so undefined symbols
Reply With Quote #4

Quote:
Quote:
Originally Posted by Headline View Post
If you insist on GCC, you can update to 6.4. As psychonic said clang is preferred, but gcc 6.4 should also work just fine (especially on master).
Quote:
Originally Posted by psychonic View Post
There is a bug with GCC in the linking of tier0 and vstdlib. Compiling with Clang (as the official builds do) is the workaround. You can do that by setting the CC and CXX env vars when running configure.py.

Solved, thanks a lot. Like you)

Quote:
System wide C++ change on Ubuntu:

Code:
sudo apt-get install clang
sudo update-alternatives --config c++
Will print something like this:

Code:
  Selection    Path              Priority   Status
------------------------------------------------------------
* 0            /usr/bin/g++       20        auto mode
  1            /usr/bin/clang++   10        manual mode
  2            /usr/bin/g++       20        manual mode
Then just select clang++.
Spoiler

Last edited by ZASTRELIS; 08-02-2018 at 10:36.
ZASTRELIS is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode