#3010 closed defect (fixed)
BUG: Nethack fails to compile on Tiger
Reported by: | bahamat@… | Owned by: | kvv@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.0 |
Keywords: | Cc: | ||
Port: |
Description
Output follows:
$ port install nethack ---> Fetching nethack ---> Verifying checksum(s) for nethack ---> Extracting nethack ---> Applying patches to nethack ---> Configuring nethack ---> Building nethack with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_games_nethack/ work/nethack-3.4.1" && make all" returned error 2 Command output: cc -O -I../include -c -o trap.o trap.c cc -O -I../include -c -o u_init.o u_init.c cc -O -I../include -c -o uhitm.o uhitm.c cc -O -I../include -c -o vault.o vault.c ./makedefs -z cc -O -I../include -c -o vision.o vision.c cc -O -I../include -c -o vis_tab.o vis_tab.c cc -O -I../include -c -o weapon.o weapon.c cc -O -I../include -c -o were.o were.c cc -O -I../include -c -o wield.o wield.c cc -O -I../include -c -o windows.o windows.c cc -O -I../include -c -o wizard.o wizard.c cc -O -I../include -c -o worm.o worm.c cc -O -I../include -c -o worn.o worn.c cc -O -I../include -c -o write.o write.c cc -O -I../include -c -o zap.o zap.c zap.c: In function 'poly_obj': zap.c:1280: warning: the address of 'is_rottable', will always evaluate as 'true' cc -O -I../include -c ../sys/share/ioctl.c cc -O -I../include -c ../sys/unix/unixmain.c cc -O -I../include -c ../sys/share/unixtty.c cc -O -I../include -c ../sys/unix/unixunix.c cc -O -I../include -c ../sys/unix/unixres.c cc -O -I../include -c ../win/tty/getline.c cc -O -I../include -c ../win/tty/termcap.c ../win/tty/termcap.c:839: error: conflicting types for 'tparm' ../win/tty/termcap.c:839: note: a parameter list with an ellipsis can't match an empty parameter name list declaration /usr/include/curses.h:710: error: previous declaration of 'tparm' was here make[1]: * [termcap.o] Error 1 make: * [nethack] Error 2
Change History (6)
comment:1 Changed 20 years ago by mww@…
Owner: | changed from darwinports-bugs@… to kevin@… |
---|---|
Summary: | Nethack fails to compile on Tiger → BUG: Nethack fails to compile on Tiger |
comment:2 Changed 19 years ago by eichin@…
comment:3 Changed 19 years ago by bahamat@…
Do these patches work? If so, how do I apply them? When will they be merged in?
comment:4 Changed 19 years ago by sigint@…
(In reply to comment #2)
Do these patches work? If so, how do I apply them? When will they be merged in?
I patched it by hand -- :S -- and it compiled and installed fine. I had to do some other manual hacking to get it working, which I just reported as Bug #4136.
The manual fix was to edit /opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_games_nethack/work/nethack-3.4.1/win/tty/termcap.c, and change the line:
extern char *tparm();
At about line 836 to instead read:
#ifndef NCURSES_EXPORT extern char *tparm(); #endif
HTH,
-s
comment:5 Changed 19 years ago by yeled@…
Status: | new → assigned |
---|
This was fixed today by Toby.
Can you please verify that it works for you now?
I'm not sure NCURSES_EXPORT is the right thing to conditionalize it on, I've only tested it on tiger (but it might make a fair replacement for the original ifdef-linux, one would have to look at the history of tparm in ncurses to really decide.) Note that this only makes it build, which is what this bug is about; it looks like the packaging itself is stil botched wrt. HACKDIR being left pointed back at the build-root, but that's for another bug report...