Game Development Community

Linking error - possible bug

by Thijs Sloesen · in Torque Game Engine · 12/17/2003 (2:19 pm) · 2 replies

Hi,

I just tried to compile Torque on Linux for the first time. I am running Red Hat 9, kernel 2.4.20-24.9. I'm having some difficulties linking. This is a fresh checkout from cvs, I did not modify anything:

--> Compiling platformX86UNIX/x86UNIXTime.cc
--> Compiling platformX86UNIX/x86UNIXWindow.cc
--> Compiling platformX86UNIX/x86UNIXUtils.cc
--> Linking out.GCC3.RELEASE/torqueDemo.bin
../lib/vorbis/linux/libvorbis.a(info.o)(.text+0x1ae): In function 'vorbis_comment_query':
: undefined reference to '__ctype_toupper'
../lib/vorbis/linux/libvorbis.a(info.o)(.text+0x286): In function 'vorbis_comment_query_count':
: undefined reference to '__ctype_toupper'
collect2: ld returned 1 exit status
make[1]: *** [out.GCC3.RELEASE/torqueDemo.bin] Error 1
make: *** [default] Error 2

I heard that recently the reference to '_ctype_toupper' was removed from glibc.

I copied my local copy of libvorbis.a to the lib/vorbis/linux dir in the src dir, and linking resumed without any problems. So my guess is that this is an issue that should be looked at (if it's not already known) since more ppl might experience something similar.

Anyways,

I hope this information can be of some service to some of you out there.

Regards,

Thijs

#1
12/17/2003 (2:28 pm)
If you drop by here:
www.garagegames.com/mg/forums/result.thread.php?qt=14146

you can discover resolution to this issue.
#2
12/17/2003 (2:35 pm)
Thanks!

I guess recompiling vorbis and taking the red hat precompiled vorbis are about the same thing. Works both :)