OCT
27
2003

Seeking help for bug #65429

The skinny: two people have reported that KStars will not compile for them; both are using Redhat 9 and gcc 3.2.2. The error message is:

lx200classic.cpp:29: structure `eqNum' with uninitialized const members

eqNum is a struct with const members, which *are* initialized in lx200generic.cpp. In lx200classic.cpp, we reference it with 'extern INumberVectorProperty eqNum;'. Obviously none of us on the KStars team have had a problem compiling the code, and Stephan Binner commented at BKO that it works for him as well. So it seems to be a weird compiler-specific issue.

Beta1 is almost upon us; I'd hate to have even a rare compiler issue in there. First off, does anyone see immediately a better way to handle this struct? Secondly, if you have recently compiled kdeedu from HEAD, can you post your results, or email them to me (kstars AT 30doradus DOT org)? We are especially interested if you are seeing this error, OR if you do *not* get an error using RH9 and gcc 3.2.2. Even "works here" messages are good, though :)

Thanks!

Comments

Well, it's more a Cooker, anyway I'm using gcc with these -v output:

Reading specs from /usr//bin/../lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/specs
Configured with: ../configure --prefix=/usr --libdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-long-long --enable-__cxa_atexit --enable-languages=c,c++,ada,f77,objc,java --host=i586-mandrake-linux-gnu --with-system-zlib
Thread model: posix
gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)

and the error output was the same described here (infact I'm arrived at this page with a copy'n'paste of the infamous line in Google ^_^ ) Anyway here it is:

lx200generic.cpp:88: warning: deprecated conversion from string constant to `char*'
lx200generic.cpp:120: warning: deprecated conversion from string constant to `char*'
lx200generic.cpp:139: warning: deprecated conversion from string constant to `char*'
In file included from lx200generic.all_cpp.cpp:6:
lx200classic.cpp:29: structure `eqNum' with uninitialized const members
lx200classic.cpp:36: warning: deprecated conversion from string constant to `char*'
lx200classic.cpp:48: warning: aggregate has a partly bracketed initializer
make[6]: *** [lx200generic.all_cpp.o] Error 1

hope it helps!

And, please, since I don't need KStars, may you tell me a way to jump on this issue, so I can finish to compile KDE3.2 beta1? Really thanx! :)


By vide at Wed, 11/05/2003 - 21:56