Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 631542

Summary: =games-sports/torcs-1.3.6-r1: invalid conversion from ‘char’ to ‘const char*’ [-fpermissive]
Product: Gentoo Linux Reporter: Francesco Turco <fturco>
Component: Current packagesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal CC: plevine457, uleysky
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/7728
Whiteboard: ~arch only
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 617524    
Attachments: emerge --info
build log
Fix null pointer
emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
games-sports:torcs-1.3.6-r1:20180303-152614.log
temp.tbz2

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(-)