Can anyone help with install problem?

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

Can anyone help with install problem?

Post #1by gbryan » 13.02.2003, 12:21

Would appreciate any help with an install problem....

./configure completes successfully, however make fails with the following error...

/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/crt1.o: In function `_start':
/usr/lib/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/src/celestia'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/celestia/src/celestia'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/celestia/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/celestia'
make: *** [all] Error 2

Can anyone help me solve this / or provide some help with diagnosing the problem further (I'm running SuSe Linux 8.0 professional)

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 8 months
Location: Hamburg, Germany

Can anyone help with install problem?

Post #2by t00fri » 13.02.2003, 20:50

gbryan wrote:Would appreciate any help with an install problem....

./configure completes successfully, however make fails with the following error...

/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/crt1.o: In function `_start':
/usr/lib/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/src/celestia'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/celestia/src/celestia'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/celestia/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/celestia'
make: *** [all] Error 2

Can anyone help me solve this / or provide some help with diagnosing the problem further (I'm running SuSe Linux 8.0 professional)


Lots of crucial info is missing.

Which version are you trying to compile??? There is one in SuSE (1.2.4?), there is the official 1.2.5 and there is 1.2.6 CVS...

What did you want to configure Celestia-KDE or Celestia-gtk? I cannot see KDE libs anywhere. What were the arguments of ./configure you used? Never use both: --with-kde and --with-gtk!

Bye Fridger

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

Post #3by Christophe » 13.02.2003, 22:10

That's not the first time someone reports that problem where no main() object file is linked in the final executable. There is obviously a documentation problem, but configure shouldn't produce a broken makefile in the first place. We should work on making it smarter.

--
Christophe

Topic author
gbryan

Post #4by gbryan » 14.02.2003, 11:38

I've grown a few brain cells since my original post.

I believe that the original msg was as a result of me not specifying --with-kde to configure. I still can't get celestia to compile however.

With KDE, the make phase fails horribly with lots of error messages relating to KListView. I the went on to trying --with-gtk (from a completely clean dir). This time configure fails with the following error msg...

checking for GTK - version >= 1.2.0... yes
checking for gdk_gl_query in -lgtkgl... no
configure: error: Unable to find gtkglarea

my gtk version is 1.2.10-284, I have the correct devel packages installed.

I've checked config.log and pasted the relevant section in below....

configure:14951: checking for gdk_gl_query in -lgtkgl
configure:14984: gcc -o conftest conftest.c -lgtkgl -lm -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -
lXext -lX11 -lm -lGL >&5
/usr/i486-suse-linux/bin/ld: cannot find -lgtkgl
collect2: ld returned 1 exit status
configure:14987: $? = 1
configure: failed program was:
#line 14958 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char gdk_gl_query ();
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
gdk_gl_query ();
;
return 0;
}
configure:15004: result: no
configure:15019: error: Unable to find gtkglarea

This doesn't help me figure out what's going on - perhaps it will you ;-)

By the way, I'm trying to build celestia 1.2.5 - sorry for not including that relevant piece of info from my last post.

Someone mentioned 1.2.4 was already in SuSe - I can't seem to find the package, I wonder if anyone else has a link to an RPM/ Although I would ideally like to use 1.2.5.

Again, would appreciate any help on this - Celestia looks like a great piece of software - just wish I could find out for myself ;-)

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 8 months
Location: Hamburg, Germany

Post #5by t00fri » 14.02.2003, 16:17

gbryan wrote:I've grown a few brain cells since my original post.

I believe that the original msg was as a result of me not specifying --with-kde to configure. I still can't get celestia to compile however.

With KDE, the make phase fails horribly with lots of error messages relating to KListView. I the went on to trying --with-gtk (from a completely clean dir). This time configure fails with the following error msg...

checking for GTK - version >= 1.2.0... yes
checking for gdk_gl_query in -lgtkgl... no
configure: error: Unable to find gtkglarea

my gtk version is 1.2.10-284, I have the correct devel packages installed.

I've checked config.log and pasted the relevant section in below....

configure:14951: checking for gdk_gl_query in -lgtkgl
configure:14984: gcc -o conftest conftest.c -lgtkgl -lm -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -
lXext -lX11 -lm -lGL >&5
/usr/i486-suse-linux/bin/ld: cannot find -lgtkgl
collect2: ld returned 1 exit status
configure:14987: $? = 1
configure: failed program was:
#line 14958 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char gdk_gl_query ();
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
gdk_gl_query ();
;
return 0;
}
configure:15004: result: no
configure:15019: error: Unable to find gtkglarea

This doesn't help me figure out what's going on - perhaps it will you ;-)

By the way, I'm trying to build celestia 1.2.5 - sorry for not including that relevant piece of info from my last post.

Someone mentioned 1.2.4 was already in SuSe - I can't seem to find the package, I wonder if anyone else has a link to an RPM/ Although I would ideally like to use 1.2.5.

Again, would appreciate any help on this - Celestia looks like a great piece of software - just wish I could find out for myself ;-)


You need to have installed KDE 3.0x or 3.1x from the special SuSE KDE upgrade section if you want to run or compile celestia-kde.

Of course, I have prepared an official celestia-kde-1.2.5-1.SuSE.i586.rpm

for download on SourceForge:
http://sourceforge.net/project/showfile ... _id=132174
Note that you must also download the texture files separately.

This was properly announced in the forum. But you need a KDE3 runtime installation for it.

After you have installed the RPM, you may do in /opt/kde3/bin:

ldd celestia

which shows you what runtime libraries are missing. Note that you also need to install the qt-3.x libraries! The KDE celestia version is /highly/ recommended.

For the gtk version, apparently at least the gtkglarea package is missing. You need to install both the runtime and devel SuSE packages if you want to compile.

Bye Fridger


Return to “Celestia Users”