Bug 214647 - games/toycars: fails to build with libc++ 3.9
Summary: games/toycars: fails to build with libc++ 3.9
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dmitry Marakasov
URL: https://github.com/llvm-mirror/libcxx...
Keywords: easy, needs-patch
Depends on:
Blocks: 212343
  Show dependency treegraph
 
Reported: 2016-11-19 01:02 UTC by Jan Beich
Modified: 2016-11-25 09:26 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (amdmi3)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer 2016-11-19 01:02:43 UTC
TrackView.cxx:92:10: error: cannot initialize a variable of type 'char *' with an rvalue of type 'con
st char *'
   char *suffix = strrchr(filename, '.');
         ^        ~~~~~~~~~~~~~~~~~~~~~~
TrackView.cxx:972:9: error: assigning to 'char *' from incompatible type 'const char *'
   temp = strrchr(name, '.');
        ^ ~~~~~~~~~~~~~~~~~~
TrackView.cxx:978:9: error: assigning to 'char *' from incompatible type 'const char *'
   temp = strrchr(name, '/');
        ^ ~~~~~~~~~~~~~~~~~~
TrackView.cxx:1047:9: error: assigning to 'char *' from incompatible type 'const char *'
   temp = strrchr(name, '.');
        ^ ~~~~~~~~~~~~~~~~~~
TrackView.cxx:1053:9: error: assigning to 'char *' from incompatible type 'const char *'
   temp = strrchr(name, '/');
        ^ ~~~~~~~~~~~~~~~~~~

http://package18.nyi.freebsd.org/data/headi386PR212343-default/2016-09-11_07h04m19s/logs/errors/toycars-0.3.10_7.log
http://package18.nyi.freebsd.org/data/headamd64PR212343-default/2016-09-13_07h18m01s/logs/errors/toycars-0.3.10_7.log
Comment 1 commit-hook freebsd_committer 2016-11-25 09:26:14 UTC
A commit references this bug:

Author: amdmi3
Date: Fri Nov 25 09:25:41 UTC 2016
New revision: 427090
URL: https://svnweb.freebsd.org/changeset/ports/427090

Log:
  - Add LICENSE
  - Switch to USES=localbase
  - Switch to options helpers
  - Fix build with clang 3.9
  - Regenerate patches

  PR:		214647

Changes:
  head/games/toycars/Makefile
  head/games/toycars/files/patch-toycars__track_editor_src_TrackView.cxx
  head/games/toycars/files/patch-toycars__vehicle__editor_src_VehicleObject.cpp
  head/games/toycars/files/patch-toycars__vehicle_editor_src_LoadSpriteFromImage.cpp
  head/games/toycars/files/patch-toycars__vehicle_editor_src_VehicleObject.cpp