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

[EXTENSION] cURL & Hash


Post New Thread Reply   
 
Thread Tools Display Modes
versatile_bfg
Veteran Member
Join Date: Feb 2012
Old 01-21-2015 , 21:22   Re: [EXTENSION] cURL & Hash
Reply With Quote #121

Quote:
Originally Posted by ayanami.dev View Post
Oh, sorry... Is there any solution without using a -dev versions of sourcemod? Or it's safe?
If you stick to the stable branch it should be fine/safe. At the moment 1.6 branch is the stable one. [When 1.7 is released it will be the stable branch]
__________________
versatile_bfg is offline
JoB2C
AlliedModders Donor
Join Date: Jan 2014
Location: France
Old 02-25-2015 , 10:15   Re: [EXTENSION] cURL & Hash
Reply With Quote #122

Sourcemod 1.6.4-dev+4624 reports:

Quote:
undefined symbol: _ZNSs9_M_mutateEjjj
ldd was reporting the same, so I installed g++-multilib.

Now "ldd -d -r curl.ext.so" reports 0 undefined symbol:

Quote:
linux-gate.so.1 => (0xf77a6000)
librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xf757d000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf7578000)
libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf748e000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf72df000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf72c3000)
/lib/ld-linux.so.2 (0xf77a7000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf727d000)
libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf7260000)
But Sourcemod won't load the extension. I tried the multiple versions I found here, I also recompiled from Bara's source, but nothing worked.

Any help?

Last edited by JoB2C; 02-25-2015 at 10:19.
JoB2C is offline
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 02-25-2015 , 10:21   Re: [EXTENSION] cURL & Hash
Reply With Quote #123

Which game?
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.
Bara is offline
JoB2C
AlliedModders Donor
Join Date: Jan 2014
Location: France
Old 02-25-2015 , 10:25   Re: [EXTENSION] cURL & Hash
Reply With Quote #124

CS:GO.

Replacing the libstdc++.so.6 file located at <root>/bin does the trick, but isn't there something cleaner?

Edit: and, could it be overriden by SteamCMD?

Last edited by JoB2C; 02-25-2015 at 12:06.
JoB2C is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 02-25-2015 , 18:27   Re: [EXTENSION] cURL & Hash
Reply With Quote #125

Quote:
Originally Posted by JoB2C View Post
but isn't there something cleaner?
Yes, compile it against Valve's libstdc++.so.6.
__________________
asherkin is offline
JoB2C
AlliedModders Donor
Join Date: Jan 2014
Location: France
Old 02-25-2015 , 18:29   Re: [EXTENSION] cURL & Hash
Reply With Quote #126

Thanks, I'll do that!
JoB2C is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 03-10-2015 , 10:21   Re: [EXTENSION] cURL & Hash
Reply With Quote #127

Does anyone have a sourcemod 1.7+ compliant include?

This is what I'm getting when trying to compile with SM 1.7:
Code:
SourcePawn Compiler 1.7.0
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2014 AlliedModders LLC

C:\Sourcemod\TnTSCS\scripting\sample.sp(108) : error 178: cannot coerce char[] to any[]; storage classes differ
C:\Sourcemod\TnTSCS\scripting\sample.sp(111) : error 178: cannot coerce char[] to any[]; storage classes differ
The lines referenced are:
PHP Code:
    Handle curl curl_easy_init();
    
    
curl_easy_setopt_string(curlCURLOPT_URL"https://test.test.com"); // LINE 108
    
curl_easy_setopt_int(curlCURLOPT_SSL_VERIFYPEER0);
    
curl_easy_setopt_int(curlCURLOPT_SSL_VERIFYHOST2);
    
curl_easy_setopt_string(curlCURLOPT_POSTFIELDS"test_message"); // LINE 111
    
curl_easy_perform_thread(curlOnComplete); 
...:: TnT Edit ::...
Bah - same error as posted here.

Last edited by TnTSCS; 03-10-2015 at 10:22.
TnTSCS is offline
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 03-10-2015 , 10:28   Re: [EXTENSION] cURL & Hash
Reply With Quote #128

Try this.
(Untested)

SPEdit Output
Attached Files
File Type: inc cURL.inc (19.3 KB, 856 views)
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.

Last edited by Bara; 03-10-2015 at 10:29.
Bara is offline
Fastmancz
Senior Member
Join Date: Jul 2013
Location: Czech Republic
Old 03-16-2015 , 10:17   Re: [EXTENSION] cURL & Hash
Reply With Quote #129

Hi,

I have big problem. I have SM version 1.7.1 - 5165 and cURL Extension loaded, but when I connect on server, server crash.

Where is problem?
Thanks for reply.
Fastmancz is offline
IloveMusic
Junior Member
Join Date: Nov 2014
Old 03-18-2015 , 11:05   Re: [EXTENSION] cURL & Hash
Reply With Quote #130

Curl extension hates me. I can't post data to any secure website ( "https" ). It just returns nothing.
I tried this.
PHP Code:
CURL_DEFAULT_OPT(curl);

curl_post curl_httppost();
curl_formadd(curl_postCURLFORM_COPYNAME"game_time"CURLFORM_COPYCONTENTSunixstampCURLFORM_END);
curl_easy_setopt_handle(curlCURLOPT_HTTPPOSTcurl_post);

curl_easy_setopt_int(curlCURLOPT_SSL_VERIFYPEER0);
curl_easy_setopt_int(curlCURLOPT_SSL_VERIFYHOST0);

curl_easy_setopt_string(curlCURLOPT_URL"https://google.com");
ExecCURL(curlcurrent_test); 

Last edited by IloveMusic; 03-18-2015 at 11:07.
IloveMusic 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 00:15.


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