Package: stellarium
Version: 0.6.2-2
Severity: serious
Tags: patch

stellarium fails to build because it uses stel_ui before it is declared:

> if i486-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I. -I../src/glpng 
> -I../src/stellplanet -I../src/stellastro -I../src/iniparser    -Wall -O3 
> -I/usr/include/SDL -D_REENTRANT -MT stel_ui.o -MD -MP -MF ".deps/stel_ui.Tpo" 
> \
>   -c -o stel_ui.o `test -f 'stel_ui.cpp' || echo './'`stel_ui.cpp; \
> then mv -f ".deps/stel_ui.Tpo" ".deps/stel_ui.Po"; \
> else rm -f ".deps/stel_ui.Tpo"; exit 1; \
> fi
> stel_object.h:38: warning: 'class stel_object' has virtual functions but 
> non-virtual destructor
> orbit.h:20: warning: 'class Orbit' has virtual functions but non-virtual 
> destructor
> orbit.h:30: warning: 'class EllipticalOrbit' has virtual functions but 
> non-virtual destructor
> orbit.h:61: warning: 'class OrbitSampleProc' has virtual functions but 
> non-virtual destructor
> orbit.h:75: warning: 'class CachingOrbit' has virtual functions but 
> non-virtual destructor
> stel_core.h:149: error: ISO C++ forbids declaration of 'stel_ui' with no type
> stel_core.h:149: error: expected ';' before '*' token

Adding a forward declaration fixes this problem.  The attached patch
does so.

-- 
Matt
only in patch2:
unchanged:
--- stellarium-0.6.2.orig/src/stel_core.h
+++ stellarium-0.6.2/src/stel_core.h
@@ -46,6 +46,8 @@
 #include "meteor_mgr.h"
 #include "sky_localizer.h"
 
+class stel_ui;
+
 class stel_core
 {
 friend class stel_ui;

Attachment: signature.asc
Description: Digital signature

Reply via email to