[Bug 216215] astro/gpsbabel: fails to build with clang 4.0
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Jan 24 16:26:11 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216215
--- Comment #4 from Jan Beich (mail not working) <jbeich at FreeBSD.org> ---
Comment on attachment 179281
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=179281
Proposed patch
nullptr is only available with -std=c++11 or later which this port doesn't
pass. libc++ is unaffected due to using surrogate nullptr in C++98 mode unlike
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/gcc5.
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 = bushnell_icons; t->icon != 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 = bushnell_icons; t->icon != nullptr; t++) {
^
Note, NULL is promoted to nullptr with -std=c++11 on FreeBSD since 9.1 (see
base r228918).
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list