#58820 closed defect (fixed)
stellarium @0.19.1: error: missing default argument on parameter
Reported by: | kencu (Ken) | Owned by: | michaelld (Michael Dickens) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | lion | Cc: | |
Port: | stellarium |
Description
This error occurs on 10.7, building with the default clang version:
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_stellarium/stellarium/work/stellarium-0.19.1/plugins/ArchaeoLines/src/ArchaeoLines.cpp:33: :info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_stellarium/stellarium/work/stellarium-0.19.1/src/core/modules/SolarSystem.hpp:30: :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_stellarium/stellarium/work/stellarium-0.19.1/src/core/modules/Planet.hpp:687:80: error: expected ')' :info:build const QMap<QByteArray,int>& fixedAttributeLocations=QMap<QByteArray,int>()); :info:build ^ :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_stellarium/stellarium/work/stellarium-0.19.1/src/core/modules/Planet.hpp:682:43: note: to match this '(' :info:build static QOpenGLShaderProgram* createShader(const QString& name, :info:build ^ :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_stellarium/stellarium/work/stellarium-0.19.1/src/core/modules/Planet.hpp:687:76: error: expected '>' :info:build const QMap<QByteArray,int>& fixedAttributeLocations=QMap<QByteArray,int>()); :info:build ^ :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_stellarium/stellarium/work/stellarium-0.19.1/src/core/modules/Planet.hpp:687:80: error: missing default argument on parameter :info:build const QMap<QByteArray,int>& fixedAttributeLocations=QMap<QByteArray,int>()); :info:build ^ :info:build 3 errors generated. :info:build make[2]: *** [plugins/ArchaeoLines/src/CMakeFiles/ArchaeoLines-static.dir/ArchaeoLines.cpp.o] Error 1
forcing the build to use clang-5.0 works.
Attachments (1)
Change History (5)
Changed 5 years ago by kencu (Ken)
Attachment: | stellarium-fail-10.7.log.zip added |
---|
comment:1 Changed 5 years ago by kencu (Ken)
comment:2 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)
comment:3 Changed 4 years ago by kencu (Ken)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
setting the c++ standard in the portfile to 2011 causes clang-9.0 to be called in on 10.7, and this defaulting works.
comment:4 Changed 4 years ago by michaelld (Michael Dickens)
Nice! Glad moving to modern standards helps with older OSs!
Note: See
TracTickets for help on using
tickets.
Given the upcoming changes in MacPorts, I'm not testing against anything less than clang-5.0 any longer.
I'm not sure which MacOS clang version passes the test to build this, ie where the clang version line should be drawn. There is nothing about
stellarium
onpackages.macports.org
to shed light on this, either, I'm afraid.