version:1 :debug:main epoch: in tree: 0 installed: 0 :debug:main bsdmake 24_0 exists in the ports tree :debug:main bsdmake 24_0 is the latest installed :debug:main bsdmake 24_0 is active :debug:main Merging existing variants '' into variants :debug:main new fully merged portvariants: :debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/bsdmake :debug:main OS darwin/12.2.0 (Mac OS X 10.8) arch i386 :debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided :debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided :debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided :debug:main universal_variant is false, so not adding the default universal variant :debug:main No need to upgrade! bsdmake 24_0 >= bsdmake 24_0 :debug:main epoch: in tree: 0 installed: 0 :debug:main ncurses 5.9_1 exists in the ports tree :debug:main ncurses 5.9_1 is the latest installed :debug:main ncurses 5.9_1 is active :debug:main Merging existing variants '' into variants :debug:main new fully merged portvariants: :debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/ncurses :debug:main OS darwin/12.2.0 (Mac OS X 10.8) arch i386 :debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided :debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided :debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided :debug:main adding the default universal variant :debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf :debug:main No need to upgrade! ncurses 5.9_1 >= ncurses 5.9_1 :msg:main ---> Computing dependencies for larn:info:main .:debug:main larn has no conflicts :debug:main Searching for dependency: bsdmake :debug:main Found Dependency: receipt exists for bsdmake :debug:main Searching for dependency: ncurses :debug:main Found Dependency: receipt exists for ncurses :msg:main :debug:main Executing org.macports.main (larn) :debug:main changing euid/egid - current euid: 0 - current egid: 0 :debug:main egid changed to: 501 :debug:main euid changed to: 503 :debug:archivefetch archivefetch phase started at Mon Jan 28 15:34:48 MST 2013 :msg:archivefetch ---> Fetching archive for larn :debug:archivefetch Executing org.macports.archivefetch (larn) :debug:archivefetch euid/egid changed to: 0/0 :debug:archivefetch chowned /opt/local/var/macports/incoming to macports :debug:archivefetch euid/egid changed to: 503/501 :info:archivefetch ---> larn-12_1.darwin_12.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified :msg:archivefetch ---> Attempting to fetch larn-12_1.darwin_12.x86_64.tbz2 from http://packages.macports.org/larn :debug:archivefetch Fetching archive failed:: The requested URL returned error: 404 :msg:archivefetch ---> Attempting to fetch larn-12_1.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/larn :debug:archivefetch Fetching archive failed:: The requested URL returned error: 404 :msg:archivefetch ---> Attempting to fetch larn-12_1.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/larn :debug:archivefetch Fetching archive failed:: The requested URL returned error: 404 :msg:archivefetch ---> Attempting to fetch larn-12_1.darwin_12.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/larn :debug:archivefetch Fetching archive failed:: The requested URL returned error: 404 :debug:archivefetch Privilege de-escalation not attempted as not running as root. :debug:fetch fetch phase started at Mon Jan 28 15:34:51 MST 2013 :notice:fetch ---> Fetching distfiles for larn :debug:fetch Executing org.macports.fetch (larn) :debug:fetch Privilege de-escalation not attempted as not running as root. :debug:checksum checksum phase started at Mon Jan 28 15:34:51 MST 2013 :notice:checksum ---> Verifying checksum(s) for larn :debug:checksum Executing org.macports.checksum (larn) :info:checksum ---> Checksumming larn-4.6.2-RELEASE.tar.bz2 :debug:checksum Correct (md5) checksum for larn-4.6.2-RELEASE.tar.bz2 :debug:checksum Privilege de-escalation not attempted as not running as root. :debug:extract extract phase started at Mon Jan 28 15:34:51 MST 2013 :notice:extract ---> Extracting larn :debug:extract setting option extract.cmd to /usr/bin/bzip2 :debug:extract Executing org.macports.extract (larn) :info:extract ---> Extracting larn-4.6.2-RELEASE.tar.bz2 :debug:extract setting option extract.args to '/opt/local/var/macports/distfiles/larn/larn-4.6.2-RELEASE.tar.bz2' :debug:extract Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.8' :debug:extract Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work" && /usr/bin/bzip2 -dc '/opt/local/var/macports/distfiles/larn/larn-4.6.2-RELEASE.tar.bz2' | /usr/bin/gnutar --no-same-owner -xf -' :debug:extract Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work" && /usr/bin/bzip2 -dc '/opt/local/var/macports/distfiles/larn/larn-4.6.2-RELEASE.tar.bz2' | /usr/bin/gnutar --no-same-owner -xf - :debug:extract euid/egid changed to: 0/0 :debug:extract chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work to macports :debug:extract euid/egid changed to: 503/501 :debug:extract Privilege de-escalation not attempted as not running as root. :debug:patch patch phase started at Mon Jan 28 15:34:51 MST 2013 :debug:patch Executing org.macports.patch (larn) :notice:patch ---> Applying patches to larn :info:patch ---> Applying patch-diag.c :debug:patch Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.8' :debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn" && /usr/bin/patch -p0' :debug:patch Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/games/larn/files/patch-diag.c' :info:patch patching file diag.c :info:patch ---> Applying patch-display.c :debug:patch Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.8' :debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn" && /usr/bin/patch -p0' :debug:patch Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/games/larn/files/patch-display.c' :info:patch patching file display.c :info:patch ---> Applying patch-global.c :debug:patch Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.8' :debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn" && /usr/bin/patch -p0' :debug:patch Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/games/larn/files/patch-global.c' :info:patch patching file global.c :info:patch ---> Applying patch-help.c :debug:patch Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.8' :debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn" && /usr/bin/patch -p0' :debug:patch Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/games/larn/files/patch-help.c' :info:patch patching file help.c :info:patch ---> Applying patch-io.c :debug:patch Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.8' :debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn" && /usr/bin/patch -p0' :debug:patch Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/games/larn/files/patch-io.c' :info:patch patching file io.c :info:patch ---> Applying patch-main.c :debug:patch Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.8' :debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn" && /usr/bin/patch -p0' :debug:patch Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/games/larn/files/patch-main.c' :info:patch patching file main.c :info:patch ---> Applying patch-monster.c :debug:patch Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.8' :debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn" && /usr/bin/patch -p0' :debug:patch Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/games/larn/files/patch-monster.c' :info:patch patching file monster.c :info:patch ---> Applying patch-moreobj.c :debug:patch Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.8' :debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn" && /usr/bin/patch -p0' :debug:patch Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/games/larn/files/patch-moreobj.c' :info:patch patching file moreobj.c :info:patch ---> Applying patch-movem.c :debug:patch Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.8' :debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn" && /usr/bin/patch -p0' :debug:patch Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/games/larn/files/patch-movem.c' :info:patch patching file movem.c :info:patch ---> Applying patch-object.c :debug:patch Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.8' :debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn" && /usr/bin/patch -p0' :debug:patch Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/games/larn/files/patch-object.c' :info:patch patching file object.c :info:patch ---> Applying patch-scores.c :debug:patch Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.8' :debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn" && /usr/bin/patch -p0' :debug:patch Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/games/larn/files/patch-scores.c' :info:patch patching file scores.c :info:patch ---> Applying patch-store.c :debug:patch Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.8' :debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn" && /usr/bin/patch -p0' :debug:patch Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/games/larn/files/patch-store.c' :info:patch patching file store.c :debug:patch Privilege de-escalation not attempted as not running as root. :debug:configure configure phase started at Mon Jan 28 15:34:51 MST 2013 :notice:configure ---> Configuring larn :debug:configure Using compiler 'Mac OS X clang' :debug:configure Executing org.macports.configure (larn) :debug:configure Executing reinplace: /usr/bin/sed s|MAN|MAN6| < /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn/Makefile >@ file10 :debug:configure Executing reinplace: /usr/bin/sed {s|LDADD= -ltermcap -lcompat|LDADD= -lncurses -L/opt/local/lib|} < /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn/Makefile >@ file10 :debug:configure Executing reinplace: /usr/bin/sed s|/usr/share/games|/opt/local/share|g < /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn/pathnames.h >@ file10 :debug:configure Executing reinplace: /usr/bin/sed s|/var/games|/opt/local/var/games|g < /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn/pathnames.h >@ file10 :debug:configure changing euid/egid - current euid: 0 - current egid: 0 :debug:configure egid changed to: 501 :debug:configure euid changed to: 503 :debug:build build phase started at Mon Jan 28 15:34:52 MST 2013 :notice:build ---> Building larn :debug:build Executing org.macports.build (larn) :debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/.CC_PRINT_OPTIONS' CFLAGS='-I/opt/local/include -I/opt/local/include/ncurses' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.8' :debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn" && /opt/local/bin/bsdmake -j13 all CC=/usr/bin/clang' :debug:build Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn" && /opt/local/bin/bsdmake -j13 all CC=/usr/bin/clang :info:build Warning: Object directory not changed from original /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn :info:build /usr/bin/clang -I/opt/local/include -I/opt/local/include/ncurses -DBSD -DVER=12 -DSUBVER=0 -DNONAP -DUIDSCORE -fwritable-strings -c main.c :info:build /usr/bin/clang -I/opt/local/include -I/opt/local/include/ncurses -DBSD -DVER=12 -DSUBVER=0 -DNONAP -DUIDSCORE -fwritable-strings -c object.c :info:build /usr/bin/clang -I/opt/local/include -I/opt/local/include/ncurses -DBSD -DVER=12 -DSUBVER=0 -DNONAP -DUIDSCORE -fwritable-strings -c create.c :info:build /usr/bin/clang -I/opt/local/include -I/opt/local/include/ncurses -DBSD -DVER=12 -DSUBVER=0 -DNONAP -DUIDSCORE -fwritable-strings -c tok.c :info:build /usr/bin/clang -I/opt/local/include -I/opt/local/include/ncurses -DBSD -DVER=12 -DSUBVER=0 -DNONAP -DUIDSCORE -fwritable-strings -c display.c :info:build /usr/bin/clang -I/opt/local/include -I/opt/local/include/ncurses -DBSD -DVER=12 -DSUBVER=0 -DNONAP -DUIDSCORE -fwritable-strings -c global.c :info:build /usr/bin/clang -I/opt/local/include -I/opt/local/include/ncurses -DBSD -DVER=12 -DSUBVER=0 -DNONAP -DUIDSCORE -fwritable-strings -c io.c :info:build /usr/bin/clang -I/opt/local/include -I/opt/local/include/ncurses -DBSD -DVER=12 -DSUBVER=0 -DNONAP -DUIDSCORE -fwritable-strings -c data.c :info:build /usr/bin/clang -I/opt/local/include -I/opt/local/include/ncurses -DBSD -DVER=12 -DSUBVER=0 -DNONAP -DUIDSCORE -fwritable-strings -c monster.c :info:build /usr/bin/clang -I/opt/local/include -I/opt/local/include/ncurses -DBSD -DVER=12 -DSUBVER=0 -DNONAP -DUIDSCORE -fwritable-strings -c diag.c :info:build /usr/bin/clang -I/opt/local/include -I/opt/local/include/ncurses -DBSD -DVER=12 -DSUBVER=0 -DNONAP -DUIDSCORE -fwritable-strings -c store.c :info:build /usr/bin/clang -I/opt/local/include -I/opt/local/include/ncurses -DBSD -DVER=12 -DSUBVER=0 -DNONAP -DUIDSCORE -fwritable-strings -c help.c :info:build /usr/bin/clang -I/opt/local/include -I/opt/local/include/ncurses -DBSD -DVER=12 -DSUBVER=0 -DNONAP -DUIDSCORE -fwritable-strings -c config.c :info:build In file included from global.c:23: :info:build ./header.h:329:9: warning: 'NULL' macro redefined :info:build #define NULL 0 :info:build ^ :info:build /usr/include/stdlib.h:115:9: note: previous definition is here :info:build #define NULL __DARWIN_NULL :info:build ^ :info:build In file included from data.c:44: :info:build ./header.h:329:9: warning: 'NULL' macro redefined :info:build #define NULL 0 :info:build ^ :info:build /usr/include/stdlib.h:115:9: note: previous definition is here :info:build #define NULL __DARWIN_NULL :info:build ^ :info:build global.c:41:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build raiselevel() :info:build ^~~~~~~~~~ :info:build global.c:43:28: warning: implicit declaration of function 'raiseexperience' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (c[LEVEL] < MAXPLEVEL) raiseexperience((long)(skill[c[LEVEL]]-c[EXPERIENCE])); :info:build ^ :info:build global.c:44:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build global.c:54:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build loselevel() :info:build ^~~~~~~~~ :info:build global.c:56:20: warning: implicit declaration of function 'loseexperience' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (c[LEVEL] > 1) loseexperience((long)(c[EXPERIENCE] - skill[c[LEVEL]-1] + 1)); :info:build ^ :info:build In file included from diag.c:6: :info:build ./header.h:329:9: warning: 'NULL' macro redefined :info:build In file included from create.c:3: :info:build ./header.h:329:9: warning: 'NULL' macro redefined :info:build #define NULL 0 :info:build ^ :info:build In file included from display.c:3: :info:build ./header.h:329:9: warning: 'NULL' macro redefined :info:build global.c:57:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build #define NULL 0 :info:build ^ :info:build #define NULL 0 :info:build ^ :info:build /usr/include/stdlib.h:115:9: note: previous definition is here :info:build #define NULL __DARWIN_NULL :info:build ^ :info:build /usr/include/stdlib.h:115:9: note: previous definition is here :info:build #define NULL __DARWIN_NULL :info:build /usr/include/stdlib.h:115:9: note: previous definition is here :info:build ^ :info:build #define NULL __DARWIN_NULL :info:build ^ :info:build global.c:67:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build raiseexperience(x) :info:build ^~~~~~~~~~~~~~~ :info:build global.c:75:15: warning: implicit declaration of function 'raisemhp' is invalid in C99 [-Wimplicit-function-declaration] :info:build c[LEVEL]++; raisemhp((int)(rnd(3)+rnd((tmp>0)?tmp:1))); :info:build ^ :info:build global.c:75:30: warning: implicit declaration of function 'rnd' is invalid in C99 [-Wimplicit-function-declaration] :info:build c[LEVEL]++; raisemhp((int)(rnd(3)+rnd((tmp>0)?tmp:1))); :info:build ^ :info:build global.c:76:3: warning: implicit declaration of function 'raisemspells' is invalid in C99 [-Wimplicit-function-declaration] :info:build raisemspells((int)rund(3)); :info:build ^ :info:build global.c:76:21: warning: implicit declaration of function 'rund' is invalid in C99 [-Wimplicit-function-declaration] :info:build raisemspells((int)rund(3)); :info:build ^ :info:build global.c:81:3: warning: implicit declaration of function 'cursors' is invalid in C99 [-Wimplicit-function-declaration] :info:build cursors(); :info:build ^ :info:build global.c:82:3: warning: implicit declaration of function 'beep' is invalid in C99 [-Wimplicit-function-declaration] :info:build beep(); lprintf(2,"\nWelcome to level %d",(long)c[LEVEL]); /* if we changed levels */ :info:build ^ :info:build global.c:82:11: warning: implicit declaration of function 'lprintf' is invalid in C99 [-Wimplicit-function-declaration] :info:build In file included from config.c:9: :info:build beep(); lprintf(2,"\nWelcome to level %d",(long)c[LEVEL]); /* if we changed levels */ :info:build ^ :info:build ./header.h:329:9: warning: 'NULL' macro redefined :info:build #define NULL 0 :info:build ^ :info:build global.c:84:2: warning: implicit declaration of function 'bottomline' is invalid in C99 [-Wimplicit-function-declaration] :info:build /usr/include/stdlib.h:115:9: note: previous definition is here :info:build bottomline(); :info:build ^ :info:build #define NULL __DARWIN_NULL :info:build ^ :info:build In file included from store.c:43: :info:build global.c:85:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build ./header.h:329:9: warning: 'NULL' macro redefined :info:build #define NULL 0 :info:build ^ :info:build /usr/include/stdlib.h:115:9: note: previous definition is here :info:build #define NULL __DARWIN_NULL :info:build ^ :info:build display.c:14:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build bottomline() :info:build ^~~~~~~~~~ :info:build display.c:15:4: warning: implicit declaration of function 'recalc' is invalid in C99 [-Wimplicit-function-declaration] :info:build data.c:154:36: warning: '/*' within block comment [-Wcomment] :info:build /* unsigned long randx=33601; /* the random number seed */ :info:build ^ :info:build { recalc(); bot1f=1; } :info:build ^ :info:build diag.c:148:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build savegame(fname) :info:build ^~~~~~~~ :info:build create.c:13:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build display.c:15:23: warning: control reaches end of non-void function [-Wreturn-type] :info:build { recalc(); bot1f=1; } :info:build ^ :info:build global.c:95:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build loseexperience(x) :info:build ^~~~~~~~~~~~~~ :info:build diag.c:154:15: warning: implicit declaration of function 'lflush' is invalid in C99 [-Wimplicit-function-declaration] :info:build makeplayer() :info:build ^~~~~~~~~~ :info:build nosignal=1; lflush(); savelevel(); :info:build ^ :info:build diag.c:154:25: warning: implicit declaration of function 'savelevel' is invalid in C99 [-Wimplicit-function-declaration] :info:build nosignal=1; lflush(); savelevel(); :info:build ^ :info:build create.c:16:2: warning: implicit declaration of function 'scbr' is invalid in C99 [-Wimplicit-function-declaration] :info:build global.c:105:3: warning: implicit declaration of function 'losemhp' is invalid in C99 [-Wimplicit-function-declaration] :info:build losemhp((int)rnd((tmp>0)?tmp:1)); /* lose hpoints */ :info:build diag.c:155:2: warning: implicit declaration of function 'ointerest' is invalid in C99 [-Wimplicit-function-declaration] :info:build ointerest(); :info:build ^ :info:build scbr(); clear(); :info:build ^ :info:build ^ :info:build diag.c:156:6: warning: implicit declaration of function 'lcreat' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (lcreat(fname) < 0) :info:build ^ :info:build display.c:16:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build bottomhp() :info:build ^~~~~~~~ :info:build global.c:107:3: warning: implicit declaration of function 'losemspells' is invalid in C99 [-Wimplicit-function-declaration] :info:build losemspells((int)rund(3)); /* lose spells */ :info:build ^ :info:build diag.c:158:21: warning: implicit declaration of function 'lprintf' is invalid in C99 [-Wimplicit-function-declaration] :info:build lcreat((char*)0); lprintf(2,"\nCan't open file <%s> to save game\n",fname); :info:build ^ :info:build display.c:17:13: warning: control reaches end of non-void function [-Wreturn-type] :info:build diag.c:162:2: warning: implicit declaration of function 'set_score_output' is invalid in C99 [-Wimplicit-function-declaration] :info:build set_score_output(); :info:build ^ :info:build { bot2f=1; } :info:build ^ :info:build diag.c:163:2: warning: implicit declaration of function 'lwrite' is invalid in C99 [-Wimplicit-function-declaration] :info:build lwrite((char*)beenhere,MAXLEVEL+MAXVLEVEL); :info:build ^ :info:build display.c:18:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build global.c:115:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build bottomspell() :info:build ^~~~~~~~~~~ :info:build display.c:19:13: warning: control reaches end of non-void function [-Wreturn-type] :info:build { bot3f=1; } :info:build ^ :info:build display.c:20:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build bottomdo() :info:build ^~~~~~~~ :info:build diag.c:170:2: warning: implicit declaration of function 'lprint' is invalid in C99 [-Wimplicit-function-declaration] :info:build lprint((long)gtime); lprc(level); :info:build ^ :info:build create.c:29:10: warning: implicit declaration of function 'rnd' is invalid in C99 [-Wimplicit-function-declaration] :info:build playerx=rnd(MAXX-2); playery=rnd(MAXY-2); :info:build display.c:22:36: warning: implicit declaration of function 'bot_linex' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (bot1f) { bot3f=bot1f=bot2f=0; bot_linex(); return; } :info:build ^ :info:build global.c:127:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build losehp(x) :info:build ^~~~~~ :info:build ^ :info:build display.c:22:49: error: non-void function 'bottomdo' should return a value [-Wreturn-type] :info:build if (bot1f) { bot3f=bot1f=bot2f=0; bot_linex(); return; } :info:build ^ :info:build global.c:132:11: warning: implicit declaration of function 'lprcat' is invalid in C99 [-Wimplicit-function-declaration] :info:build beep(); lprcat("\n"); nap(3000); died(lastnum); :info:build ^ :info:build display.c:23:24: warning: implicit declaration of function 'bot_hpx' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (bot2f) { bot2f=0; bot_hpx(); } :info:build ^ :info:build global.c:132:26: warning: implicit declaration of function 'nap' is invalid in C99 [-Wimplicit-function-declaration] :info:build beep(); lprcat("\n"); nap(3000); died(lastnum); :info:build ^ :info:build global.c:132:38: warning: implicit declaration of function 'died' is invalid in C99 [-Wimplicit-function-declaration] :info:build beep(); lprcat("\n"); nap(3000); died(lastnum); :info:build ^ :info:build display.c:24:24: warning: implicit declaration of function 'bot_spellx' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (bot3f) { bot3f=0; bot_spellx(); } :info:build ^ :info:build global.c:134:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build In file included from main.c:5: :info:build create.c:34:2: warning: implicit declaration of function 'recalc' is invalid in C99 [-Wimplicit-function-declaration] :info:build display.c:29:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build bot_linex() :info:build ^~~~~~~~~ :info:build recalc(); :info:build ^ :info:build display.c:34:3: warning: implicit declaration of function 'cursor' is invalid in C99 [-Wimplicit-function-declaration] :info:build cursor( 1,18); :info:build ^ :info:build global.c:136:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build losemhp(x) :info:build ^~~~~~~ :info:build display.c:35:24: warning: implicit declaration of function 'lprintf' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (c[SPELLMAX]>99) lprintf(3,"Spells:%3d(%3d)",(long)c[SPELLS],(long)c[SPELLMAX]); :info:build ^ :info:build global.c:141:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build ./header.h:329:9: warning: 'NULL' macro redefined :info:build #define NULL 0 :info:build ^ :info:build global.c:152:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build raisehp(x) :info:build ^~~~~~~ :info:build /usr/include/stdlib.h:115:9: note: previous definition is here :info:build #define NULL __DARWIN_NULL :info:build ^ :info:build display.c:47:21: warning: implicit declaration of function 'lprcat' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (c[TELEFLAG]) lprcat(" ?"); else lprcat(levelname[level]); :info:build ^ :info:build global.c:156:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build global.c:158:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build raisemhp(x) :info:build ^~~~~~~~ :info:build display.c:49:14: warning: implicit declaration of function 'botside' is invalid in C99 [-Wimplicit-function-declaration] :info:build always=1; botside(); :info:build ^ :info:build global.c:162:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build diag.c:186:2: warning: implicit declaration of function 'lwclose' is invalid in C99 [-Wimplicit-function-declaration] :info:build lwclose(); lastmonst[0] = 0; :info:build ^ :info:build create.c:35:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build global.c:173:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build raisespells(x) :info:build ^~~~~~~~~~~ :info:build display.c:52:3: error: non-void function 'bot_linex' should return a value [-Wreturn-type] :info:build global.c:177:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build return; :info:build ^ :info:build } :info:build ^ :info:build global.c:179:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build raisemspells(x) :info:build ^~~~~~~~~~~~ :info:build global.c:183:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build global.c:194:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build losespells(x) :info:build ^~~~~~~~~~ :info:build global.c:198:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build In file included from object.c:3: :info:build ./header.h:329:9: warning: 'NULL' macro redefined :info:build In file included from monster.c:100: :info:build global.c:200:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build losemspells(x) :info:build ^~~~~~~~~~~ :info:build #define NULL 0 :info:build ^ :info:build ./header.h:329:9: warning: 'NULL' macro redefined :info:build #define NULL 0 :info:build ^ :info:build display.c:88:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build bottomgold() :info:build global.c:205:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build /usr/include/stdlib.h:115:9: note: previous definition is here :info:build #define NULL __DARWIN_NULL :info:build ^ :info:build ^~~~~~~~~~ :info:build /usr/include/stdlib.h:115:9: note: previous definition is here :info:build #define NULL __DARWIN_NULL :info:build ^ :info:build display.c:98:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build bot_hpx() :info:build ^~~~~~~ :info:build global.c:214:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build makemonst(lev) :info:build ^~~~~~~~~ :info:build display.c:110:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build bot_spellx() :info:build ^~~~~~~~~~ :info:build display.c:133:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build botside() :info:build ^~~~~~~ :info:build global.c:234:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build positionplayer() :info:build ^~~~~~~~~~~~~~ :info:build store.c:168:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build dnd_2hed() :info:build ^~~~~~~~ :info:build store.c:170:2: warning: implicit declaration of function 'lprcat' is invalid in C99 [-Wimplicit-function-declaration] :info:build lprcat("Welcome to the Larn Thrift Shoppe. We stock many items explorers find useful\n"); :info:build ^ :info:build create.c:47:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build newcavelevel(x) :info:build ^~~~~~~~~~~~ :info:build In file included from io.c:59: :info:build ./header.h:329:9: warning: 'NULL' macro redefined :info:build global.c:246:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build #define NULL 0 :info:build ^ :info:build monster.c:116:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build createmonster(mon) :info:build ^~~~~~~~~~~~~ :info:build store.c:173:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build create.c:51:23: warning: implicit declaration of function 'savelevel' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (beenhere[level]) savelevel(); /* put the level back into storage */ :info:build ^ :info:build } :info:build ^ :info:build /usr/include/stdlib.h:115:9: note: previous definition is here :info:build #define NULL __DARWIN_NULL :info:build ^ :info:build monster.c:122:3: warning: implicit declaration of function 'beep' is invalid in C99 [-Wimplicit-function-declaration] :info:build beep(); lprintf(2,"\ncan't createmonst(%d)\n",(long)mon); nap(3000); return; :info:build ^ :info:build create.c:54:10: warning: implicit declaration of function 'getlevel' is invalid in C99 [-Wimplicit-function-declaration] :info:build monster.c:122:11: warning: implicit declaration of function 'lprintf' is invalid in C99 [-Wimplicit-function-declaration] :info:build beep(); lprintf(2,"\ncan't createmonst(%d)\n",(long)mon); nap(3000); return; :info:build ^ :info:build main.c:38:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build main(argc,argv) :info:build ^~~~ :info:build else { getlevel(); sethp(0); goto chgn; } :info:build ^ :info:build create.c:54:22: warning: implicit declaration of function 'sethp' is invalid in C99 [-Wimplicit-function-declaration] :info:build else { getlevel(); sethp(0); goto chgn; } :info:build ^ :info:build display.c:167:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build draws(xmin,xmax,ymin,ymax) :info:build ^~~~~ :info:build global.c:251:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build recalc() :info:build ^~~~~~ :info:build store.c:177:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build dnd_hed() :info:build ^~~~~~~ :info:build object.c:13:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build lookforobject() :info:build ^~~~~~~~~~~~~ :info:build create.c:55:2: warning: implicit declaration of function 'makemaze' is invalid in C99 [-Wimplicit-function-declaration] :info:build makemaze(x); makeobject(x); beenhere[x]=1; sethp(1); :info:build ^ :info:build display.c:173:16: warning: implicit declaration of function 'cl_up' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (ymin==0) cl_up(79,ymax); :info:build ^ :info:build monster.c:122:61: warning: implicit declaration of function 'nap' is invalid in C99 [-Wimplicit-function-declaration] :info:build beep(); lprintf(2,"\ncan't createmonst(%d)\n",(long)mon); nap(3000); return; :info:build ^ :info:build monster.c:122:72: error: non-void function 'createmonster' should return a value [-Wreturn-type] :info:build beep(); lprintf(2,"\ncan't createmonst(%d)\n",(long)mon); nap(3000); return; :info:build ^ :info:build main.c:52:2: warning: implicit declaration of function 'init_term' is invalid in C99 [-Wimplicit-function-declaration] :info:build init_term(); /* setup the terminal (find out what type) for termcap */ :info:build ^ :info:build object.c:16:19: error: non-void function 'lookforobject' should return a value [-Wreturn-type] :info:build create.c:55:15: warning: implicit declaration of function 'makeobject' is invalid in C99 [-Wimplicit-function-declaration] :info:build makemaze(x); makeobject(x); beenhere[x]=1; sethp(1); :info:build ^ :info:build display.c:174:35: warning: implicit declaration of function 'cl_line' is invalid in C99 [-Wimplicit-function-declaration] :info:build else for (i=ymin; i= MAXOBJ) return; /* no such object */ :info:build ^ :info:build store.c:216:2: warning: implicit declaration of function 'lprintf' is invalid in C99 [-Wimplicit-function-declaration] :info:build lprintf(2,"They have also told us that you owe %d gp in back taxes, and as we must\n",(long)outstanding_taxes); :info:build ^ :info:build object.c:26:27: warning: implicit declaration of function 'lprintf' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (potionname[i][0]) lprintf(2," of %s",&potionname[i][1]); opotion(i); break; :info:build ^ :info:build store.c:218:2: warning: implicit declaration of function 'cursors' is invalid in C99 [-Wimplicit-function-declaration] :info:build cursors(); :info:build ^ :info:build create.c:87:12: error: non-void function 'makemaze' should return a value [-Wreturn-type] :info:build if (k==0) return; eat(1,1); :info:build ^ :info:build create.c:87:21: warning: implicit declaration of function 'eat' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (k==0) return; eat(1,1); :info:build ^ :info:build store.c:219:22: warning: implicit declaration of function 'standout' is invalid in C99 [-Wimplicit-function-declaration] :info:build object.c:26:67: warning: implicit declaration of function 'opotion' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (potionname[i][0]) lprintf(2," of %s",&potionname[i][1]); opotion(i); break; :info:build ^ :info:build monster.c:185:54: error: non-void function 'createitem' should return a value [-Wreturn-type] :info:build item[x][y] = it; know[x][y]=0; iarg[x][y]=arg; return; :info:build ^ :info:build lprcat("\nPress "); standout("escape"); lprcat(" to leave: "); lflush(); :info:build ^ :info:build main.c:75:2: warning: implicitly declaring library function 'sprintf' with type 'int (char *, const char *, ...)' :info:build sprintf(optsfile, "%s/.larnopts",ptr); /* the .larnopts filename */ :info:build ^ :info:build global.c:308:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build store.c:221:21: warning: implicit declaration of function 'getchar' is invalid in C99 [-Wimplicit-function-declaration] :info:build while (i!='\33') i=getchar(); :info:build main.c:75:2: note: please include the header or explicitly provide a declaration for 'sprintf' :info:build } :info:build ^ :info:build monster.c:196:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build cast() :info:build ^~~~ :info:build ^ :info:build object.c:31:5: warning: implicit declaration of function 'oscroll' is invalid in C99 [-Wimplicit-function-declaration] :info:build oscroll(i); break; :info:build ^ :info:build object.c:33:19: warning: implicit declaration of function 'nearbymonst' is invalid in C99 [-Wimplicit-function-declaration] :info:build create.c:105:9: warning: implicit declaration of function 'makemonst' is invalid in C99 [-Wimplicit-function-declaration] :info:build z = makemonst(k); :info:build ^ :info:build display.c:239:4: warning: implicit declaration of function 'lflush' is invalid in C99 [-Wimplicit-function-declaration] :info:build lprc(screen[j++][i]); :info:build ^ :info:build ./header.h:422:49: note: expanded from macro 'lprc' :info:build #define lprc(ch) ((lpnt>=lpend)?(*lpnt++ =(ch), lflush()):(*lpnt++ =(ch))) :info:build ^ :info:build monster.c:199:2: warning: implicit declaration of function 'cursors' is invalid in C99 [-Wimplicit-function-declaration] :info:build cursors(); :info:build ^ :info:build monster.c:200:22: warning: implicit declaration of function 'lprcat' is invalid in C99 [-Wimplicit-function-declaration] :info:build store.c:222:2: warning: implicit declaration of function 'drawscreen' is invalid in C99 [-Wimplicit-function-declaration] :info:build drawscreen(); nosignal = 0; /* enable signals */ return; :info:build ^ :info:build store.c:222:52: error: non-void function 'dndstore' should return a value [-Wreturn-type] :info:build drawscreen(); nosignal = 0; /* enable signals */ return; :info:build ^ :info:build main.c:81:17: warning: implicit declaration of function 'died' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (cell == 0) died(-285); /* malloc failure */ :info:build ^ :info:build case OALTAR: if (nearbymonst()) return; :info:build ^ :info:build object.c:33:34: error: non-void function 'lookforobject' should return a value [-Wreturn-type] :info:build if (c[SPELLS]<=0) { lprcat("\nYou don't have any spells!"); return; } :info:build ^ :info:build case OALTAR: if (nearbymonst()) return; :info:build ^ :info:build monster.c:200:62: error: non-void function 'cast' should return a value [-Wreturn-type] :info:build if (c[SPELLS]<=0) { lprcat("\nYou don't have any spells!"); return; } :info:build ^ :info:build object.c:34:49: warning: implicit declaration of function 'oaltar' is invalid in C99 [-Wimplicit-function-declaration] :info:build store.c:229:14: warning: implicit declaration of function 'cl_dn' is invalid in C99 [-Wimplicit-function-declaration] :info:build lprcat("\n\nThere is a Holy Altar here!"); oaltar(); break; :info:build ^ :info:build cltoeoln(); cl_dn(1,20); /* erase to eod */ :info:build ^ :info:build monster.c:202:12: warning: implicit declaration of function 'getchar' is invalid in C99 [-Wimplicit-function-declaration] :info:build while ((a=getchar())=='D') :info:build object.c:36:52: warning: implicit declaration of function 'obook' is invalid in C99 [-Wimplicit-function-declaration] :info:build display.c:247:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (k=item[j][i]) :info:build ~^~~~~~~~~~~ :info:build ^ :info:build case OBOOK: lprcat("\n\nYou have found a book."); obook(); break; :info:build ^ :info:build create.c:114:12: warning: implicit declaration of function 'treasureroom' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (k>1) treasureroom(k); :info:build ^ :info:build display.c:247:9: note: place parentheses around the assignment to silence this warning :info:build monster.c:203:5: warning: implicit declaration of function 'seemagic' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (k=item[j][i]) :info:build ^ :info:build ( ) :info:build { seemagic(-1); cursors(); lprcat(eys); } :info:build ^ :info:build object.c:38:64: warning: implicit declaration of function 'ocookie' is invalid in C99 [-Wimplicit-function-declaration] :info:build display.c:247:9: note: use '==' to turn this assignment into an equality comparison :info:build main.c:86:2: warning: implicit declaration of function 'lcreat' is invalid in C99 [-Wimplicit-function-declaration] :info:build case OCOOKIE: lprcat("\n\nYou have found a fortune cookie."); ocookie(); break; :info:build ^ :info:build create.c:120:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build if (k=item[j][i]) :info:build ^ :info:build == :info:build lcreat((char*)0); newgame(); /* set the initial clock */ hard= -1; :info:build ^ :info:build eat(xx,yy) :info:build ^~~ :info:build object.c:40:35: error: non-void function 'lookforobject' should return a value [-Wreturn-type] :info:build case OTHRONE: if (nearbymonst()) return; :info:build ^ :info:build monster.c:207:41: error: non-void function 'cast' should return a value [-Wreturn-type] :info:build { over: lprcat(aborted); c[SPELLS]++; return; } /* to escape casting a spell */ :info:build ^ :info:build store.c:237:55: error: non-void function 'dndstore' should return a value [-Wreturn-type] :info:build { drawscreen(); nosignal = 0; /* enable signals */ return; } :info:build ^ :info:build main.c:86:20: warning: implicit declaration of function 'newgame' is invalid in C99 [-Wimplicit-function-declaration] :info:build lcreat((char*)0); newgame(); /* set the initial clock */ hard= -1; :info:build ^ :info:build object.c:41:56: warning: implicit declaration of function 'othrone' is invalid in C99 [-Wimplicit-function-declaration] :info:build lprintf(2,"\n\nThere is %s here!",objectname[i]); othrone(0); break; :info:build ^ :info:build monster.c:211:7: warning: implicit declaration of function 'lflush' is invalid in C99 [-Wimplicit-function-declaration] :info:build object.c:43:36: error: non-void function 'lookforobject' should return a value [-Wreturn-type] :info:build case OTHRONE2: if (nearbymonst()) return; :info:build for (lprc('\n'),j= -1,i=0; i=lpend)?(*lpnt++ =(ch), lflush()):(*lpnt++ =(ch))) :info:build ^ :info:build restoregame(fname) :info:build ^~~~~~~~~~~ :info:build object.c:46:70: warning: implicit declaration of function 'odeadthrone' is invalid in C99 [-Wimplicit-function-declaration] :info:build case ODEADTHRONE: lprintf(2,"\n\nThere is %s here!",objectname[i]); odeadthrone(); break; :info:build ^ :info:build main.c:106:3: warning: implicit declaration of function 'makeboard' is invalid in C99 [-Wimplicit-function-declaration] :info:build makeboard(); :info:build ^ :info:build display.c:268:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build showcell(x,y) :info:build ^~~~~~~~ :info:build object.c:48:57: warning: implicit declaration of function 'oorb' is invalid in C99 [-Wimplicit-function-declaration] :info:build store.c:249:7: warning: implicit declaration of function 'pocketfull' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (pocketfull()) handsfull(); else :info:build ^ :info:build diag.c:200:2: warning: implicit declaration of function 'cursors' is invalid in C99 [-Wimplicit-function-declaration] :info:build case OORB: lprcat("\n\nYou have found the Orb!!!!!"); oorb(); break; :info:build ^ :info:build cursors(); lprcat("\nRestoring . . ."); lflush(); :info:build ^ :info:build display.c:272:22: error: non-void function 'showcell' should return a value [-Wreturn-type] :info:build monster.c:214:8: warning: implicit declaration of function 'speldamage' is invalid in C99 [-Wimplicit-function-declaration] :info:build { speldamage(i); j = 1; i=SPNUM; } :info:build object.c:50:66: warning: implicit declaration of function 'opit' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (c[BLINDCOUNT]) return; /* see nothing if blind */ :info:build ^ :info:build ^ :info:build main.c:116:14: warning: implicit declaration of function 'showscores' is invalid in C99 [-Wimplicit-function-declaration] :info:build case 's': showscores(); exit(0); /* show scoreboard */ :info:build ^ :info:build case OPIT: lprcat("\n\nYou're standing at the top of a pit."); opit(); break; :info:build ^ :info:build global.c:323:5: warning: implicit declaration of function 'getchar' is invalid in C99 [-Wimplicit-function-declaration] :info:build i=getchar(); :info:build ^ :info:build diag.c:200:13: warning: implicit declaration of function 'lprcat' is invalid in C99 [-Wimplicit-function-declaration] :info:build object.c:52:69: warning: implicit declaration of function 'ostairs' is invalid in C99 [-Wimplicit-function-declaration] :info:build cursors(); lprcat("\nRestoring . . ."); lflush(); :info:build ^ :info:build case OSTAIRSUP: lprcat("\n\nThere is a circular staircase here"); ostairs(1); /* up */ break; :info:build ^ :info:build monster.c:217:2: warning: implicit declaration of function 'bottomline' is invalid in C99 [-Wimplicit-function-declaration] :info:build bottomline(); :info:build main.c:119:7: warning: implicit declaration of function 'diedlog' is invalid in C99 [-Wimplicit-function-declaration] :info:build global.c:324:30: error: non-void function 'quit' should return a value [-Wreturn-type] :info:build ^ :info:build store.c:254:19: warning: implicit declaration of function 'take' is invalid in C99 [-Wimplicit-function-declaration] :info:build itm[i].qty--; take(itm[i].obj,itm[i].arg); :info:build diedlog(); exit(0); :info:build ^ :info:build object.c:55:5: warning: implicit declaration of function 'oelevator' is invalid in C99 [-Wimplicit-function-declaration] :info:build oelevator(1); /* up */ break; :info:build ^ :info:build if (i == 'y') { died(300); return; } :info:build ^ :info:build ^ :info:build diag.c:201:6: warning: implicit declaration of function 'lopen' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (lopen(fname) <= 0) :info:build main.c:121:14: warning: implicit declaration of function 'showallscores' is invalid in C99 [-Wimplicit-function-declaration] :info:build object.c:57:37: error: non-void function 'lookforobject' should return a value [-Wreturn-type] :info:build case OFOUNTAIN: if (nearbymonst()) return; :info:build ^ :info:build create.c:165:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build cannedlevel(k) :info:build ^~~~~~~~~~~ :info:build global.c:325:52: warning: implicit declaration of function 'lflush' is invalid in C99 [-Wimplicit-function-declaration] :info:build if ((i == 'n') || (i == '\33')) { lprcat(" no"); lflush(); return; } :info:build ^ :info:build monster.c:229:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build speldamage(x) :info:build ^~~~~~~~~~ :info:build case 'i': showallscores(); exit(0); /* show all scoreboard */ :info:build ^ :info:build object.c:58:46: warning: implicit declaration of function 'ofountain' is invalid in C99 [-Wimplicit-function-declaration] :info:build lprcat("\n\nThere is a fountain here"); ofountain(); break; :info:build ^ :info:build main.c:124:8: warning: implicit declaration of function 'lprcat' is invalid in C99 [-Wimplicit-function-declaration] :info:build ^ :info:build global.c:325:62: error: non-void function 'quit' should return a value [-Wreturn-type] :info:build if ((i == 'n') || (i == '\33')) { lprcat(" no"); lflush(); return; } :info:build ^ :info:build monster.c:235:16: error: non-void function 'speldamage' should return a value [-Wreturn-type] :info:build if (x>=SPNUM) return; /* no such spell */ :info:build ^ :info:build lprcat("Preparing to initialize the scoreboard.\n"); :info:build ^ :info:build object.c:60:35: error: non-void function 'lookforobject' should return a value [-Wreturn-type] :info:build create.c:171:6: warning: implicit declaration of function 'lopen' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (lopen(larnlevels)<0) :info:build ^ :info:build main.c:125:12: warning: implicit declaration of function 'getpassword' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (getpassword() != 0) /*make new scoreboard*/ :info:build ^ :info:build case OSTATUE: if (nearbymonst()) return; :info:build ^ :info:build monster.c:236:58: error: non-void function 'speldamage' should return a value [-Wreturn-type] :info:build if (c[TIMESTOP]) { lprcat(" It didn't seem to work"); return; } /* not if time stopped */ :info:build ^ :info:build diag.c:204:3: warning: implicit declaration of function 'nap' is invalid in C99 [-Wimplicit-function-declaration] :info:build nap(2000); c[GOLD]=c[BANKACCOUNT]=0; died(-265); return; :info:build object.c:61:59: warning: implicit declaration of function 'ostatue' is invalid in C99 [-Wimplicit-function-declaration] :info:build lprcat("\n\nYou are standing in front of a statue"); ostatue(); break; :info:build ^ :info:build create.c:173:51: warning: implicit declaration of function 'died' is invalid in C99 [-Wimplicit-function-declaration] :info:build write(1,"Can't open the maze data file\n",30); died(-282); return(0); :info:build global.c:334:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build more() :info:build ^ :info:build ^~~~ :info:build ^ :info:build main.c:127:21: warning: implicit declaration of function 'lflush' is invalid in C99 [-Wimplicit-function-declaration] :info:build makeboard(); lprc('\n'); showscores(); :info:build ^ :info:build object.c:63:53: warning: implicit declaration of function 'ochest' is invalid in C99 [-Wimplicit-function-declaration] :info:build case OCHEST: lprcat("\n\nThere is a chest here"); ochest(); break; :info:build ^ :info:build global.c:336:29: warning: implicit declaration of function 'standout' is invalid in C99 [-Wimplicit-function-declaration] :info:build lprcat("\n --- press "); standout("space"); lprcat(" to continue --- "); :info:build ^ :info:build object.c:65:24: warning: implicit declaration of function 'rnd' is invalid in C99 [-Wimplicit-function-declaration] :info:build case OIVTELETRAP: if (rnd(11)<6) return; :info:build ^ :info:build create.c:176:12: warning: implicit declaration of function 'rund' is invalid in C99 [-Wimplicit-function-declaration] :info:build for (i=18*rund(i-'0'); i>0; i--) lgetl(); /* advance to desired maze */ :info:build ^ :info:build monster.c:239:35: error: non-void function 'speldamage' should return a value [-Wreturn-type] :info:build { lprcat(" It didn't work!"); return; } :info:build ^ :info:build ./header.h:422:49: note: expanded from macro 'lprc' :info:build #define lprc(ch) ((lpnt>=lpend)?(*lpnt++ =(ch), lflush()):(*lpnt++ =(ch))) :info:build object.c:65:35: error: non-void function 'lookforobject' should return a value [-Wreturn-type] :info:build case OIVTELETRAP: if (rnd(11)<6) return; :info:build ^ :info:build display.c:307:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build global.c:344:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build take(itm,arg) :info:build ^~~~ :info:build monster.c:240:84: error: non-void function 'speldamage' should return a value [-Wreturn-type] :info:build if (clev*3+2 < x) { lprcat(" Nothing happens. You seem inexperienced at this"); return; } :info:build ^ :info:build diag.c:204:41: warning: implicit declaration of function 'died' is invalid in C99 [-Wimplicit-function-declaration] :info:build nap(2000); c[GOLD]=c[BANKACCOUNT]=0; died(-265); return; :info:build ^ :info:build ^ :info:build show1cell(x,y) :info:build ^~~~~~~~~ :info:build diag.c:204:53: error: non-void function 'restoregame' should return a value [-Wreturn-type] :info:build object.c:70:7: warning: implicit declaration of function 'beep' is invalid in C99 [-Wimplicit-function-declaration] :info:build display.c:310:22: error: non-void function 'show1cell' should return a value [-Wreturn-type] :info:build monster.c:247:33: error: non-void function 'speldamage' should return a value [-Wreturn-type] :info:build nap(2000); c[GOLD]=c[BANKACCOUNT]=0; died(-265); return; :info:build ^ :info:build beep(); nap(3000); oteleport(0); :info:build ^ :info:build if (c[BLINDCOUNT]) return; /* see nothing if blind */ :info:build ^ :info:build c[PROTECTIONTIME] += 250; return; :info:build ^ :info:build object.c:70:15: warning: implicit declaration of function 'nap' is invalid in C99 [-Wimplicit-function-declaration] :info:build beep(); nap(3000); oteleport(0); :info:build store.c:293:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build diag.c:207:2: warning: implicit declaration of function 'lrfill' is invalid in C99 [-Wimplicit-function-declaration] :info:build lrfill((char*)beenhere,MAXLEVEL+MAXVLEVEL); :info:build ^ :info:build ^ :info:build monster.c:250:5: warning: implicit declaration of function 'godirect' is invalid in C99 [-Wimplicit-function-declaration] :info:build godirect(x,i,(clev>=2)?" Your missiles hit the %s":" Your missile hit the %s",100,'+'); /* magic missile */ :info:build ^ :info:build sch_hed() :info:build ^~~~~~~ :info:build object.c:70:26: warning: implicit declaration of function 'oteleport' is invalid in C99 [-Wimplicit-function-declaration] :info:build In file included from tok.c:10: :info:build beep(); nap(3000); oteleport(0); :info:build ^ :info:build main.c:135:7: warning: implicitly declaring library function 'sscanf' with type 'int (const char *restrict, const char *restrict, ...)' :info:build object.c:73:35: error: non-void function 'lookforobject' should return a value [-Wreturn-type] :info:build case OSCHOOL: if (nearbymonst()) return; :info:build create.c:198:20: warning: implicit declaration of function 'newobject' is invalid in C99 [-Wimplicit-function-declaration] :info:build case '-': it = newobject(k+1,&arg); break; :info:build ^ :info:build ./header.h:329:9: warning: 'NULL' macro redefined :info:build #define NULL 0 :info:build monster.c:252:5: error: non-void function 'speldamage' should return a value [-Wreturn-type] :info:build return; :info:build ^ :info:build sscanf(&argv[i][1],"%d",&hard); :info:build ^ :info:build ^ :info:build ^ :info:build io.c:105:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build setupvt100() :info:build ^~~~~~~~~~ :info:build main.c:135:7: note: please include the header or explicitly provide a declaration for 'sscanf' :info:build monster.c:255:27: error: non-void function 'speldamage' should return a value [-Wreturn-type] :info:build c[DEXCOUNT] += 400; return; :info:build ^ :info:build object.c:76:55: warning: implicit declaration of function 'getchar' is invalid in C99 [-Wimplicit-function-declaration] :info:build i=0; while ((i!='g') && (i!='i') && (i!='\33')) i=getchar(); :info:build ^ :info:build /usr/include/stdlib.h:115:9: note: previous definition is here :info:build display.c:330:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build global.c:369:42: warning: implicit declaration of function 'show3' is invalid in C99 [-Wimplicit-function-declaration] :info:build lprcat("\nYou pick up:"); srcount=0; show3(i); :info:build ^ :info:build #define NULL __DARWIN_NULL :info:build ^ :info:build showplayer() :info:build ^~~~~~~~~~ :info:build monster.c:259:8: warning: implicit declaration of function 'direct' is invalid in C99 [-Wimplicit-function-declaration] :info:build ws: direct(x,fullhit(i),p,i); /* sleep */ return; :info:build ^ :info:build object.c:77:21: warning: implicit declaration of function 'oschool' is invalid in C99 [-Wimplicit-function-declaration] :info:build create.c:210:2: warning: implicit declaration of function 'lrclose' is invalid in C99 [-Wimplicit-function-declaration] :info:build lrclose(); :info:build ^ :info:build io.c:107:26: warning: implicit declaration of function 'scbr' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (i == 'g') { oschool(); /* the college of larn */ } :info:build ^ :info:build clear(); setscroll(); scbr(); /* system("stty cbreak -echo"); */ :info:build ^ :info:build monster.c:259:17: warning: implicit declaration of function 'fullhit' is invalid in C99 [-Wimplicit-function-declaration] :info:build ws: direct(x,fullhit(i),p,i); /* sleep */ return; :info:build ^ :info:build global.c:378:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build drop_object(k) :info:build monster.c:259:46: error: non-void function 'speldamage' should return a value [-Wreturn-type] :info:build object.c:81:35: error: non-void function 'lookforobject' should return a value [-Wreturn-type] :info:build case OMIRROR: if (nearbymonst()) return; :info:build ^ :info:build create.c:219:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build treasureroom(lv) :info:build ^~~~~~~~~~~~ :info:build ^~~~~~~~~~~ :info:build ws: direct(x,fullhit(i),p,i); /* sleep */ return; :info:build ^ :info:build object.c:82:44: warning: implicit declaration of function 'omirror' is invalid in C99 [-Wimplicit-function-declaration] :info:build monster.c:261:64: error: non-void function 'speldamage' should return a value [-Wreturn-type] :info:build case 4: /* charm monster */ c[CHARMCOUNT] += c[CHARISMA]<<1; return; :info:build ^ :info:build lprcat("\n\nThere is a mirror here"); omirror(); break; :info:build ^ :info:build display.c:347:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build moveplayer(dir) :info:build io.c:108:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build object.c:85:33: error: non-void function 'lookforobject' should return a value [-Wreturn-type] :info:build ^~~~~~~~~~ :info:build monster.c:264:5: error: non-void function 'speldamage' should return a value [-Wreturn-type] :info:build return; :info:build case OBANK: if (nearbymonst()) return; :info:build ^ :info:build ^ :info:build create.c:230:4: warning: implicit declaration of function 'troom' is invalid in C99 [-Wimplicit-function-declaration] :info:build display.c:354:31: warning: implicit declaration of function 'rnd' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (c[CONFUSE]) if (c[LEVEL]\n",argv[i]); exit(1); :info:build ^ :info:build object.c:90:36: warning: implicit declaration of function 'obank' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (j == 'g') { if (i==OBANK) obank(); else obank2(); /* the bank of larn */ } :info:build ^ :info:build display.c:354:44: warning: implicit declaration of function 'rund' is invalid in C99 [-Wimplicit-function-declaration] :info:build ^ :info:build main.c:144:20: note: please include the header or explicitly provide a declaration for 'printf' :info:build if (c[CONFUSE]) if (c[LEVEL]0) { hitmonster(k,m); return(yrepcount = 0); } /* hit a monster*/ :info:build ^ :info:build if ((i=='\33') || (i=='i')) { ignore(); break; } :info:build ^ :info:build create.c:271:7: warning: implicit declaration of function 'something' is invalid in C99 [-Wimplicit-function-declaration] :info:build { something(lv+2); createmonster(makemonst(lv+1)); } :info:build ^ :info:build global.c:419:62: error: non-void function 'enchweapon' should return a value [-Wreturn-type] :info:build { cursors(); beep(); lprcat("\nYou feel a sense of loss"); return; } :info:build ^ :info:build create.c:271:24: warning: implicit declaration of function 'createmonster' is invalid in C99 [-Wimplicit-function-declaration] :info:build { something(lv+2); createmonster(makemonst(lv+1)); } :info:build ^ :info:build io.c:123:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build getchar() :info:build main.c:196:2: warning: implicit declaration of function 'sigsetup' is invalid in C99 [-Wimplicit-function-declaration] :info:build ^~~~~~~ :info:build diag.c:246:32: warning: implicit declaration of function 'fsorry' is invalid in C99 [-Wimplicit-function-declaration] :info:build sigsetup(); /* trap all needed signals */ :info:build ^ :info:build if (filetimes.st_ctime > zzz) fsorry(); /* file create time */ :info:build ^ :info:build main.c:197:2: warning: implicit declaration of function 'sethard' is invalid in C99 [-Wimplicit-function-declaration] :info:build display.c:376:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build seemagic(arg) :info:build ^~~~~~~~ :info:build io.c:129:2: warning: implicit declaration of function 'lflush' is invalid in C99 [-Wimplicit-function-declaration] :info:build lflush(); /* be sure output buffer is flushed */ :info:build ^ :info:build sethard(hard); /* set up the desired difficulty */ :info:build ^ :info:build global.c:432:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build pocketfull() :info:build ^~~~~~~~~~ :info:build main.c:198:2: warning: implicit declaration of function 'setupvt100' is invalid in C99 [-Wimplicit-function-declaration] :info:build setupvt100(); /* setup the terminal special mode */ :info:build ^ :info:build create.c:288:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build makeobject(j) :info:build ^~~~~~~~~~ :info:build diag.c:248:28: error: non-void function 'restoregame' should return a value [-Wreturn-type] :info:build if (c[HP]<0) { died(284); return; } /* died a post mortem death */ :info:build ^ :info:build main.c:201:3: warning: implicit declaration of function 'makeplayer' is invalid in C99 [-Wimplicit-function-declaration] :info:build makeplayer(); /* make the character that will play */ :info:build ^ :info:build object.c:138:23: warning: implicit declaration of function 'losehp' is invalid in C99 [-Wimplicit-function-declaration] :info:build lastnum=274; losehp(rnd(20)); bottomline(); break; :info:build ^ :info:build main.c:202:3: warning: implicit declaration of function 'newcavelevel' is invalid in C99 [-Wimplicit-function-declaration] :info:build object.c:138:41: warning: implicit declaration of function 'bottomline' is invalid in C99 [-Wimplicit-function-declaration] :info:build lastnum=274; losehp(rnd(20)); bottomline(); break; :info:build global.c:443:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build nearbymonst() :info:build ^~~~~~~~~~~ :info:build newcavelevel(0);/* make the dungeon */ :info:build ^ :info:build ^ :info:build create.c:302:3: error: non-void function 'makeobject' should return a value [-Wreturn-type] :info:build return; :info:build ^ :info:build display.c:396:55: warning: implicit declaration of function 'seepage' is invalid in C99 [-Wimplicit-function-declaration] :info:build { lprintf(3,"%s %-20s ",spelcode[i],spelname[i]); seepage(); } :info:build ^ :info:build io.c:139:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build scbr() :info:build ^~~~ :info:build main.c:204:21: warning: implicit declaration of function 'welcome' is invalid in C99 [-Wimplicit-function-declaration] :info:build object.c:140:16: warning: implicit declaration of function 'loselevel' is invalid in C99 [-Wimplicit-function-declaration] :info:build case 8: loselevel(); break; :info:build ^ :info:build store.c:399:6: warning: implicit declaration of function 'larn_adjtime' is invalid in C99 [-Wimplicit-function-declaration] :info:build diag.c:253:2: warning: implicit declaration of function 'lrclose' is invalid in C99 [-Wimplicit-function-declaration] :info:build lrclose(); :info:build ^ :info:build if (nowelcome==0) welcome(); /* welcome the player to the game */ :info:build ^ :info:build display.c:400:15: warning: implicit declaration of function 'more' is invalid in C99 [-Wimplicit-function-declaration] :info:build seepage(); more(); nosignal=0; :info:build ^ :info:build global.c:456:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build larn_adjtime((long)time_used); /* adjust parameters for time change */ :info:build ^ :info:build main.c:206:2: warning: implicit declaration of function 'drawscreen' is invalid in C99 [-Wimplicit-function-declaration] :info:build drawscreen(); /* show the initial dungeon */ :info:build ^ :info:build create.c:314:2: warning: implicit declaration of function 'fillmroom' is invalid in C99 [-Wimplicit-function-declaration] :info:build stealsomething() :info:build ^~~~~~~~~~~~~~ :info:build fillmroom(rund(3),OBOOK,j); fillmroom(rund(3),OALTAR,0); :info:build ^ :info:build display.c:401:28: error: non-void function 'seemagic' should return a value [-Wreturn-type] :info:build main.c:213:20: warning: implicit declaration of function 'lookforobject' is invalid in C99 [-Wimplicit-function-declaration] :info:build draws(0,MAXX,0,number); return; :info:build ^ :info:build store.c:412:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build obank() :info:build ^~~~~ :info:build if (dropflag==0) lookforobject(); /* see if there is an object here */ :info:build ^ :info:build diag.c:256:7: warning: implicit declaration of function 'lappend' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (lappend(fname) < 0) fcheat(); else { lprc(' '); lwclose(); } :info:build ^ :info:build tok.c:26:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build main.c:215:40: warning: implicit declaration of function 'movemonst' is invalid in C99 [-Wimplicit-function-declaration] :info:build yylex() :info:build ^~~~~ :info:build store.c:416:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build obank2() :info:build ^~~~~~ :info:build if (hitflag==0) { if (c[HASTEMONST]) movemonst(); movemonst(); } /* move the monsters */ :info:build ^ :info:build object.c:162:7: warning: implicit declaration of function 'newcavelevel' is invalid in C99 [-Wimplicit-function-declaration] :info:build global.c:475:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build emptyhanded() :info:build ^~~~~~~~~~~ :info:build diag.c:256:27: warning: implicit declaration of function 'fcheat' is invalid in C99 [-Wimplicit-function-declaration] :info:build newcavelevel(1); playerx=33; playery=MAXY-2; :info:build ^ :info:build if (lappend(fname) < 0) fcheat(); else { lprc(' '); lwclose(); } :info:build ^ :info:build main.c:216:20: warning: implicit declaration of function 'showcell' is invalid in C99 [-Wimplicit-function-declaration] :info:build io.c:142:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build if (viewflag==0) showcell(playerx,playery); else viewflag=0; /* show stuff around player */ :info:build ^ :info:build ^ :info:build object.c:164:7: warning: implicit declaration of function 'draws' is invalid in C99 [-Wimplicit-function-declaration] :info:build draws(0,MAXX,0,MAXY); bot_linex(); return; :info:build ^ :info:build main.c:217:17: warning: implicit declaration of function 'flushall' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (hit3flag) flushall(); :info:build tok.c:32:22: warning: implicit declaration of function 'bottomdo' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (yrepcount==0) { bottomdo(); showplayer(); } /* show where the player is */ :info:build ^ :info:build display.c:428:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build seepage() :info:build ^~~~~~~ :info:build global.c:486:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build creategem() :info:build ^~~~~~~~~ :info:build ^ :info:build object.c:164:29: warning: implicit declaration of function 'bot_linex' is invalid in C99 [-Wimplicit-function-declaration] :info:build draws(0,MAXX,0,MAXY); bot_linex(); return; :info:build ^ :info:build main.c:219:3: warning: implicit declaration of function 'bot_linex' is invalid in C99 [-Wimplicit-function-declaration] :info:build object.c:164:42: error: non-void function 'lookforobject' should return a value [-Wreturn-type] :info:build draws(0,MAXX,0,MAXY); bot_linex(); return; :info:build ^ :info:build tok.c:32:34: warning: implicit declaration of function 'showplayer' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (yrepcount==0) { bottomdo(); showplayer(); } /* show where the player is */ :info:build bot_linex(); /* update bottom line */ :info:build ^ :info:build ^ :info:build store.c:440:2: warning: implicit declaration of function 'obanksub' is invalid in C99 [-Wimplicit-function-declaration] :info:build obanksub(); nosignal = 0; /* enable signals */ :info:build ^ :info:build create.c:338:2: warning: implicit declaration of function 'froom' is invalid in C99 [-Wimplicit-function-declaration] :info:build froom(2,ORING,0); /* a ring mail */ :info:build global.c:496:2: warning: implicit declaration of function 'createitem' is invalid in C99 [-Wimplicit-function-declaration] :info:build createitem(i,rnd(j)+j/10); :info:build ^ :info:build main.c:223:14: warning: implicit declaration of function 'parse' is invalid in C99 [-Wimplicit-function-declaration] :info:build nomove=0; parse(); :info:build ^ :info:build ^ :info:build tok.c:33:2: warning: implicit declaration of function 'lflush' is invalid in C99 [-Wimplicit-function-declaration] :info:build lflush(); :info:build ^ :info:build store.c:447:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build ointerest() :info:build ^~~~~~~~~ :info:build main.c:225:3: warning: implicit declaration of function 'regen' is invalid in C99 [-Wimplicit-function-declaration] :info:build global.c:503:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build diag.c:261:35: warning: implicit declaration of function 'greedy' is invalid in C99 [-Wimplicit-function-declaration] :info:build for (k=0; k<6; k++) if (c[k]>99) greedy(); :info:build ^ :info:build regen(); /* regenerate hp and spells */ :info:build ^ :info:build object.c:173:75: error: non-void function 'lookforobject' should return a value [-Wreturn-type] :info:build adjustcvalues(itm,arg) :info:build ^~~~~~~~~~~~~ :info:build if (level!=0) { lprcat("\nThe shaft only extends 5 feet downward!"); return; } :info:build ^ :info:build object.c:174:10: warning: implicit declaration of function 'packweight' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (packweight() > 45+3*(c[STRENGTH]+c[STREXTRA])) { lprcat("\nYou slip and fall down the shaft"); beep(); :info:build ^ :info:build main.c:228:30: warning: implicit declaration of function 'fillmonst' is invalid in C99 [-Wimplicit-function-declaration] :info:build tok.c:41:4: warning: implicit declaration of function 'savegame' is invalid in C99 [-Wimplicit-function-declaration] :info:build io.c:149:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build sncbr() :info:build ^~~~~ :info:build { rmst = 120-(level<<2); fillmonst(makemonst(level)); } :info:build ^ :info:build savegame(ckpfile); :info:build ^ :info:build main.c:228:40: warning: implicit declaration of function 'makemonst' is invalid in C99 [-Wimplicit-function-declaration] :info:build 42 warnings and 5 errors generated. :info:build { rmst = 120-(level<<2); fillmonst(makemonst(level)); } :info:build ^ :info:build object.c:175:48: warning: implicit declaration of function 'bottomhp' is invalid in C99 [-Wimplicit-function-declaration] :info:build lastnum=275; losehp(30+rnd(20)); bottomhp(); } :info:build ^ :info:build global.c:516:38: error: non-void function 'adjustcvalues' should return a value [-Wreturn-type] :info:build diag.c:268:3: warning: implicit declaration of function 'raiseexperience' is invalid in C99 [-Wimplicit-function-declaration] :info:build case OORBOFDRAGON: --c[SLAYING]; return; :info:build ^ :info:build raiseexperience((long)tmp); :info:build ^ :info:build create.c:376:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build fillmroom(n,what,arg) :info:build ^~~~~~~~~ :info:build global.c:517:43: error: non-void function 'adjustcvalues' should return a value [-Wreturn-type] :info:build case OSPIRITSCARAB: --c[NEGATESPIRIT]; return; :info:build ^ :info:build store.c:463:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build obanksub() :info:build ^~~~~~~~ :info:build object.c:179:71: warning: implicit declaration of function 'positionplayer' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (item[j][i]==OVOLUP) { playerx=j; playery=i; j=MAXX; i=MAXY; positionplayer(); } :info:build ^ :info:build global.c:518:43: error: non-void function 'adjustcvalues' should return a value [-Wreturn-type] :info:build case OCUBEofUNDEAD: --c[CUBEofUNDEAD]; return; :info:build ^ :info:build io.c:152:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build diag.c:270:2: warning: implicit declaration of function 'getlevel' is invalid in C99 [-Wimplicit-function-declaration] :info:build getlevel(); lasttime=gtime; :info:build ^ :info:build create.c:383:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build global.c:519:36: error: non-void function 'adjustcvalues' should return a value [-Wreturn-type] :info:build object.c:180:41: error: non-void function 'lookforobject' should return a value [-Wreturn-type] :info:build froom(n,itm,arg) :info:build ^~~~~ :info:build case ONOTHEFT: --c[NOTHEFT]; return; :info:build ^ :info:build draws(0,MAXX,0,MAXY); bot_linex(); return; :info:build ^ :info:build diag.c:276:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build greedy() :info:build global.c:520:34: error: non-void function 'adjustcvalues' should return a value [-Wreturn-type] :info:build case OLANCE: c[LANCEDEATH]=0; return; :info:build ^ :info:build io.c:157:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build global.c:521:31: error: non-void function 'adjustcvalues' should return a value [-Wreturn-type] :info:build newgame() :info:build ^~~~~~~ :info:build ^~~~~~ :info:build case OPOTION: case OSCROLL: return; :info:build ^ :info:build global.c:532:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build gettokstr(str) :info:build ^~~~~~~~~ :info:build diag.c:285:79: error: non-void function 'greedy' should return a value [-Wreturn-type] :info:build lprcat("to continue.\n"); nap(5000); c[GOLD]=c[BANKACCOUNT]=0; died(-267); return; :info:build ^ :info:build create.c:422:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build fillmonst(what) :info:build io.c:162:2: warning: implicit declaration of function 'lcreat' is invalid in C99 [-Wimplicit-function-declaration] :info:build lcreat((char*)0); /* open buffering for output to terminal */ :info:build ^ :info:build io.c:163:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build io.c:232:38: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (wide==0) { while (*outb++ = *tmpb++); --outb; } :info:build ~~~~~~~~^~~~~~~~~ :info:build io.c:232:38: note: place parentheses around the assignment to silence this warning :info:build if (wide==0) { while (*outb++ = *tmpb++); --outb; } :info:build ^ :info:build ( ) :info:build *** Error code 1 :info:build main.c:237:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build showstr() :info:build ^~~~~~~ :info:build main.c:242:2: warning: implicit declaration of function 't_setup' is invalid in C99 [-Wimplicit-function-declaration] :info:build t_setup(number); qshowstr(); t_endup(number); :info:build ^ :info:build main.c:242:19: warning: implicit declaration of function 'qshowstr' is invalid in C99 [-Wimplicit-function-declaration] :info:build t_setup(number); qshowstr(); t_endup(number); :info:build ^ :info:build main.c:242:33: warning: implicit declaration of function 't_endup' is invalid in C99 [-Wimplicit-function-declaration] :info:build t_setup(number); qshowstr(); t_endup(number); :info:build ^ :info:build main.c:243:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build main.c:245:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build qshowstr() :info:build ^~~~~~~~ :info:build object.c:186:102: error: non-void function 'lookforobject' should return a value [-Wreturn-type] :info:build if (level!=11) { lprcat("\nThe shaft only extends 8 feet upwards before you find a blockage!"); return; } :info:build ^ :info:build object.c:188:59: error: non-void function 'lookforobject' should return a value [-Wreturn-type] :info:build lastnum=275; losehp(15+rnd(20)); bottomhp(); return; } :info:build ^ :info:build object.c:189:26: warning: implicit declaration of function 'lflush' is invalid in C99 [-Wimplicit-function-declaration] :info:build lprcat("climb up"); lflush(); nap(3000); newcavelevel(0); :info:build ^~~~~~~~~ :info:build create.c:443:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build sethp(flg) :info:build ^~~~~ :info:build create.c:448:33: error: non-void function 'sethp' should return a value [-Wreturn-type] :info:build if (level==0) { c[TELEFLAG]=0; return; } /* if teleported and found level 1 then know level we are on */ :info:build ^ :info:build create.c:451:2: warning: implicit declaration of function 'positionplayer' is invalid in C99 [-Wimplicit-function-declaration] :info:build positionplayer(); :info:build ^ :info:build create.c:457:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build checkgen() :info:build ^~~~~~~~ :info:build 40 warnings and 4 errors generated. :info:build tok.c:98:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build flushall() :info:build ^~~~~~~~ :info:build tok.c:105:14: error: non-void function 'flushall' should return a value [-Wreturn-type] :info:build if (ic<=0) return; :info:build ^ :info:build tok.c:114:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build sethard(hard) :info:build ^~~~~~~ :info:build tok.c:118:17: warning: implicit declaration of function 'hashewon' is invalid in C99 [-Wimplicit-function-declaration] :info:build j=c[HARDGAME]; hashewon(); :info:build ^ :info:build tok.c:125:7: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (k=c[HARDGAME]) :info:build ~^~~~~~~~~~~~ :info:build tok.c:125:7: note: place parentheses around the assignment to silence this warning :info:build if (k=c[HARDGAME]) :info:build ^ :info:build ( ) :info:build tok.c:125:7: note: use '==' to turn this assignment into an equality comparison :info:build if (k=c[HARDGAME]) :info:build ^ :info:build == :info:build global.c:553:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build getpassword() :info:build ^~~~~~~~~~~ :info:build global.c:558:2: warning: implicit declaration of function 'scbr' is invalid in C99 [-Wimplicit-function-declaration] :info:build scbr(); /* system("stty -echo cbreak"); */ :info:build ^ :info:build global.c:562:2: warning: implicit declaration of function 'sncbr' is invalid in C99 [-Wimplicit-function-declaration] :info:build sncbr(); /* system("stty echo -cbreak"); */ :info:build ^ :info:build global.c:572:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build getyn() :info:build ^~~~~ :info:build global.c:583:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build packweight() :info:build ^~~~~~~~~~ :info:build global.c:611:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build rnd(x) :info:build ^~~ :info:build global.c:617:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build rund(x) :info:build ^~~~ :info:build 71 warnings and 10 errors generated. :info:build io.c:232:38: note: use '==' to turn this assignment into an equality comparison :info:build if (wide==0) { while (*outb++ = *tmpb++); --outb; } :info:build ^ :info:build == :info:build io.c:237:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build while (*outb++ = *tmpb++); --outb; :info:build ~~~~~~~~^~~~~~~~~ :info:build io.c:237:23: note: place parentheses around the assignment to silence this warning :info:build while (*outb++ = *tmpb++); --outb; :info:build ^ :info:build ( ) :info:build store.c:502:14: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] :info:build if (amt<0) { lprcat("\nSorry, but we can't take negative gold!"); nap(2000); amt=0; } else :info:build ~~~^~ :info:build store.c:509:14: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] :info:build if (amt<0) { lprcat("\nSorry, but we don't have any negative gold!"); nap(2000); amt=0; } :info:build ~~~^~ :info:build store.c:541:16: error: non-void function 'obanksub' should return a value [-Wreturn-type] :info:build case '\33': return; :info:build ^ :info:build store.c:551:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build appraise(gemstone) :info:build ^~~~~~~~ :info:build store.c:561:7: warning: implicit declaration of function 'getyn' is invalid in C99 [-Wimplicit-function-declaration] :info:build diag.c:292:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build fsorry() :info:build ^~~~~~ :info:build diag.c:303:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build fcheat() :info:build ^~~~~~ :info:build diag.c:313:53: error: non-void function 'fcheat' should return a value [-Wreturn-type] :info:build nap(5000); c[GOLD]=c[BANKACCOUNT]=0; died(-268); return; :info:build ^ :info:build 28 warnings and 5 errors generated. :info:build main.c:249:17: warning: implicit declaration of function 'lprintf' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (c[GOLD]) { lprintf(2,".) %d gold pieces",(long)c[GOLD]); srcount++; } :info:build ^ :info:build main.c:253:44: warning: implicit declaration of function 'show3' is invalid in C99 [-Wimplicit-function-declaration] :info:build for (j=0; j<=k; j++) if (i==iven[j]) show3(j); k=0; } :info:build ^ :info:build main.c:256:2: warning: implicit declaration of function 'more' is invalid in C99 [-Wimplicit-function-declaration] :info:build more(); nosignal=sigsav; :info:build ^ :info:build main.c:257:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build main.c:262:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build t_setup(count) :info:build ^~~~~~~ :info:build main.c:267:3: warning: implicit declaration of function 'cl_up' is invalid in C99 [-Wimplicit-function-declaration] :info:build ^ :info:build object.c:192:41: error: non-void function 'lookforobject' should return a value [-Wreturn-type] :info:build draws(0,MAXX,0,MAXY); bot_linex(); return; :info:build ^ :info:build fatal error: too many errors emitted, stopping now [-ferror-limit=] :info:build tok.c:144:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build readopts() :info:build ^~~~~~~~ :info:build tok.c:150:6: warning: implicit declaration of function 'lopen' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (lopen(optsfile) < 0) :info:build ^ :info:build tok.c:152:30: error: non-void function 'readopts' should return a value [-Wreturn-type] :info:build strcpy(logname,loginname); return; /* user name if no character name */ :info:build ^ :info:build io.c:237:23: note: use '==' to turn this assignment into an equality comparison :info:build while (*outb++ = *tmpb++); --outb; :info:build ^ :info:build == :info:build io.c:281:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build lprint(x) :info:build ^~~~~~ :info:build io.c:287:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build io.c:297:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build lwrite(buf,len) :info:build ^~~~~~ :info:build if (getyn()=='y') :info:build ^ :info:build store.c:582:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build static otradhead() :info:build ~~~~~~ ^ :info:build store.c:592:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build otradepost() :info:build ^~~~~~~~~~ :info:build store.c:604:18: warning: implicit declaration of function 'recalc' is invalid in C99 [-Wimplicit-function-declaration] :info:build { setscroll(); recalc(); drawscreen(); nosignal=0; /* enable signals */ return; } :info:build ^ :info:build store.c:604:75: error: non-void function 'otradepost' should return a value [-Wreturn-type] :info:build { setscroll(); recalc(); drawscreen(); nosignal=0; /* enable signals */ return; } :info:build ^ :info:build store.c:607:10: warning: implicit declaration of function 'cnsitm' is invalid in C99 [-Wimplicit-function-declaration] :info:build { j=1; cnsitm(); } /* can't sell unidentified item */ :info:build ^ :info:build cl_up(79,count); cursor(1,1); :info:build ^ :info:build main.c:267:21: warning: implicit declaration of function 'cursor' is invalid in C99 [-Wimplicit-function-declaration] :info:build cl_up(79,count); cursor(1,1); :info:build ^ :info:build main.c:273:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build main.c:278:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build t_endup(count) :info:build ^~~~~~~ :info:build store.c:611:27: warning: implicit declaration of function 'qshowstr' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (i=='*') { clear(); qshowstr(); otradhead(); } :info:build ^ :info:build store.c:618:16: warning: implicit declaration of function 'show3' is invalid in C99 [-Wimplicit-function-declaration] :info:build srcount=0; show3(isub); /* show what the item was */ :info:build ^ :info:build store.c:638:5: warning: implicit declaration of function 'adjustcvalues' is invalid in C99 [-Wimplicit-function-declaration] :info:build adjustcvalues(iven[isub],ivenarg[isub]); :info:build ^ :info:build store.c:612:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] :info:build else if (iven[isub]==0) lprintf(2,"\nYou don't have item %c!",isub+'a'); :info:build ^ :info:build store.c:649:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build cnsitm() :info:build ^~~~~~ :info:build main.c:282:3: warning: implicit declaration of function 'draws' is invalid in C99 [-Wimplicit-function-declaration] :info:build store.c:655:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build olrs() :info:build ^~~~ :info:build draws(0,MAXX,0,(count>MAXY) ? MAXY : count); :info:build ^ :info:build main.c:287:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build store.c:675:14: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] :info:build if (amt<0) { lprcat("\nSorry, but we can't take negative gold\n"); amt=0; } else :info:build ~~~^~ :info:build store.c:681:34: error: non-void function 'olrs' should return a value [-Wreturn-type] :info:build main.c:292:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build io.c:326:5: warning: control reaches end of non-void function [-Wreturn-type] :info:build setscroll(); drawscreen(); return; :info:build ^ :info:build showwear() :info:build ^~~~~~~~ :info:build } :info:build ^ :info:build *** Error code 1 :info:build main.c:299:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (i=iven[j]) :info:build ~^~~~~~~~ :info:build 12 warnings and 2 errors generated. :info:build main.c:299:10: note: place parentheses around the assignment to silence this warning :info:build if (i=iven[j]) :info:build ^ :info:build ( ) :info:build main.c:299:10: note: use '==' to turn this assignment into an equality comparison :info:build if (i=iven[j]) :info:build ^ :info:build == :info:build 43 warnings and 6 errors generated. :info:build *** Error code 1 :info:build main.c:321:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build *** Error code 1 :info:build main.c:326:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build showwield() :info:build ^~~~~~~~~ :info:build main.c:333:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (i=iven[j]) :info:build ~^~~~~~~~ :info:build io.c:375:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build lrfill(adr,num) :info:build ^~~~~~ :info:build main.c:333:10: note: place parentheses around the assignment to silence this warning :info:build if (i=iven[j]) :info:build ^ :info:build ( ) :info:build main.c:333:10: note: use '==' to turn this assignment into an equality comparison :info:build if (i=iven[j]) :info:build ^ :info:build == :info:build io.c:401:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build main.c:357:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build main.c:362:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build showread() :info:build ^~~~~~~~ :info:build main.c:383:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build main.c:388:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build showeat() :info:build ^~~~~~~ :info:build io.c:449:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build lcreat(str) :info:build ^~~~~~ :info:build main.c:409:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build io.c:454:11: warning: implicit declaration of function 'creat' is invalid in C99 [-Wimplicit-function-declaration] :info:build if ((lfd=creat(str,0644)) < 0) :info:build ^ :info:build main.c:414:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build showquaff() :info:build ^~~~~~~~~ :info:build *** Error code 1 :info:build io.c:468:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build lopen(str) :info:build ^~~~~ :info:build In file included from help.c:3: :info:build ./header.h:329:9: warning: 'NULL' macro redefined :info:build #define NULL 0 :info:build ^ :info:build /usr/include/stdlib.h:115:9: note: previous definition is here :info:build #define NULL __DARWIN_NULL :info:build ^ :info:build help.c:14:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build help() :info:build ^~~~ :info:build help.c:20:9: warning: implicit declaration of function 'openhelp' is invalid in C99 [-Wimplicit-function-declaration] :info:build if ((j=openhelp()) < 0) return; /* open the help file and get # pages */ :info:build ^ :info:build help.c:20:27: error: non-void function 'help' should return a value [-Wreturn-type] :info:build if ((j=openhelp()) < 0) return; /* open the help file and get # pages */ :info:build ^ :info:build help.c:29:32: warning: implicit declaration of function 'lprcat' is invalid in C99 [-Wimplicit-function-declaration] :info:build { tmcapcnv(tmbuf,lgetl()); lprcat(tmbuf); } /* intercept \33's */ :info:build ^ :info:build help.c:33:32: warning: implicit declaration of function 'standout' is invalid in C99 [-Wimplicit-function-declaration] :info:build lprcat(" ---- Press "); standout("return"); :info:build ^ :info:build help.c:36:55: warning: implicit declaration of function 'getchar' is invalid in C99 [-Wimplicit-function-declaration] :info:build i=0; while ((i!=' ') && (i!='\n') && (i!='\33')) i=getchar(); :info:build ^ :info:build help.c:39:5: warning: implicit declaration of function 'lrclose' is invalid in C99 [-Wimplicit-function-declaration] :info:build lrclose(); setscroll(); drawscreen(); return; :info:build ^ :info:build help.c:39:31: warning: implicit declaration of function 'drawscreen' is invalid in C99 [-Wimplicit-function-declaration] :info:build lrclose(); setscroll(); drawscreen(); return; :info:build ^ :info:build help.c:39:46: error: non-void function 'help' should return a value [-Wreturn-type] :info:build lrclose(); setscroll(); drawscreen(); return; :info:build ^ :info:build help.c:43:14: warning: implicit declaration of function 'retcont' is invalid in C99 [-Wimplicit-function-declaration] :info:build lrclose(); retcont(); drawscreen(); :info:build ^ :info:build help.c:49:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build welcome() :info:build ^~~~~~~ :info:build help.c:55:23: error: non-void function 'welcome' should return a value [-Wreturn-type] :info:build if (openhelp() < 0) return; /* open the help file */ :info:build ^ :info:build help.c:69:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build retcont() :info:build ^~~~~~~ :info:build help.c:71:2: warning: implicit declaration of function 'cursor' is invalid in C99 [-Wimplicit-function-declaration] :info:build cursor(1,24); lprcat("Press "); standout("return"); :info:build ^ :info:build help.c:79:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build openhelp() :info:build ^~~~~~~~ :info:build help.c:81:6: warning: implicit declaration of function 'lopen' is invalid in C99 [-Wimplicit-function-declaration] :info:build if (lopen(helpfile)<0) :info:build ^ :info:build help.c:83:3: warning: implicit declaration of function 'lprintf' is invalid in C99 [-Wimplicit-function-declaration] :info:build lprintf(2,"Can't open help file \"%s\" ",helpfile); :info:build ^ :info:build help.c:84:3: warning: implicit declaration of function 'lflush' is invalid in C99 [-Wimplicit-function-declaration] :info:build lflush(); sleep(4); drawscreen(); setscroll(); return(-1); :info:build ^ :info:build 16 warnings and 3 errors generated. :info:build *** Error code 1 :info:build *** Error code 1 :info:build io.c:473:10: warning: implicit declaration of function 'open' is invalid in C99 [-Wimplicit-function-declaration] :info:build if ((fd=open(str,0)) < 0) :info:build ^ :info:build io.c:475:3: warning: implicit declaration of function 'lwclose' is invalid in C99 [-Wimplicit-function-declaration] :info:build lwclose(); lfd=1; lpnt=lpbuf; return(-1); :info:build ^ :info:build io.c:487:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build lappend(str) :info:build ^~~~~~~ :info:build io.c:505:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build lrclose() :info:build ^~~~~~~ :info:build io.c:508:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build io.c:515:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build lwclose() :info:build ^~~~~~~ :info:build io.c:518:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build io.c:524:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build lprcat(str) :info:build ^~~~~~ :info:build io.c:530:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build while (*str2++ = *str++); :info:build ~~~~~~~~^~~~~~~~ :info:build io.c:530:17: note: place parentheses around the assignment to silence this warning :info:build while (*str2++ = *str++); :info:build ^ :info:build ( ) :info:build io.c:530:17: note: use '==' to turn this assignment into an equality comparison :info:build while (*str2++ = *str++); :info:build ^ :info:build == :info:build io.c:532:5: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build io.c:572:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build cursor (x,y) :info:build ^~~~~~ :info:build io.c:578:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build io.c:584:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build cursors() :info:build ^~~~~~~ :info:build io.c:587:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build io.c:606:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build init_term() :info:build ^~~~~~~~~ :info:build io.c:659:3: warning: implicit declaration of function 'died' is invalid in C99 [-Wimplicit-function-declaration] :info:build died(-285); /* malloc() failure */ :info:build ^ :info:build io.c:661:2: warning: control may reach end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build io.c:667:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build cl_line(x,y) :info:build ^~~~~~~ :info:build io.c:675:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build io.c:680:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build cl_up(x,y) :info:build ^~~~~ :info:build io.c:691:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build io.c:696:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build cl_dn(x,y) :info:build ^~~~~ :info:build io.c:714:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build io.c:719:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build standout(str) :info:build ^~~~~~~~ :info:build io.c:733:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build io.c:738:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build set_score_output() :info:build ^~~~~~~~~~~~~~~~ :info:build io.c:741:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build io.c:752:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build lflush () :info:build ^~~~~~ :info:build io.c:766:4: warning: implicit declaration of function 'flush_buf' is invalid in C99 [-Wimplicit-function-declaration] :info:build flush_buf(); :info:build ^ :info:build io.c:770:4: error: non-void function 'lflush' should return a value [-Wreturn-type] :info:build return; :info:build ^ :info:build io.c:868:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build flush_buf() :info:build ^~~~~~~~~ :info:build io.c:916:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build beep() :info:build ^~~~ :info:build 58 warnings and 1 error generated. :info:build *** Error code 1 :info:build 44 warnings and 20 errors generated. :info:build *** Error code 1 :info:build main.c:435:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build main.c:437:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build show1(idx,str2) :info:build ^~~~~ :info:build main.c:444:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build main.c:446:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build show3(index) :info:build ^~~~~ :info:build main.c:467:2: warning: control reaches end of non-void function [-Wreturn-type] :info:build } :info:build ^ :info:build main.c:472:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build randmonst() :info:build ^~~~~~~~~ :info:build main.c:474:19: error: non-void function 'randmonst' should return a value [-Wreturn-type] :info:build if (c[TIMESTOP]) return; /* don't make monsters if time is stopped */ :info:build ^ :info:build main.c:487:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] :info:build parse() :info:build ^~~~~ :info:build main.c:492:7: warning: implicit declaration of function 'yylex' is invalid in C99 [-Wimplicit-function-declaration] :info:build k = yylex(); :info:build ^ :info:build main.c:495:14: warning: implicit declaration of function 'moveplayer' is invalid in C99 [-Wimplicit-function-declaration] :info:build case 'h': moveplayer(4); return; /* west */ :info:build ^ :info:build main.c:495:29: error: non-void function 'parse' should return a value [-Wreturn-type] :info:build case 'h': moveplayer(4); return; /* west */ :info:build ^ :info:build main.c:496:14: warning: implicit declaration of function 'run' is invalid in C99 [-Wimplicit-function-declaration] :info:build case 'H': run(4); return; /* west */ :info:build ^ :info:build main.c:496:24: error: non-void function 'parse' should return a value [-Wreturn-type] :info:build case 'H': run(4); return; /* west */ :info:build ^ :info:build main.c:497:29: error: non-void function 'parse' should return a value [-Wreturn-type] :info:build case 'l': moveplayer(2); return; /* east */ :info:build ^ :info:build main.c:498:24: error: non-void function 'parse' should return a value [-Wreturn-type] :info:build case 'L': run(2); return; /* east */ :info:build ^ :info:build main.c:499:29: error: non-void function 'parse' should return a value [-Wreturn-type] :info:build case 'j': moveplayer(1); return; /* south */ :info:build ^ :info:build main.c:500:24: error: non-void function 'parse' should return a value [-Wreturn-type] :info:build case 'J': run(1); return; /* south */ :info:build ^ :info:build main.c:501:29: error: non-void function 'parse' should return a value [-Wreturn-type] :info:build case 'k': moveplayer(3); return; /* north */ :info:build ^ :info:build main.c:502:24: error: non-void function 'parse' should return a value [-Wreturn-type] :info:build case 'K': run(3); return; /* north */ :info:build ^ :info:build main.c:503:29: error: non-void function 'parse' should return a value [-Wreturn-type] :info:build case 'u': moveplayer(5); return; /* northeast */ :info:build ^ :info:build main.c:504:24: error: non-void function 'parse' should return a value [-Wreturn-type] :info:build case 'U': run(5); return; /* northeast */ :info:build ^ :info:build main.c:505:30: error: non-void function 'parse' should return a value [-Wreturn-type] :info:build case 'y': moveplayer(6); return; /* northwest */ :info:build ^ :info:build main.c:506:24: error: non-void function 'parse' should return a value [-Wreturn-type] :info:build case 'Y': run(6); return; /* northwest */ :info:build ^ :info:build main.c:507:29: error: non-void function 'parse' should return a value [-Wreturn-type] :info:build case 'n': moveplayer(7); return; /* southeast */ :info:build ^ :info:build main.c:508:24: error: non-void function 'parse' should return a value [-Wreturn-type] :info:build case 'N': run(7); return; /* southeast */ :info:build ^ :info:build main.c:509:29: error: non-void function 'parse' should return a value [-Wreturn-type] :info:build case 'b': moveplayer(8); return; /* southwest */ :info:build ^ :info:build main.c:510:24: error: non-void function 'parse' should return a value [-Wreturn-type] :info:build case 'B': run(8); return; /* southwest */ :info:build ^ :info:build main.c:512:41: error: non-void function 'parse' should return a value [-Wreturn-type] :info:build case '.': if (yrepcount) viewflag=1; return; /* stay here */ :info:build ^ :info:build main.c:514:27: warning: implicit declaration of function 'wield' is invalid in C99 [-Wimplicit-function-declaration] :info:build case 'w': yrepcount=0; wield(); return; /* wield a weapon */ :info:build ^ :info:build main.c:514:36: error: non-void function 'parse' should return a value [-Wreturn-type] :info:build case 'w': yrepcount=0; wield(); return; /* wield a weapon */ :info:build ^ :info:build main.c:516:27: warning: implicit declaration of function 'wear' is invalid in C99 [-Wimplicit-function-declaration] :info:build case 'W': yrepcount=0; wear(); return; /* wear armor */ :info:build ^ :info:build fatal error: too many errors emitted, stopping now [-ferror-limit=] :info:build 75 warnings and 20 errors generated. :info:build *** Error code 1 :info:build 23 warnings and 20 errors generated. :info:build *** Error code 1 :info:build 1 warning generated. :info:build 2 warnings generated. :info:build 11 errors :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/work/larn" && /opt/local/bin/bsdmake -j13 all CC=/usr/bin/clang :info:build Exit code: 2 :error:build org.macports.build for port larn returned: command execution failed :debug:build Error code: CHILDSTATUS 11435 2 :debug:build Backtrace: command execution failed while executing "system -nice 0 $fullcmdstring" ("eval" body line 1) invoked from within "eval system $notty $nice \$fullcmdstring" invoked from within "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" :info:build Warning: targets not executed for larn: org.macports.activate org.macports.build org.macports.destroot org.macports.install :notice:build Please see the log file for port larn for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_larn/larn/main.log