On Sun Sep 21 04:37:54 2014, SREZIC wrote:
Show quoted text> There seem to be a number of issues:
>
> /usr/perl5.21.4/bin/perl5.21.4 Build --makefile_env_macros 1
> make: illegal option -- -
> usage: make [-BPSXeiknpqrstv] [-C directory] [-D variable]
> [-d flags] [-E variable] [-f makefile] [-I directory]
> [-j max_jobs] [-m directory] [-V variable]
> [variable=value] [target ...]
>
> -> This looks like GNU make options are used here, not compatible with
> FreeBSD's BSD make.
Indeed; since Alien-libtermkey needs a GNU make, it has to probe various options for what that might be until it finds one:
https://metacpan.org/source/PEVANS/Alien-libtermkey-0.16/inc/Alien/make/Module/Build.pm#L15
This error output is just noise from that probe. I suppose I could have it quieter by redirecting stderr to /dev/null during that probe, though I sometimes find it useful to see anyway.
Show quoted text> libtool: compile: gcc -Wall -std=c99 -I/usr/local/include/ncurses -c
> driver-ti.c -fPIC -DPIC -o .libs/driver-ti.o
> In file included from /usr/include/curses.h:141,
> from driver-ti.c:10:
> /usr/local/include/ncurses/unctrl.h:54:29: error: ncurses/ncurses.h:
> No such file or directory
>
> -> The -I is wrong: it should be -I/usr/local/include.
This -I value isn't hardcoded anywhere; in fact it doesn't even come from Alien-libtermkey at all. The regular C library libtermkey's Makefile tries to probe it from pkg-config:
else ifeq ($(shell pkg-config ncursesw && echo 1),1)
CFLAGS +=$(shell pkg-config --cflags ncursesw)
LDFLAGS+=$(shell pkg-config --libs ncursesw)
I suggest therefore if this is the wrong value, it's likely your system's pkg-config that is providing the wrong value - there's not a lot libtermkey's build system nor the Alien wrapping of it can do about that.
--
Paul Evans