undefined reference (was: Probleme beim Kompilieren mit HBCI-Support )

Kai Andresen news at kai-andresen.de
Don Feb 13 21:20:42 CST 2003


Moin,
vielen Dank für die unermüdliche Hilfe, insbesondere an Volker!

Das fehlende 'lgcc_s' versteckte sich bei mir (SuSE 8.0) in 'libgcc_s.so.1' im 
Verzeichnis /opt/experimental/lib. Nachdem ich den LD_LIBRARY_PATH angepasst 
hatte, war damit dann das "cannot find -lgcc_s"-Problem behoben und 'make' 
lief weiter - aber leider noch immer nicht durch. (schnief...!)
Jetzt werden mir unzählige 'undefined references' vorgeworfen. Ich habe mal 
den Schlußbereich der make-Meldung angeführt:


<<<-------------------
[...]
/usr/bin/ld: warning: libstdc++.so.5, needed by /usr/local/lib/libchipcard.so, 
may conflict with libstdc++.so.3
/usr/lib/libopenhbci.so: undefined reference to `CTError::~CTError(void)'
/usr/lib/libopenhbci.so: undefined reference to `HBCICard::verifyPin(void)'
/usr/lib/libopenhbci.so: undefined reference to `CTCard::checkCard(unsigned 
int, unsigned int)'
/usr/lib/libopenhbci.so: undefined reference to `HBCICard::~HBCICard(void)'
/usr/lib/libopenhbci.so: undefined reference to 
`HBCICard::CardData::~CardData(void)'
/usr/lib/libopenhbci.so: undefined reference to `HBCICard::getCardId(void)'
/usr/lib/libopenhbci.so: undefined reference to 
`HBCICard::getInstituteData(int)'
/usr/lib/libopenhbci.so: undefined reference to `HBCICard::cardType(void)'
/usr/lib/libopenhbci.so: undefined reference to `HBCICard type_info node'
/usr/lib/libopenhbci.so: undefined reference to `CTCard::startWaitForCard(int 
&, bool, unsigned int, unsigned int, unsigned int, unsigned int)'
/usr/lib/libopenhbci.so: undefined reference to `CTCard::checkWaitForCard(int, 
int, unsigned int &, unsigned int &)'
/usr/lib/libopenhbci.so: undefined reference to `CTError::CTError(void)'
/usr/lib/libopenhbci.so: undefined reference to `HBCICard::reopenCard(void)'
/usr/lib/libopenhbci.so: undefined reference to `CTError::errorString(void)'
/usr/lib/libopenhbci.so: undefined reference to `CTError::isOk(unsigned char, 
unsigned char)'
/usr/lib/libopenhbci.so: undefined reference to `HBCICard::HBCICard(void)'
/usr/lib/libopenhbci.so: undefined reference to `HBCICard::readSEQ(unsigned 
int &)'
/usr/lib/libopenhbci.so: undefined reference to 
`HBCICard::CardData::CardData(void)'
/usr/lib/libopenhbci.so: undefined reference to `HBCICard::cardTypes(void)'
/usr/lib/libopenhbci.so: undefined reference to `CTCard::isConnected(void)'
/usr/lib/libopenhbci.so: undefined reference to 
`HBCICard::instituteData::~instituteData(void)'
/usr/lib/libopenhbci.so: undefined reference to 
`HBCICard::hash2MAC(basic_string<char, string_char_traits<char>, 
__default_alloc_template<true, 0> > &, basic_string<char, 
string_char_traits<char>, __default_alloc_template<true, 0> > &)'
/usr/lib/libopenhbci.so: undefined reference to `CTCard::stopWaitForCard(int)'
/usr/lib/libopenhbci.so: undefined reference to `HBCICard type_info function'
/usr/lib/libopenhbci.so: undefined reference to `HBCICard::closeCard(bool, 
bool)'
/usr/lib/libopenhbci.so: undefined reference to 
`HBCICard::getCID(basic_string<char, string_char_traits<char>, 
__default_alloc_template<true, 0> > &)'
/usr/lib/libopenhbci.so: undefined reference to 
`HBCICard::cryptBlock(basic_string<char, string_char_traits<char>, 
__default_alloc_template<true, 0> > &, basic_string<char, 
string_char_traits<char>, __default_alloc_template<true, 0> > &)'
/usr/lib/libopenhbci.so: undefined reference to 
`HBCICard::getRandom(basic_string<char, string_char_traits<char>, 
__default_alloc_template<true, 0> > &)'
/usr/lib/libopenhbci.so: undefined reference to `HBCICard::openCard(void)'
/usr/lib/libopenhbci.so: undefined reference to `HBCICard::writeSEQ(unsigned 
int)'
/usr/lib/libopenhbci.so: undefined reference to 
`HBCICard::verifyPin(basic_string<char, string_char_traits<char>, 
__default_alloc_template<true, 0> > &)'
/usr/lib/libopenhbci.so: undefined reference to 
`HBCICard::instituteData::instituteData(void)'
collect2: ld returned 1 exit status
make[5]: *** [test-link-module] Fehler 1
make[5]: Verlassen des Verzeichnisses Verzeichnis 
»/usr/local/src/gnucash-1.8.0/src/import-export/hbci/test«
make[4]: *** [all-recursive] Fehler 1
make[4]: Verlassen des Verzeichnisses Verzeichnis 
»/usr/local/src/gnucash-1.8.0/src/import-export/hbci«
make[3]: *** [all-recursive] Fehler 1
make[3]: Verlassen des Verzeichnisses Verzeichnis 
»/usr/local/src/gnucash-1.8.0/src/import-export«
make[2]: *** [all-recursive] Fehler 1
make[2]: Verlassen des Verzeichnisses Verzeichnis 
»/usr/local/src/gnucash-1.8.0/src«
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlassen des Verzeichnisses Verzeichnis 
»/usr/local/src/gnucash-1.8.0«
make: *** [all-recursive-am] Fehler 2


------------------->>>

Hängt das mit dem oben aufgeführtem möglichen Konflikt von libstdc++.so.5 
bzw.libstdc++.so.3 zusammen? Oder ist das mal was völlig anderes?

Any ideas?
Gruß
Kai