Summary: | Compile devel/newt fails on FreeBSD 6.1 | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Matthias Fechner <mfechner> |
Component: | Individual Port(s) | Assignee: | Hye-Shik Chang <perky> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | ||
Priority: | Normal | ||
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
Matthias Fechner
![]() ![]() Responsible Changed From-To: freebsd-ports-bugs->perky Over to maintainer I found now a solution, devel/newt conflicts with ncurses-5.5_2. I deinstalled ncurses-5.5_2 and now newt compiles fine. Maybe anyone should insert ncurses as blocker or force newt to use the libs from /usr/lib and not from /usr/local/lib. Best regards, Matthias > I found now a solution, devel/newt conflicts with ncurses-5.5_2. > I deinstalled ncurses-5.5_2 and now newt compiles fine. > Maybe anyone should insert ncurses as blocker or force newt to use the > libs from /usr/lib and not from /usr/local/lib. Something's missing from the analysis - either ncurses library would provide the termcap interface. The newt port is missing a -L option to ensure that the particular version of ncurses used is from /usr/lib. Something like this might work: LIBS = -lslang -lm -lpopt -L/usr/lib -lncurses #-lefence SHLIBS = -lslang -lm -lc -lpopt -L/usr/lib -lncurses note: slang's apparently depending on ncurses since it doesn't know about the cgetent() interface to the termcap database. -- Thomas E. Dickey <dickey@invisible-island.net> http://invisible-island.net ftp://invisible-island.net Hi Thomas,
Thomas Dickey wrote:
> Something's missing from the analysis - either ncurses library would
> provide the termcap interface. The newt port is missing a -L option to
> ensure that the particular version of ncurses used is from /usr/lib.
>
> Something like this might work:
>
> LIBS = -lslang -lm -lpopt -L/usr/lib -lncurses #-lefence
> SHLIBS = -lslang -lm -lc -lpopt -L/usr/lib -lncurses
the following patch solves the problem:
--- patch-ab.orig Wed Aug 16 15:28:03 2006
+++ patch-ab Wed Aug 16 15:28:26 2006
@@ -12,8 +12,8 @@
-ifeq ($(RPM_OPT_FLAGS),)
-CFLAGS += -g
-endif
-+CFLAGS += -I${LOCALBASE}/include -I${PREFIX}/include
-+LDFLAGS += -L${LOCALBASE}/lib -L${PREFIX}/lib
++CFLAGS += -I/usr/include -I${LOCALBASE}/include -I${PREFIX}/include
++LDFLAGS += -L/usr/lib -L${LOCALBASE}/lib -L${PREFIX}/lib
VERSION = @VERSION@
CVSTAG = r$(subst .,-,$(VERSION))
Thx
Matthias
--
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook
State Changed From-To: open->closed The patch committed. Thank you ! perky 2006-10-09 12:02:48 UTC FreeBSD ports repository Modified files: devel/newt/files patch-ab Log: Fix build on environments with ncurses port. PR: 100830 Submitted by: Matthias Fechner <idefix@fechner.net>, Thomas Dickey <dickey@his.com> Revision Changes Path 1.7 +2 -2 ports/devel/newt/files/patch-ab _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" |