Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 41

Thread: Help me pls)))

  1. #11
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    Error:
    ----
    ./doit.sh base ///
    -----
    ##### COMPILE GSC_ASTAR.CPP #####
    In file included from /usr/include/features.h:385,
    from /usr/include/stdio.h:28,
    from gsc_astar.hpp:9,
    from gsc_astar.cpp:1:
    /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
    ##### COMPILE GSC_MYSQL.CPP #####
    In file included from /usr/include/features.h:385,
    from /usr/include/stdio.h:28,
    from gsc_mysql.hpp:9,
    from gsc_mysql.cpp:1:
    /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
    gsc_mysql.cpp: In function ‘void* mysql_async_query_handler(void*)’:
    gsc_mysql.cpp:96: error: return-statement with no value, in function returning ‘void*’
    gsc_mysql.cpp:104: error: return-statement with no value, in function returning ‘void*’
    gsc_mysql.cpp: In function ‘void gsc_mysql_async_initializer()’:
    gsc_mysql.cpp:312: error: return-statement with a value, in function returning 'void'
    ##### COMPILE SERVER.C #####
    In file included from /usr/include/features.h:385,
    from /usr/include/stdio.h:28,
    from server.hpp:9,
    from server.c:1:
    /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
    ##### COMPILE GSC_MEMORY.CPP #####
    In file included from /usr/include/features.h:385,
    from /usr/include/stdio.h:28,
    from gsc_memory.hpp:9,
    from gsc_memory.cpp:1:
    /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
    ##### COMPILE cracking.CPP #####
    In file included from /usr/include/features.h:385,
    from /usr/include/string.h:27,
    from cracking.hpp:8,
    from cracking.cpp:1:
    /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
    ##### COMPILE GSC_MATH.CPP #####
    In file included from /usr/include/features.h:385,
    from /usr/include/stdio.h:28,
    from gsc_math.hpp:9,
    from gsc_math.cpp:1:
    /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
    ##### COMPILE JAVA_EMBED.C #####
    Ignore java_embed.c, because java_enable==false (e.g. because the dir $java_jdk=/root/helper/openjdk8 does not exist)
    ------
    ./doit.sh cod2_1_0 ////
    -----------
    ##### COMPILE cod2_1_0 LIBCOD.CPP #####
    In file included from /usr/include/features.h:385,
    from /usr/include/stdio.h:28,
    from libcod.cpp:1:
    /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
    ##### COMPILE cod2_1_0 GSC.CPP #####
    In file included from /usr/include/features.h:385,
    from /usr/include/stdio.h:28,
    from gsc.hpp:37,
    from gsc.cpp:1:
    /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
    ##### COMPILE cod2_1_0 GSC_PLAYER.CPP #####
    In file included from /usr/include/features.h:385,
    from /usr/include/stdio.h:28,
    from gsc_player.hpp:9,
    from gsc_player.cpp:1:
    /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
    ##### COMPILE cod2_1_0 GSC_UTILS.CPP #####
    In file included from /usr/include/features.h:385,
    from /usr/include/stdio.h:28,
    from gsc_utils.hpp:9,
    from gsc_utils.cpp:1:
    /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
    ##### LINK libcod2_1_0.so #####
    ls: cannot access objects_normal/*.opp: No such file or directory
    ls: cannot access objects_cod2_1_0/*.opp: No such file or directory
    /usr/bin/ld: crti.o: No such file: No such file or directory
    collect2: ld returned 1 exit status
    I make install yum groupinstall "Development Tools"

  2. #12
    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
    error: gnu/stubs-32.h: No such file or directory
    yum install glibc-devel.i686 glibc-devel (equal to g++-multilib on Debian/Ubuntu)

    http://www.cyberciti.biz/faq/x86_64-...-and-solution/

    Code:
    gsc_mysql.cpp:96: error: return-statement with no value, in function returning ‘void*’
    gsc_mysql.cpp:104: error: return-statement with no value, in function returning ‘void*’
    gsc_mysql.cpp:312: error: return-statement with a value, in function returning 'void'
    96: change 'return' to 'return NULL'
    104: change 'return' to 'return NULL'
    312: change 'return NULL' to 'return'
    Last edited by Mitch; 29th October 2014 at 21:24.

  3. The Following 2 Users Say Thank You to Mitch For This Useful Post:

    kung foo man (30th October 2014),maxdamage99 (30th October 2014)

  4. #13
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    ./doit.sh base
    =======================

    ##### COMPILE GSC_ASTAR.CPP #####
    ##### COMPILE GSC_MYSQL.CPP #####
    gsc_mysql.cpp: In function ‘void* mysql_async_query_handler(void*)’:
    gsc_mysql.cpp:96: error: return-statement with no value, in function returning ‘void*’
    gsc_mysql.cpp:104: error: return-statement with no value, in function returning ‘void*’
    gsc_mysql.cpp: In function ‘void gsc_mysql_async_initializer()’:
    gsc_mysql.cpp:312: error: return-statement with a value, in function returning 'void'
    ##### COMPILE SERVER.C #####
    ##### COMPILE GSC_MEMORY.CPP #####
    ##### COMPILE cracking.CPP #####
    ##### COMPILE GSC_MATH.CPP #####
    ##### COMPILE JAVA_EMBED.C #####
    Ignore java_embed.c, because java_enable==false (e.g. because the dir $java_jdk=/root/helper/openjdk8 does not exist)
    --------------------------------//////////////////---------------------------
    ./doit.sh cod2_1_0
    ===================================
    ##### COMPILE cod2_1_0 LIBCOD.CPP #####
    ##### COMPILE cod2_1_0 GSC.CPP #####
    ##### COMPILE cod2_1_0 GSC_PLAYER.CPP #####
    ##### COMPILE cod2_1_0 GSC_UTILS.CPP #####
    ##### LINK libcod2_1_0.so #####
    /usr/bin/ld: cannot find -lmysqlclient
    collect2: ld returned 1 exit status
    Apparently something is wrong!?

  5. #14
    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
    ##### COMPILE GSC_MYSQL.CPP #####
    gsc_mysql.cpp: In function ‘void* mysql_async_query_handler(void*)’:
    gsc_mysql.cpp:96: error: return-statement with no value, in function returning ‘void*’
    gsc_mysql.cpp:104: error: return-statement with no value, in function returning ‘void*’
    gsc_mysql.cpp: In function ‘void gsc_mysql_async_initializer()’:
    gsc_mysql.cpp:312: error: return-statement with a value, in function returning 'void'
    ##### LINK libcod2_1_0.so #####
    /usr/bin/ld: cannot find -lmysqlclient
    collect2: ld returned 1 exit status
    Apparently something is wrong!?
    For mysqlclient

    Quote Originally Posted by Mitch View Post
    I think you will need 'mysql-devel.i386' or 'mysql-devel.i686' for mysql support in libcod. (CentOS is linux, yum install ...)
    Also have you edited gsc_mysql.cpp according to http://killtube.org/showthread.php?2...ll=1#post10679

  6. The Following User Says Thank You to Mitch For This Useful Post:

    maxdamage99 (30th October 2014)

  7. #15
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    Mitch, I do not understand, please tell what I need to fix, due to the fact that we all speak different languages​​, I have to Use the translater
    Last edited by maxdamage99; 30th October 2014 at 12:21.

  8. #16
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Where are you from? Maybe there is some native speaker here

  9. #17
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    Я русский/i from russia

  10. #18
    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
    Mitch, I do not understand, please tell what I need to fix, due to the fact that we all speak different languages​​, I have to Use the translater
    yum install mysql-devel.i686 (for: /usr/bin/ld: cannot find -lmysqlclient)

    nano gsc_mysql.cpp (or vi)
    line 96: 'return' >> 'return NULL'
    line 104: 'return' >> 'return NULL'
    line 312: 'return NULL' >> 'return'

  11. #19
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    Mitch, I need to go to the directory libcod/bin and then install, as I understand?
    p.s: Please do me a user manual execution in subparagraphs
    Last edited by maxdamage99; 30th October 2014 at 14:38.

  12. #20
    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
    Mitch, I need to go to the directory libcod/bin and then install, as I understand?
    p.s: Please do me a user manual execution in subparagraphs
    When you got your binary then copy it to your library directory that you use for your cod2 server.

    Example
    Your game directory: /home/user/server1/
    Your library directory: /home/user/gamefiles/libs
    cp /path/to/libcod/bin/*.so /home/user/gamefiles/libs/

    Your start up line must now start with:
    PHP Code:
    LD_PRELOAD="/home/user/gamefiles/libs/libcod_[version].so" ./cod2_lnxded +set dedicated "2" 

  13. The Following User Says Thank You to Mitch For This Useful Post:

    maxdamage99 (30th October 2014)

Posting Permissions

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