Subject: pkg/11003: lang/kaffe does not build if devel/gmp is installed
To: None <gnats-bugs@gnats.netbsd.org>
From: Lex Wennmacher <wennmach@geo.Uni-Koeln.DE>
List: netbsd-bugs
Date: 09/13/2000 05:06:15
>Number: 11003
>Category: pkg
>Synopsis: lang/kaffe does not build if devel/gmp is installed
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Sep 13 05:07:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Lex Wennmacher
>Release: <NetBSD-current source date> NetBSD-1.4.2/i386
>Organization:
The Echelon Network
>Environment:
System: NetBSD blue.geo.Uni-Koeln.DE 1.4.2 NetBSD 1.4.2 (BLUE) #13: Tue Jul 11 13:32:50 MEST 2000 wennmach@blue.geo.Uni-Koeln.DE:/usr/src/sys/arch/i386/compile/BLUE i386
>Description:
lang/kaffe does not build if devel/gmp is installed.
If gmp is installed, kaffe picks up gmp.h during configuration but fails
to link with the gmp library later.
>How-To-Repeat:
% pkg_info | grep gmp
gmp-3.0.1 Library for arbitrary precision arithmetic
% cd <wherever-pkgsrc-is-located>/lang/kaffe
% make
[...]
checking for gmp.h... yes
[...]
cc -O2 -Wall -Wstrict-prototypes -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-R/us
r/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-R/usr/pkg/li
b -L/usr/pkg/lib -o .libs/Kaffe main.o .libs/KaffeS.o ../../libraries/clib/nativ
e/.libs/libnative.a -lm -L/usr/local/lib ../../libraries/clib/zip/.libs/libzip.a
-lz -lz ../../libraries/clib/math/.libs/libmath.a -lm ../../libraries/clib/awt/
X/.libs/libawt.a -ljpeg -lpng -lz -lz -lm -lungif -lXext -lSM -lICE -lX11 -L../k
affevm/.libs -lkaffevm -lgcc -lm -L/usr/local/lib -Wl,-R/usr/pkg/kaffe/lib -Wl,-
R/usr/local/lib -Wl,-R/usr/X11R6/lib
BigInteger.lo: Undefined symbol `___gmp_set_memory_functions' referenced from te
xt segment
BigInteger.lo: Undefined symbol `___gmpz_init' referenced from text segment
BigInteger.lo: Undefined symbol `___gmpz_clear' referenced from text segment
[...]
# pkg_delete gmp-3.0.1
% make clean
% make
--> Success
>Fix:
Not provided. I'd suggest that kaffe should depend on gmp and should be
patched to link with libgmp.
>Release-Note:
>Audit-Trail:
>Unformatted: