torcs compilation problem

Vinod Kumar <[email protected]> Wed, 27 Aug 2014 18:01:32 +0530
Newsgroups gmane.games.torcs.general
Message-ID <CA+FeQHoGEZ6TEOzbKeiCov3F7w2ut3o4-Sv415uKzQurvbfOZQ@mail.gmail.com>
I am not able to compile torcs1.3.6 on ubuntu 13.10. I am getting following
result while compiling:-
g++ -shared -o libconfscreens.so controlconfig.o graphconfig.o
mouseconfig.o driverconfig.o joystickconfig.o simuconfig.o soundconfig.o
openglconfig.o  -L/home/user/Downloads/torcs-1.3.6/export/lib  -lopenal
-lalut -lvorbisfile -L/usr/lib  -lplibjs
/usr/bin/ld: /usr/lib/libplibjs.a(jsLinux.o): relocation R_X86_64_32
against `.rodata.str1.1' can not be used when making a shared object;
recompile with -fPIC
/usr/lib/libplibjs.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[4]: *** [libconfscreens.so] Error 1
make[4]: Leaving directory
`/home/user/Downloads/torcs-1.3.6/src/libs/confscreens'
make[3]: *** [subdirs] Error 1
make[3]: Leaving directory `/home/user/Downloads/torcs-1.3.6/src/libs'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/home/user/Downloads/torcs-1.3.6/src'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/user/Downloads/torcs-1.3.6'
make: *** [restart] Error 2

the output of ./configure is following:-
user@linux-box:~/Downloads/torcs-1.3.6$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking for ranlib... ranlib
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking for ar... ar
checking for ld... ld
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for X... libraries , headers
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking GL/glut.h usability... yes
checking GL/glut.h presence... yes
checking for GL/glut.h... yes
checking GL/glx.h usability... yes
checking GL/glx.h presence... yes
checking for GL/glx.h... yes
checking X11/Xlib.h usability... yes
checking X11/Xlib.h presence... yes
checking for X11/Xlib.h... yes
checking X11/Xatom.h usability... yes
checking X11/Xatom.h presence... yes
checking for X11/Xatom.h... yes
checking X11/keysym.h usability... yes
checking X11/keysym.h presence... yes
checking for X11/keysym.h... yes
checking plib/ssg.h usability... yes
checking plib/ssg.h presence... yes
checking for plib/ssg.h... yes
checking plib/ul.h usability... yes
checking plib/ul.h presence... yes
checking for plib/ul.h... yes
checking plib/ssgAux.h usability... yes
checking plib/ssgAux.h presence... yes
checking for plib/ssgAux.h... yes
checking plib/js.h usability... yes
checking plib/js.h presence... yes
checking for plib/js.h... yes
checking AL/al.h usability... yes
checking AL/al.h presence... yes
checking for AL/al.h... yes
checking AL/alut.h usability... yes
checking AL/alut.h presence... yes
checking for AL/alut.h... yes
checking vorbis/vorbisfile.h usability... yes
checking vorbis/vorbisfile.h presence... yes
checking for vorbis/vorbisfile.h... yes
checking for sin in -lm... yes
checking for XOpenDisplay in -lX11... yes
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... yes
checking for XmuSimpleErrorHandler in -lXmu... yes
checking for XF86VidModeSetViewPort in -lXxf86vm... yes
checking for XRenderSetSubpixelOrder in -lXrender... yes
checking for XRRQueryVersion in -lXrandr... yes
checking for alEnable in -lopenal... yes
checking for alutLoadWAVFile in -lalut... yes
checking for ov_fopen in -lvorbisfile... yes
checking for dlopen in -ldl... yes
checking for dlopen... yes
checking for strndup... yes
checking for crc32 in -lz... yes
checking for png_init_io in -lpng... yes
checking for glGetString in -lGL... yes
checking for gluOrtho2D in -lGLU... yes
checking for glutSwapBuffers in -lglut... yes
checking for main in -lplibul... yes
checking for main in -lplibsg... yes
checking for main in -lplibsl... yes
checking for main in -lplibsm... yes
checking for main in -lplibssg... yes
checking for main in -lplibssgaux... yes
checking for main in -lplibjs... yes
checking for plib 1.8.3 or newer... yes
checking for GL_VERSION_1_3... yes
checking for GL_ARB_texture_compression... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Make-config
config.status: creating src/linux/torcs
config.status: creating src/tools/accc/accc
config.status: creating src/tools/nfs2ac/nfs2ac
config.status: creating src/tools/nfsperf/nfsperf
config.status: creating src/tools/texmapper/texmapper
config.status: creating src/tools/trackgen/trackgen
config.status: creating src/doc/torcsdoc.conf
config.status: creating src/tools/package/specfiles/torcs-data.spec
config.status: creating
src/tools/package/specfiles/torcs-data-cars-Patwo-Design.spec
config.status: creating
src/tools/package/specfiles/torcs-data-cars-kcendra-gt.spec
config.status: creating
src/tools/package/specfiles/torcs-data-cars-kcendra-sport.spec
config.status: creating
src/tools/package/specfiles/torcs-data-cars-kcendra-roadsters.spec
config.status: creating
src/tools/package/specfiles/torcs-data-cars-extra.spec
config.status: creating
src/tools/package/specfiles/torcs-data-tracks-base.spec
config.status: creating src/tools/package/specfiles/torcs-robot-K1999.spec
config.status: creating src/tools/package/specfiles/torcs-robot-base.spec
config.status: creating src/tools/package/specfiles/torcs.spec
config.status: creating config.h
config.status: executing depfiles commands

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/

_______________________________________________
Torcs-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/torcs-users