jonas/tig — Issue #25: Cannot make on Mac OS 10.7 with Xcode 4.2
Author: amarshall
Created: 2011-12-08 05:15:31+00:00
State: open

Fresh checkout from current master (e98ff9a) fails to make. It's probably worth noting that GCC was removed in Xcode 4.2, so `gcc` is actually symlinked to `llvm-gcc-4.2`, and the traditional `gcc-4.2` no longer exists.

```
% ./configure && make
./configure: line 1664: AX_WITH_CURSES: command not found
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for iconv... yes
checking for iconv declaration...
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for asciidoc... no
checking for xmlto... no
checking for docbook2pdf... no
configure: creating ./config.status
config.status: creating config.make
config.status: creating config.h
gcc -g -O2 -DHAVE_CONFIG_H '-DTIG_VERSION="0.18-26-ge98ff9a"' '-DSYSCONFDIR="/usr/local/etc"' -c -o tig.o tig.c
gcc -g -O2 -DHAVE_CONFIG_H '-DTIG_VERSION="0.18-26-ge98ff9a"' '-DSYSCONFDIR="/usr/local/etc"' -c -o io.o io.c
gcc -g -O2 -DHAVE_CONFIG_H '-DTIG_VERSION="0.18-26-ge98ff9a"' '-DSYSCONFDIR="/usr/local/etc"' -c -o graph.o graph.c
gcc tig.o io.o graph.o -liconv -o tig
Undefined symbols for architecture x86_64:
"_wbkgdset", referenced from:
_update_view_title in tig.o
_main in tig.o
"_wmove", referenced from:
_update_view_title in tig.o
_draw_view_line in tig.o
_status_update_files in tig.o
_report in tig.o
_get_input in tig.o
"_waddnstr", referenced from:
_update_view_title in tig.o
_draw_chars in tig.o
"_wclrtoeol", referenced from:
_update_view_title in tig.o
_draw_view_line in tig.o
_report in tig.o
_prompt_yesno in tig.o
_read_prompt in tig.o
_main in tig.o
"_wnoutrefresh", referenced from:
_update_view_title in tig.o
_redraw_view in tig.o
_select_view_line in tig.o
_report in tig.o
_do_scroll_view in tig.o
_load_view in tig.o
_scroll_view in tig.o
...
"_wchgat", referenced from:
_draw_view_line in tig.o
_draw_chars in tig.o
_draw_graphic in tig.o
"_werase", referenced from:
_redraw_view in tig.o
_select_view_line in tig.o
_restore_view_position in tig.o
_do_scroll_view in tig.o
_load_view in tig.o
_scroll_view in tig.o
_get_input in tig.o
...
"_wclear", referenced from:
_redraw_display in tig.o
_report in tig.o
_get_input in tig.o
_main in tig.o
"_waddch", referenced from:
_draw_chars in tig.o
_draw_graphic in tig.o
"_acs_map", referenced from:
_draw_lineno in tig.o
_graph_symbol_to_chtype in graph.o
"_endwin", referenced from:
_die in tig.o
_quit in tig.o
_open_editor in tig.o
_status_request in tig.o
_main in tig.o
"_newscr", referenced from:
_status_update_files in tig.o
_get_input in tig.o
"_leaveok", referenced from:
_status_update_files in tig.o
_get_input in tig.o
_main in tig.o
"_doupdate", referenced from:
_status_update_files in tig.o
_get_input in tig.o
"_stdscr", referenced from:
_resize_display in tig.o
_get_input in tig.o
_main in tig.o
"_wresize", referenced from:
_resize_display in tig.o
_get_input in tig.o
"_mvwin", referenced from:
_resize_display in tig.o
_get_input in tig.o
"_newwin", referenced from:
_resize_display in tig.o
_main in tig.o
"_scrollok", referenced from:
_resize_display in tig.o
_do_scroll_view in tig.o
"_vwprintw", referenced from:
_report in tig.o
"_wscrl", referenced from:
_do_scroll_view in tig.o
"_def_prog_mode", referenced from:
_open_editor in tig.o
_status_request in tig.o
_main in tig.o
"_reset_prog_mode", referenced from:
_open_editor in tig.o
_status_request in tig.o
_main in tig.o
"_wredrawln", referenced from:
_get_input in tig.o
"_nodelay", referenced from:
_get_input in tig.o
"_wgetch", referenced from:
_get_input in tig.o
"_erasechar", referenced from:
_get_input in tig.o
"_mvwprintw", referenced from:
_prompt_yesno in tig.o
_read_prompt in tig.o
_main in tig.o
"_initscr", referenced from:
_main in tig.o
"_newterm", referenced from:
_main in tig.o
"_nonl", referenced from:
_main in tig.o
"_cbreak", referenced from:
_main in tig.o
"_noecho", referenced from:
_main in tig.o
"_has_colors", referenced from:
_main in tig.o
"_start_color", referenced from:
_main in tig.o
"_assume_default_colors", referenced from:
_main in tig.o
"_init_pair", referenced from:
_main in tig.o
"_keypad", referenced from:
_main in tig.o
"_set_tabsize", referenced from:
_main in tig.o
"_wprintw", referenced from:
_main in tig.o
"_COLS", referenced from:
_main in tig.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [tig] Error 1
zsh: exit 2 make
```