Page 1 of 1

Celestia not compiling

Posted: 20.01.2006, 15:44
by Von_Zipper
Cannot compile in Gentoo.

...
checking for jpeg_start_decompress in -ljpeg... no
configure: error: jpeg library not found

This happens with both 1.3 and 1.4. And I have jpeg installed indeed. Do not know if this might be relevant but I do not have Gnome/KDE. Just plain xorg with GTK/GTK2, running XFCE. config.log available at request.

Posted: 20.01.2006, 23:37
by Juffo-Wup
Hi.

Are you using portage for compiling? Using emerge should solve all dependancy related problems.

I've never had any problems compiling different versions of Celestia in Gentoo.

Could you post your "emerge --info" for troubleshooting?

Have you posted this in the Gentoo forums? You might get better support there.

Posted: 21.01.2006, 01:12
by Von_Zipper
Yes, I posted in Gentoo forums. Maybe I shall file a bug in Bugzilla. And yes, I'm using emerge. As stated above jpeg libraries are installed and well present.
emerge --info

Gentoo Base System version 1.6.14
Portage 2.0.53 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-gentoo-r5 i686)
=================================================================
System uname: 2.6.14-gentoo-r5 i686 AMD Athlon(TM) XP 2500+
dev-lang/python: 2.3.5-r2, 2.4.2
sys-apps/sandbox: 1.2.12
sys-devel/autoconf: 2.13, 2.59-r6
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils: 2.16.1
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://distro.ibiblio.org/pub/linux/distributions/gentoo http://distfiles.gentoo.org"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac acpi alsa audiofile avi bash-completion berkdb bitmap-fonts bmp bzip2 cdparanoia cdr crypt cups curl dri dvd encode exif expat ffmpeg flac foomaticdb fortran gdbm gif gimpprint glut gphoto2 gpm gstreamer gtk gtk2 hal howl imagemagick imlib ipv6 java jpeg lcms libg++ libwww lm_sensors lua mad mhash mikmod mime mmx mmxext mng motif mp3 mpeg ncurses nls nsplugin ogg oggvorbis opengl oss pam pcre pdflib perl png ppds python quicktime readline samba sdl sensord slang spell sse ssl tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis win32codecs xine xml xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY

Posted: 21.01.2006, 01:24
by steve
Check config.log for the actual error. I just had to fix this:

/usr/lib/gcc/x86_64-redhat-linux/4.1.0/../../../../lib64/libgdkglext-x11-1.0.so: undefined reference to `pango_x_font_cache_load'
/usr/lib/gcc/x86_64-redhat-linux/4.1.0/../../../../lib64/libgdkglext-x11-1.0.so: undefined reference to `pango_x_font_cache_unload'
/usr/lib/gcc/x86_64-redhat-linux/4.1.0/../../../../lib64/libgdkglext-x11-1.0.so: undefined reference to `pango_x_find_first_subfont'
/usr/lib/gcc/x86_64-redhat-linux/4.1.0/../../../../lib64/libgdkglext-x11-1.0.so: undefined reference to `pango_x_font_subfont_xlfd'
/usr/lib/gcc/x86_64-redhat-linux/4.1.0/../../../../lib64/libgdkglext-x11-1.0.so: undefined reference to `pango_x_font_map_get_font_cache'
/usr/lib/gcc/x86_64-redhat-linux/4.1.0/../../../../lib64/libgdkglext-x11-1.0.so: undefined reference to `pango_x_font_map_for_display'

In my case, I had to add -lpangox-1.0 to GTK_LIBS to work around that issue (FC5 test2).

Posted: 21.01.2006, 01:44
by Juffo-Wup
Your emerge --info seems ok. Have you actually tried re-emerging media-libs/jpeg ?

I guess you could also try running "revdep-rebuild" to check for broken dependancies.

Posted: 21.01.2006, 01:58
by Von_Zipper
Thanks. Your advice is good. I know it's good because I did re-emerge jpeg and also revdep-rebuid before posting in Gentoo forums :)
Will work with config.log tomorrow. So long.

Posted: 21.01.2006, 13:07
by Von_Zipper
config.log is full of conftest.h related errors and some more, like "unrecognized command line option "-framework"". I'm using gcc version 3.4.4. Perhaps Celestia is not compatible...?

Posted: 22.01.2006, 16:31
by Juffo-Wup
gcc 3.4.4 works just fine for me. I'm running on a x86_64 system though.

Since I've also compiled Celestia on a x86 Gentoo machine with gcc 3.4.4, it does seem like your system is somehow borked.

Are you sure you have your entire system compiled with gcc 3.4.4? The 3.4.x series didn't become stable for x86 Gentoo until relatively recently, so you might still have some gcc 3.3.6 compiled stuff causing conflicts.

time for emerge -e world :twisted:

Posted: 22.01.2006, 16:40
by Von_Zipper
Yes, that's the plan right now. Thanks. :)