Re: torcs compilation problem - failed make

Bernhard Wymann <[email protected]> Sat, 6 May 2017 12:26:24 +0200
Newsgroups gmane.games.torcs.general
Organization wytec
Message-ID <[email protected]>
Hi

Just from the output I would guess that you have to recompile plib with 
"-fPIC", see "... recompile with -fPIC".

Kind regards

Bernhard

On 05.05.2017 07:42, Nirant Kasliwal wrote:
> Hello,
>
> I am trying to build torcs on Ubuntu 14.04. I have a successful
> configure - as the attached config.log indicates.
> The make fails with the following message:
>
> /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/nirant/torcs/torcs-1.3.4/src/libs/confscreens'
> make[3]: *** [subdirs] Error 1
> make[3]: Leaving directory `/home/nirant/torcs/torcs-1.3.4/src/libs'
> make[2]: *** [subdirs] Error 1
> make[2]: Leaving directory `/home/nirant/torcs/torcs-1.3.4/src'
> make[1]: *** [subdirs] Error 1
> make[1]: Leaving directory `/home/nirant/torcs/torcs-1.3.4'
> make: *** [restart] Error 2
>
>
> If I understand correctly, is this a libplib issue? I have searched
> using the error message and few libplib based ones. Attempts to
> recompile with -fPIC flag did not work.
> What can I do to build torcs?
>
> Thanks,
> Nirant
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
>
> _______________________________________________
> Torcs-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/torcs-users
>


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot