Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#4 Error Compiling TORCS 1.2.3

closed
nobody
None
7
2014-02-18
2005-03-13
Gcclinux
No

I am trying to compile TORCS 1.2.3 game as I create rpm
files for JDS Linux and I want to create a RPM file for
this game, unfortunatelly and I am getting a error, has
anyone got any ideas?

Many Thanks

make[4]: Leaving directory
/tmp/torcs-1.2.3/src/libs/learning' make[3]: Leaving directory/tmp/torcs-1.2.3/src/libs'
make[3]: Entering directory /tmp/torcs-1.2.3/src/linux' gcc -E -M -D__DEPEND__ -I/tmp/torcs-1.2.3/export/include -I/tmp/torcs-1.2.3 -D_SVID_SOURCE -D_BSD_SOURCE -DSHM -DHAVE_CONFIG_H main.cpp linuxspec.cpp > .depend g++ -I/tmp/torcs-1.2.3/export/include -I/tmp/torcs-1.2.3 -g -O2 -Wall -fPIC -O2 -DUSE_RANDR_EXT -Wall -fPIC -O2 -DUSE_RANDR_EXT -D_SVID_SOURCE -D_BSD_SOURCE -DSHM -DHAVE_CONFIG_H -c main.cpp main.cpp: In functionint main(int, char)':
main.cpp:113: warning: unused variable
DiscretePolicy*dummy' g++ -I/tmp/torcs-1.2.3/export/include -I/tmp/torcs-1.2.3 -g -O2 -Wall -fPIC -O2 -DUSE_RANDR_EXT -Wall -fPIC -O2 -DUSE_RANDR_EXT -D_SVID_SOURCE -D_BSD_SOURCE -DSHM -DHAVE_CONFIG_H -c linuxspec.cppg++ main.o linuxspec.o -L/tmp/torcs-1.2.3/export/lib -L/usr/X11R6/lib -L/usr/lib -lracescreens -lrobottools -lclient -lconfscreens -ltgf -ltgfclient -ltxml -lplibul -lraceengine -llearning -lplibssgaux -lplibssg -lplibsm -lplibsl -lplibsg -lplibul -lglut -lGLU -lGL -lpng -lz -ldl -lXrandr -lXrender -lXxf86vm -lXmu -lXi -lXt -lSM -lICE -lXext -lX11 -lm -o torcs-bin /tmp/torcs-1.2.3/export/lib/libclient.so: undefined reference to__ctype_b'
/tmp/torcs-1.2.3/export/lib/libclient.so: undefined
reference to __ctype_toupper' /tmp/torcs-1.2.3/export/lib/libclient.so: undefined reference to__ctype_tolower'
collect2: ld returned 1 exit status
make[3]:
[torcs-bin] Error 1
make[3]: Leaving directory /tmp/torcs-1.2.3/src/linux' make[2]: *** [subdirs] Error 1 make[2]: Leaving directory/tmp/torcs-1.2.3/src'
make[1]:
[subdirs] Error 1
make[1]: Leaving directory `/tmp/torcs-1.2.3'
make: * [restart] Error 2
system1:/tmp/torcs-1.2.3 #

If anyone know what this problem is, please send me a
email at ricardo @ gcclinux.com

Many thanks

RIcardo

Discussion

  • Gcclinux
    Gcclinux
    2005-03-13

    Logged In: YES
    user_id=873470

    Am I missing a dependency? I think I covered it all.

    system1:/dsk/1/DEVEL-RPM # rpm -aq | grep -i mesa
    XFree86-Mesa-4.3.99.902-43.22
    XFree86-Mesa-devel-4.3.99.902-43.22
    system1:/dsk/1/DEVEL-RPM # rpm -aq | grep -i glut
    freeglut-2.2.0-81.1
    freeglut-devel-2.2.0-81.1
    system1:/dsk/1/DEVEL-RPM # rpm -aq | grep -i plib
    plib-1.8.3-1
    ldapcpplib-0.0.3-21.3
    system1:/dsk/1/DEVEL-RPM # rpm -aq | grep -i libpng
    libpng-devel-1.2.5-182.4
    libpng-1.2.5-182.4
    system1:/dsk/1/DEVEL-RPM # rpm -aq | grep -i zlib
    zlib-1.2.1-70.1
    perl-Compress-Zlib-1.33-30.1
    zlib-devel-1.2.1-70.1

    Many Thanks

     
  • Logged In: YES
    user_id=318462

    Do you have ctype.h, usually in /usr/include, it should
    define the missing symbols?

     
  • Gcclinux
    Gcclinux
    2005-03-14

    Logged In: YES
    user_id=873470

    Hello,

    Thank you for your help. I have found that file in
    /usr/include/ctype.h but I am not sure what I have to do
    with it.

    How do I define missing synbols in that file?

    Many Thanks

     
  • Logged In: YES
    user_id=318462

    Uh, do not alter the file... if its there, then there is
    something wrong with the libraries or linkage:-) I guess
    there is something wrong with your
    distribution/installation, ask somebody of your
    distributions community for help, please report your
    findings here.

     
  • Gcclinux
    Gcclinux
    2005-03-14

    Logged In: YES
    user_id=873470

    I have glibc-devel-2.3.3-98.28 installed, from JDS Linux
    {Suse SLE}, could you send me a copy of your ctype.h file so
    that I can compare.

    Many Thanks

    Ricardo W.

     
  • Gcclinux
    Gcclinux
    2005-03-14

    Logged In: YES
    user_id=873470

    I have compared the file provided my Bernhard via file and
    both ctype.h files are identical.
    Any other suggestion would be appreciated.

    Ricardo

     
  • Gcclinux
    Gcclinux
    2005-03-15

    Logged In: YES
    user_id=873470

    Any help from the developers will be great. I provide you
    with the rpm after if you wish me too.

    Many Thanks