Page 1 of 1

Build problems from cvs

Posted: 20.08.2003, 10:47
by steffens
I don't know if this is the right place to post my problem or if I should have posted this to the "Development" board, but anyway...

Since a couple of days I can't compile celestia from cvs anymore. The last lines of output:

Code: Select all

g++ -DHAVE_CONFIG_H -I. -I. -I../..   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dt
or -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -
ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2
-fno-exceptions -fno-check-new  -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-fr
ame-pointer -c -o formatnum.o `test -f formatnum.cpp || echo './'`formatnum.cpp
formatnum.cpp: In function `class ostream & operator <<(ostream &, const FormattedNumber
&)':
formatnum.cpp:68: implicit declaration of function `int strchr(...)'
formatnum.cpp:68: warning: NULL used in arithmetic
formatnum.cpp:77: implicit declaration of function `int isdigit(...)'
make[3]: *** [formatnum.o] Fehler 1
make[3]: Leaving directory `/home/steffens/src/celestia/src/celutil'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/home/steffens/src/celestia/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/steffens/src/celestia'
make: *** [all] Fehler 2


Could anybody help and tell me what's wrong?
configure went without problems (as it used to do). Some of my system specs:

Debian Woody
Kernel 2.4.20
KDE 3.1.3

Maybe it's the somewhat ancient gcc/g++ system in woody?

steffens

Posted: 20.08.2003, 15:16
by Christophe
What version of gcc and glibc do you have?

Try adding the following two lines to src/celutil/formatnum.cpp

Code: Select all

#include <string.h>
#include <ctype.h>

Posted: 20.08.2003, 15:52
by steffens
Debian Woody comes with gcc 2.95.4 and gcc 3.0.?, which I tried both. I don't remember the exact version of glibc right now. I will try the includes as soon as I get home.

Thanks,
steffens

Posted: 20.08.2003, 17:42
by steffens
Christophe wrote:What version of gcc and glibc do you have?

Try adding the following two lines to src/celutil/formatnum.cpp

Code: Select all

#include <string.h>
#include <ctype.h>

OK, that did the trick for this file!
But still I don't get far:

Code: Select all

g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I..  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new  -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -c -o dds.o `test -f dds.cpp || echo './'`dds.cpp
dds.cpp: In function `class Image * LoadDDSImage(const string &)':
dds.cpp:142: implicit declaration of function `int printf(...)'
dds.cpp:203: implicit declaration of function `int max(...)'
make[3]: *** [dds.o] Fehler 1
make[3]: Leaving directory `/home/steffens/src/celestia/src/celengine'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/home/steffens/src/celestia/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/steffens/src/celestia'
make: *** [all] Fehler 2


By the way, my glibc version is 2.2.5

Thanks,
steffens

Posted: 20.08.2003, 18:59
by chris
Fridger notified me of these problems, and I still need to fix them. I should be able to get to it tonight . . .

--Chris

Posted: 20.08.2003, 19:54
by Christophe
chris wrote:Fridger notified me of these problems, and I still need to fix them. I should be able to get to it tonight . . .


I thought these had already been fixed. I'm now back at home and I didn't have a problem building the latest CVS.

still not working

Posted: 12.09.2003, 08:39
by steffens
I have been on vacation for some time. Back now I was looking forward to a new celestia build and playing with some virtual textures. But sadly still:

Code: Select all

g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I..  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new  -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -c -o image.o `test -f image.cpp || echo './'`image.cpp
In file included from /usr/include/jpeglib.h:24,
 from image.cpp:43:
 /usr/include/jconfig.h:12: warning: `HAVE_STDLIB_H' redefined
 ../../config.h:97: warning: this is the location of the previous definition
 In file included from celestia.h:34,
  from image.cpp:60:
  ../../config.h:97: warning: `HAVE_STDLIB_H' redefined
  /usr/include/jconfig.h:12: warning: this is the location of the previous definition
  image.cpp: In function `int calcMipLevelSize(int, int, int, int)':
  image.cpp:118: implicit declaration of function `int max(...)'
  image.cpp: In function `class Image * LoadJPEGImage(const string &, int = Image::ColorChannel)':
  image.cpp:391: warning: unused parameter `int channels'
  image.cpp:393: warning: variable `class Image * img' might be clobbered by `longjmp' or `vfork'
  image.cpp: In function `class Image * LoadPNGImage(const string &)':
  image.cpp:611: warning: variable `class Image * img' might be clobbered by `longjmp' or `vfork'
  make[3]: *** [image.o] Fehler 1
  make[3]: Leaving directory `/home/steffens/src/celestia/src/celengine'
  make[2]: *** [all-recursive] Fehler 1
  make[2]: Leaving directory `/home/steffens/src/celestia/src'
  make[1]: *** [all-recursive] Fehler 1
  make[1]: Leaving directory `/home/steffens/src/celestia'
  make: *** [all] Fehler 2


What's wrong? Does nobody else have these problems? Is it time now to update my system (still my good old Debian Woody, I like it :-) )?

steffens