[tex-live] Re: lcdf-typetools: linking problem

Eddie Kohler kohler at cs.ucla.edu
Sat Sep 18 09:07:10 CEST 2004


Vladimir Volovich wrote:
> Re the NHASH: it was declared in private class section in permstr.hh,
> but apparently used outside of a class scope in permstr.cc which
> resulted in undefined symbol. As a brute-force fix, i moved this
> constant definition outside of the class. After this fix, cfftot1 was
> successfully linked.
> 
> Re the duplicate operator +, it seems to be declared (or instantiated)
> in cfftot1.cc and maket1font.cc (i didn't check since it's a warning).

That appears to be a problem with inline in the xlC compiler.
> 
> I'm not sure if these are C++ bugs in lcdf-typetools or a deficiency
> in IBM's compiler, since I'm not a C++ expert. :-)

A lot of these are probably different interpretations of the C++ standard.  For 
instance the StringAccums: there WAS a previous declaration, but in a "friend 
class".  But whatever.  See next mail...

Eddie


> 
> See more info on this below:
> 
> ==================================
> ld: 0711-228 WARNING: Duplicate symbols were found while resolving symbols.
>         The following duplicates were found:
>  Symbol                    Source-File(Object) OR Import-File{Shared-object}
>  ------------------------- -------------------------------------------------
>  .operator+(String,const char*)        ../../../../../TeX/utils/lcdf-typetools/cfftot1/cfftot1.cc(cfftot1.o)
>     ** Duplicate **        ../../../../../TeX/utils/lcdf-typetools/cfftot1/maket1font.cc(maket1font.o)
> RESOLVE: 1445 of 15718 symbols were kept.
> RESOLVE: The return code is 4.
> (ld): addgl /usr/lib/glink.o
> ADDGL: Glink code added for 77 symbols.
> (ld): er full
> ld: 0711-318 ERROR: Undefined symbols were found.
>         The following symbols are in error:
>  Symbol                    Inpndx  TY CL Source-File(Object-File) OR Import-File{Shared-object}
>                               RLD: Address  Section  Rld-type Referencing Symbol
> ld: 0711-224 WARNING: Duplicate symbol: .operator+(String,const char*)
>  ----------------------------------------------------------------------------------------------
>  PermString::NHASH       [76]    ER UA ../../../../../TeX/utils/lcdf-typetools/liblcdf/permstr.cc(../liblcdf/liblcdf.a[permstr.o])
>                                    00000d04 .data    R_POS    [78]    <PermString::NHASH>
> ER: The return code is 8.
> ld: 0711-317 ERROR: Undefined symbol: PermString::NHASH
> ==================================
> 
> Best,
> v.
> 



More information about the tex-live mailing list