Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Compilation problem

Help
madbad
2006-11-09
2012-07-03
  • madbad
    madbad
    2006-11-09

    I'm trying to compile Torcs 1.3.0-test1 on my lynux box (Fedora core 5) but i get this error:

    configure: error: Can't find libm. Please check config.log and if you can't solve the problem send the file to torcs-users@lists.sourceforge.net with the subject "torcs compilation problem"

    if i type the command "locate libm*" it say that libm is found at
    /lib/libm-2.4.90.so
    /lib/libm.so.6

    So what's wrong?

    And another question: How to apply the "patch" (torcs-1.3.0-test1-to-release.diff) for definitiva 1.3.0 release?

    Sorry for my bad english and thanks!

     
    • madbad
      madbad
      2006-11-14

      All done. Many thanks for the help Bernhard!

       
    • There is a section in the FAQ about this. Short: If the X libraries are not in /usr/X11R6/lib you have to supply this parameter to configure, e.g. if your X libraries reside in /usr/lib:
      ./configure --x-libraries=/usr/lib

      The configure script shows you a wrong and misleading error message due to a flaw in configure.in. Hope this helps, bye

      Untar the test1 package, then apply the patch, like documented in the release notes:
      bzip2 -cd torcs-1.3.0-test1-to-release.diff.bz2 | patch -p0

      Bernhard.

       
    • madbad
      madbad
      2006-11-09

      First: thanks for the speedy help Bernhard!

      1) Now i've applied the patch! :)
      2) I've used the "./configure --x-libraries=/usr/lib" like you suggested and now we made some step, but now I get another error:

      checking for XOpenDisplay in -lX11... yes // Here is where it was stopping first of your help
      checking for XShmCreateImage in -lXext... yes
      checking for IceSetIOErrorHandler in -lICE... yes
      checking for SmsSetErrorHandler in -lSM... yes
      checking for XtDisplay in -lXt... yes
      checking for XOpenDevice in -lXi... no
      configure: error: Can't find libXi. Please check config.log and if you can't solve the problem send the file to torcs-users@lists.sourceforge.net with the subject "torcs compilation problem"

      And "locate libXi*" say that is always present in
      /usr/lib/libXi.so.6
      /usr/lib/libXi.so.6.0.0

      PLease be patient with me. Thanks ^^

       
    • Please post your "config.log"

       
    • madbad
      madbad
      2006-11-12

      This file contains any messages produced by compilers while
      running configure, to aid debugging if configure makes a mistake.

      It was created by configure, which was
      generated by GNU Autoconf 2.59. Invocation command line was

      $ ./configure --x-libraries=/usr/lib

      ---------

      Platform.

      ---------

      hostname = localhost.localdomain
      uname -m = i686
      uname -r = 2.6.18-1.2200.fc5
      uname -s = Linux
      uname -v = #1 Sat Oct 14 16:59:26 EDT 2006

      /usr/bin/uname -p = unknown
      /bin/uname -X = unknown

      /bin/arch = i686
      /usr/bin/arch -k = unknown
      /usr/convex/getsysinfo = unknown
      hostinfo = unknown
      /bin/machine = unknown
      /usr/bin/oslevel = unknown
      /bin/universe = unknown

      PATH: /usr/kerberos/bin
      PATH: /usr/java/jre1.5.0_09/bin
      PATH: /usr/local/bin
      PATH: /usr/bin
      PATH: /bin
      PATH: /usr/X11R6/bin

      -----------

      Core tests.

      -----------

      configure:1368: checking for a BSD-compatible install
      configure:1423: result: /usr/bin/install -c
      configure:1434: checking whether build environment is sane
      configure:1477: result: yes
      configure:1542: checking for gawk
      configure:1558: found /usr/bin/gawk
      configure:1568: result: gawk
      configure:1578: checking whether make sets $(MAKE)
      configure:1598: result: yes
      configure:1813: checking for gcc
      configure:1829: found /usr/bin/gcc
      configure:1839: result: gcc
      configure:2083: checking for C compiler version
      configure:2086: gcc --version </dev/null >&5
      gcc (GCC) 4.1.1 20060525 (Red Hat 4.1.1-1)
      Copyright (C) 2006 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions. There is NO
      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

      configure:2089: $? = 0
      configure:2091: gcc -v </dev/null >&5
      Using built-in specs.
      Target: i386-redhat-linux
      Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
      Thread model: posix
      gcc version 4.1.1 20060525 (Red Hat 4.1.1-1)
      configure:2094: $? = 0
      configure:2096: gcc -V </dev/null >&5
      gcc: '-V' option must have argument
      configure:2099: $? = 1
      configure:2122: checking for C compiler default output file name
      configure:2125: gcc conftest.c >&5
      configure:2128: $? = 0
      configure:2174: result: a.out
      configure:2179: checking whether the C compiler works
      configure:2185: ./a.out
      configure:2188: $? = 0
      configure:2205: result: yes
      configure:2212: checking whether we are cross compiling
      configure:2214: result: no
      configure:2217: checking for suffix of executables
      configure:2219: gcc -o conftest conftest.c >&5
      configure:2222: $? = 0
      configure:2247: result:
      configure:2253: checking for suffix of object files
      configure:2274: gcc -c conftest.c >&5
      configure:2277: $? = 0
      configure:2299: result: o
      configure:2303: checking whether we are using the GNU C compiler
      configure:2327: gcc -c conftest.c >&5
      configure:2333: $? = 0
      configure:2337: test -z
      || test ! -s conftest.err
      configure:2340: $? = 0
      configure:2343: test -s conftest.o
      configure:2346: $? = 0
      configure:2359: result: yes
      configure:2365: checking whether gcc accepts -g
      configure:2386: gcc -c -g conftest.c >&5
      configure:2392: $? = 0
      configure:2396: test -z
      || test ! -s conftest.err
      configure:2399: $? = 0
      configure:2402: test -s conftest.o
      configure:2405: $? = 0
      configure:2416: result: yes
      configure:2433: checking for gcc option to accept ANSI C
      configure:2503: gcc -c -g -O2 conftest.c >&5
      configure:2509: $? = 0
      configure:2513: test -z
      || test ! -s conftest.err
      configure:2516: $? = 0
      configure:2519: test -s conftest.o
      configure:2522: $? = 0
      configure:2540: result: none needed
      configure:2558: gcc -c -g -O2 conftest.c >&5
      conftest.c:2: error: expected '=', ',', ';', 'asm' or '
      attribute' before 'me'
      configure:2564: $? = 1
      configure: failed program was:
      | #ifndef
      cplusplus
      | choke me
      | #endif
      configure:2708: checking for style of include used by make
      configure:2736: result: GNU
      configure:2764: checking dependency style of gcc
      configure:2854: result: none
      configure:2876: checking how to run the C preprocessor
      configure:2911: gcc -E conftest.c
      configure:2917: $? = 0
      configure:2949: gcc -E conftest.c
      conftest.c:11:28: error: ac_nonexistent.h: No such file or directory
      configure:2955: $? = 1
      configure: failed program was:
      | / confdefs.h. /
      |
      | #define PACKAGE_NAME ""
      | #define PACKAGE_TARNAME ""
      | #define PACKAGE_VERSION ""
      | #define PACKAGE_STRING ""
      | #define PACKAGE_BUGREPORT ""
      | #define PACKAGE "torcs"
      | #define VERSION "1.3.0"
      | / end confdefs.h. /
      | #include <ac_nonexistent.h>
      configure:2994: result: gcc -E
      configure:3018: gcc -E conftest.c
      configure:3024: $? = 0
      configure:3056: gcc -E conftest.c
      conftest.c:11:28: error: ac_nonexistent.h: No such file or directory
      configure:3062: $? = 1
      configure: failed program was:
      | / confdefs.h. /
      |
      | #define PACKAGE_NAME ""
      | #define PACKAGE_TARNAME ""
      | #define PACKAGE_VERSION ""
      | #define PACKAGE_STRING ""
      | #define PACKAGE_BUGREPORT ""
      | #define PACKAGE "torcs"
      | #define VERSION "1.3.0"
      | / end confdefs.h. /
      | #include <ac_nonexistent.h>
      configure:3165: checking for g++
      configure:3181: found /usr/bin/g++
      configure:3191: result: g++
      configure:3207: checking for C++ compiler version
      configure:3210: g++ --version </dev/null >&5
      g++ (GCC) 4.1.1 20060525 (Red Hat 4.1.1-1)
      Copyright (C) 2006 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions. There is NO
      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

      configure:3213: $? = 0
      configure:3215: g++ -v </dev/null >&5
      Using built-in specs.
      Target: i386-redhat-linux
      Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
      Thread model: posix
      gcc version 4.1.1 20060525 (Red Hat 4.1.1-1)
      configure:3218: $? = 0
      configure:3220: g++ -V </dev/null >&5
      g++: '-V' option must have argument
      configure:3223: $? = 1
      configure:3226: checking whether we are using the GNU C++ compiler
      configure:3250: g++ -c conftest.cc >&5
      configure:3256: $? = 0
      configure:3260: test -z
      || test ! -s conftest.err
      configure:3263: $? = 0
      configure:3266: test -s conftest.o
      configure:3269: $? = 0
      configure:3282: result: yes
      configure:3288: checking whether g++ accepts -g
      configure:3309: g++ -c -g conftest.cc >&5
      configure:3315: $? = 0
      configure:3319: test -z
      || test ! -s conftest.err
      configure:3322: $? = 0
      configure:3325: test -s conftest.o
      configure:3328: $? = 0
      configure:3339: result: yes
      configure:3381: g++ -c -g -O2 conftest.cc >&5
      configure:3387: $? = 0
      configure:3391: test -z
      || test ! -s conftest.err
      configure:3394: $? = 0
      configure:3397: test -s conftest.o
      configure:3400: $? = 0
      configure:3426: g++ -c -g -O2 conftest.cc >&5
      conftest.cc: In function 'int main()':
      conftest.cc:15: error: 'exit' was not declared in this scope
      configure:3432: $? = 1
      configure: failed program was:
      | / confdefs.h.
      /
      |
      | #define PACKAGE_NAME ""
      | #define PACKAGE_TARNAME ""
      | #define PACKAGE_VERSION ""
      | #define PACKAGE_STRING ""
      | #define PACKAGE_BUGREPORT ""
      | #define PACKAGE "torcs"
      | #define VERSION "1.3.0"
      | / end confdefs.h.
      /
      |
      | int
      | main ()
      | {
      | exit (42);
      | ;
      | return 0;
      | }
      configure:3381: g++ -c -g -O2 conftest.cc >&5
      configure:3387: $? = 0
      configure:3391: test -z
      || test ! -s conftest.err
      configure:3394: $? = 0
      configure:3397: test -s conftest.o
      configure:3400: $? = 0
      configure:3426: g++ -c -g -O2 conftest.cc >&5
      configure:3432: $? = 0
      configure:3436: test -z
      || test ! -s conftest.err
      configure:3439: $? = 0
      configure:3442: test -s conftest.o
      configure:3445: $? = 0
      configure:3470: checking dependency style of g++
      configure:3560: result: none
      configure:3618: checking for ranlib
      configure:3634: found /usr/bin/ranlib
      configure:3645: result: ranlib
      configure:3670: checking for a BSD-compatible install
      configure:3725: result: /usr/bin/install -c
      configure:3743: checking how to run the C++ preprocessor
      configure:3774: g++ -E conftest.cc
      configure:3780: $? = 0
      configure:3812: g++ -E conftest.cc
      conftest.cc:14:28: error: ac_nonexistent.h: No such file or directory
      configure:3818: $? = 1
      configure: failed program was:
      | / confdefs.h.
      /
      |
      | #define PACKAGE_NAME ""
      | #define PACKAGE_TARNAME ""
      | #define PACKAGE_VERSION ""
      | #define PACKAGE_STRING ""
      | #define PACKAGE_BUGREPORT ""
      | #define PACKAGE "torcs"
      | #define VERSION "1.3.0"
      | #ifdef
      cplusplus
      | extern "C" void std::exit (int) throw (); using std::exit;
      | #endif
      | / end confdefs.h. /
      | #include <ac_nonexistent.h>
      configure:3857: result: g++ -E
      configure:3881: g++ -E conftest.cc
      configure:3887: $? = 0
      configure:3919: g++ -E conftest.cc
      conftest.cc:14:28: error: ac_nonexistent.h: No such file or directory
      configure:3925: $? = 1
      configure: failed program was:
      | / confdefs.h. /
      |
      | #define PACKAGE_NAME ""
      | #define PACKAGE_TARNAME ""
      | #define PACKAGE_VERSION ""
      | #define PACKAGE_STRING ""
      | #define PACKAGE_BUGREPORT ""
      | #define PACKAGE "torcs"
      | #define VERSION "1.3.0"
      | #ifdef cplusplus
      | extern "C" void std::exit (int) throw (); using std::exit;
      | #endif
      | / end confdefs.h.
      /
      | #include <ac_nonexistent.h>
      configure:3969: checking for egrep
      configure:3979: result: grep -E
      configure:3984: checking for ANSI C header files
      configure:4009: g++ -c -g -O2 conftest.cc >&5
      configure:4015: $? = 0
      configure:4019: test -z
      || test ! -s conftest.err
      configure:4022: $? = 0
      configure:4025: test -s conftest.o
      configure:4028: $? = 0
      configure:4117: g++ -o conftest -g -O2 conftest.cc >&5
      configure:4120: $? = 0
      configure:4122: ./conftest
      configure:4125: $? = 0
      configure:4140: result: yes
      configure:4151: checking for an ANSI C-conforming const
      configure:4218: g++ -c -g -O2 conftest.cc >&5
      configure:4224: $? = 0
      configure:4228: test -z
      || test ! -s conftest.err
      configure:4231: $? = 0
      configure:4234: test -s conftest.o
      configure:4237: $? = 0
      configure:4248: result: yes
      configure:4258: checking for inline
      configure:4279: g++ -c -g -O2 conftest.cc >&5
      configure:4285: $? = 0
      configure:4289: test -z
      || test ! -s conftest.err
      configure:4292: $? = 0
      configure:4295: test -s conftest.o
      configure:4298: $? = 0
      configure:4310: result: inline
      configure:4329: checking whether time.h and sys/time.h may both be included
      configure:4354: g++ -c -g -O2 conftest.cc >&5
      configure:4360: $? = 0
      configure:4364: test -z
      || test ! -s conftest.err
      configure:4367: $? = 0
      configure:4370: test -s conftest.o
      configure:4373: $? = 0
      configure:4384: result: yes
      configure:4397: checking for ar
      configure:4424: result: ar
      configure:4433: checking for ld
      configure:4460: result: ld
      configure:4468: checking whether byte ordering is bigendian
      configure:4495: g++ -c -g -O2 conftest.cc >&5
      configure:4501: $? = 0
      configure:4505: test -z
      || test ! -s conftest.err
      configure:4508: $? = 0
      configure:4511: test -s conftest.o
      configure:4514: $? = 0
      configure:4538: g++ -c -g -O2 conftest.cc >&5
      conftest.cc: In function 'int main()':
      conftest.cc:23: error: 'big' was not declared in this scope
      conftest.cc:23: error: expected `;' before 'endian'
      configure:4544: $? = 1
      configure: failed program was:
      | / confdefs.h.
      /
      |
      | #define PACKAGE_NAME ""
      | #define PACKAGE_TARNAME ""
      | #define PACKAGE_VERSION ""
      | #define PACKAGE_STRING ""
      | #define PACKAGE_BUGREPORT ""
      | #define PACKAGE "torcs"
      | #define VERSION "1.3.0"
      | #ifdef
      cplusplus
      | extern "C" void std::exit (int) throw (); using std::exit;
      | #endif
      | #define STDC_HEADERS 1
      | #define TIME_WITH_SYS_TIME 1
      | / end confdefs.h. /
      | #include <sys/types.h>
      | #include <sys/param.h>
      |
      | int
      | main ()
      | {
      | #if BYTE_ORDER != BIG_ENDIAN
      | not big endian
      | #endif
      |
      | ;
      | return 0;
      | }
      configure:4679: result: no
      configure:4699: checking for X
      configure:4804: g++ -E conftest.cc
      configure:4810: $? = 0
      configure:4860: g++ -o conftest -g -O2 conftest.cc -lXt >&5
      configure:4866: $? = 0
      configure:4870: test -z
      || test ! -s conftest.err
      configure:4873: $? = 0
      configure:4876: test -s conftest
      configure:4879: $? = 0
      configure:4929: result: libraries /usr/lib, headers
      configure:4997: checking for sys/types.h
      configure:5013: g++ -c -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES conftest.cc >&5
      configure:5019: $? = 0
      configure:5023: test -z
      || test ! -s conftest.err
      configure:5026: $? = 0
      configure:5029: test -s conftest.o
      configure:5032: $? = 0
      configure:5043: result: yes
      configure:4997: checking for sys/stat.h
      configure:5013: g++ -c -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES conftest.cc >&5
      configure:5019: $? = 0
      configure:5023: test -z
      || test ! -s conftest.err
      configure:5026: $? = 0
      configure:5029: test -s conftest.o
      configure:5032: $? = 0
      configure:5043: result: yes
      configure:4997: checking for stdlib.h
      configure:5013: g++ -c -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES conftest.cc >&5
      configure:5019: $? = 0
      configure:5023: test -z
      || test ! -s conftest.err
      configure:5026: $? = 0
      configure:5029: test -s conftest.o
      configure:5032: $? = 0
      configure:5043: result: yes
      configure:4997: checking for string.h
      configure:5013: g++ -c -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES conftest.cc >&5
      configure:5019: $? = 0
      configure:5023: test -z
      || test ! -s conftest.err
      configure:5026: $? = 0
      configure:5029: test -s conftest.o
      configure:5032: $? = 0
      configure:5043: result: yes
      configure:4997: checking for memory.h
      configure:5013: g++ -c -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES conftest.cc >&5
      configure:5019: $? = 0
      configure:5023: test -z
      || test ! -s conftest.err
      configure:5026: $? = 0
      configure:5029: test -s conftest.o
      configure:5032: $? = 0
      configure:5043: result: yes
      configure:4997: checking for strings.h
      configure:5013: g++ -c -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES conftest.cc >&5
      configure:5019: $? = 0
      configure:5023: test -z
      || test ! -s conftest.err
      configure:5026: $? = 0
      configure:5029: test -s conftest.o
      configure:5032: $? = 0
      configure:5043: result: yes
      configure:4997: checking for inttypes.h
      configure:5013: g++ -c -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES conftest.cc >&5
      configure:5019: $? = 0
      configure:5023: test -z
      || test ! -s conftest.err
      configure:5026: $? = 0
      configure:5029: test -s conftest.o
      configure:5032: $? = 0
      configure:5043: result: yes
      configure:4997: checking for stdint.h
      configure:5013: g++ -c -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES conftest.cc >&5
      configure:5019: $? = 0
      configure:5023: test -z
      || test ! -s conftest.err
      configure:5026: $? = 0
      configure:5029: test -s conftest.o
      configure:5032: $? = 0
      configure:5043: result: yes
      configure:4997: checking for unistd.h
      configure:5013: g++ -c -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES conftest.cc >&5
      configure:5019: $? = 0
      configure:5023: test -z
      || test ! -s conftest.err
      configure:5026: $? = 0
      configure:5029: test -s conftest.o
      configure:5032: $? = 0
      configure:5043: result: yes
      configure:5065: checking GL/gl.h usability
      configure:5077: g++ -c -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES conftest.cc >&5
      configure:5083: $? = 0
      configure:5087: test -z
      || test ! -s conftest.err
      configure:5090: $? = 0
      configure:5093: test -s conftest.o
      configure:5096: $? = 0
      configure:5106: result: yes
      configure:5110: checking GL/gl.h presence
      configure:5120: g++ -E conftest.cc
      configure:5126: $? = 0
      configure:5146: result: yes
      configure:5181: checking for GL/gl.h
      configure:5188: result: yes
      configure:5211: checking GL/glut.h usability
      configure:5223: g++ -c -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES conftest.cc >&5
      configure:5229: $? = 0
      configure:5233: test -z
      || test ! -s conftest.err
      configure:5236: $? = 0
      configure:5239: test -s conftest.o
      configure:5242: $? = 0
      configure:5252: result: yes
      configure:5256: checking GL/glut.h presence
      configure:5266: g++ -E conftest.cc
      configure:5272: $? = 0
      configure:5292: result: yes
      configure:5327: checking for GL/glut.h
      configure:5334: result: yes
      configure:5357: checking GL/glx.h usability
      configure:5369: g++ -c -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES conftest.cc >&5
      configure:5375: $? = 0
      configure:5379: test -z
      || test ! -s conftest.err
      configure:5382: $? = 0
      configure:5385: test -s conftest.o
      configure:5388: $? = 0
      configure:5398: result: yes
      configure:5402: checking GL/glx.h presence
      configure:5412: g++ -E conftest.cc
      configure:5418: $? = 0
      configure:5438: result: yes
      configure:5473: checking for GL/glx.h
      configure:5480: result: yes
      configure:5503: checking X11/Xlib.h usability
      configure:5515: g++ -c -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES conftest.cc >&5
      configure:5521: $? = 0
      configure:5525: test -z
      || test ! -s conftest.err
      configure:5528: $? = 0
      configure:5531: test -s conftest.o
      configure:5534: $? = 0
      configure:5544: result: yes
      configure:5548: checking X11/Xlib.h presence
      configure:5558: g++ -E conftest.cc
      configure:5564: $? = 0
      configure:5584: result: yes
      configure:5619: checking for X11/Xlib.h
      configure:5626: result: yes
      configure:5649: checking X11/Xatom.h usability
      configure:5661: g++ -c -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES conftest.cc >&5
      configure:5667: $? = 0
      configure:5671: test -z
      || test ! -s conftest.err
      configure:5674: $? = 0
      configure:5677: test -s conftest.o
      configure:5680: $? = 0
      configure:5690: result: yes
      configure:5694: checking X11/Xatom.h presence
      configure:5704: g++ -E conftest.cc
      configure:5710: $? = 0
      configure:5730: result: yes
      configure:5765: checking for X11/Xatom.h
      configure:5772: result: yes
      configure:5795: checking X11/keysym.h usability
      configure:5807: g++ -c -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES conftest.cc >&5
      configure:5813: $? = 0
      configure:5817: test -z
      || test ! -s conftest.err
      configure:5820: $? = 0
      configure:5823: test -s conftest.o
      configure:5826: $? = 0
      configure:5836: result: yes
      configure:5840: checking X11/keysym.h presence
      configure:5850: g++ -E conftest.cc
      configure:5856: $? = 0
      configure:5876: result: yes
      configure:5911: checking for X11/keysym.h
      configure:5918: result: yes
      configure:5941: checking plib/ssg.h usability
      configure:5953: g++ -c -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES conftest.cc >&5
      configure:5959: $? = 0
      configure:5963: test -z
      || test ! -s conftest.err
      configure:5966: $? = 0
      configure:5969: test -s conftest.o
      configure:5972: $? = 0
      configure:5982: result: yes
      configure:5986: checking plib/ssg.h presence
      configure:5996: g++ -E conftest.cc
      configure:6002: $? = 0
      configure:6022: result: yes
      configure:6057: checking for plib/ssg.h
      configure:6064: result: yes
      configure:6087: checking AL/al.h usability
      configure:6099: g++ -c -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES conftest.cc >&5
      configure:6105: $? = 0
      configure:6109: test -z
      || test ! -s conftest.err
      configure:6112: $? = 0
      configure:6115: test -s conftest.o
      configure:6118: $? = 0
      configure:6128: result: yes
      configure:6132: checking AL/al.h presence
      configure:6142: g++ -E conftest.cc
      configure:6148: $? = 0
      configure:6168: result: yes
      configure:6203: checking for AL/al.h
      configure:6210: result: yes
      configure:6233: checking AL/alut.h usability
      configure:6245: g++ -c -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES conftest.cc >&5
      configure:6251: $? = 0
      configure:6255: test -z
      || test ! -s conftest.err
      configure:6258: $? = 0
      configure:6261: test -s conftest.o
      configure:6264: $? = 0
      configure:6274: result: yes
      configure:6278: checking AL/alut.h presence
      configure:6288: g++ -E conftest.cc
      configure:6294: $? = 0
      configure:6314: result: yes
      configure:6349: checking for AL/alut.h
      configure:6356: result: yes
      configure:6376: checking for sin in -lm
      configure:6406: g++ -o conftest -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES conftest.cc -lm >&5
      configure:6412: $? = 0
      configure:6416: test -z
      || test ! -s conftest.err
      configure:6419: $? = 0
      configure:6422: test -s conftest
      configure:6425: $? = 0
      configure:6438: result: yes
      configure:6457: checking for XOpenDisplay in -lX11
      configure:6487: g++ -o conftest -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES -L/usr/lib conftest.cc -lX11 -lm >&5
      configure:6493: $? = 0
      configure:6497: test -z
      || test ! -s conftest.err
      configure:6500: $? = 0
      configure:6503: test -s conftest
      configure:6506: $? = 0
      configure:6519: result: yes
      configure:6535: checking for XShmCreateImage in -lXext
      configure:6565: g++ -o conftest -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES -L/usr/lib conftest.cc -lXext -lX11 -lm >&5
      configure:6571: $? = 0
      configure:6575: test -z
      || test ! -s conftest.err
      configure:6578: $? = 0
      configure:6581: test -s conftest
      configure:6584: $? = 0
      configure:6597: result: yes
      configure:6613: checking for IceSetIOErrorHandler in -lICE
      configure:6643: g++ -o conftest -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES -L/usr/lib conftest.cc -lICE -lXext -lX11 -lm >&5
      configure:6649: $? = 0
      configure:6653: test -z
      || test ! -s conftest.err
      configure:6656: $? = 0
      configure:6659: test -s conftest
      configure:6662: $? = 0
      configure:6675: result: yes
      configure:6691: checking for SmsSetErrorHandler in -lSM
      configure:6721: g++ -o conftest -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES -L/usr/lib conftest.cc -lSM -lICE -lXext -lX11 -lm >&5
      configure:6727: $? = 0
      configure:6731: test -z
      || test ! -s conftest.err
      configure:6734: $? = 0
      configure:6737: test -s conftest
      configure:6740: $? = 0
      configure:6753: result: yes
      configure:6769: checking for XtDisplay in -lXt
      configure:6799: g++ -o conftest -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES -L/usr/lib conftest.cc -lXt -lSM -lICE -lXext -lX11 -lm >&5
      configure:6805: $? = 0
      configure:6809: test -z
      || test ! -s conftest.err
      configure:6812: $? = 0
      configure:6815: test -s conftest
      configure:6818: $? = 0
      configure:6831: result: yes
      configure:6847: checking for XOpenDevice in -lXi
      configure:6877: g++ -o conftest -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES -L/usr/lib conftest.cc -lXi -lXt -lSM -lICE -lXext -lX11 -lm >&5
      /usr/bin/ld: cannot find -lXi
      collect2: ld returned 1 exit status
      configure:6883: $? = 1
      configure: failed program was:
      | / confdefs.h. /
      |
      | #define PACKAGE_NAME ""
      | #define PACKAGE_TARNAME ""
      | #define PACKAGE_VERSION ""
      | #define PACKAGE_STRING ""
      | #define PACKAGE_BUGREPORT ""
      | #define PACKAGE "torcs"
      | #define VERSION "1.3.0"
      | #ifdef cplusplus
      | extern "C" void std::exit (int) throw (); using std::exit;
      | #endif
      | #define STDC_HEADERS 1
      | #define TIME_WITH_SYS_TIME 1
      | #define HAVE_SYS_TYPES_H 1
      | #define HAVE_SYS_STAT_H 1
      | #define HAVE_STDLIB_H 1
      | #define HAVE_STRING_H 1
      | #define HAVE_MEMORY_H 1
      | #define HAVE_STRINGS_H 1
      | #define HAVE_INTTYPES_H 1
      | #define HAVE_STDINT_H 1
      | #define HAVE_UNISTD_H 1
      | #define HAVE_LIBM 1
      | #define HAVE_LIBX11 1
      | #define HAVE_LIBXEXT 1
      | #define HAVE_LIBICE 1
      | #define HAVE_LIBSM 1
      | #define HAVE_LIBXT 1
      | / end confdefs.h.
      /
      |
      | / Override any gcc2 internal prototype to avoid an error.
      /
      | #ifdef
      cplusplus
      | extern "C"
      | #endif
      | / We use char because int might match the return type of a gcc2
      | builtin and then its argument prototype would still apply.
      /
      | char XOpenDevice ();
      | int
      | main ()
      | {
      | XOpenDevice ();
      | ;
      | return 0;
      | }
      configure:6909: result: no
      configure:6919: error: Can't find libXi. Please check config.log and if you can't solve the problem send the file to torcs-users@lists.sourceforge.net with the subject "torcs compilation problem"

      ----------------

      Cache variables.

      ----------------

      ac_cv_c_bigendian=no
      ac_cv_c_compiler_gnu=yes
      ac_cv_c_const=yes
      ac_cv_c_inline=inline
      ac_cv_cxx_compiler_gnu=yes
      ac_cv_env_CC_set=
      ac_cv_env_CC_value=
      ac_cv_env_CFLAGS_set=
      ac_cv_env_CFLAGS_value=
      ac_cv_env_CPPFLAGS_set=
      ac_cv_env_CPPFLAGS_value=
      ac_cv_env_CPP_set=
      ac_cv_env_CPP_value=
      ac_cv_env_CXXCPP_set=
      ac_cv_env_CXXCPP_value=
      ac_cv_env_CXXFLAGS_set=
      ac_cv_env_CXXFLAGS_value=
      ac_cv_env_CXX_set=
      ac_cv_env_CXX_value=
      ac_cv_env_LDFLAGS_set=
      ac_cv_env_LDFLAGS_value=
      ac_cv_env_build_alias_set=
      ac_cv_env_build_alias_value=
      ac_cv_env_host_alias_set=
      ac_cv_env_host_alias_value=
      ac_cv_env_target_alias_set=
      ac_cv_env_target_alias_value=
      ac_cv_exeext=
      ac_cv_have_x='have_x=yes ac_x_includes= ac_x_libraries=/usr/lib'
      ac_cv_header_AL_al_h=yes
      ac_cv_header_AL_alut_h=yes
      ac_cv_header_GL_gl_h=yes
      ac_cv_header_GL_glut_h=yes
      ac_cv_header_GL_glx_h=yes
      ac_cv_header_X11_Xatom_h=yes
      ac_cv_header_X11_Xlib_h=yes
      ac_cv_header_X11_keysym_h=yes
      ac_cv_header_inttypes_h=yes
      ac_cv_header_memory_h=yes
      ac_cv_header_plib_ssg_h=yes
      ac_cv_header_stdc=yes
      ac_cv_header_stdint_h=yes
      ac_cv_header_stdlib_h=yes
      ac_cv_header_string_h=yes
      ac_cv_header_strings_h=yes
      ac_cv_header_sys_stat_h=yes
      ac_cv_header_sys_types_h=yes
      ac_cv_header_time=yes
      ac_cv_header_unistd_h=yes
      ac_cv_lib_ICE_IceSetIOErrorHandler=yes
      ac_cv_lib_SM_SmsSetErrorHandler=yes
      ac_cv_lib_X11_XOpenDisplay=yes
      ac_cv_lib_Xext_XShmCreateImage=yes
      ac_cv_lib_Xi_XOpenDevice=no
      ac_cv_lib_Xt_XtDisplay=yes
      ac_cv_lib_m_sin=yes
      ac_cv_objext=o
      ac_cv_path_install='/usr/bin/install -c'
      ac_cv_prog_AR=ar
      ac_cv_prog_AWK=gawk
      ac_cv_prog_CPP='gcc -E'
      ac_cv_prog_CXXCPP='g++ -E'
      ac_cv_prog_LD=ld
      ac_cv_prog_ac_ct_CC=gcc
      ac_cv_prog_ac_ct_CXX=g++
      ac_cv_prog_ac_ct_RANLIB=ranlib
      ac_cv_prog_cc_g=yes
      ac_cv_prog_cc_stdc=
      ac_cv_prog_cxx_g=yes
      ac_cv_prog_egrep='grep -E'
      ac_cv_prog_make_make_set=yes
      am_cv_CC_dependencies_compiler_type=none
      am_cv_CXX_dependencies_compiler_type=none

      -----------------

      Output variables.

      -----------------

      ACLOCAL='${SHELL} /home/madbad/MyDownloads/torcs-1.3.0-test1/missing --run aclocal-1.9'
      AMDEPBACKSLASH='\'
      AMDEP_FALSE='#'
      AMDEP_TRUE=''
      AMTAR='${SHELL} /home/madbad/MyDownloads/torcs-1.3.0-test1/missing --run tar'
      AR='ar'
      AUTOCONF='${SHELL} /home/madbad/MyDownloads/torcs-1.3.0-test1/missing --run autoconf'
      AUTOHEADER='${SHELL} /home/madbad/MyDownloads/torcs-1.3.0-test1/missing --run autoheader'
      AUTOMAKE='${SHELL} /home/madbad/MyDownloads/torcs-1.3.0-test1/missing --run automake-1.9'
      AWK='gawk'
      CC='gcc'
      CCDEPMODE='depmode=none'
      CFLAGS='-g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES'
      CPP='gcc -E'
      CPPFLAGS=''
      CXX='g++'
      CXXCPP='g++ -E'
      CXXDEPMODE='depmode=none'
      CXXFLAGS='-g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES'
      CYGPATH_W='echo'
      DEFS=''
      DEPDIR='.deps'
      ECHO_C=''
      ECHO_N='-n'
      ECHO_T=''
      EGREP='grep -E'
      EXEEXT=''
      INSTALL_DATA='${INSTALL} -m 644'
      INSTALL_PROGRAM='${INSTALL}'
      INSTALL_SCRIPT='${INSTALL}'
      INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
      LD='ld'
      LDFLAGS=' -L/usr/lib'
      LIBOBJS=''
      LIBS='-lXt -lSM -lICE -lXext -lX11 -lm '
      LTLIBOBJS=''
      MAKEINFO='${SHELL} /home/madbad/MyDownloads/torcs-1.3.0-test1/missing --run makeinfo'
      OBJEXT='o'
      PACKAGE='torcs'
      PACKAGE_BUGREPORT=''
      PACKAGE_NAME=''
      PACKAGE_STRING=''
      PACKAGE_TARNAME=''
      PACKAGE_VERSION=''
      PATH_SEPARATOR=':'
      RANLIB='ranlib'
      SET_MAKE=''
      SHELL='/bin/sh'
      STRIP=''
      TORCS_BASE=''
      VERSION='1.3.0'
      ac_ct_CC='gcc'
      ac_ct_CXX='g++'
      ac_ct_RANLIB='ranlib'
      ac_ct_STRIP=''
      amfastdepCC_FALSE=''
      am
      fastdepCC_TRUE='#'
      amfastdepCXX_FALSE=''
      am
      fastdepCXX_TRUE='#'
      aminclude='include'
      am
      leading_dot='.'
      amquote=''
      am
      tar='${AMTAR} chof - "$$tardir"'
      am__untar='${AMTAR} xf -'
      bindir='${exec_prefix}/bin'
      build_alias=''
      datadir='${prefix}/share'
      exec_prefix='NONE'
      host_alias=''
      includedir='${prefix}/include'
      infodir='${prefix}/info'
      install_sh='/home/madbad/MyDownloads/torcs-1.3.0-test1/install-sh'
      libdir='${exec_prefix}/lib'
      libexecdir='${exec_prefix}/libexec'
      localstatedir='${prefix}/var'
      mandir='${prefix}/man'
      mkdir_p='mkdir -p --'
      oldincludedir='/usr/include'
      prefix='NONE'
      program_transform_name='s,x,x,'
      sbindir='${exec_prefix}/sbin'
      sharedstatedir='${prefix}/com'
      sysconfdir='${prefix}/etc'
      target_alias=''

      -----------

      confdefs.h.

      -----------

      define HAVE_INTTYPES_H 1

      define HAVE_LIBICE 1

      define HAVE_LIBM 1

      define HAVE_LIBSM 1

      define HAVE_LIBX11 1

      define HAVE_LIBXEXT 1

      define HAVE_LIBXT 1

      define HAVE_MEMORY_H 1

      define HAVE_STDINT_H 1

      define HAVE_STDLIB_H 1

      define HAVE_STRINGS_H 1

      define HAVE_STRING_H 1

      define HAVE_SYS_STAT_H 1

      define HAVE_SYS_TYPES_H 1

      define HAVE_UNISTD_H 1

      define PACKAGE "torcs"

      define PACKAGE_BUGREPORT ""

      define PACKAGE_NAME ""

      define PACKAGE_STRING ""

      define PACKAGE_TARNAME ""

      define PACKAGE_VERSION ""

      define STDC_HEADERS 1

      define TIME_WITH_SYS_TIME 1

      define VERSION "1.3.0"

      endif

      ifdef __cplusplus

      extern "C" void std::exit (int) throw (); using std::exit;

      configure: exit 1

       
    • >> /usr/bin/ld: cannot find -lXi

      Ok, the linker does not find libXi, do you have a symbolic link called libXi.so? On my system there is this one:
      /usr/X11R6/lib/libXi.so -> libXi.so.6.0

      On your it should look like this, located in /usr/lib:
      /usr/X11R6/lib/libXi.so -> libXi.so.6

      To create the link log in as root and do:
      cd /usr/lib
      ln -s libXi.so.6.0.0 libXi.so
      ldconfig

      Then try again to run configure.

      Bye, Bernhard.

       
    • madbad
      madbad
      2006-11-12

      ok, i've done the same with:
      libXmu
      libXxf86vm
      libXrandr
      libXrender
      libz
      libpng

      configure now run fine but when i try to run make i get this:

      screen.cpp:54:35: error: X11/extensions/Xrandr.h: No such file or directory
      screen.cpp: In function ‘void gfScreenInit()’:
      screen.cpp:126: error: ‘XRRScreenConfiguration’ was not declared in this scope
      screen.cpp:126: error: ‘screenconfig’ was not declared in this scope
      screen.cpp:126: error: ‘XRRGetScreenInfo’ was not declared in this scope
      screen.cpp:129: error: ‘XRRScreenSize’ was not declared in this scope
      screen.cpp:129: error: ‘sizes’ was not declared in this scope
      screen.cpp:129: error: ‘XRRConfigSizes’ was not declared in this scope
      screen.cpp:203: error: ‘XRRFreeScreenConfigInfo’ was not declared in this scope
      make[4]: [screen.o] Error 1
      make[4]: Leaving directory /home/madbad/MyDownloads/torcs-1.3.0-test1/src/libs/tgfclient' make[3]: *** [subdirs] Error 1 make[3]: Leaving directory/home/madbad/MyDownloads/torcs-1.3.0-test1/src/libs'
      make[2]:
      [subdirs] Error 1
      make[2]: Leaving directory /home/madbad/MyDownloads/torcs-1.3.0-test1/src' make[1]: *** [subdirs] Error 1 make[1]: Leaving directory/home/madbad/MyDownloads/torcs-1.3.0-test1'
      make: *** [restart] Error 2

      locate *Xrandr.h
      Find nothing

       
    • Yes, find the package, install it. For my SuSE the package is called xorg-x11-devel. Btw. it is quite weird that you needed to create all these links, that is very unusual... maybe they will be created if you install the devel package(s).

      Bye, Bernhard.

       
    • madbad
      madbad
      2006-11-12

      Edit. I'm missing some -devel package.

      I will install them and come back here.

      Stay tuned! ^^