Subject: pkg/5800: kaffe 1.0b1: not linked against -lX11
To: None <>
From: Jochen Pohl <>
List: netbsd-bugs
Date: 07/19/1998 22:52:02
>Number:         5800
>Category:       pkg
>Synopsis:       kaffe 1.0b1: not linked against -lX11
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 19 14:05:00 1998
>Originator:     Jochen Pohl
EasternGraphics GmbH
Goethestra3e 14                 phone: +49 3677 678221
D-98693 Ilmenau-Manebach        fax:   +49 3677 678250
>Release:        NetBSD 1.3.1
System: NetBSD 1.3.1 NetBSD 1.3.1 (ARIADNE_DISKLESS) #0: Thu Apr 2 23:06:37 MEST 1998 i386

>Description: of Kaffe 1.0b1 is not linked against -lX11. Therefore,
	Java applications which make use of AWT fail with undefined symbol
	errors (_XSetErrorHandler in my case).

	Run Java application which makes use of AWT.

	The reason for not linked agains -lX11 is that
	the Kaffe configure script doesn't find X11 library and include
	directories if these directories are specified as part of
	the LDFLAGS and CPPFLAGS environment variables when configure
	is run. The following diff fixes this problem:

--- .%%Makefile%%	Sun Jul 19 18:09:12 1998
+++ Makefile	Sun Jul 19 18:09:43 1998
@@ -14,9 +14,8 @@
 ONLY_FOR_ARCHS=	i386 sparc alpha m68k mips arm32
-		CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include"
-CFLAGS+=	-I${LOCALBASE}/include -I${X11BASE}/include
+CFLAGS+=	-I${LOCALBASE}/include
 	${MKDIR} ${PREFIX}/share/kaffe