[tex-live] lcdf-typetools: linking problem

Vladimir Volovich vvv at vsu.ru
Sat Sep 18 03:23:02 CEST 2004


Hi!

more error in lcdf-typetools:
xlC  -O2 -qmaxmem=32768 -qarch=com -qlanglvl=extended -qcpluscmt   -o cfftot1  cfftot1.o maket1font.o ../libefont/libefont.a ../liblcdf/liblcdf.a -lm 
ld: 0711-224 WARNING: Duplicate symbol: .operator+(String,const char*)
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
ld: 0711-317 ERROR: Undefined symbol: PermString::NHASH

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).

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. :-)

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