[Scummvm-devel] Link errors in cruise and Graphics::FontTowns

Johannes Schickel lordhoto at scummvm.org
Sun Jul 12 21:28:59 CEST 2009


Rainer M. Canavan wrote:
> I'm getting a few linker errors in trunk when cruise, kyra or sci are 
> enabled.  The sjis/FontTonwns problem looks like just another problem
> with templates of the IRIX mipspro compiler. The drawCharIntern(Outline)
> show up as UNDEF in the .o file already. I'm not sure what's causing
> the problem in cruise. Does anyone here have suggestions how to fix
> either problem?
>
> ld32: ERROR   33 : Unresolved text symbol "Common::copy(Cruise::CtEntry*,Cruise::CtEntry*,Cruise::CtEntry*)" -- 1st referenced by engines/cruise/libcruise.a(ctp.o).
> ld32: ERROR   33 : Unresolved text symbol "Common::copy_backward(Cruise::CtEntry*,Cruise::CtEntry*,Cruise::CtEntry*)" -- 1st referenced by engines/cruise/libcruise.a(ctp.o).
> ld32: ERROR   33 : Unresolved text symbol "Common::copy(const Cruise::CtEntry*,const Cruise::CtEntry*,Cruise::CtEntry*)" -- 1st referenced by engines/cruise/libcruise.a(ctp.o).
> ld32: ERROR   33 : Unresolved text symbol "Common::copy(Cruise::CtStruct*,Cruise::CtStruct*,Cruise::CtStruct*)" -- 1st referenced by engines/cruise/libcruise.a(ctp.o).
> ld32: ERROR   33 : Unresolved text symbol "Common::copy_backward(Cruise::CtStruct*,Cruise::CtStruct*,Cruise::CtStruct*)" -- 1st referenced by engines/cruise/libcruise.a(ctp.o).
> ld32: ERROR   33 : Unresolved text symbol "Common::copy(const Cruise::CtStruct*,const Cruise::CtStruct*,Cruise::CtStruct*)" -- 1st referenced by engines/cruise/libcruise.a(ctp.o).
> ld32: ERROR   33 : Unresolved text symbol "Graphics::FontTowns::drawCharIntern(const unsigned short*,unsigned char*,int,unsigned char) const" -- 1st referenced by graphics/libgraphics.a(sjis.o).
> ld32: ERROR   33 : Unresolved text symbol "Graphics::FontTowns::drawCharInternOutline(const unsigned short*,unsigned char*,int,unsigned char,unsigned char) const" -- 1st referenced by graphics/libgraphics.a(sjis.o).
> ld32: ERROR   33 : Unresolved text symbol "Graphics::FontTowns::drawCharIntern(const unsigned short*,unsigned char*,int,unsigned short) const" -- 1st referenced by graphics/libgraphics.a(sjis.o).
> ld32: ERROR   33 : Unresolved text symbol "Graphics::FontTowns::drawCharInternOutline(const unsigned short*,unsigned char*,int,unsigned short,unsigned short) const" -- 1st referenced by graphics/libgraphics.a(sjis.o).
>   

That looks like a seriously bugged compiler / linker. All those are 
template functions, seems like the compiler/linker just drops those 
symbols. I'm afraid there's pretty little that can be done about it, 
instead of replacing the templates by code duplication in sjis.cpp. Is 
there no update / fix for the compiler available? If not, is there no 
alternative compiler?

// Johannes

PS: Whoops seems I forgot to send it to -devel the first time.




More information about the Scummvm-devel mailing list