1.2.5 fails to compile on RH 8.0

General discussion about Celestia that doesn't fit into other forums.
Topic author
Tasiog

1.2.5 fails to compile on RH 8.0

Post #1by Tasiog » 13.01.2003, 22:13

Hello all,

First, thanks for this wonderful software. I installed version 1.2.4 and I really enjoyed it.

Now I'd like to upgrade to version 1.2.5, but I'm having some problems compiling it on my linux machine (Red Hat 8.0). The "configure" file is missing (I downloaded the CVS version, not the tar file), so I run autoconf to create it. Autoconf generates the following messages:

configure.in:12: error: possibly undefined macro: AM_INIT_AUTOMAKE
configure.in:13: error: possibly undefined macro: AM_CONFIG_HEADER
configure.in:15: error: possibly undefined macro: AM_ACLOCAL_INCLUDE
configure.in:39: error: possibly undefined macro: AC_LIBTOOL_DLOPEN
configure.in:40: error: possibly undefined macro: AC_PROG_LIBTOOL
configure.in:148: error: possibly undefined macro: AM_PATH_GTK
configure.in:186: error: possibly undefined macro: AM_CONDITIONAL
configure.in:195: error: possibly undefined macro: AC_CHECK_COMPILERS
configure.in:196: error: possibly undefined macro: AC_ENABLE_SHARED
configure.in:197: error: possibly undefined macro: AC_ENABLE_STATIC
configure.in:203: error: possibly undefined macro: AC_PATH_KDE

If I copy the file "aclocal.m4" from celestia-1.2.4 distribution, I get instead:

configure.in:39: error: possibly undefined macro: AC_LIBTOOL_DLOPEN
configure.in:40: error: possibly undefined macro: AC_PROG_LIBTOOL
configure.in:195: error: possibly undefined macro: AC_CHECK_COMPILERS
configure.in:196: error: possibly undefined macro: AC_ENABLE_SHARED
configure.in:197: error: possibly undefined macro: AC_ENABLE_STATIC
configure.in:203: error: possibly undefined macro: AC_PATH_KDE


Now I run now "configure", but it complains:

configure: error: cannot run /bin/sh admin/config.sub


Ok. Now I copy "config.sub" from the distribution root directory to "admin/" folder, and after a lot of messages, configure complains again:

configure: line 3168: AC_LIBTOOL_DLOPEN: command not found
configure: line 3169: AC_PROG_LIBTOOL: command not found
configure: line 6335: syntax error near unexpected token `yes'
configure: line 6335: ` AC_ENABLE_SHARED(yes)'

I'm pretty new to autoconf/automake stuff, but I think I just need an updated "aclocal.m4" file. How can I create it ?. Or maybe the problem is something else ?

I'm using autoconf-2.53-8, automake-1.6.3-1, libtool-1.4.2-12 with kernel 2.4.18-14.

Thanks,

Tasio

Christophe
Developer
Posts: 944
Joined: 18.07.2002
With us: 22 years 4 months
Location: Lyon (France)

Post #2by Christophe » 13.01.2003, 22:24

Use:

libtoolize --force
aclocal -I macros
autoheader
automake
autoconf

Topic author
Tasiog

Post #3by Tasiog » 14.01.2003, 18:08

Christphe,

Thanks a lot !. It worked fine, and now I have celestia 1.2.5 up and running

Regards,

Tasio

robpar

Compiling Celestia under RH 8.0

Post #4by robpar » 23.01.2003, 23:04

I have tried to compile Celestia with RH 8.0 starting with 1.2.4 when that
failed I moved back to 1.2.2, which also failed. In hopes that the problem
had been solved I tried 1.2.5. As with the previous versions the configure
went OK, the make is where it break down.

With 1.2.4 it was with Star Browser. With 1.2.5 I get the following errors.
If anyone can help I would appreciate it.

collect2: ld returned 1 exit status
make[4]: *** [celestia] Error 1
make[4]: Leaving directory `/usr/local/celestia-1.2.5/src/celestia'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/celestia-1.2.5/src/celestia'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/celestia-1.2.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/celestia-1.2.5'
make: *** [all] Error 2

Christophe
Developer
Posts: 944
Joined: 18.07.2002
With us: 22 years 4 months
Location: Lyon (France)

Post #5by Christophe » 23.01.2003, 23:29

Celestia 1.2.5 does compile on RH 8.0, at least the KDE version.

For us to be able to help you you need to tell us the configure options you used. The make output you're giving is quite useless too, 'Leaving directory' messages aren't that informative, the important bit is what comes just before that (ie the command that fails). All that can be said for now is that it's a link error.

--
Christophe

robpar

1.2.5 does not compile under RH 8.0

Post #6by robpar » 24.01.2003, 01:38

I used ./configure --with-gtk as well as --with-kde

here is the read out from make

[root@Deneb celestia-1.2.5]# make
make all-recursive
make[1]: Entering directory `/usr/local/celestia-1.2.5'
Making all in src
make[2]: Entering directory `/usr/local/celestia-1.2.5/src'
Making all in celutil
make[3]: Entering directory `/usr/local/celestia-1.2.5/src/celutil'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/celestia-1.2.5/src/celutil'
Making all in celmath
make[3]: Entering directory `/usr/local/celestia-1.2.5/src/celmath'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/celestia-1.2.5/src/celmath'
Making all in cel3ds
make[3]: Entering directory `/usr/local/celestia-1.2.5/src/cel3ds'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/celestia-1.2.5/src/cel3ds'
Making all in celtxf
make[3]: Entering directory `/usr/local/celestia-1.2.5/src/celtxf'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/celestia-1.2.5/src/celtxf'
Making all in celengine
make[3]: Entering directory `/usr/local/celestia-1.2.5/src/celengine'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/celestia-1.2.5/src/celengine'
Making all in celestia
make[3]: Entering directory `/usr/local/celestia-1.2.5/src/celestia'
Making all in res
make[4]: Entering directory `/usr/local/celestia-1.2.5/src/celestia/res'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/usr/local/celestia-1.2.5/src/celestia/res'
Making all in kde
make[4]: Entering directory `/usr/local/celestia-1.2.5/src/celestia/kde'
make[5]: Entering directory `/usr/local/celestia-1.2.5/src/celestia/kde'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/usr/local/celestia-1.2.5/src/celestia/kde'
make[4]: Leaving directory `/usr/local/celestia-1.2.5/src/celestia/kde'
make[4]: Entering directory `/usr/local/celestia-1.2.5/src/celestia'
/bin/sh ../../libtool --silent --mode=link g++ -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -o celestia celestiacore.o configfile.o destination.o favorites.o imagecapture.o url.o ../celengine/libcelengine.a ../celtxf/libceltxf.a ../cel3ds/libcel3ds.a ../celmath/libcelmath.a ../celutil/libcelutil.a -lpng -ljpeg -lglut -lGLU -lGL -lSM -lICE -lm -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm -lGL -L/usr/X11R6/lib -lXmu -lXi -lXext -lX11 -lm -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crt1.o: In function `_start':
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crt1.o(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
make[4]: *** [celestia] Error 1
make[4]: Leaving directory `/usr/local/celestia-1.2.5/src/celestia'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/celestia-1.2.5/src/celestia'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/celestia-1.2.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/celestia-1.2.5'
make: *** [all] Error 2

Christophe
Developer
Posts: 944
Joined: 18.07.2002
With us: 22 years 4 months
Location: Lyon (France)

Post #7by Christophe » 24.01.2003, 19:46

For some reason gtkmain.cpp hasn't been compiled. I would suggest you try again from a clean directory:

> tar xvzf celestia-1.2.5.tgz
> cd celestia
> ./configure --with-gtk
> make
> make install

or

> tar xvzf celestia-1.2.5.tgz
> cd celestia
> ./configure --with-kde --prefix=/usr
> make
> make install

Don't use --with-kde and --with-gtk at the same time, they are incompatible.


Return to “Celestia Users”