Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jan 2017 16:26:11 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 216215] astro/gpsbabel: fails to build with clang 4.0
Message-ID:  <bug-216215-13-4Vs90yEIjg@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-216215-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-216215-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216215

--- Comment #4 from Jan Beich (mail not working) <jbeich@FreeBSD.org> ---
Comment on attachment 179281
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D179281
Proposed patch

nullptr is only available with -std=3Dc++11 or later which this port doesn't
pass. libc++ is unaffected due to using surrogate nullptr in C++98 mode unl=
ike
libstdc++. GCC defaults to C++98 before 6.0, so the fix would break FreeBSD=
 on
powerpc*/mips*/sparc64, DragonFly and users who forced lang/gcc or lang/gcc=
5.

bushnell.cc: In function 'unsigned int bushnell_get_icon_from_name(QString)=
':
bushnell.cc:138:39: error: 'nullptr' was not declared in this scope
   for (t =3D bushnell_icons; t->icon !=3D nullptr; t++) {
                                       ^
bushnell.cc: In function 'const char* bushnell_get_name_from_symbol(int)':
bushnell.cc:150:39: error: 'nullptr' was not declared in this scope
   for (t =3D bushnell_icons; t->icon !=3D nullptr; t++) {
                                       ^

Note, NULL is promoted to nullptr with -std=3Dc++11 on FreeBSD since 9.1 (s=
ee
base r228918).

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216215-13-4Vs90yEIjg>