Errors compiling on Redhat 9
by John \"Johnny Action\" Aho · in Torque Game Engine · 11/17/2003 (11:48 am) · 20 replies
I ran into these errors when compiling HEAD. If anyone has an idea of where to go from here that would be much appreciated.
> Compiling platformX86UNIX/x86UNIXUtils.cc
--> Linking out.GCC2.DEBUG/torqueDemo_DEBUG.bin
../lib/vorbis/linux/libvorbis.a(info.o)(.text+0x1ae): In function 'vorbis_commen
t_query':
: undefined reference to '__ctype_toupper'
../lib/vorbis/linux/libvorbis.a(info.o)(.text+0x286): In function 'vorbis_commen
t_query_count':
: undefined reference to '__ctype_toupper'
collect2: ld returned 1 exit status
make[1]: *** [out.GCC2.DEBUG/torqueDemo_DEBUG.bin] Error 1
make: *** [default] Error 2
> Compiling platformX86UNIX/x86UNIXUtils.cc
--> Linking out.GCC2.DEBUG/torqueDemo_DEBUG.bin
../lib/vorbis/linux/libvorbis.a(info.o)(.text+0x1ae): In function 'vorbis_commen
t_query':
: undefined reference to '__ctype_toupper'
../lib/vorbis/linux/libvorbis.a(info.o)(.text+0x286): In function 'vorbis_commen
t_query_count':
: undefined reference to '__ctype_toupper'
collect2: ld returned 1 exit status
make[1]: *** [out.GCC2.DEBUG/torqueDemo_DEBUG.bin] Error 1
make: *** [default] Error 2
#2
Edit: Here's a link to the sources you need, version 1.0
www.xiph.org/ogg/vorbis/download/libvorbis-1.0.tar.gz
11/17/2003 (4:14 pm)
Ok, yes, the problem is an incompatability with the lib in the cvs and redhat's 9 gcc. You will have to get ogg vorbis and compile it yourself, then grab the libvorbis.a and replace it.Edit: Here's a link to the sources you need, version 1.0
www.xiph.org/ogg/vorbis/download/libvorbis-1.0.tar.gz
#3
The only thing I can't get working is the sound but that is another post.
thanks.
11/17/2003 (11:43 pm)
Thanks for the help. I got it compiled and running on RH9 after I replaced libvorbis.a with a newly compiled one, and installed the NVIDIA driver. The only thing I can't get working is the sound but that is another post.
thanks.
#4
11/18/2003 (12:22 am)
You need OpenAL for the sound.
#5
[root@hh122-58 linux]# sh ./autogen.sh
WARNING: Using auxiliary files such as 'acconfig.h', 'config.h.bot'
WARNING: and 'config.h.top', to define templates for 'config.h.in'
WARNING: is deprecated and discouraged.
WARNING: Using the third argument of 'AC_DEFINE' and
WARNING: 'AC_DEFINE_UNQUOTED' allows to define a template without
WARNING: 'acconfig.h':
WARNING: AC_DEFINE([NEED_MAIN], 1,
WARNING: [Define if a function 'main' is needed.])
WARNING: More sophisticated templates can also be produced, see the
WARNING: documentation.
autoheader: missing template: VORBIS_SUPPORT
Use AC_DEFINE([VORBIS_SUPPORT ], [], [Description])[root@hh122-58 linux]# make
make: *** No targets specified and no makefile found. Stop.
[root@hh122-58 linux]# ./configure
./configure: line 10: syntax error near unexpected token ';;'
./configure: line 10: '' ECHO_T=' ' ;;'
[root@hh122-58 linux]# -
[root@hh122-58 linux]# cd test
[root@hh122-58 test]# make
I'm probably missing something here...
11/18/2003 (1:57 am)
I run into this problem when I try to compile the openal version from Garagegames:[root@hh122-58 linux]# sh ./autogen.sh
WARNING: Using auxiliary files such as 'acconfig.h', 'config.h.bot'
WARNING: and 'config.h.top', to define templates for 'config.h.in'
WARNING: is deprecated and discouraged.
WARNING: Using the third argument of 'AC_DEFINE' and
WARNING: 'AC_DEFINE_UNQUOTED' allows to define a template without
WARNING: 'acconfig.h':
WARNING: AC_DEFINE([NEED_MAIN], 1,
WARNING: [Define if a function 'main' is needed.])
WARNING: More sophisticated templates can also be produced, see the
WARNING: documentation.
autoheader: missing template: VORBIS_SUPPORT
Use AC_DEFINE([VORBIS_SUPPORT ], [], [Description])[root@hh122-58 linux]# make
make: *** No targets specified and no makefile found. Stop.
[root@hh122-58 linux]# ./configure
./configure: line 10: syntax error near unexpected token ';;'
./configure: line 10: '' ECHO_T=' ' ;;'
[root@hh122-58 linux]# -
[root@hh122-58 linux]# cd test
[root@hh122-58 test]# make
I'm probably missing something here...
#6
11/18/2003 (10:01 am)
What version from GarageGames? Doesn't RedHat have an OpenAL RPM Package? Just install it in your system and voila.
#7
No RedHat Doesn't have an OpenAL RPM package for redhat 9. I've searched the install .iso's (all 6) and their webpage and haven't found anything. I've found a couple of .rpms that people have made for openal but I haven't found one that works yet.
11/18/2003 (6:52 pm)
The version from the Garage Games download page. That version doesn't make on my system and I've downloaded the OpenAL source and tried to compile it and it doesn't make on my system either. No RedHat Doesn't have an OpenAL RPM package for redhat 9. I've searched the install .iso's (all 6) and their webpage and haven't found anything. I've found a couple of .rpms that people have made for openal but I haven't found one that works yet.
#8
11/18/2003 (7:39 pm)
Sorry, I don't think I'm sure I can help any further, I would need a Redhat9 box to try it, and I've never even built from source, I have binary packages.
#9
The important thing for me is that I at least got the engine to compile and work on linux. I will worry about openal later. I'm just hoping that it is compiling right and that it is just my system is wrong.
11/18/2003 (7:48 pm)
Thanks for your help so far. The important thing for me is that I at least got the engine to compile and work on linux. I will worry about openal later. I'm just hoping that it is compiling right and that it is just my system is wrong.
#10
11/18/2003 (8:36 pm)
If you can't get the OpenAL libs to compile, then it's probably your box or OpenAL...
#11
11/18/2003 (10:32 pm)
@Ben: yes that's for sure.
#12
11/18/2003 (10:35 pm)
You could always go to RPMFind and pull the Mandrake OpenAL SRC RPM, try compiling that.
#13
I also had to replace the libvorbis.a ...
01/08/2004 (8:31 pm)
I just had the same problem using when trying to build OpenAL. I pulled OpenAL from their CVS, compiled and Torque's sound works for me. I also had to replace the libvorbis.a ...
#14
autogen.sh to:
After that it seems to work fine.
02/17/2004 (11:13 pm)
I don't have RH9 to test with, but on Fedora I had to install autoconf213 and changeautogen.sh to:
#!/bin/sh autoconf-2.13 autoheader-2.13 configure.in > foo.in mv foo.in config.h.in # don't ask
After that it seems to work fine.
#15
There is no need to install openal. The torque SDK comes with the necessary header files and a precompiled openal library. The "runtorque.sh" file in the example folder (1.2/head only) will make sure that this library is loaded by torque when you run it.
Installing openal may cause audio-related problems with torque at run time, because many distributions ship with ancient and buggy versions of the library.
02/19/2004 (5:24 pm)
The ogg/vorbis problem should be fixed in torque 1.2/head. There is no need to install openal. The torque SDK comes with the necessary header files and a precompiled openal library. The "runtorque.sh" file in the example folder (1.2/head only) will make sure that this library is loaded by torque when you run it.
Installing openal may cause audio-related problems with torque at run time, because many distributions ship with ancient and buggy versions of the library.
#16
According to the README.garagegames instructions I perform the following:
cd linux
sh ./autogen.sh
./configure
make
Here is the error produced by make:
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 -c ../audioconvert/ac_misc.c -o ../audioconvert/ac_misc.o
../audioconvert/ac_misc.c: In function 'ac_wave_to_pcm':
../audioconvert/ac_misc.c:297: warning: dereferencing type-punned pointer will break strict-aliasing rules
../audioconvert/ac_misc.c:298: warning: dereferencing type-punned pointer will break strict-aliasing rules
../audioconvert/ac_misc.c:327: warning: dereferencing type-punned pointer will break strict-aliasing rules
../audioconvert/ac_misc.c:328: warning: dereferencing type-punned pointer will break strict-aliasing rules
gmake[1]: *** [../audioconvert/ac_misc.o] Error 1
gmake[1]: Leaving directory '/home/anakin/openal/linux/src'
make: *** [all] Error 2
Anyone have any ideas how to install OpenAL on Fedora Core 2? Both Yums and apt-get do not have ANY openal files from my investigations and the fact that I have to use an old version of autoconf just to get it this far sucks... I download the torque demo and ran the demo WITH SOUND... but after compiling the source (HEAD as of 9/12/04) I try to run the \example\torquedemo.bin and it prompts me saying that OpenAL drivers cannot be initialized... I click OK and I can continue and play the demo but without sound... any ideas?
Thanks,
Jordan
09/12/2004 (6:27 pm)
I'm having the same problem as John "Johnny Action" Aho when trying to build the openal source downloaded from garagegames. I'm running fedora core 2 and installed autoconf 2.13 since version 2.59 wouldn't work... According to the README.garagegames instructions I perform the following:
cd linux
sh ./autogen.sh
./configure
make
Here is the error produced by make:
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 -c ../audioconvert/ac_misc.c -o ../audioconvert/ac_misc.o
../audioconvert/ac_misc.c: In function 'ac_wave_to_pcm':
../audioconvert/ac_misc.c:297: warning: dereferencing type-punned pointer will break strict-aliasing rules
../audioconvert/ac_misc.c:298: warning: dereferencing type-punned pointer will break strict-aliasing rules
../audioconvert/ac_misc.c:327: warning: dereferencing type-punned pointer will break strict-aliasing rules
../audioconvert/ac_misc.c:328: warning: dereferencing type-punned pointer will break strict-aliasing rules
gmake[1]: *** [../audioconvert/ac_misc.o] Error 1
gmake[1]: Leaving directory '/home/anakin/openal/linux/src'
make: *** [all] Error 2
Anyone have any ideas how to install OpenAL on Fedora Core 2? Both Yums and apt-get do not have ANY openal files from my investigations and the fact that I have to use an old version of autoconf just to get it this far sucks... I download the torque demo and ran the demo WITH SOUND... but after compiling the source (HEAD as of 9/12/04) I try to run the \example\torquedemo.bin and it prompts me saying that OpenAL drivers cannot be initialized... I click OK and I can continue and play the demo but without sound... any ideas?
Thanks,
Jordan
#17
According to the README.garagegames instructions I perform the following:
cd linux
sh ./autogen.sh
./configure
make
Here is the error produced by make:
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 -c ../audioconvert/ac_misc.c -o ../audioconvert/ac_misc.o
../audioconvert/ac_misc.c: In function 'ac_wave_to_pcm':
../audioconvert/ac_misc.c:297: warning: dereferencing type-punned pointer will break strict-aliasing rules
../audioconvert/ac_misc.c:298: warning: dereferencing type-punned pointer will break strict-aliasing rules
../audioconvert/ac_misc.c:327: warning: dereferencing type-punned pointer will break strict-aliasing rules
../audioconvert/ac_misc.c:328: warning: dereferencing type-punned pointer will break strict-aliasing rules
gmake[1]: *** [../audioconvert/ac_misc.o] Error 1
gmake[1]: Leaving directory '/home/anakin/openal/linux/src'
make: *** [all] Error 2
Anyone have any ideas how to install OpenAL on Fedora Core 2? Both Yums and apt-get do not have ANY openal files from my investigations and the fact that I have to use an old version of autoconf just to get it this far sucks... I download the torque demo and ran the demo WITH SOUND... but after compiling the source (HEAD as of 9/12/04) I try to run the \example\torquedemo.bin and it prompts me saying that OpenAL drivers cannot be initialized... I click OK and I can continue and play the demo but without sound... any ideas?
Thanks,
Jordan
09/12/2004 (10:50 pm)
I'm having the same problem as John "Johnny Action" Aho when trying to build the openal source downloaded from garagegames. I'm running fedora core 2 and installed autoconf 2.13 since version 2.59 wouldn't work... According to the README.garagegames instructions I perform the following:
cd linux
sh ./autogen.sh
./configure
make
Here is the error produced by make:
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 -c ../audioconvert/ac_misc.c -o ../audioconvert/ac_misc.o
../audioconvert/ac_misc.c: In function 'ac_wave_to_pcm':
../audioconvert/ac_misc.c:297: warning: dereferencing type-punned pointer will break strict-aliasing rules
../audioconvert/ac_misc.c:298: warning: dereferencing type-punned pointer will break strict-aliasing rules
../audioconvert/ac_misc.c:327: warning: dereferencing type-punned pointer will break strict-aliasing rules
../audioconvert/ac_misc.c:328: warning: dereferencing type-punned pointer will break strict-aliasing rules
gmake[1]: *** [../audioconvert/ac_misc.o] Error 1
gmake[1]: Leaving directory '/home/anakin/openal/linux/src'
make: *** [all] Error 2
Anyone have any ideas how to install OpenAL on Fedora Core 2? Both Yums and apt-get do not have ANY openal files from my investigations and the fact that I have to use an old version of autoconf just to get it this far sucks... I download the torque demo and ran the demo WITH SOUND... but after compiling the source (HEAD as of 9/12/04) I try to run the \example\torquedemo.bin and it prompts me saying that OpenAL drivers cannot be initialized... I click OK and I can continue and play the demo but without sound... any ideas?
Thanks,
Jordan
#19
I downloaded via CVS OpenAL from the creative labs repository... I compiled using autoconf 2.59 without any problems and installed without any errors... I then recompiled Torque source and then tried to run example\torqueDemo.bin but I get the same error message as before...
"The OpenAL audio system failed to initialize.
You can get the most recent OpenAL drivers
here."
Is there settings I need to set for Torque to find where my OpenAL is? I installed in the default /usr/local.... (./configure --prefix=/usr/local)
Thanks,
Jordan
09/12/2004 (11:42 pm)
UPDATE:I downloaded via CVS OpenAL from the creative labs repository... I compiled using autoconf 2.59 without any problems and installed without any errors... I then recompiled Torque source and then tried to run example\torqueDemo.bin but I get the same error message as before...
"The OpenAL audio system failed to initialize.
You can get the most recent OpenAL drivers
here."
Is there settings I need to set for Torque to find where my OpenAL is? I installed in the default /usr/local.... (./configure --prefix=/usr/local)
Thanks,
Jordan
#20
I got OpenAL to work... yay
What I'm running:
Fedora Core 2 (2.6.6)
P4, Nvidia 6800 Ultra
autoconf 2.59
Torque (Head, Release)
What was wrong:
Downloaded OpenAL from garage games
./configure
./configure: line 10: syntax error near unexpected token ';;'
./configure: line 10: '' ECHO_T=' ' ;;'
How I got sound to work:
Downloaded OpenAL from CreativeLabs repository
Password is "guest"
cvs -d:pserver:guest@opensource.creative.com:/usr/local/cvs-repository login
cvs -d:pserver:guest@opensource.creative.com:/usr/local/cvs-repository co openal
cd openal/linux
./autogen.sh
./configure --prefix=/usr/local
make
make install
After you "make install" a lib directory will be made under /usr/local/ I copied it to the torque/example/ directory:
"cp -r /usr/local/lib torque/example/"
Now you will have a lib directory under torque/example, I then ran ./torqueDemo.bin and I everything worked great...
- Jordan
09/13/2004 (12:09 am)
UPDATE:I got OpenAL to work... yay
What I'm running:
Fedora Core 2 (2.6.6)
P4, Nvidia 6800 Ultra
autoconf 2.59
Torque (Head, Release)
What was wrong:
Downloaded OpenAL from garage games
./configure
./configure: line 10: syntax error near unexpected token ';;'
./configure: line 10: '' ECHO_T=' ' ;;'
How I got sound to work:
Downloaded OpenAL from CreativeLabs repository
Password is "guest"
cvs -d:pserver:guest@opensource.creative.com:/usr/local/cvs-repository login
cvs -d:pserver:guest@opensource.creative.com:/usr/local/cvs-repository co openal
cd openal/linux
./autogen.sh
./configure --prefix=/usr/local
make
make install
After you "make install" a lib directory will be made under /usr/local/ I copied it to the torque/example/ directory:
"cp -r /usr/local/lib torque/example/"
Now you will have a lib directory under torque/example, I then ran ./torqueDemo.bin and I everything worked great...
- Jordan
Torque 3D Owner Xavier "eXoDuS" Amado
Default Studio Name