LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-23-2004, 06:34 AM   #1
gregorya
Member
 
Registered: Apr 2004
Location: Nottingham, England
Distribution: Mandrake KDE
Posts: 37

Rep: Reputation: 15
Unhappy 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
 
Old 08-23-2004, 12:30 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 64
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.h
cronosii: usr/share/gnome/help/cronosII/C/gtk.html
cronosii: usr/share/gnome/help/cronosII/C/gtk.html
ebook-dev-ggad: usr/share/doc/ebook-dev-ggad/html/cha-gtk.html
ebook-dev-ggad: usr/share/doc/ebook-dev-ggad/html/cha-gtk.html
egtk: usr/lib/egtk/C/ise/eif_gtk.h
egtk: usr/lib/egtk/C/ise/eif_gtk.h
egtk: usr/lib/egtk/C/se/eif_gtk.h
egtk: usr/lib/egtk/C/se/eif_gtk.h
gimp1.2: usr/share/gimp/1.2/help/C/dialogs/color_selectors/gtk.html
gnome-dev-doc: usr/share/doc/gnome-dev-doc/html/C/orbitgtk.html
gnome-dev-doc: usr/share/doc/gnome-dev-doc/html/C/orbitgtk.html
libbakery-2.3-dev: usr/include/bakery-2.4/bakery/App/libegg/recent-files/egg-recent-view-gtk.h
libgtk1.2-dev: usr/include/gtk-1.2/gtk/gtk.h
libgtk1.2-dev: usr/include/gtk-1.2/gtk/gtk.h
libgtk2-ruby: usr/lib/ruby/1.8/i386-linux/rbgtk.h
libgtk2-ruby: usr/lib/ruby/1.8/i386-linux/rbgtk.h
libgtk2.0-dev: usr/include/gtk-2.0/gtk/gtk.h
libgtk2.0-dev: usr/include/gtk-2.0/gtk/gtk.h
libgtk2.0-doc: usr/share/doc/libgtk2.0-doc/gtk/gtk.html
libgtk2.0-doc: usr/share/doc/libgtk2.0-doc/gtk/gtk.html
libguilegtk-1.2-dev: usr/include/guile-gtk.h
libguilegtk-1.2-dev: usr/include/guile-gtk.h
liblablgtk-ocaml-dev: usr/lib/ocaml/3.07/lablgtk/ml_gtk.h
liblablgtk-ocaml-dev: usr/lib/ocaml/3.08/lablgtk/ml_gtk.h
liblablgtk2-ocaml-dev: usr/lib/ocaml/3.07/lablgtk2/ml_gtk.h
liblablgtk2-ocaml-dev: usr/lib/ocaml/3.08/lablgtk2/ml_gtk.h
libmorph-dev: usr/include/xmorph/warp-gtk.h
libmorph-dev: usr/include/xmorph/warp-gtk.h
libsylpheed-claws-dev: usr/include/sylpheed-claws/imap_gtk.h
libsylpheed-claws-dev: usr/include/sylpheed-claws/imap_gtk.h
libsylpheed-claws-dev: usr/include/sylpheed-claws/mh_gtk.h
libsylpheed-claws-dev: usr/include/sylpheed-claws/mh_gtk.h
libsylpheed-claws-dev: usr/include/sylpheed-claws/news_gtk.h
libsylpheed-claws-dev: usr/include/sylpheed-claws/news_gtk.h
libsylpheed-claws-dev: usr/include/sylpheed-claws/prefs_gtk.h
libsylpheed-claws-dev: usr/include/sylpheed-claws/prefs_gtk.h
pike7.4-reference: usr/share/doc/pike7.4-doc/html/reference/ex/predef_3A_3A/GTK/setup_gtk.html
pike7.4-reference: usr/share/doc/pike7.4-doc/html/reference/ex/predef_3A_3A/GTK/setup_gtk.html
pike7.6-reference: usr/share/doc/pike7.6-doc/html/reference/ex/predef_3A_3A/GTK/setup_gtk.html
python-gtk-1.2: usr/include/pygtk/pygtk.h
python-gtk-1.2: usr/include/pygtk/pygtk.h
python-gtk2-dev: usr/include/pygtk-2.0/pygtk/pygtk.h
python-gtk2-dev: usr/include/pygtk-2.0/pygtk/pygtk.h
r-cran-gtkdevice: usr/lib/R/site-library/gtkDevice/html/gtk.html
r-cran-gtkdevice: usr/lib/R/site-library/gtkDevice/html/gtk.html
scilab: usr/lib/scilab/man/eng/utilities/with_gtk.htm
tetex-doc: usr/share/doc/texmf/help/Catalogue/entries/dvgtk.html
tetex-doc: usr/share/doc/texmf/help/Catalogue/entries/dvgtk.html
wxwin2.4-headers: usr/include/wx/gtk/tbargtk.h
wxwin2.4-headers: usr/include/wx/gtk/tbargtk.h
wxwin2.4-headers: usr/include/wx/gtk/win_gtk.h
wxwin2.4-headers: usr/include/wx/gtk/win_gtk.h
xdialog: usr/share/doc/xdialog/html/gtk.html
xdialog: usr/share/doc/xdialog/html/gtk.html
xemacs21-bin: usr/lib/xemacs-21.4.15/i386-debian-linux/include/console-gtk.h
xemacs21-bin: usr/lib/xemacs-21.4.15/i386-debian-linux/include/gccache-gtk.h
xemacs21-bin: usr/lib/xemacs-21.4.15/i386-debian-linux/include/glyphs-gtk.h
xemacs21-bin: usr/lib/xemacs-21.4.15/i386-debian-linux/include/gui-gtk.h
xemacs21-bin: usr/lib/xemacs-21.4.15/i386-debian-linux/include/objects-gtk.h
xemacs21-bin: usr/lib/xemacs-21.4.15/i386-debian-linux/include/scrollbar-gtk.h
xemacs21-bin: usr/lib/xemacs-21.4.15/i386-debian-linux/include/ui-gtk.h
Edit: Missed this one in the output
Code:
[HappyTux:/home/stephen]# apt-file search gdkx.h
libgtk1.2-dev: usr/include/gtk-1.2/gdk/gdkx.h
libgtk1.2-dev: usr/include/gtk-1.2/gdk/gdkx.h
libgtk2.0-dev: usr/include/gtk-2.0/gdk/gdkx.h
libgtk2.0-dev: usr/include/gtk-2.0/gdk/gdkx.h
BTW I found the plugin and compiled it my nephew says it works great.

Last edited by HappyTux; 08-23-2004 at 12:35 PM.
 
Old 08-27-2004, 06:03 AM   #3
gregorya
Member
 
Registered: Apr 2004
Location: Nottingham, England
Distribution: Mandrake KDE
Posts: 37

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
xmms-wma makes xmms to exit while try playing .wma deepclutch Debian 12 12-02-2005 07:53 PM
Kernel compiling: gcc-3.3 is 586, should be gcc-3.3 386 Erik Plaggenmar Linux - Software 0 10-01-2004 12:38 PM
Compiling gcc CuteBug Linux - Software 2 02-22-2004 10:19 AM
errors from mak/gcc compiling qcad wgself Programming 1 01-08-2004 08:51 AM
ERRORS Compiling GCC with mtype=c3-2 textures Linux - Software 0 11-27-2003 10:50 AM


All times are GMT -5. The time now is 11:34 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration