Subject: pkg/20670: editors/xemacs fails to configure on Linux (Suse 8.1 Professional)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <joachim@cms.tecmath.com>
List: netbsd-bugs
Date: 03/12/2003 11:37:20
>Number: 20670
>Category: pkg
>Synopsis: editors/xemacs fails to configure on Linux
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 12 02:41:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Joachim Koenig-Baltes
>Release: SuSE Linux 8.1
>Organization:
>Environment:
SuSE Linux 8.1 (i386)
VERSION = 8.1
>Description:
editors/xemacs fails to configure on Suse Linux 8.1 Professional in a
bootstrap-pkgsrc environment because it cannot find libtermcap.
>How-To-Repeat:
% cd /usr/pkgsrc/editors/xemacs; bmake
see it fail in configure.
excerpt from config.log:
-----
configure:15152: gcc -o conftest -O2 -Dunix -I/usr/pkg/include -I/usr/X11R6/in
clude -I/usr/pkg/include -I/usr/X11R6/include -I/user/unix/work/NetBSD-curren
t/pkgsrc/editors/xemacs/work.i386/.buildlink/include -I/user/unix/work/NetBSD-cu
rrent/pkgsrc/editors/xemacs/work.i386 -I/usr/X11/include -Wl,-R/usr/X11R6
/lib -L/usr/X11R6/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -L/user/unix/work/NetBSD
-current/pkgsrc/editors/xemacs/work.i386/.buildlink/lib -L/usr/X11/lib -Xlink
er -rpath -Xlinker /usr/pkg/lib conftest.c -ltiff -lpng -ljpeg -lz -lXpm -lXm
u -lXt -lXext -lX11 -lSM -lICE -ltermcap -lcurses -lm -lutil 1>&5
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../../i486-suse-linux/bin/ld: cannot
find -ltermcap
collect2: ld returned 1 exit status
configure: failed program was:
#line 15148 "configure"
#include "confdefs.h"
int main(int c,char *v[]){return 0;}
-----
There is no /usr/lib/libtermcap.so on modern Linux distributions, there is only
libtermcap.so.2 for binary compatibility with older versions, but unsuitable
for compiling. Googling reveils that Linux is distributed with ncurses.
So the fix is clear:
>Fix:
disable disabling of ncurses in the configure arguments for Linux:
--- Makefile.orig 2003-02-27 09:10:22.000000000 +0100
+++ Makefile 2003-03-12 11:34:37.000000000 +0100
@@ -101,7 +101,9 @@
CONFIGURE_ARGS+= --prefix=${PREFIX}
CONFIGURE_ARGS+= --with-clash-detection
CONFIGURE_ARGS+= --with-mule=yes
+.if ${OPSYS} != "Linux"
CONFIGURE_ARGS+= --with-ncurses=no
+.endif
CONFIGURE_ARGS+= --with-msw=no
CONFIGURE_ARGS+= ${WITH_DIALOGS} ${WITH_LDAP} ${WITH_XFACE} ${WITH_CANNA}
CONFIGURE_ARGS+= --infopath="${INFOPATH}"
>Release-Note:
>Audit-Trail:
>Unformatted: