Opened 10 months ago

Closed 9 months ago

Last modified 9 months ago

#69170 closed defect (fixed)

stellarium @23.4_0+RemoteControl+python312: error: no template named 'auto_ptr' in namespace 'std'

Reported by: rernenwein Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc: herbygillot (Herby Gillot), cooljeanius (Eric Gallager)
Port: stellarium

Description (last modified by jmroot (Joshua Root))

i update regularely stellarium app and use stellarium every 2 or 3 month

before update stellarium crashed every time i launched (last time i tested successfully was 3 month ago) then i found that a new update of macos was available and also a new version of stellarium

full of hope that i will a fresh version that will correct the launch problem i updated macos and i am running Ventura 13.6.4

then after reboot, i launched port selfupdate port upgrade outdated

the build crash

--->  Computing dependencies for stellarium
--->  Fetching archive for stellarium
--->  Attempting to fetch stellarium-23.4_0+RemoteControl+python312.darwin_22.x86_64.tbz2 from https://packages.macports.org/stellarium
--->  Attempting to fetch stellarium-23.4_0+RemoteControl+python312.darwin_22.x86_64.tbz2 from https://mse.uk.packages.macports.org/stellarium
--->  Attempting to fetch stellarium-23.4_0+RemoteControl+python312.darwin_22.x86_64.tbz2 from https://fra.de.packages.macports.org/stellarium
--->  Fetching distfiles for stellarium
--->  Verifying checksums for stellarium
--->  Extracting stellarium
--->  Applying patches to stellarium
--->  Configuring stellarium
--->  Building stellarium                                
Error: Failed to build stellarium: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_stellarium/stellarium/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.

full log file is attached

Attachments (1)

main.log.bz2 (51.1 KB) - added by jmroot (Joshua Root) 10 months ago.
stellarium build crash log

Download all attachments as: .zip

Change History (6)

comment:1 Changed 10 months ago by jmroot (Joshua Root)

Cc: herbygillot added
Description: modified (diff)
Owner: set to michaelld
Status: newassigned
Summary: stellarium fail to build on Darwin Kernel Version 22.6.0stellarium @23.4_0+RemoteControl+python312 fail to build on Darwin Kernel Version 22.6.0
:info:build /opt/local/include/exiv2/value.hpp:54:17: error: no template named 'auto_ptr' in namespace 'std'; did you mean simply 'auto_ptr'?
:info:build         typedef std::auto_ptr<Value> AutoPtr;
:info:build                 ^~~~~
:info:build /opt/local/include/exiv2/config.h:105:3: note: 'auto_ptr' declared here
:info:build   using auto_ptr = std::unique_ptr<T>;
:info:build   ^

Changed 10 months ago by jmroot (Joshua Root)

Attachment: main.log.bz2 added

stellarium build crash log

comment:2 Changed 10 months ago by ryandesign (Ryan Carsten Schmidt)

We had successful builds of this version of stellarium on our buildbot system, so it must be solvable. Unfortunately the port is not distributable so you can't just have the binaries we created, instead you have to compile it from source yourself, so we have to figure out what's going wrong.

Not sure if related, but #68991 said a new version of exiv2 was required to build stellarium, and I explained there why updating exiv2 to that new version could not happen right away.

But then stellarium was indeed updated to a new version a couple days ago.

The stellarium port does not mention exiv2, and yet your build is trying to use it. Maybe that's the problem: the build needs to be told not to use exiv2 even if it is installed.

comment:3 Changed 10 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added
Summary: stellarium @23.4_0+RemoteControl+python312 fail to build on Darwin Kernel Version 22.6.0stellarium @23.4_0+RemoteControl+python312: error: no template named 'auto_ptr' in namespace 'std'

Looks like exiv2 is used optionally by stellarium's LensDistortionEstimator plugin.

Here's my fix: https://github.com/macports/macports-ports/pull/22371

comment:4 Changed 9 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

In b8ee65a5f14be6ce5987f74737d1ae7f6cfcda68/macports-ports (master):

stellarium: Don't use exiv2

Closes: #69170

comment:5 Changed 9 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.