Subject: pkg/5800: kaffe 1.0b1: libawt.so not linked against -lX11
To: None <gnats-bugs@gnats.netbsd.org>
From: Jochen Pohl <Jochen.Pohl@EasternGraphics.com>
List: netbsd-bugs
Date: 07/19/1998 22:52:02
>Number:         5800
>Category:       pkg
>Synopsis:       kaffe 1.0b1: libawt.so 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
>Last-Modified:
>Originator:     Jochen Pohl
>Organization:
EasternGraphics GmbH
Goethestra3e 14                 phone: +49 3677 678221
D-98693 Ilmenau-Manebach        fax:   +49 3677 678250
>Release:        NetBSD 1.3.1
>Environment:
System: NetBSD ariadne.EasternGraphics.com 1.3.1 NetBSD 1.3.1 (ARIADNE_DISKLESS) #0: Thu Apr 2 23:06:37 MEST 1998 root@ariadne.EasternGraphics.com:/usr/src/sys/arch/i386/compile/ARIADNE_DISKLESS i386


>Description:
	libawt.so 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).

>How-To-Repeat:
	Run Java application which makes use of AWT.

>Fix:
	The reason for libawt.so 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
 
 GNU_CONFIGURE=	yes
-CONFIGURE_ENV=	LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
-		CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include"
-CFLAGS+=	-I${LOCALBASE}/include -I${X11BASE}/include
+CONFIGURE_ENV=	LDFLAGS="-L${LOCALBASE}/libb" CPPFLAGS="-I${LOCALBASE}/include"
+CFLAGS+=	-I${LOCALBASE}/include
 
 post-install:
 	${MKDIR} ${PREFIX}/share/kaffe
>Audit-Trail:
>Unformatted: