[gnucash-de] Re: schon besser aber noch nicht gut - Ktoblzcheck-0.4: MAKE bricht ab mit Fehler (mit Anhang)

Christian Stimming stimming at tuhh.de
Fre Sep 5 15:07:50 CDT 2003


Sorry, das "export" muss nicht erst vor dem 'make' gemacht werden, 
sondern schon vor './configure'.

Christian

Kai Andresen schrieb:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hallo,
> 
> das 'export'ieren bringt mich zwar weiter aber jetzt hängt es hier (s. 
> infofile2)
> 
> Gruß
> Kai
> 
> Am Freitag, 5. September 2003 13:33 schrieb Christian Stimming:
> 
>>Hi,
>>
>>ach so, hab ich gerade übersehen -- das ist ja der *Linker*, der
>>meckert, nicht der Compiler. Ist also kein Fehler im Programmcode.
>>[...]
>>Eventuell fehlt das Linken zur richtigen ("normalen") stdc++. Wieso
>>taucht bei dir denn /opt/experimental/lib/libstdc++.so auf? Da steht bei
>>mir stattdessen /usr/lib/libstdc++.so . Und eigentlich sollte es auch
>>das Argumen -lstdc++ tun, also ohne Verzeichnis usw.
>>
>>Ich glaub, bei dir tritt dieser Fehler auf, weil du
>>/opt/experimental/lib/libstdc++.so in deinem /sbin/ldconfig Pfad vor der
>>normalen stdc++ hast. Du könntest manuell wahrscheinlich das richtige
>>erzwingen, indem Du
>>
>>export LDFLAGS="-lstdc++"
>>
>>vor dem make machst.
>>
>>Christian
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
> 
> iD8DBQE/WHpN+Re9cT3ONj4RAmDEAJ0fms1+VjSgbwcMEhtb1vaj377ByACcDGyt
> 3RnBvp6shVQMSng6eu+8mUw=
> =oucK
> -----END PGP SIGNATURE-----
> 
> 
> ------------------------------------------------------------------------
> 
> make  all-recursive
> make[1]: Wechsel in das Verzeichnis Verzeichnis »/usr/local/src/ktoblzcheck-0.4«
> Making all in src
> make[2]: Wechsel in das Verzeichnis Verzeichnis »/usr/local/src/ktoblzcheck-0.4/src«
> Making all in bankdata
> make[3]: Wechsel in das Verzeichnis Verzeichnis »/usr/local/src/ktoblzcheck-0.4/src/bankdata«
> make[3]: Für das Target »all« gibt es nichts zu tun.
> make[3]: Verlassen des Verzeichnisses Verzeichnis »/usr/local/src/ktoblzcheck-0.4/src/bankdata«
> Making all in lib
> make[3]: Wechsel in das Verzeichnis Verzeichnis »/usr/local/src/ktoblzcheck-0.4/src/lib«
> source='ktoblzcheck.cc' object='ktoblzcheck.lo' libtool=yes \
> depfile='.deps/ktoblzcheck.Plo' tmpdepfile='.deps/ktoblzcheck.TPlo' \
> depmode=gcc /bin/sh ../../depcomp \
> /bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../include -I../../include    -g -O2 -c -o ktoblzcheck.lo `test -f 'ktoblzcheck.cc' || echo './'`ktoblzcheck.cc
> mkdir .libs
> g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../include -I../../include -g -O2 -c ktoblzcheck.cc -Wp,-MD,.deps/ktoblzcheck.TPlo  -fPIC -DPIC -o .libs/ktoblzcheck.lo
> g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../include -I../../include -g -O2 -c ktoblzcheck.cc -Wp,-MD,.deps/ktoblzcheck.TPlo -o ktoblzcheck.o >/dev/null 2>&1
> mv -f .libs/ktoblzcheck.lo ktoblzcheck.lo
> source='algorithms.cc' object='algorithms.lo' libtool=yes \
> depfile='.deps/algorithms.Plo' tmpdepfile='.deps/algorithms.TPlo' \
> depmode=gcc /bin/sh ../../depcomp \
> /bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../include -I../../include    -g -O2 -c -o algorithms.lo `test -f 'algorithms.cc' || echo './'`algorithms.cc
> rm -f .libs/algorithms.lo
> g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../include -I../../include -g -O2 -c algorithms.cc -Wp,-MD,.deps/algorithms.TPlo  -fPIC -DPIC -o .libs/algorithms.lo
> g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../include -I../../include -g -O2 -c algorithms.cc -Wp,-MD,.deps/algorithms.TPlo -o algorithms.o >/dev/null 2>&1
> mv -f .libs/algorithms.lo algorithms.lo
> source='accnum.cc' object='accnum.lo' libtool=yes \
> depfile='.deps/accnum.Plo' tmpdepfile='.deps/accnum.TPlo' \
> depmode=gcc /bin/sh ../../depcomp \
> /bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../include -I../../include    -g -O2 -c -o accnum.lo `test -f 'accnum.cc' || echo './'`accnum.cc
> rm -f .libs/accnum.lo
> g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../include -I../../include -g -O2 -c accnum.cc -Wp,-MD,.deps/accnum.TPlo  -fPIC -DPIC -o .libs/accnum.lo
> g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../include -I../../include -g -O2 -c accnum.cc -Wp,-MD,.deps/accnum.TPlo -o accnum.o >/dev/null 2>&1
> mv -f .libs/accnum.lo accnum.lo
> /bin/sh ../../libtool --mode=link g++  -g -O2   -o libktoblzcheck.la -rpath /usr/local/lib -version-info 1:3:0 ktoblzcheck.lo algorithms.lo accnum.lo -lstdc++ 
> rm -fr .libs/libktoblzcheck.la .libs/libktoblzcheck.* .libs/libktoblzcheck.*
> gcc -shared  ktoblzcheck.lo algorithms.lo accnum.lo  -Wl,--rpath -Wl,/opt/experimental/lib -Wl,--rpath -Wl,/opt/experimental/lib  -L/usr/src/packages/BUILD/gcc-3.0.4/obj-i486-suse-linux/gcc -L/usr/src/packages/BUILD/gcc-3.0.4/obj-i486-suse-linux/i486-suse-linux/libstdc++-v3/src/.libs-lm -L/usr/src/packages/BUILD/gcc-3.0.4/obj-i486-suse-linux/i486-suse-linux/libstdc++-v3/src /opt/experimental/lib/libstdc++.so  -Wl,-soname -Wl,libktoblzcheck.so.1 -o .libs/libktoblzcheck.so.1.0.3
> (cd .libs && rm -f libktoblzcheck.so.1 && ln -s libktoblzcheck.so.1.0.3 libktoblzcheck.so.1)
> (cd .libs && rm -f libktoblzcheck.so && ln -s libktoblzcheck.so.1.0.3 libktoblzcheck.so)
> ar cru .libs/libktoblzcheck.a  ktoblzcheck.o algorithms.o accnum.o 
> ranlib .libs/libktoblzcheck.a
> creating libktoblzcheck.la
> (cd .libs && rm -f libktoblzcheck.la && ln -s ../libktoblzcheck.la libktoblzcheck.la)
> make[3]: Verlassen des Verzeichnisses Verzeichnis »/usr/local/src/ktoblzcheck-0.4/src/lib«
> Making all in bin
> make[3]: Wechsel in das Verzeichnis Verzeichnis »/usr/local/src/ktoblzcheck-0.4/src/bin«
> source='ktoblzcheck.cc' object='ktoblzcheck.o' libtool=no \
> depfile='.deps/ktoblzcheck.Po' tmpdepfile='.deps/ktoblzcheck.TPo' \
> depmode=gcc /bin/sh ../../depcomp \
> g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../include    -g -O2 -c -o ktoblzcheck.o `test -f 'ktoblzcheck.cc' || echo './'`ktoblzcheck.cc
> /bin/sh ../../libtool --mode=link g++  -g -O2   -o ktoblzcheck  ktoblzcheck.o -L../lib -lktoblzcheck  
> mkdir .libs
> g++ -g -O2 -o .libs/ktoblzcheck ktoblzcheck.o  -L/usr/local/src/ktoblzcheck-0.4/src/lib /usr/local/src/ktoblzcheck-0.4/src/lib/.libs/libktoblzcheck.so /opt/experimental/lib/libstdc++.so -L/usr/src/packages/BUILD/gcc-3.0.4/obj-i486-suse-linux/i486-suse-linux/libstdc++-v3/src -L/usr/src/packages/BUILD/gcc-3.0.4/obj-i486-suse-linux/i486-suse-linux/libstdc++-v3/src/.libs-lm -L/usr/src/packages/BUILD/gcc-3.0.4/obj-i486-suse-linux/gcc -lgcc_s -lc -lgcc_s -lm -lgcc_s -lc -lgcc_s -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/opt/experimental/lib
> ktoblzcheck.o: In function `main':
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:106: undefined reference to `cout'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:106: undefined reference to `ostream::operator<<(char const *)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:70: undefined reference to `endl(ostream &)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:106: undefined reference to `cout'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:106: undefined reference to `ostream::operator<<(char const *)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:106: undefined reference to `ostream::operator<<(char const *)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:71: undefined reference to `endl(ostream &)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:106: undefined reference to `cout'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:106: undefined reference to `ostream::operator<<(char const *)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:72: undefined reference to `endl(ostream &)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:106: undefined reference to `cout'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:106: undefined reference to `ostream::operator<<(char const *)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:74: undefined reference to `cout'
> ktoblzcheck.o: In function `main':
> /usr/include/g++/iostream.h:74: undefined reference to `endl(ostream &)'
> /usr/include/g++/iostream.h:106: undefined reference to `cout'
> ktoblzcheck.o: In function `main':
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:106: undefined reference to `ostream::operator<<(char const *)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:75: undefined reference to `endl(ostream &)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:106: undefined reference to `cout'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:106: undefined reference to `ostream::operator<<(char const *)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:76: undefined reference to `endl(ostream &)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:106: undefined reference to `cout'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:106: undefined reference to `ostream::operator<<(char const *)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:77: undefined reference to `endl(ostream &)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:106: undefined reference to `cout'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:106: undefined reference to `ostream::operator<<(char const *)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:79: undefined reference to `endl(ostream &)'
> ktoblzcheck.o: In function `main':
> /usr/include/g++/iostream.h:79: undefined reference to `endl(ostream &)'
> ktoblzcheck.o: In function `main':
> /usr/include/g++/streambuf.h:470: undefined reference to `ios virtual table'
> ktoblzcheck.o: In function `main':
> /usr/include/g++/fstream.h:122: undefined reference to `fstreambase::fstreambase(int, char const *, int, int)'
> /usr/include/g++/fstream.h:65: undefined reference to `istream::ios virtual table'
> /usr/include/g++/fstream.h:230: undefined reference to `ifstream::ios virtual table'
> ktoblzcheck.o: In function `main':
> /usr/include/g++/streambuf.h:487: undefined reference to `ios virtual table'
> ktoblzcheck.o: In function `main':
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:106: undefined reference to `cout'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:106: undefined reference to `ostream::operator<<(char const *)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:106: undefined reference to `ostream::operator<<(char const *)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:106: undefined reference to `ostream::operator<<(char const *)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:119: undefined reference to `endl(ostream &)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:106: undefined reference to `cout'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:106: undefined reference to `ostream::operator<<(char const *)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:75: undefined reference to `endl(ostream &)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:106: undefined reference to `cout'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:106: undefined reference to `ostream::operator<<(char const *)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:106: undefined reference to `ostream::operator<<(char const *)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:106: undefined reference to `ostream::operator<<(int)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:106: undefined reference to `ostream::operator<<(char const *)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:131: undefined reference to `endl(ostream &)'
> ktoblzcheck.o: In function `main':
> /usr/include/g++/iostream.h:131: undefined reference to `endl(ostream &)'
> ktoblzcheck.o: In function `main':
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:190: undefined reference to `ifstream::~ifstream(void)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc:190: undefined reference to `ifstream::~ifstream(void)'
> ktoblzcheck.o: In function `AccountNumberCheck::Record::operator=(AccountNumberCheck::Record const &)':
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc(.basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::gnu.linkonce.t.compare(char const *, unsigned int, unsigned int) const+0x22): undefined reference to `__out_of_range(char const *)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc(.__malloc_alloc_template<0>::gnu.linkonce.t._S_oom_malloc(unsigned int)+0x22): undefined reference to `cerr'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc(.__malloc_alloc_template<0>::gnu.linkonce.t._S_oom_malloc(unsigned int)+0x27): undefined reference to `ostream::operator<<(char const *)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc(.__malloc_alloc_template<0>::gnu.linkonce.t._S_oom_malloc(unsigned int)+0x33): undefined reference to `endl(ostream &)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc(.basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::gnu.linkonce.t.replace(unsigned int, unsigned int, char const *, unsigned int)+0x22): undefined reference to `__out_of_range(char const *)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc(.basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::gnu.linkonce.t.replace(unsigned int, unsigned int, char const *, unsigned int)+0x59): undefined reference to `__length_error(char const *)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc(.basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::gnu.linkonce.t.replace(unsigned int, unsigned int, basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> > const &, unsigned int, unsigned int)+0xfd): undefined reference to `__out_of_range(char const *)'
> /usr/local/src/ktoblzcheck-0.4/src/bin/ktoblzcheck.cc(.gnu.linkonce.t.__ls__H3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i0_R7ostreamRCt12basic_string3ZX01ZX11ZX21_R7ostream+0x18): undefined reference to `ostream::write(char const *, int)'
> /usr/local/src/ktoblzcheck-0.4/src/lib/.libs/libktoblzcheck.so: undefined reference to `istream::getline(char *, int, char)'
> collect2: ld returned 1 exit status
> make[3]: *** [ktoblzcheck] Fehler 1
> make[3]: Verlassen des Verzeichnisses Verzeichnis »/usr/local/src/ktoblzcheck-0.4/src/bin«
> make[2]: *** [all-recursive] Fehler 1
> make[2]: Verlassen des Verzeichnisses Verzeichnis »/usr/local/src/ktoblzcheck-0.4/src«
> make[1]: *** [all-recursive] Fehler 1
> make[1]: Verlassen des Verzeichnisses Verzeichnis »/usr/local/src/ktoblzcheck-0.4«
> make: *** [all] Fehler 2
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> gnucash-de mailing list
> gnucash-de at lists.gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-de