Raised This Month: $51 Target: $400
 12% 

Extension compiling using MetaMod - unknown symbol?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KillMan
Member
Join Date: Aug 2017
Location: Belarus
Old 06-11-2020 , 14:51   Extension compiling using MetaMod - unknown symbol?
Reply With Quote #1

Hey everyone! I got a real problem while trying to compile an extension. Its ok to compile it with SourceMod included. But if i include MetaMod by uncommenting a define: sm exts load ... => unknown symbol Warning
Lul? What the hell? 🤔
KillMan is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 06-11-2020 , 17:55   Re: Extension compiling using MetaMod - unknown symbol?
Reply With Quote #2

How can you expect anyone to answer that with so little information?
__________________
Spirit_12 is offline
KillMan
Member
Join Date: Aug 2017
Location: Belarus
Old 06-11-2020 , 18:08   Re: Extension compiling using MetaMod - unknown symbol?
Reply With Quote #3

What information do you want, lol? Including sourcemod things: extension can be loaded. Including MetaMod additionally: extension can't be loaded? 2+2=9?
KillMan is offline
nosoop
Veteran Member
Join Date: Aug 2014
Old 06-11-2020 , 22:29   Re: Extension compiling using MetaMod - unknown symbol?
Reply With Quote #4

I think the misunderstanding was that the server reported this error:

Code:
Undefined symbol: Warning
IIRC that's a linker-related issue; assuming you're compiling for a Linux server, compiling with Clang instead of GCC should resolve that.
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)
nosoop is offline
KillMan
Member
Join Date: Aug 2017
Location: Belarus
Old 06-12-2020 , 00:38   Re: Extension compiling using MetaMod - unknown symbol?
Reply With Quote #5

That's it, i'll try today! Using GCC now
KillMan is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 06-12-2020 , 07:56   Re: Extension compiling using MetaMod - unknown symbol?
Reply With Quote #6

We've been trying to track down that GCC issue - what Linux distribution and GCC version are you building with?
__________________
asherkin is offline
nosoop
Veteran Member
Join Date: Aug 2014
Old 06-12-2020 , 08:42   Re: Extension compiling using MetaMod - unknown symbol?
Reply With Quote #7

I can't recall which project I tried compiling myself, but I believe gcc 5.4.0-6ubuntu1~16.04.11 is affected.
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)
nosoop is offline
KillMan
Member
Join Date: Aug 2017
Location: Belarus
Old 06-12-2020 , 16:59   Re: Extension compiling using MetaMod - unknown symbol?
Reply With Quote #8

Quote:
Originally Posted by asherkin View Post
We've been trying to track down that GCC issue - what Linux distribution and GCC version are you building with?
Compiler: gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)

Linux distr.:
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic


UPD: Switching compiler to CLang fixed a problem. Huge thanks, @nosoop!

Last edited by KillMan; 06-12-2020 at 17:18. Reason: UPD. Better Ubuntu version.
KillMan 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 07:38.


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