Hallo ich habe ein einfaches C++ Programm geschrieben, welches ich jetzt gerne auf unseren Debian Server portieren würde.
Lokal bei meinem 2.6.24er Kernel funktioniert dieses Programm einwandfrei.
Wenn ich es auf dem Server 2.6.18 Kernel kompillieren will bekomme ich 100e von Fehlern.
Wenn ich die executable auf dem Server spiele und ausführe bekomme ich:
|
Quellcode
|
1
|
/tmp/xy: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.4' not found (required by /tmp/xy)
|
Wenn ich nun lokal folgendes mache:
g++ --static main.cpp -o xy
Scheint es auf dem Server zwar zu laufen, aber das Script "tut einfach gar nix". Wenn ich valgrind laufen lasse - auf dem Server:
valgrind ./xy
........
........
Das Ende von valgrind:
==17481== Conditional jump or move depends on uninitialised value(s)
==17481== at 0x80C10EF: _IO_un_link (in /home/solarys/sis/sis)
==17481== by 0x80BA13C: __fopen_internal (in /home/solarys/sis/sis)
==17481== by 0x80BA78F: fopen64 (in /home/solarys/sis/sis)
==17481== by 0x809AFFD: std::__basic_file<char>::open(char const*, std::_Ios_Openmode, int) (in /home/solarys/sis/sis)
==17481== by 0x80518D0: std::basic_filebuf<char, std::char_traits<char> >::open(char const*, std::_Ios_Openmode) (in /home/solarys/sis/sis)
==17481== by 0x8052206: std::basic_ifstream<char, std::char_traits<char> >::basic_ifstream(char const*, std::_Ios_Openmode) (in /home/solarys/sis/sis)
==17481== by 0x8048A64: read_config(char*) (in /home/solarys/sis/sis)
==17481== by 0x80491AB: main (in /home/solarys/sis/sis)
==17481==
==17481== Conditional jump or move depends on uninitialised value(s)
==17481== at 0x80C3D9E: free (in /home/solarys/sis/sis)
==17481== by 0x80BA144: __fopen_internal (in /home/solarys/sis/sis)
==17481== by 0x80BA78F: fopen64 (in /home/solarys/sis/sis)
==17481== by 0x809AFFD: std::__basic_file<char>::open(char const*, std::_Ios_Openmode, int) (in /home/solarys/sis/sis)
==17481== by 0x80518D0: std::basic_filebuf<char, std::char_traits<char> >::open(char const*, std::_Ios_Openmode) (in /home/solarys/sis/sis)
==17481== by 0x8052206: std::basic_ifstream<char, std::char_traits<char> >::basic_ifstream(char const*, std::_Ios_Openmode) (in /home/solarys/sis/sis)
==17481== by 0x8048A64: read_config(char*) (in /home/solarys/sis/sis)
==17481== by 0x80491AB: main (in /home/solarys/sis/sis)
==17481==
==17481== Conditional jump or move depends on uninitialised value(s)
==17481== at 0x80C3DBE: free (in /home/solarys/sis/sis)
==17481== by 0x80BA144: __fopen_internal (in /home/solarys/sis/sis)
==17481== by 0x80BA78F: fopen64 (in /home/solarys/sis/sis)
==17481== by 0x809AFFD: std::__basic_file<char>::open(char const*, std::_Ios_Openmode, int) (in /home/solarys/sis/sis)
==17481== by 0x80518D0: std::basic_filebuf<char, std::char_traits<char> >::open(char const*, std::_Ios_Openmode) (in /home/solarys/sis/sis)
==17481== by 0x8052206: std::basic_ifstream<char, std::char_traits<char> >::basic_ifstream(char const*, std::_Ios_Openmode) (in /home/solarys/sis/sis)
==17481== by 0x8048A64: read_config(char*) (in /home/solarys/sis/sis)
==17481== by 0x80491AB: main (in /home/solarys/sis/sis)
==17481==
==17481== ERROR SUMMARY: 111 errors from 78 contexts (suppressed: 0 from 0)
==17481== malloc/free: in use at exit: 0 bytes in 0 blocks.
==17481== malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
==17481== For counts of detected errors, rerun with: -v
==17481== All heap blocks were freed -- no leaks are possible.
Ich bin ratlos
![:(](wcf/images/smilies/beleidigt.gif)
Das Programm sollte heute noch laufen...