Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#13657 closed defect (fixed)

stellarium-0.9.0_0 fails to build

Reported by: glen.henshaw@… Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port:

Description (last modified by jmpp@…)

PowerBook G4, MacOSX 10.5.1, XCode 3.0.

Stellarium-0.9.0_0 upgrade fails with the following:

--->  Fetching stellarium
--->  Attempting to fetch stellarium-0.9.0.tar.gz from http://downloads.sourceforge.net/stellarium
--->  Verifying checksum(s) for stellarium
--->  Extracting stellarium
--->  Configuring stellarium
--->  Building stellarium with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_stellarium/work/stellarium-0.9.0" && make all " returned error 2
Command output: [  3%] Building CXX object src/CMakeFiles/stellarium.dir/MappingClasses.o
[  3%] Building CXX object src/CMakeFiles/stellarium.dir/SphericMirrorCalculator.o
[  4%] Building CXX object src/CMakeFiles/stellarium.dir/ViewportDistorter.o
[  5%] Building CXX object src/CMakeFiles/stellarium.dir/Navigator.o
[  6%] Building CXX object src/CMakeFiles/stellarium.dir/Observer.o
[  6%] Building CXX object src/CMakeFiles/stellarium.dir/grid.o
[  7%] Building CXX object src/CMakeFiles/stellarium.dir/GeodesicGrid.o
[  8%] Building CXX object src/CMakeFiles/stellarium.dir/StelObject.o
[  9%] Building CXX object src/CMakeFiles/stellarium.dir/StarMgr.o
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_stellarium/work/stellarium-0.9.0/src/stelutils/bytes.h:21: warning: 'short unsigned int bswap_16(short unsigned int)' defined but not used
[ 10%] Building CXX object src/CMakeFiles/stellarium.dir/Nebula.o
[ 10%] Building CXX object src/CMakeFiles/stellarium.dir/NebulaMgr.o
[ 11%] Building CXX object src/CMakeFiles/stellarium.dir/Constellation.o
[ 12%] Building CXX object src/CMakeFiles/stellarium.dir/ConstellationMgr.o
[ 13%] Building CXX object src/CMakeFiles/stellarium.dir/Meteor.o
[ 13%] Building CXX object src/CMakeFiles/stellarium.dir/MeteorMgr.o
[ 14%] Building CXX object src/CMakeFiles/stellarium.dir/Planet.o
[ 15%] Building CXX object src/CMakeFiles/stellarium.dir/orbit.o
[ 16%] Building CXX object src/CMakeFiles/stellarium.dir/SolarSystem.o
[ 17%] Building CXX object src/CMakeFiles/stellarium.dir/Telescope.o
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_stellarium/work/stellarium-0.9.0/src/Telescope.cpp: In member function 'virtual void TelescopeTcp::handleSelectFds(const fd_set&, const fd_set&)':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_stellarium/work/stellarium-0.9.0/src/Telescope.cpp:603: error: invalid conversion from 'const fd_set*' to 'fd_set*'
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_stellarium/work/stellarium-0.9.0/src/Telescope.cpp:603: error:   initializing argument 2 of 'int __darwin_fd_isset(int, fd_set*)'
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_stellarium/work/stellarium-0.9.0/src/Telescope.cpp:623: error: invalid conversion from 'const fd_set*' to 'fd_set*'
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_stellarium/work/stellarium-0.9.0/src/Telescope.cpp:623: error:   initializing argument 2 of 'int __darwin_fd_isset(int, fd_set*)'
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_stellarium/work/stellarium-0.9.0/src/Telescope.cpp:626: error: invalid conversion from 'const fd_set*' to 'fd_set*'
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_stellarium/work/stellarium-0.9.0/src/Telescope.cpp:626: error:   initializing argument 2 of 'int __darwin_fd_isset(int, fd_set*)'
make[2]: *** [src/CMakeFiles/stellarium.dir/Telescope.o] Error 1
make[1]: *** [src/CMakeFiles/stellarium.dir/all] Error 2
make: *** [all] Error 2

Attachments (1)

patch-stellarium_leopard_fd-isset.diff (911 bytes) - added by raimue (Rainer Müller) 13 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 13 years ago by raimue (Rainer Müller)

Owner: changed from macports-tickets@… to raimue@…

Works fine here on Mac OS X 10.4.11. Sorry, but I don't have Leopard yet to reproduce this...

comment:2 Changed 13 years ago by jmpp@…

Description: modified (diff)

comment:3 Changed 13 years ago by raimue (Rainer Müller)

Status: newassigned

Ok, I was now able to reproduce that and will look into it.

comment:4 Changed 13 years ago by raimue (Rainer Müller)

I've created a patch for this issue (patch-stellarium_leopard-fd_isset.diff), which I also submitted upstream.

But further building fails with another error:

Linking CXX executable stellarium
ld: cycle in dylib re-exports with /usr/X11R6/lib/libGL.dylib
collect2: ld returned 1 exit status

I found some info about it at x11-users and at Fink. As this seems to affect many packages, how was this solved in other ports before?

Changed 13 years ago by raimue (Rainer Müller)

comment:5 Changed 13 years ago by raimue (Rainer Müller)

Building works when I manually remove any reference to /usr/X11R6/lib, but I don't know where in those CMake files this comes from.

comment:6 Changed 12 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: assignedclosed

Fixed by updating the port to 0.10.0 in r40413.

comment:7 Changed 12 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.