Hallo!
Ich möchte das uralte Spiel iMaze auf Ubuntu installieren. Dazu habe ich mir den Quellcode von den Fedoraseiten herunter geladen und brav ./configure und dann make ausgeführt. Ich sehe das so, dass ich im Wesentlichen zwei Fehlermeldungen bekommen habe. Ich habe nun schon seeehr lange kein C-Programm mehr compiliert - so ungefähr ist das 20 Jahre her. Deshalb frage ich mal hier nach, was zu tun ist. Die Terminalausgabe:
./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking for rman... 1 configure: searching for an install program checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... gcc3 checking for flex... no checking for lex... no checking for bison... no checking for byacc... no checking for library containing strerror... none required checking dependency style of gcc... gcc3 checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking dependency style of gcc... (cached) gcc3 checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking if this is icc in disguise... checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E no checking for ar... ar checking the archiver (ar) interface... ar checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /bin/sed checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for mt... mt checking if mt is a manifest tool... no checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for ANSI C header files... (cached) yes checking whether time.h and sys/time.h may both be included... yes checking POSIX termios... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking for sctp_sendmsg in -llibsctp.so... no checking byteswap.h usability... yes checking byteswap.h presence... yes checking for byteswap.h... yes checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking sys/statvfs.h usability... yes checking sys/statvfs.h presence... yes checking for sys/statvfs.h... yes checking sys/times.h usability... yes checking sys/times.h presence... yes checking for sys/times.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking aio.h usability... yes checking aio.h presence... yes checking for aio.h... yes checking sys/uio.h usability... yes checking sys/uio.h presence... yes checking for sys/uio.h... yes checking regex.h usability... yes checking regex.h presence... yes checking for regex.h... yes checking boost/version.hpp usability... no checking boost/version.hpp presence... no checking for boost/version.hpp... no checking png.h usability... no checking png.h presence... no checking for png.h... no checking whether struct tm is in sys/time.h or time.h... time.h checking for struct tm.tm_zone... yes checking for gettimeofday... yes checking that generated files are newer than configure... done configure: creating ./config.status configure: configure: Cross Compiling no configure: C++0x no configure: debugging no configure: libpng: no configure: config.status: creating Makefile config.status: creating src/Makefile config.status: creating sounds/Makefile config.status: creating labs/Makefile config.status: creating doc/Makefile config.status: creating man6/Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands asterix@HP1:~/c/imaze-2.0$ ls aclocal.m4 ChangeLog config.h.in config.sub COPYING doc install-sh ltmain.sh Makefile.in NEWS src ar-lib config.guess config.log configure Copyright imaze.spec labs Makefile man6 README stamp-h1 AUTHORS config.h config.status configure.ac depcomp INSTALL libtool Makefile.am missing sounds asterix@HP1:~/c/imaze-2.0$ make make all-recursive make[1]: Verzeichnis „/home/asterix/c/imaze-2.0“ wird betreten Making all in src make[2]: Verzeichnis „/home/asterix/c/imaze-2.0/src“ wird betreten gcc -DHAVE_CONFIG_H -I. -I.. -Wp,-D_FORTIFY_SOURCE=2 -Wall -Werror -Wformat -Wformat-security -Wmaybe-uninitialized -g -O2 -pipe -O3 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -MT gentrigtab.o -MD -MP -MF .deps/gentrigtab.Tpo -c -o gentrigtab.o gentrigtab.c mv -f .deps/gentrigtab.Tpo .deps/gentrigtab.Po /bin/bash ../libtool --tag=CC --mode=link gcc -Wp,-D_FORTIFY_SOURCE=2 -Wall -Werror -Wformat -Wformat-security -Wmaybe-uninitialized -g -O2 -pipe -O3 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -o gentrigtab gentrigtab.o -lm libtool: link: gcc -Wp,-D_FORTIFY_SOURCE=2 -Wall -Werror -Wformat -Wformat-security -Wmaybe-uninitialized -g -O2 -pipe -O3 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -o gentrigtab gentrigtab.o -lm ./gentrigtab >trigtab.c make all-am make[3]: Verzeichnis „/home/asterix/c/imaze-2.0/src“ wird betreten /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wp,-D_FORTIFY_SOURCE=2 -Wall -Werror -Wformat -Wformat-security -Wmaybe-uninitialized -g -O2 -pipe -O3 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -MT argv.lo -MD -MP -MF .deps/argv.Tpo -c -o argv.lo argv.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wp,-D_FORTIFY_SOURCE=2 -Wall -Werror -Wformat -Wformat-security -Wmaybe-uninitialized -g -O2 -pipe -O3 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -MT argv.lo -MD -MP -MF .deps/argv.Tpo -c argv.c -fPIC -DPIC -o .libs/argv.o mv -f .deps/argv.Tpo .deps/argv.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wp,-D_FORTIFY_SOURCE=2 -Wall -Werror -Wformat -Wformat-security -Wmaybe-uninitialized -g -O2 -pipe -O3 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -MT speicher.lo -MD -MP -MF .deps/speicher.Tpo -c -o speicher.lo speicher.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wp,-D_FORTIFY_SOURCE=2 -Wall -Werror -Wformat -Wformat-security -Wmaybe-uninitialized -g -O2 -pipe -O3 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -MT speicher.lo -MD -MP -MF .deps/speicher.Tpo -c speicher.c -fPIC -DPIC -o .libs/speicher.o mv -f .deps/speicher.Tpo .deps/speicher.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wp,-D_FORTIFY_SOURCE=2 -Wall -Werror -Wformat -Wformat-security -Wmaybe-uninitialized -g -O2 -pipe -O3 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -MT global.lo -MD -MP -MF .deps/global.Tpo -c -o global.lo global.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wp,-D_FORTIFY_SOURCE=2 -Wall -Werror -Wformat -Wformat-security -Wmaybe-uninitialized -g -O2 -pipe -O3 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -MT global.lo -MD -MP -MF .deps/global.Tpo -c global.c -fPIC -DPIC -o .libs/global.o mv -f .deps/global.Tpo .deps/global.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wp,-D_FORTIFY_SOURCE=2 -Wall -Werror -Wformat -Wformat-security -Wmaybe-uninitialized -g -O2 -pipe -O3 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -MT system.lo -MD -MP -MF .deps/system.Tpo -c -o system.lo system.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wp,-D_FORTIFY_SOURCE=2 -Wall -Werror -Wformat -Wformat-security -Wmaybe-uninitialized -g -O2 -pipe -O3 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -MT system.lo -MD -MP -MF .deps/system.Tpo -c system.c -fPIC -DPIC -o .libs/system.o mv -f .deps/system.Tpo .deps/system.Plo /bin/bash ../libtool --tag=CC --mode=link gcc -Wp,-D_FORTIFY_SOURCE=2 -Wall -Werror -Wformat -Wformat-security -Wmaybe-uninitialized -g -O2 -pipe -O3 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -avoid-version -o libimaze.la -rpath /usr/lib argv.lo speicher.lo global.lo system.lo -lm libtool: link: gcc -shared -fPIC -DPIC .libs/argv.o .libs/speicher.o .libs/global.o .libs/system.o -lm -O2 -O3 -Wl,-soname -Wl,libimaze.so -o .libs/libimaze.so .libs/system.o: In function `fehler_text': /home/asterix/c/imaze-2.0/src/system.c:632: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead /home/asterix/c/imaze-2.0/src/system.c:617: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead libtool: link: ( cd ".libs" && rm -f "libimaze.la" && ln -s "../libimaze.la" "libimaze.la" ) gcc -DHAVE_CONFIG_H -I. -I.. -Wp,-D_FORTIFY_SOURCE=2 -Wall -Werror -Wformat -Wformat-security -Wmaybe-uninitialized -g -O2 -pipe -O3 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -MT client.o -MD -MP -MF .deps/client.Tpo -c -o client.o client.c mv -f .deps/client.Tpo .deps/client.Po gcc -DHAVE_CONFIG_H -I. -I.. -Wp,-D_FORTIFY_SOURCE=2 -Wall -Werror -Wformat -Wformat-security -Wmaybe-uninitialized -g -O2 -pipe -O3 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -MT netzwerk.o -MD -MP -MF .deps/netzwerk.Tpo -c -o netzwerk.o netzwerk.c mv -f .deps/netzwerk.Tpo .deps/netzwerk.Po gcc -DHAVE_CONFIG_H -I. -I.. -Wp,-D_FORTIFY_SOURCE=2 -Wall -Werror -Wformat -Wformat-security -Wmaybe-uninitialized -g -O2 -pipe -O3 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -MT ip_netz.o -MD -MP -MF .deps/ip_netz.Tpo -c -o ip_netz.o ip_netz.c mv -f .deps/ip_netz.Tpo .deps/ip_netz.Po gcc -DHAVE_CONFIG_H -I. -I.. -Wp,-D_FORTIFY_SOURCE=2 -Wall -Werror -Wformat -Wformat-security -Wmaybe-uninitialized -g -O2 -pipe -O3 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -MT rechne3d.o -MD -MP -MF .deps/rechne3d.Tpo -c -o rechne3d.o rechne3d.c mv -f .deps/rechne3d.Tpo .deps/rechne3d.Po gcc -DHAVE_CONFIG_H -I. -I.. -Wp,-D_FORTIFY_SOURCE=2 -Wall -Werror -Wformat -Wformat-security -Wmaybe-uninitialized -g -O2 -pipe -O3 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -MT rechne_karte.o -MD -MP -MF .deps/rechne_karte.Tpo -c -o rechne_karte.o rechne_karte.c mv -f .deps/rechne_karte.Tpo .deps/rechne_karte.Po gcc -DHAVE_CONFIG_H -I. -I.. -Wp,-D_FORTIFY_SOURCE=2 -Wall -Werror -Wformat -Wformat-security -Wmaybe-uninitialized -g -O2 -pipe -O3 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -MT audio.o -MD -MP -MF .deps/audio.Tpo -c -o audio.o audio.c In file included from audio.c:54:0: grafik.h:73:5: error: unknown type name ‘u_char’ u_char senkrecht; /* falls Wand von oben nach unten */ ^ grafik.h:74:5: error: unknown type name ‘u_char’ u_char typ1; /* Typ der Wand von links/oben */ ^ grafik.h:75:5: error: unknown type name ‘u_char’ u_char typ2; /* Typ der Wand von rechts/unten */ ^ grafik.h:84:5: error: unknown type name ‘u_char’ u_char farbe; ^ grafik.h:94:5: error: unknown type name ‘u_char’ u_char farbe; /* darf nicht TRANSPARENT sein */ ^ grafik.h:95:5: error: unknown type name ‘u_char’ u_char tuer; /* falls Wand eine Tuer ist */ ^ grafik.h:114:5: error: unknown type name ‘u_char’ u_char farbe; /* kann TRANSPARENT sein */ ^ grafik.h:132:5: error: unknown type name ‘u_char’ u_char farbe; ^ Makefile:569: die Regel für Ziel „audio.o“ scheiterte make[3]: *** [audio.o] Fehler 1 make[3]: Verzeichnis „/home/asterix/c/imaze-2.0/src“ wird verlassen Makefile:396: die Regel für Ziel „all“ scheiterte make[2]: *** [all] Fehler 2 make[2]: Verzeichnis „/home/asterix/c/imaze-2.0/src“ wird verlassen Makefile:347: die Regel für Ziel „all-recursive“ scheiterte make[1]: *** [all-recursive] Fehler 1 make[1]: Verzeichnis „/home/asterix/c/imaze-2.0“ wird verlassen Makefile:278: die Regel für Ziel „all“ scheiterte make: *** [all] Fehler 2 asterix@HP1:~/c/imaze-2.0$
u_char durch char ersetzen und sys_errlist' durch
strerror' und das war es schon?
Kann jemand helfen?