pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: misc/tmux on OS X



On 5 Nov 2013, at 12:45 , OBATA Akio <obache%netbsd.org@localhost> wrote:

> 
> Could you look at config.log and find why it failed?
> It already include terminfo.buildlink3.mk and terminfo should be sufficient.


Yes. It failed on setupterm test:

configure:4950: clang -o conftest -pipe -Qunused-arguments -I/usr/pkg/include 
-I/usr/include -I/usr/pkg/include -I/usr/include -L/usr/pkg/lib -L/usr/lib 
conftest.c -lcurses -llevent  >&5
Undefined symbols for architecture x86_64:
  "_setupterm", referenced from:
      _main in conftest-eZ7iIE.o
ld: symbol(s) not found for architecture x86_64


When linking with curses or ncurses or even without. And it cannot find 
terminfo library when linking with it:

configure:4950: clang -o conftest -pipe -Qunused-arguments -I/usr/pkg/include 
-I/usr/include -I/usr/pkg/include -I/usr/include -L/usr/pkg/lib -L/usr/lib 
conftest.c -lterminfo  -levent  >&5
ld: library not found for -lterminfo


The failed configure output is:

checking for library containing setupterm... no
configure: error: "curses not found"



When adding curses.buildking.m3 into Makefile, it can compile the curses test,
 then setupterm test is successful:
checking for library containing setupterm... -lcurses


I'm using clang with ABI=64 on OS X 10.9.


Best,
jym


Home | Main Index | Thread Index | Old Index