Page 1 of 1

Compilation problem on Slackware 10.0

Posted: 17.03.2006, 18:04
by sergey_feo
1. Sorry for my bad English ;-)
2. The distributive is Slackware 10.0 on kernel 2.6.8.1 and with
Xorg 7.0 and some other small changes (other zlib etc)...
3. But configure is OK.
Configure output is:

bash-2.05b$ configure --prefix=/struct/app/astronomy/celestia --exec-prefix=/struct/app/astronomy/celestia --with-kde
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for ld used by GCC... /usr/i486-slackware-linux/bin/ld
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... yes
checking for shared library run path origin... admin/config.rpath: admin/config.rpath: No such file or directory
done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking whether NLS is requested... yes
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C preprocessor... gcc -E
checking how to run the C++ preprocessor... g++ -E
checking for a BSD-compatible install... /usr/bin/ginstall -c -p
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/i486-slackware-linux/bin/ld
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... yes
checking for /usr/i486-slackware-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/i486-slackware-linux/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/i486-slackware-linux/bin/ld
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/i486-slackware-linux/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/i486-slackware-linux/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dlopen... (cached) no
checking for dlopen in -ldl... (cached) yes
checking whether a program can dlopen itself... (cached) yes
checking whether a statically linked program can dlopen itself... (cached) yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/i486-slackware-linux/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking whether to include debugging code... no
checking whether to be pedantic... no
checking whether to do profiling... no
checking whether to enable GLUT... no
checking whether to enable GTK... no
checking whether to enable Gnome... no
checking whether to enable KDE... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking whether g++ supports -Wmissing-format-attribute... yes
checking whether gcc supports -Wmissing-format-attribute... yes
checking whether g++ supports -Wundef... yes
checking whether g++ supports -Wno-long-long... yes
checking whether g++ supports -Wnon-virtual-dtor... yes
checking whether g++ supports -fno-exceptions... yes
checking whether g++ supports -fno-check-new... yes
checking whether g++ supports -fno-common... yes
checking whether g++ supports -fexceptions... yes
checking how to run the C++ preprocessor... g++ -E
checking whether g++ supports -O0... yes
checking whether g++ supports -Wl,--no-undefined... yes
checking whether g++ supports -Wl,--allow-shlib-undefined... yes
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for deflate in -lz... yes
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking for glNewList in -lGL... yes
checking GL/glu.h usability... yes
checking GL/glu.h presence... yes
checking for GL/glu.h... yes
checking for gluLookAt in -lGLU... yes
not using lib directory suffix
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking if C++ programs can be compiled... yes
checking for strlcat... no
checking if strlcat needs custom prototype... yes - in libkdefakes
checking for strlcpy... no
checking if strlcpy needs custom prototype... yes - in libkdefakes
checking for main in -lutil... yes
checking for main in -lcompat... no
checking for crypt in -lcrypt... yes
checking for socklen_t... yes
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for inet_ntoa... yes
checking for connect... (cached) yes
checking for remove... (cached) yes
checking for shmat... (cached) yes
checking for sys/types.h... (cached) yes
checking for stdint.h... (cached) yes
checking sys/bitypes.h usability... yes
checking sys/bitypes.h presence... yes
checking for sys/bitypes.h... yes
checking for poll in -lpoll... no
checking CoreAudio/CoreAudio.h usability... no
checking CoreAudio/CoreAudio.h presence... no
checking for CoreAudio/CoreAudio.h... no
checking if res_init needs -lresolv... yes
checking for res_init... yes
checking if res_init needs custom prototype... no
checking for killpg in -lucb... no
checking for int... yes
checking size of int... 4
checking for short... yes
checking size of short... 2
checking for long... yes
checking size of long... 4
checking for char *... yes
checking size of char *... 4
checking for dlopen in -ldl... (cached) yes
checking for shl_unload in -ldld... no
checking for size_t... yes
checking size of size_t... 4
checking for unsigned long... yes
checking size of unsigned long... 4
checking sizeof size_t == sizeof unsigned long... yes
checking crt_externs.h usability... no
checking crt_externs.h presence... no
checking for crt_externs.h... no
checking for _NSGetEnviron... no
checking for vsnprintf... yes
checking for snprintf... yes
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for IceConnectionNumber in -lICE... (cached) yes
checking for libXext... yes
checking for pthread_create in -lpthread... yes
checking for extra includes... no
checking for extra libs... no
checking for libz... -lz
checking for libpng... -lpng -lz -lm
checking for libjpeg6b... no
checking for libjpeg... -ljpeg
checking for perl... /usr/bin/perl
checking for Qt... libraries /usr/lib/qt/lib, headers /usr/lib/qt/include using -mt
checking for moc... /usr/lib/qt/bin/moc
checking for uic... /usr/lib/qt/bin/uic
checking whether uic supports -L ... yes
checking whether uic supports -nounload ... yes
checking if Qt needs -ljpeg... no
checking for rpath... yes
checking for KDE... libraries /opt/kde/lib, headers /opt/kde/include
checking if UIC has KDE plugins available... yes
checking for KDE paths... defaults
checking for dcopidl... /opt/kde/bin/dcopidl
checking for dcopidl2cpp... /opt/kde/bin/dcopidl2cpp
checking for mcopidl... /opt/kde/bin/mcopidl
checking for artsc-config... /opt/kde/bin/artsc-config
checking for meinproc... /opt/kde/bin/meinproc
checking for kconfig_compiler... /opt/kde/bin/kconfig_compiler
checking for dcopidlng... /opt/kde/bin/dcopidlng
checking for xmllint... /usr/bin/xmllint
checking for jpeg_start_decompress in -ljpeg... yes
checking for png_create_info_struct in -lpng... yes
checking for ANSI C header files... (cached) yes
checking byteswap.h usability... yes
checking byteswap.h presence... yes
checking for byteswap.h... yes
checking whether byte ordering is bigendian... no
checking whether we can create a new star database... no
checking whether to enable Celestia Extension Language... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/celutil/Makefile
config.status: creating src/celmath/Makefile
config.status: creating src/cel3ds/Makefile
config.status: creating src/celtxf/Makefile
config.status: creating src/celengine/Makefile
config.status: creating src/celestia/Makefile
config.status: creating data/Makefile
config.status: creating extras/Makefile
config.status: creating textures/Makefile
config.status: creating textures/lores/Makefile
config.status: creating textures/medres/Makefile
config.status: creating textures/hires/Makefile
config.status: creating models/Makefile
config.status: creating shaders/Makefile
config.status: creating fonts/Makefile
config.status: creating src/celestia/res/Makefile
config.status: creating src/celestia/kde/Makefile
config.status: creating src/celestia/kde/data/Makefile
config.status: creating src/celestia/kde/doc/Makefile
config.status: creating src/celestia/kde/doc/celestia/Makefile
config.status: creating src/celestia/gtk/Makefile
config.status: creating src/celestia/gtk/data/Makefile
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: executing depfiles commands


***************************************************************
** Celestia configuration complete. Now do a 'make' followed **
** by 'make install' **
***************************************************************

Front-End: KDE

4. After successfull configure, make is not OK.
The make output is:
(begin is cutted by me)
universe.cpp:256: warning: unused parameter `float appMag'
universe.cpp: In member function `virtual void NearStarFinder::process(const
Star&, float, float)':
universe.cpp:285: warning: unused parameter `float appMag'
universe.cpp: In member function `Selection Universe::pickPlanet(SolarSystem&,
const UniversalCoord&, const Vec3f&, double, float, float)':
universe.cpp:430: warning: unused parameter `float faintestMag'
universe.cpp: In member function `virtual void StarPicker::process(const Star&,
float, float)':
universe.cpp:532: warning: unused parameter `float distance'
universe.cpp:532: warning: unused parameter `float appMag'
universe.cpp: In member function `virtual void CloseStarPicker::process(const
Star&, float, float)':
universe.cpp:615: warning: unused parameter `float appMag'
universe.cpp: In member function `virtual void
DSOPicker::process(DeepSkyObject* const&, double, float)':
universe.cpp:747: warning: unused parameter `double distance'
universe.cpp:747: warning: unused parameter `float appMag'
universe.cpp: In member function `CloseDSOPicker::CloseDSOPicker(const
Point3d&, const Vec3d&, double, float)':
universe.cpp:799: warning: unused parameter `float angle'
universe.cpp: In member function `virtual void
CloseDSOPicker::process(DeepSkyObject* const&, double, float)':
universe.cpp:812: warning: unused parameter `float appMag'
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -MT vertexlist.o -MD -MP -MF ".deps/vertexlist.Tpo" \
-c -o vertexlist.o `test -f 'vertexlist.cpp' || echo './'`vertexlist.cpp; \
then mv -f ".deps/vertexlist.Tpo" ".deps/vertexlist.Po"; \
else rm -f ".deps/vertexlist.Tpo"; exit 1; \
fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -MT vertexprog.o -MD -MP -MF ".deps/vertexprog.Tpo" \
-c -o vertexprog.o `test -f 'vertexprog.cpp' || echo './'`vertexprog.cpp; \
then mv -f ".deps/vertexprog.Tpo" ".deps/vertexprog.Po"; \
else rm -f ".deps/vertexprog.Tpo"; exit 1; \
fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -MT virtualtex.o -MD -MP -MF ".deps/virtualtex.Tpo" \
-c -o virtualtex.o `test -f 'virtualtex.cpp' || echo './'`virtualtex.cpp; \
then mv -f ".deps/virtualtex.Tpo" ".deps/virtualtex.Po"; \
else rm -f ".deps/virtualtex.Tpo"; exit 1; \
fi
virtualtex.h: In constructor `VirtualTexture::VirtualTexture(const
std::string&, unsigned int, unsigned int, const std::string&, const
std::string&)':
virtualtex.h:72: warning: `VirtualTexture::baseSplit' will be initialized after
virtualtex.h:71: warning: `std::string VirtualTexture::tilePrefix'
virtualtex.cpp:66: warning: when initialized here
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -MT vsop87.o -MD -MP -MF ".deps/vsop87.Tpo" \
-c -o vsop87.o `test -f 'vsop87.cpp' || echo './'`vsop87.cpp; \
then mv -f ".deps/vsop87.Tpo" ".deps/vsop87.Po"; \
else rm -f ".deps/vsop87.Tpo"; exit 1; \
fi
vsop87.cpp:379: warning: `VSOPTerm mercury_R5[1]' defined but not used
vsop87.cpp:595: warning: `VSOPTerm venus_R5[1]' defined but not used
vsop87.cpp:781: warning: `VSOPTerm earth_B3[3]' defined but not used
vsop87.cpp:788: warning: `VSOPTerm earth_B4[1]' defined but not used
vsop87.cpp:793: warning: `VSOPTerm earth_B5[1]' defined but not used
rm -f libcelengine.a
ar cru libcelengine.a asterism.o astro.o body.o boundaries.o catalogxref.o cmdparser.o command.o console.o constellation.o customorbit.o dds.o deepskyobj.o dispmap.o dsodb.o dsoname.o dsooctree.o execution.o fragmentprog.o frame.o galaxy.o glcontext.o glext.o glshader.o image.o jpleph.o location.o lodspheremesh.o marker.o mesh.o meshmanager.o model.o modelfile.o multitexture.o nebula.o observer.o opencluster.o orbit.o overlay.o parseobject.o parser.o regcombine.o rendcontext.o render.o samporbit.o selection.o shadermanager.o simulation.o solarsys.o spheremesh.o star.o starbrowser.o starcolors.o stardb.o starname.o staroctree.o stellarclass.o texmanager.o texture.o tokenizer.o trajmanager.o univcoord.o universe.o vertexlist.o vertexprog.o virtualtex.o vsop87.o
ranlib libcelengine.a
make[3]: Leaving directory `/usr/local/struct/distr/1/celestia-1.4.1/celestia-1.4.1/src/celengine'
Making all in celestia
make[3]: Entering directory `/usr/local/struct/distr/1/celestia-1.4.1/celestia-1.4.1/src/celestia'
Making all in res
make[4]: Entering directory `/usr/local/struct/distr/1/celestia-1.4.1/celestia-1.4.1/src/celestia/res'
make[4]: ?¦?µ?»?? `all' ???µ ?‚?€?µ?±???µ?‚ ???‹?????»???µ?????

Posted: 18.03.2006, 16:48
by jbernardo
Exactly the same problems I'm seeing here. kde 3.5, xorg 3.6.9. If I try to build with the gkt+2 frontend, it dies at the configure stage, because when testing the linking of libjpeg, it doesn't link pangox and libgtkglext needs pangox and not pango.

Posted: 17.04.2006, 07:16
by Lethe
OK, I got a fix for this (I am on slackware 10 base, with GCC 3.4.6 - I get the smae error). I don't know why it happens, as I am not an expert C++ coder, and reading somebody elses C++ code is impossible anyway...

in your favourite text editor, open up:

src/celestia/kde/celsplashscreen.cpp

and change this (around line 58 ):

Code: Select all

void CelSplashScreen::update(const string& _message) {
    status.setContent(_message);
    repaint();
}


to this:

Code: Select all

void CelSplashScreen::update(const string& _message) {
    status.setContent("Slackware Build");
    repaint();
}


It will now all build OK. When installed, the splashscreen will show 'Slackware Build' in the bottom right hand corner.

You may also get problems installing... I had to remove all traces of 1.3.x and then install celestia 1.4.1 in a new location for a clean install (I did hack the Makefile a bit, but then you have to move some stuff around manually, which isn't right).

Hope that helps.

Nick