Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 631542 - =games-sports/torcs-1.3.6-r1: invalid conversion from ‘char’ to ‘const char*’ [-fpermissive]
Summary: =games-sports/torcs-1.3.6-r1: invalid conversion from ‘char’ to ‘const char*’...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard: ~arch only
Keywords:
Depends on:
Blocks: gcc-7
  Show dependency tree
 
Reported: 2017-09-20 16:37 UTC by Francesco Turco
Modified: 2018-06-09 11:02 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (info.txt,8.09 KB, text/plain)
2017-09-20 16:38 UTC, Francesco Turco
Details
build log (build.log,121.81 KB, text/plain)
2017-09-20 16:39 UTC, Francesco Turco
Details
Fix null pointer (torcs-nullptr.patch,585 bytes, patch)
2017-12-29 03:39 UTC, Michael Uleysky
Details | Diff
emerge-info.txt (emerge-info.txt,15.62 KB, text/plain)
2018-03-03 22:02 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,167.65 KB, text/plain)
2018-03-03 22:02 UTC, Toralf Förster
Details
environment (environment,87.87 KB, text/plain)
2018-03-03 22:02 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,13.41 KB, application/x-bzip)
2018-03-03 22:02 UTC, Toralf Förster
Details
games-sports:torcs-1.3.6-r1:20180303-152614.log (games-sports:torcs-1.3.6-r1:20180303-152614.log,109.70 KB, text/plain)
2018-03-03 22:02 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,28.52 KB, application/x-bzip)
2018-03-03 22:02 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco Turco 2017-09-20 16:37:51 UTC
I can't install games-sports/torcs-1.3.6-r1 on my system due to the following error message:

OpenALMusicPlayer.cpp: In member function ‘virtual bool OpenALMusicPlayer::streamBuffer(ALuint)’:
OpenALMusicPlayer.cpp:164:22: error: invalid conversion from ‘char’ to ‘const char*’ [-fpermissive]
  const char* error = '\0';
                      ^~~~

I have GCC 7.2.0 as my only compiler, but I don't know if this is a problem.
Comment 1 Francesco Turco 2017-09-20 16:38:28 UTC
Created attachment 495626 [details]
emerge --info
Comment 2 Francesco Turco 2017-09-20 16:39:10 UTC
Created attachment 495628 [details]
build log
Comment 3 Michael Uleysky 2017-12-29 03:39:45 UTC
Created attachment 511922 [details, diff]
Fix null pointer

Just replace '\0' on 0.
Comment 4 Toralf Förster gentoo-dev 2018-03-03 22:02:08 UTC
appeared recently at the tinderbox image 17.0-hardened_libressl_20180227-213714
Comment 5 Toralf Förster gentoo-dev 2018-03-03 22:02:11 UTC
Created attachment 522206 [details]
emerge-info.txt
Comment 6 Toralf Förster gentoo-dev 2018-03-03 22:02:14 UTC
Created attachment 522208 [details]
emerge-history.txt
Comment 7 Toralf Förster gentoo-dev 2018-03-03 22:02:17 UTC
Created attachment 522210 [details]
environment
Comment 8 Toralf Förster gentoo-dev 2018-03-03 22:02:20 UTC
Created attachment 522212 [details]
etc.portage.tbz2
Comment 9 Toralf Förster gentoo-dev 2018-03-03 22:02:23 UTC
Created attachment 522214 [details]
games-sports:torcs-1.3.6-r1:20180303-152614.log
Comment 10 Toralf Förster gentoo-dev 2018-03-03 22:02:26 UTC
Created attachment 522216 [details]
temp.tbz2
Comment 11 Larry the Git Cow gentoo-dev 2018-04-04 21:35:35 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12df4e984cec6f375feacf528c44ae00c4c4e6b2

commit 12df4e984cec6f375feacf528c44ae00c4c4e6b2
Author:     Peter Levine <plevine457@gmail.com>
AuthorDate: 2018-03-31 00:25:35 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-04-04 21:33:40 +0000

    games-sports/torcs: Fix building with GCC-7
    
    Closes: https://bugs.gentoo.org/631542
    Package-Manager: Portage-2.3.16, Repoman-2.3.6
    Closes: https://github.com/gentoo/gentoo/pull/7728

 games-sports/torcs/files/torcs-1.3.6-gcc7.patch | 11 +++++++++++
 games-sports/torcs/torcs-1.3.6-r1.ebuild        |  3 ++-
 2 files changed, 13 insertions(+), 1 deletion(-)