![]() |
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma)
Hi all,
Been trying to install a few bits on my computer recently, and I'm having some trouble getting them to compile ok. I'm running mandrake 10 official on KDE, running gcc. I would try simply updating everything I have related to compiling (gcc etc), but, here's the real problem, my computer doesn't have a net connection at the minute, and won't for a while (damn BT). This one does, but its dial up, and since our phone line is so bad it tends to connect at speeds more like 28.8 rather than 56 :S So, I'm hoping some of you lovely people can tell me what I specifically need. So I'm sorry, I know this is huge, but I'd really like these working. First, I'm trying to get Openal working. I downloaded it, but when I try to make it, I get a long series of errors. I've included the ./configure in case that helps too. [root@localhost linux]# ./configure loading cache ./config.cache checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking build system type... i686-pc-linux-gnu checking for gcc... (cached) gcc checking whether the C compiler (gcc -g -O2 ) works... yes checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking how to run the C preprocessor... (cached) gcc -E checking for sin in -lm... (cached) yes checking for dlopen in -ldl... (cached) yes checking for pthread.h... (cached) yes checking for makeinfo... (cached) no checking for a BSD compatible install... (cached) /usr/bin/install -c checking whether ln -s works... (cached) yes checking for gmake... (cached) gmake creating ./config.status creating Makefile creating src/Makefile creating doc/Makefile creating jlib/Makefile creating audioconvert/Makefile creating test/Makefile creating config.h config.h is unchanged [root@localhost linux]# make cd jlib && gmake all gmake[1]: Entering directory `/home/gregorya/openal/linux/jlib' ar cru libjlib.a globals.o hash.o gmake[1]: Leaving directory `/home/gregorya/openal/linux/jlib' cd src && gmake all gmake[1]: Entering directory `/home/gregorya/openal/linux/src' gcc -I../../include -I../include -I../audioconvert -Iarch -I. -g -O2 -fPIC -Wshadow -ansi -Wall -Wpointer-arith -W -Wbad-function-cast -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wimplicit-function-declaration -Waggregate-return -Winline -Wpointer-arith -Wstrict-prototypes -Wcast-align -Wcast-qual -ansi -Werror -pedantic-errors -Wredundant-decls -include '../config.h' -c al_ext.c -o al_ext.o al_ext.c:298:35: pasting "LAL_EXT_TABLE" and ""_"" does not give a valid preprocessing token al_ext.c:298:35: pasting ""_"" and "LAL_EXT_SUFFIX" does not give a valid preprocessing token al_ext.c:306:52: pasting "LAL_EXT_INIT" and ""_"" does not give a valid preprocessing token al_ext.c:306:52: pasting ""_"" and "LAL_EXT_SUFFIX" does not give a valid preprocessing token al_ext.c:307:52: pasting "LAL_EXT_FINI" and ""_"" does not give a valid preprocessing token al_ext.c:307:52: pasting ""_"" and "LAL_EXT_SUFFIX" does not give a valid preprocessing token gmake[1]: *** [al_ext.o] Error 1 gmake[1]: Leaving directory `/home/gregorya/openal/linux/src' make: *** [all] Error 2 [root@localhost linux]# Secondly, in trying to install SDLnet, it asks for SDL's GUIlib. However, when I try to compile that I get "defined reference" errors. Again, I've included the ./configure: [root@localhost GUIlib-1.1.1]# ./configure loading cache ./config.cache checking for a BSD compatible install... (cached) /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... (cached) yes checking for working aclocal... found checking for working autoconf... mafound checking for working automake... kefound checking for working autoheader... found checking for working makeinfo... missing checking whether make sets ${MAKE}... (cached) yes checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for c++... (cached) c++ checking whether the C++ compiler (c++ ) works... yes checking whether the C++ compiler (c++ ) is a cross-compiler... no checking whether we are using GNU C++... (cached) yes checking whether c++ accepts -g... (cached) yes checking host system type... i686-pc-linux-gnu checking build system type... i686-pc-linux-gnu checking for ld used by GCC... (cached) /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes checking for BSD-compatible nm... (cached) /usr/bin/nm -B checking whether ln -s works... (cached) yes checking for ranlib... (cached) ranlib loading cache ./config.cache within ltconfig checking whether ln -s works... (cached) yes checking for ranlib... (cached) ranlib checking for strip... (cached) strip checking for objdir... .libs checking for object suffix... (cached) o checking for executable suffix... (cached) no checking for gcc option to produce PIC... (cached) -fPIC checking if gcc PIC flag -fPIC works... (cached) yes checking if gcc static flag works... (cached) no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions ... no checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the linker (/usr/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking for /usr/bin/ld option to reload object files... -r checking dynamic linker characteristics... Linux ld.so checking command to parse /usr/bin/nm -B output... ok checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes creating libtool loading cache ./config.cache checking for a BSD compatible install... /usr/bin/install -c checking target system type... i686-pc-linux-gnu checking for sdl-config... (cached) /usr/bin/sdl-config checking for SDL - version >= 1.0.1... yes creating ./config.status creating Makefile [root@localhost GUIlib-1.1.1]# make /bin/sh ./libtool --mode=link gcc -g -O2 -I/usr/include/SDL -D_REENTRANT -o hello_C hello_C.o libGUI.la -L/usr/lib -lSDL -lpthread gcc -g -O2 -I/usr/include/SDL -D_REENTRANT -o .libs/hello_C hello_C.o ./.libs/libGUI.so -L/usr/lib /usr/lib/libSDL.so /usr/lib/libasound.so -lm -ldl -laudio -lXt -L/usr/X11R6/lib -lX11 -lXext -lpthread -L/usr/lib /usr/lib/libSDL.so /usr/lib/libasound.so -lm -ldl -laudio -lXt -L/usr/X11R6/lib -lX11 -lXext -lpthread -lpthread -Wl,--rpath -Wl,/usr/local/lib ./.libs/libGUI.so: undefined reference to `operator new[](unsigned)' ./.libs/libGUI.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info' ./.libs/libGUI.so: undefined reference to `operator delete(void*)' ./.libs/libGUI.so: undefined reference to `__gxx_personality_v0' ./.libs/libGUI.so: undefined reference to `__cxa_pure_virtual' ./.libs/libGUI.so: undefined reference to `vtable for __cxxabiv1::__class_type_info' ./.libs/libGUI.so: undefined reference to `operator delete[](void*)' ./.libs/libGUI.so: undefined reference to `operator new(unsigned)' collect2: ld returned 1 exit status make: *** [hello_C] Error 1 [root@localhost GUIlib-1.1.1]# With these two, I think there must be some library or similar which I'm missing thats needed to compile, am I right? Finally, and possibly for different reasons, I'm trying to install xmms-wma, but get: [root@localhost xmms-wma-1.0.3]# make make[1]: Entering directory `/home/gregorya/xmms-wma-1.0.3/ffmpeg-strip-wma' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/gregorya/xmms-wma-1.0.3/ffmpeg-strip-wma' gcc -c -o obj/xmms-wma.o -O2 -ffast-math -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DX86 -I ffmpeg-strip-wma `xmms-config --cflags` xmms-wma.c In file included from xmms-wma.c:31: /usr/include/xmms/util.h:3:21: gtk/gtk.h: No such file or directory In file included from xmms-wma.c:31: /usr/include/xmms/util.h:9: error: parse error before '*' token /usr/include/xmms/util.h:9: error: parse error before "GtkSignalFunc" In file included from xmms-wma.c:32: /usr/include/xmms/titlestring.h:24:21: gtk/gtk.h: No such file or directory In file included from xmms-wma.c:32: /usr/include/xmms/titlestring.h:80: error: parse error before '*' token In file included from xmms-wma.c:40: iir.h:26:21: gtk/gtk.h: No such file or directory iir.h:27:22: gdk/gdkx.h: No such file or directory xmms-wma.c:57: error: parse error before '*' token xmms-wma.c:57: warning: data definition has no type or storage class xmms-wma.c:58: error: parse error before '*' token xmms-wma.c:58: warning: data definition has no type or storage class xmms-wma.c: In function `wma_about': xmms-wma.c:143: warning: assignment makes pointer from integer without a cast xmms-wma.c:145: error: `gtk_widget_destroyed' undeclared (first use in this function) xmms-wma.c:145: error: (Each undeclared identifier is reported only once xmms-wma.c:145: error: for each function it appears in.) xmms-wma.c:149: warning: assignment makes pointer from integer without a cast xmms-wma.c:150: error: invalid type argument of `->' xmms-wma.c:153: warning: assignment makes pointer from integer without a cast xmms-wma.c:155: error: `gtk_widget_destroy' undeclared (first use in this function) xmms-wma.c:157: error: invalid type argument of `->' xmms-wma.c: In function `wma_file_info_box': xmms-wma.c:573: warning: assignment makes pointer from integer without a cast xmms-wma.c:575: error: `gtk_widget_destroyed' undeclared (first use in this function) xmms-wma.c:579: warning: assignment makes pointer from integer without a cast xmms-wma.c:580: error: invalid type argument of `->' xmms-wma.c:583: warning: assignment makes pointer from integer without a cast xmms-wma.c:585: error: `gtk_widget_destroy' undeclared (first use in this function) xmms-wma.c:587: error: invalid type argument of `->' make[1]: *** [obj/xmms-wma.o] Error 1 make: *** [all] Error 2 [root@localhost xmms-wma-1.0.3]# With xmms-wma, I think I originally didn't have xmms-devel installed, which I now think you need. I downloaded the rpm for that, and I seem to recall it gave me an error "requires glib-devel >= 1:1.2.2". However, as far as I can see, I've got glib-devel 2.3.3-10 (looking at remove programs). In any case, if I click the xmms-devel rpm again now, it says its all installed. Another thing to note is that xmms-devel I can only find version 1.2.10, whereas my xmms player is 1.2.9. Since I think gtk is to do with the glib library, how on earth do I fix this mess? Thanks again, I know this is long, Alex |
For the first two they look like errors in the code itself. For the xmms it looks like you need looking at my output below most likely the package for libgtk2.0-dev or whatever they call it in your distro.
Code:
[HappyTux:/home/stephen]# apt-file search gtk.hCode:
[HappyTux:/home/stephen]# apt-file search gdkx.h |
Thanks for the reply, many thanks.
Just out of interest, how can the first two be errors in the code itself if they run on other peoples computers? Hardware conflicts or what? Its definately not Mandrake either, because I need Openal in order to run Gish, and people are definately running Gish on Mandrake. And thanks, I downloaded gtk-devel and a handful of other Gtk packages and it built - however, it still wouldn't play .wma files until I disabled the mplayer plugin - it was trying to play the files through mplayer. Worth noting for anyone interested. Thanks very much for the help, Alex |
| All times are GMT -5. The time now is 06:43 PM. |