Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined symbol: pthread_create #2

Open
wopox1337 opened this issue Nov 18, 2020 · 5 comments
Open

undefined symbol: pthread_create #2

wopox1337 opened this issue Nov 18, 2020 · 5 comments
Assignees

Comments

@wopox1337
Copy link

[AMXX] Module "cstrike/addons/amxmodx/modules/sockets_amxx_i386.so" failed to load (cstrike/addons/amxmodx/modules/sockets_amxx_i386.so: undefined symbol: pthread_create)

[AMXX] Module is not a valid library (file "cstrike/addons/amxmodx/modules/sockets_amxx_i386.so")

[AMXX] Plugin "test.amxx" failed to load: Module/Library "sockets" required for plugin. Check modules.ini.

System info:

Linux 38a4062eab23 5.4.39-linuxkit #1 SMP Fri May 8 23:03:06 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.5 LTS"
@ShootingKing-AM
Copy link
Owner

Try Latest Autobuild. Release and Debug versions are same as previously specified in readme.

@wopox1337
Copy link
Author

wopox1337 commented Nov 22, 2020

@ShootingKing-AM
v1.2 same

#include <amxmodx>
#include <sockets>

public plugin_cfg() {
    register_srvcmd("test", "test");
}

public test() {
    server_cmd("amxx modules");

    new socket = socket_create_t();
    server_print("socket:`%i`", socket);
}
L 11/22/2020 - 20:56:03: [AMXX] Module "cstrike/addons/amxmodx/modules/sockets_amxx_i386.so" failed to load (cstrike/addons/amxmodx/modules/sockets_amxx_i386.so: undefined symbol: _ZdlPvj)
L 11/22/2020 - 20:56:03: Error:
L 11/22/2020 - 20:56:03: [AMXX] Module is not a valid library (file "cstrike/addons/amxmodx/modules/sockets_amxx_i386.so")
L 11/22/2020 - 20:56:03: [AMXX] Plugin "test_sockets.amxx" failed to load: Module/Library "sockets" required for plugin.  Check modules.ini.
L 11/22/2020 - 21:05:02: [AMXX] Module "cstrike/addons/amxmodx/modules/sockets_amxx_i386.so" failed to load (cstrike/addons/amxmodx/modules/sockets_amxx_i386.so: undefined symbol: pthread_join)
L 11/22/2020 - 21:05:02: Error:
L 11/22/2020 - 21:05:02: [AMXX] Module is not a valid library (file "cstrike/addons/amxmodx/modules/sockets_amxx_i386.so")
 [ 8] unknown                 unknown     unknown              bad load  
> version
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.8.0.702-dev
Build date: 18:22:55 Nov  8 2020 (2402)
Build from: https://github.com/dreamstalker/rehlds/commit/543728d

> game version
ReGameDLL version: 5.18.0.475-dev
Build date: 18:01:28 Oct 26 2020
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/b0d0ffe

> meta version
Metamod-r v1.3.0.128, API (5:13)
Metamod-r build: 17:47:54 Aug 24 2018
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/0cf2f70

> amxx version
AMX Mod X 1.9.0.5271 (http://www.amxmodx.org)
Authors:
        David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko
        Felix "SniperBeamer" Geyer, Jonny "Got His Gun" Bergstrom
        Lukasz "SidLuke" Wlasinski, Christian "Basic-Master" Hammacher
        Borja "faluco" Ferrer, Scott "DS" Ehlert
Compiled: Jun 24 2020 13:53:30
Built from: https://github.com/alliedmodders/amxmodx/commit/5eea3e5
Build ID: 5271:5eea3e5
Core mode: JIT+ASM32

Startline added:

 +localinfo mm_debug 42 -condebug +log on

When tried any versions from you:

ldd sockets_amxx_i386.so 
        linux-gate.so.1 (0xf7ee1000)
        libc.so.6 => /lib32/libc.so.6 (0xf7c80000)
        libdl.so.2 => /lib32/libdl.so.2 (0xf7c7b000)
        libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7c5d000)
        /lib/ld-linux.so.2 (0xf7ee2000)

But when compiled from my friend - works fine for me: (download: sockets_amxx_i386.so.zip)

> ldd sockets_amxx_i386.so
        linux-gate.so.1 (0xf7fa2000)
        libpthread.so.0 => /lib32/libpthread.so.0 (0xf7efb000)
        libc.so.6 => /lib32/libc.so.6 (0xf7d22000)
        libdl.so.2 => /lib32/libdl.so.2 (0xf7d1d000)
        libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7cff000)
        /lib/ld-linux.so.2 (0xf7fa3000)
[ 6] ThreadedSockets         1.8.2-dev   Shooting King        running

ShootingKing-AM added a commit that referenced this issue Nov 23, 2020
@ShootingKing-AM
Copy link
Owner

Maybe you can ask your what your friend did and make a pull request ?
I don't think there is anything for me to fix. The newer versions of gcc seem not compatible with amxmodx anymore.

@ShootingKing-AM
Copy link
Owner

@2020karaulov2020 Can you furnish the same details as above about your setup(os, amxx, meta, etc etc..) and which module build are you using ?

@ghost
Copy link

ghost commented Nov 2, 2022

same error as wopox, i used latest binaries ThreadedSockets-v1.2_3

it works locally on windows. but linux fails

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@ShootingKing-AM @wopox1337 and others