linking gcc built libs



I am statically linking some image libraries I built wwith gcc
(config/make stuff) into a Codewarrior built dynamic library. This
works on 10.3.x but on 10.4.2 I get some undefined symbols all from the
C++ and C libraries. I am linking with the BSD libraries using
MSL_C++_BSD_C_Mach-O_D.lib and BSD_Runtime_Mach-O_D.lib. I can also
resolve a few of these (restFP, saveFP, __eprintf) by linking with
libgcc.a (in /usr/lib/gcc/darwin/3.3/, under 10.3 there was a link to
it in /usr/lib, but no more). Any ideas what I am missing?

Thanks!

Here are the link errors:

Link Error : undefined: 'std::ostream::seekp(std::fpos<__mbstate_t>)'
(code)
Referenced from '_tiffosReadProc(void*, void*, long)' in libtiff.a

Link Error : undefined: 'std::istream::seekg(long long,
std::_Ios_Seekdir)' (code)
Referenced from '_tiffosReadProc(void*, void*, long)' in libtiff.a

Link Error : undefined: 'std::ostream::seekp(long long,
std::_Ios_Seekdir)' (code)
Referenced from '_tiffosReadProc(void*, void*, long)' in libtiff.a

Link Error : undefined: 'std::ios_base::Init::~Init()' (code)
Referenced from '_tiffosReadProc(void*, void*, long)' in libtiff.a

Link Error : undefined: 'sscanf$LDBLStub' (code)
Referenced from 'out_of_memory' in libjpeg.a

Link Error : undefined: 'vfprintf$LDBLStub' (code)
Referenced from '_tiffReadProc' in libtiff.a

Link Error : undefined: 'restFP' (code)
Referenced from 'jpeg_idct_float' in libjpeg.a
Referenced from 'TIFFCIELabToXYZ' in libtiff.a
Referenced from 'TIFFVGetFieldDefaulted' in libtiff.a
Referenced from 'LogL16Decode' in libtiff.a
Referenced from 'PixarLogGuessDataFmt' in libtiff.a

Link Error : undefined: 'saveFP' (code)
Referenced from 'jpeg_idct_float' in libjpeg.a
Referenced from 'TIFFCIELabToXYZ' in libtiff.a
Referenced from 'TIFFVGetFieldDefaulted' in libtiff.a
Referenced from 'LogL16Decode' in libtiff.a
Referenced from 'PixarLogGuessDataFmt' in libtiff.a

Link Error : undefined: '__eprintf' (code)
Referenced from 'TIFFGetTagListCount' in libtiff.a
Referenced from 'LogL16Decode' in libtiff.a
Referenced from 'PixarLogGuessDataFmt' in libtiff.a
Referenced from '_ZIPSetupDecode' in libtiff.a
Referenced from 'Fax3PreDecode' in libtiff.a
Referenced from 'LZWSetupDecode' in libtiff.a
Referenced from 'PredictorSetup' in libtiff.a
Referenced from 'TIFFSetupStrips' in libtiff.a
Referenced from 'TIFFStartStrip' in libtiff.a
Referenced from 'tagCompare' in libtiff.a
Referenced from 'DumpModeEncode' in libtiff.a

Link Error : undefined: 'sprintf$LDBLStub' (code)
Referenced from 'error_exit' in libjpeg.a
Referenced from 'TIFFRGBAImageOK' in libtiff.a
Referenced from 'tagCompare' in libtiff.a
Referenced from 'png_write_info_before_PLTE' in libpng12.a
Referenced from 'png_save_uint_32' in libpng12.a
Referenced from 'png_set_crc_action' in libpng12.a
Referenced from 'png_get_uint_32' in libpng12.a
Referenced from 'png_create_read_struct_2' in libpng12.a
Referenced from 'png_set_sig_bytes' in libpng12.a

Link Error : undefined: 'fprintf$LDBLStub' (code)
Referenced from '_TIFFprintAscii' in libtiff.a
Referenced from 'error_exit' in libjpeg.a
Referenced from '_tiffReadProc' in libtiff.a
Referenced from 'Fax3PreDecode' in libtiff.a
Referenced from 'PredictorSetup' in libtiff.a
Referenced from 'tagCompare' in libtiff.a
Referenced from 'png_save_uint_32' in libpng12.a
Referenced from 'png_get_uint_32' in libpng12.a
Referenced from 'png_warning' in libpng12.a

.



Relevant Pages

  • Re: linking gcc built libs
    ... >I am statically linking some image libraries I built wwith gcc ... I am linking with the BSD libraries using ... What versio of CodeWarrior are you using? ...
    (comp.sys.mac.programmer.codewarrior)
  • Re: OT: Two ways Microsoft sabotages Linux desktop adoption
    ... with four lawyers over the use of GPL and LGPL libraries ... * b) Use a suitable shared library mechanism for linking with the ... violate the LGPL, linking them against GPL'ed binaries does. ... Of course, there are also effects on the libraries themselves, ...
    (Fedora)
  • Re: Shared libraries and modules
    ... Libraries are one of the earliest forms of organised code reuse. ... The linking may be static linking or, in some systems, dynamic linking. ... the same as Unix because in addition it makes porting easier. ...
    (comp.sys.acorn.misc)
  • Re: Kernel header files in applications and GPL issues
    ... >> defined to say that linking was the significant operation. ... But I think SCO have claimed ... >closed source programs to stop using particular libraries. ... >> making use of intellectual property contained in the header. ...
    (comp.os.linux.development.apps)
  • Re: license question?
    ... Under the circumstances I tend to avoid even LGPL ... -the users of my libraries will see it the same way. ... then someone would try to exploit the code under the license ... But static linking doesn't comtaminate anything. ...
    (comp.os.linux.misc)