Results 1 to 6 of 6

Thread: Undefined symbol?

  1. #1
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts

    Undefined symbol?

    OS: Ubuntu-14.04-x86_64
    CoD 1.0
    i compile last version libcod from github Mitch, if i run server got error:
    Code:
    ./server_start: symbol lookup error: /games/cod/2_1.0/libcod.so: undefined symbol: gsc_mysql_init

  2. #2
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    did you compile it for 1.0?
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  3. #3
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,010
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Maybe needs "./doit.sh base" again (guessing that MySQL was enabled in config.h when the base was compiled, but then disabled or so)

    Also try ./doit.sh clean
    timescale 0.01

  4. #4
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    i corrected, new error:
    Code:
    host-id132@unknown-domen:~/games/cod/2/libcod# ./doit.sh cod2_1_0
    ##### COMPILE cod2_1_0 LIBCOD.CPP #####
    ##### COMPILE cod2_1_0 GSC.CPP #####
    gsc.cpp: In function ‘int cdecl_injected_closer()’:
    gsc.cpp:1819:3: warning: typedef ‘aSearchPath’ locally defined but not used [-Wunused-local-typedefs]
     } aSearchPath;
       ^
    ##### COMPILE cod2_1_0 GSC_PLAYER.CPP #####
    ##### COMPILE cod2_1_0 GSC_UTILS.CPP #####
    ##### LINK libcod2_1_0.so #####
    /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libdl.so when searching for -ldl
    /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libdl.a when searching for -ldl
    /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libmysqlclient.so when searching for -lmysqlclient
    /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libmysqlclient.a when searching for -lmysqlclient
    /usr/bin/ld: cannot find -lmysqlclient
    /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libpthread.so when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libpthread.a when searching for -lpthread
    collect2: error: ld returned 1 exit status
    Last edited by maxdamage99; 1st January 2016 at 20:47.

  5. #5
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by maxdamage99 View Post
    i corrected, new error:
    Code:
    host-id132@unknown-domen:~/games/cod/2/libcod# ./doit.sh cod2_1_0
    ##### COMPILE cod2_1_0 LIBCOD.CPP #####
    ##### COMPILE cod2_1_0 GSC.CPP #####
    gsc.cpp: In function ‘int cdecl_injected_closer()’:
    gsc.cpp:1819:3: warning: typedef ‘aSearchPath’ locally defined but not used [-Wunused-local-typedefs]
     } aSearchPath;
       ^
    ##### COMPILE cod2_1_0 GSC_PLAYER.CPP #####
    ##### COMPILE cod2_1_0 GSC_UTILS.CPP #####
    ##### LINK libcod2_1_0.so #####
    /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libdl.so when searching for -ldl
    /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libdl.a when searching for -ldl
    /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libmysqlclient.so when searching for -lmysqlclient
    /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libmysqlclient.a when searching for -lmysqlclient
    /usr/bin/ld: cannot find -lmysqlclient
    /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libpthread.so when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libpthread.a when searching for -lpthread
    collect2: error: ld returned 1 exit status
    Your lib mysql client is 64-bit (x86_64) but it needs to be 32-bit.

  6. #6
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Which would be installed if you followed the github's instructions:
    Code:
    apt-get install libmysqlclient-dev:i386
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  7. The Following User Says Thank You to IzNoGoD For This Useful Post:

    maxdamage99 (2nd January 2016)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •