Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot make on Mac OS 10.7 with Xcode 4.2 #25

Closed
amarshall opened this issue Dec 8, 2011 · 9 comments
Closed

Cannot make on Mac OS 10.7 with Xcode 4.2 #25

amarshall opened this issue Dec 8, 2011 · 9 comments

Comments

@amarshall
Copy link

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
@jonas
Copy link
Owner

jonas commented Dec 8, 2011

Can you provide the output of running

$ make configure

It looks like the configure script is not properly created:

% ./configure && make
./configure: line 1664: AX_WITH_CURSES: command not found

Also, did you try with a release tarball? It comes with the configure script already created.

@amarshall
Copy link
Author

% make configure 
autoreconf -v -I contrib
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal 
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --include=contrib
autoreconf: running: /usr/bin/autoheader --include=contrib
autoreconf: configure.ac: not using Automake
autoreconf: Leaving directory `.'

Where can the release tarballs be found now? Your website appears to currently be down.

@AdrienGiboire
Copy link

Hi there!

I'm having the same trouble on Mac OS X 10.6.8.

$ ./configure --prefix=/Users/adrien/local
./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
config.status: config.h is unchanged

I cloned the repository and try to compile from the master branch sources.

@AdrienGiboire
Copy link

Fixed.

Edit your Makefile and add -liconv line 35 and save the file. Remove the line LDLIBS from the file conf.make.
Launch the command CC=clang make && make install.

Bye!

@AdrienGiboire
Copy link

Is there a way to permanently fix it?

@harking
Copy link

harking commented May 11, 2012

@AdrienGiboire I just had to perform the -liconv change in the Makefile.

Just commit that change and make a pull request?

@jonas
Copy link
Owner

jonas commented May 12, 2012

The website is up again: http://jonas.nitro.dk/tig/

However, if one of you could try the patch in the macosx branch and tell me if it fixes your problems. It should allow building tig on Mac OS X without the configure script. Don't hesitate to tweak the contrib/config-Darwin.make file.

@AdrienGiboire
Copy link

Thanks! I just tried it and it works like a charm :)

@jonas
Copy link
Owner

jonas commented Aug 10, 2012

Thanks for testing.

@jonas jonas closed this as completed Aug 10, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants