NetBSD Problem Report #32113

From www@netbsd.org  Sat Nov 19 11:31:45 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 60B0F63BA6B; Sat, 19 Nov 2005 11:31:45 +0000 (UTC)
Message-Id: <20051119113145.60B0F63BA6B@narn.netbsd.org>
Date: Sat, 19 Nov 2005 11:31:45 +0000 (UTC)
From: georg.schwarz@freenet.de
Reply-To: georg.schwarz@freenet.de
To: gnats-bugs@netbsd.org
Subject: lang/kaffe fails to compile on NetBSD 2.1 alpha
X-Send-Pr-Version: www-1.0

>Number:         32113
>Category:       pkg
>Synopsis:       lang/kaffe fails to compile on NetBSD 2.1 alpha
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    tonio
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 19 11:32:00 +0000 2005
>Closed-Date:    Sat Feb 18 15:43:50 +0000 2006
>Last-Modified:  Sat Feb 18 15:43:50 +0000 2006
>Originator:     Georg Schwarz
>Release:        2.1
>Organization:
>Environment:
NetBSD alpha 2.1 NetBSD 2.1 (GENERIC.MP) #0: Mon Oct 24 19:21:50 UTC 2005  jmc@faith.netbsd.org:/home/builds/ab/netbsd-2-1-RELEASE/alpha/200510241747Z-obj/home/builds/ab/netbsd-2-1-RELEASE/src/sys/arch/alpha/compile/GENERIC.MP alpha
>Description:
this is from the current pkgsrc

...
 cc -DHAVE_CONFIG_H -I. -I../../../../config -I../.. -I./../.. -I../../../../kaffe/kaffevm/jni -I../../../../include -DINTERPRETER -I/home/schwarz/pkgsrc/pkgsrc/lang/kaffe/work/kaffe-1.1.6/./kaffe/kaffevm -I/home/schwarz/pkgsrc/pkgsrc/lang/kaffe/work/kaffe-1.1.6/./kaffe/kaffevm/intrp -I/home/schwarz/pkgsrc/pkgsrc/lang/kaffe/work/kaffe-1.1.6/./kaffe/kaffevm/systems/unix-pthreads -I../../../../replace -I../../../../binreloc -Dunix -I/home/schwarz/pkgsrc/pkgsrc/lang/kaffe/work/.buildlink/include -DKAFFE_VMDEBUG -D_REENTRANT -pthread -O3 -mcpu=21264a -mieee -Wall -W -mieee -pthread -MT libkthread_la-signal.lo -MD -MP -MF .deps/libkthread_la-signal.Tpo -c signal.c  -fPIC -DPIC -o .libs/libkthread_la-signal.o
signal.c:61: error: parse error before '(' token
signal.c:69: warning: type defaults to `int' in declaration of `restoreSyncSignalHandler'
signal.c:69: warning: parameter names (without types) in function declaration
signal.c:69: error: conflicting types for `restoreSyncSignalHandler'
jsignal.h:33: error: previous declaration of `restoreSyncSignalHandler'
signal.c:69: warning: data definition has no type or storage class
signal.c:72: warning: type defaults to `int' in declaration of `unblockSignal'
signal.c:72: warning: parameter names (without types) in function declaration
signal.c:72: error: conflicting types for `unblockSignal'
jsignal.h:40: error: previous declaration of `unblockSignal'
signal.c:72: warning: data definition has no type or storage class
signal.c:93: error: parse error before numeric constant
signal.c:93: warning: type defaults to `int' in declaration of `nullHandler'
signal.c:93: error: `nullHandler' redeclared as different kind of symbol
signal.c:53: error: previous declaration of `nullHandler'
signal.c:93: warning: data definition has no type or storage class
signal.c: In function `jthread_initexceptions':
signal.c:122: error: invalid lvalue in assignment
signal.c:129: error: `nullException' undeclared (first use in this function)
signal.c:129: error: (Each undeclared identifier is reported only once
signal.c:129: error: for each function it appears in.)
signal.c: At top level:
signal.c:267: error: conflicting types for `restoreSyncSignalHandler'
signal.c:69: error: previous declaration of `restoreSyncSignalHandler'
signal.c:312: error: conflicting types for `unblockSignal'
signal.c:72: error: previous declaration of `unblockSignal'
signal.c:429: error: parse error before '(' token
signal.c:432: error: parse error before '(' token
signal.c:432: warning: type defaults to `int' in declaration of `longjmp'
signal.c:432: error: conflicting types for `longjmp'
/usr/include/setjmp.h:69: error: previous declaration of `longjmp'
signal.c:432: error: parse error before numeric constant
signal.c: In function `detectStackBoundaries':
signal.c:451: error: `stackOverflowDetector' undeclared (first use in this function)
signal.c:484: warning: assignment discards qualifiers from pointer target type
signal.c: At top level:
signal.c:53: warning: `nullHandler' defined but not used
gmake[3]: *** [libkthread_la-signal.lo] Error 1
gmake[3]: Leaving directory `/home/schwarz/pkgsrc/pkgsrc/lang/kaffe/work/kaffe-1.1.6/kaffe/kaffevm/systems/unix-pthreads'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/home/schwarz/pkgsrc/pkgsrc/lang/kaffe/work/kaffe-1.1.6/kaffe/kaffevm/systems'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/schwarz/pkgsrc/pkgsrc/lang/kaffe/work/kaffe-1.1.6/kaffe/kaffevm'
gmake: *** [all-recursive] Error 1
*** Error code 2

Stop.
bmake: stopped in /home/schwarz/pkgsrc/pkgsrc/lang/kaffe
===> 
===> There was an error during the ``build'' phase.
===> Please investigate the following for more information:
===>      * log of the build
===>      * /home/schwarz/pkgsrc/pkgsrc/lang/kaffe/work/.work.log
===> 
*** Error code 1

Stop.
bmake: stopped in /home/schwarz/pkgsrc/pkgsrc/lang/kaffe

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
From: Antoine Reilles <Antoine.Reilles@loria.fr>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/32113: lang/kaffe fails to compile on NetBSD 2.1 alpha
Date: Sat, 19 Nov 2005 14:47:12 +0100

 --wRRV7LY7NUeQGEoC
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline

 Could you try the following patch ?
 I haven't access to a netbsd alpha machine to test.

 antoine

 --wRRV7LY7NUeQGEoC
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="kaffe-alpha.diff"

 $NetBSD$

 --- config/alpha/netbsd1/md.h.orig	2005-07-04 00:02:55.000000000 +0200
 +++ config/alpha/netbsd1/md.h
 @@ -15,6 +15,19 @@
  #include "alpha/common.h"
  #include "alpha/threads.h"

 +#if defined(HAVE_SIGNAL_H)
 +#include <signal.h>
 +#endif
 +#if defined(HAVE_SYS_RESOURCE_H)
 +#include <sys/resource.h>
 +#endif
 +#if defined(HAVE_SYS_SIGNAL_H)
 +#include <sys/signal.h>
 +#endif
 +#if defined(HAVE_UNISTD_H)
 +#include <unistd.h>
 +#endif
 +
  #if defined(TRANSLATOR)
  #include "jit-md.h"
  #endif
 @@ -29,4 +42,33 @@ extern void init_md(void);
  #undef  SP_OFFSET
  #define SP_OFFSET 34

 +#if defined(HAVE_SYS_UCONTEXT_H)
 +#include <sys/ucontext.h>
 +
 +/* older netbsd's could have this macro missing, so we provide it */
 +#ifdef _UC_MACHINE_SP
 +#define _UC_MACHINE_SP(uc)      ((uc)->uc_mcontext.__gregs[_REG_UESP])
 +#endif
 +#ifdef _UC_MACHINE_PC
 +#define _UC_MACHINE_PC(uc)      ((uc)->uc_mcontext.__gregs[_REG_EIP])
 +#endif
 +
 +#define SIGCONTEXT ucontext_t
 +
 +#define SIGNAL_ARGS(sig, sc) int sig, siginfo_t *__si, void *sc
 +#define SIGNAL_CONTEXT_POINTER(scp) SIGCONTEXT *scp
 +#define SIGNAL_PC(scp) _UC_MACHINE_PC(((SIGCONTEXT *)(scp)))
 +#define STACK_POINTER(scp) _UC_MACHINE_SP(((SIGCONTEXT *)(scp)))
 +#define GET_SIGNAL_CONTEXT_POINTER(sc) (sc)
 +
 +#else
 +
 +#define SIGNAL_ARGS(sig, sc) int sig, int __code, struct sigcontext *sc
 +#define SIGNAL_CONTEXT_POINTER(scp) struct sigcontext *scp
 +#define GET_SIGNAL_CONTEXT_POINTER(sc) (sc)
 +#define SIGNAL_PC(scp) (scp)->sc_pc
 +#define STACK_POINTER(scp) (scp)->sc_sp
 +
 +#endif
 +
  #endif

 --wRRV7LY7NUeQGEoC--

Responsible-Changed-From-To: pkg-manager->tonio
Responsible-Changed-By: tonio@netbsd.org
Responsible-Changed-When: Sun, 20 Nov 2005 00:02:53 +0000
Responsible-Changed-Why:
I will handle this one.


From: georg.schwarz@freenet.de (Georg Schwarz)
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/32113
Date: Wed, 30 Nov 2005 19:23:26 +0100

 Added the patch. Now I end up like this:

 ...
 Useable version of ALSA not found.
 checking for esd-config... /home/schwarz/pkg/bin/esd-config
 checking for ESD - version >= 0.2.1... yes
 checking for gmp.h... (cached) no
 configure: error: Found GNU MP library, but can't find gmp.h.  Install
 the gmp development package, or pass --enable-pure-java-math to
 configure.
 *** Error code 1

 Stop.
 bmake: stopped in /home/schwarz/pkgsrc/pkgsrc/lang/kaffe
 ===> 
 ===> There was an error during the ``configure'' phase.
 ===> Please investigate the following for more information:
 ===>      * config.log
 ===>      * /home/schwarz/pkgsrc/pkgsrc/lang/kaffe/work/.work.log
 ===> 
 *** Error code 1

 Stop.
 bmake: stopped in /home/schwarz/pkgsrc/pkgsrc/lang/kaffe
 a

 config.log has:

 configure:50076: checking for gmp.h
 configure:50081: result: no
 configure:50218: error: Found GNU MP library, but can't find gmp.h.
 Install the
  gmp development package, or pass --enable-pure-java-math to  configure.

 I then added --enable-pure-java-math to CONFIGURE_ARGS (probably I could
 as well have made sure I had gmp.h instead by including the respective
 buildlink.mk file).


 This time I end up like this:

 /usr/include/stdio.h:32: error: stray '\324' in program
 /usr/include/stdio.h:32: error: stray '\214' in program
 /usr/include/stdio.h:32: error: stray '\377' in program
 /usr/include/stdio.h:32: error: syntax error at '#' token
 /usr/include/stdio.h:32: error: stray '\377' in program
 /usr/include/stdio.h:32:64: missing terminating " character
 In file included from ../kaffevm/utf8const.h:14,
                  from main.c:19:
 ../kaffevm/debug.h:135:2: #error "no known 64-bit type for debugmask_t"
 In file included from ../kaffevm/utf8const.h:14,
                  from main.c:19:
 ../kaffevm/debug.h:214: error: parse error before "mask"
 main.c:43: error: parse error before '*' token
 main.c:43: warning: type defaults to `int' in declaration of `include'
 main.c:43: warning: data definition has no type or storage class
 main.c:44: error: parse error before '*' token
 main.c:44: warning: type defaults to `int' in declaration of
 `jni_include'
 main.c:44: warning: data definition has no type or storage class
 main.c: In function `main':
 main.c:132: warning: implicit declaration of function `strlen'
 main.c:134: warning: implicit declaration of function `strcpy'
 main.c:152: warning: implicit declaration of function `strcat'
 main.c:161: error: `FILE' undeclared (first use in this function)
 main.c:161: error: (Each undeclared identifier is reported only once
 main.c:161: error: for each function it appears in.)
 main.c:161: error: `fp' undeclared (first use in this function)
 main.c:163: warning: implicit declaration of function `fopen'
 main.c:194: warning: implicit declaration of function `fclose'
 main.c: In function `options':
 main.c:222: warning: implicit declaration of function `strcmp'
 gmake[1]: *** [kaffeh-main.o] Error 1
 gmake[1]: Leaving directory
 `/home/schwarz/pkgsrc/pkgsrc/lang/kaffe/work/kaffe-1.1.6/kaffe/kaffeh'
 gmake: *** [all-recursive] Error 1
 *** Error code 2

 Stop.
 bmake: stopped in /home/schwarz/pkgsrc/pkgsrc/lang/kaffe
 ===> 
 ===> There was an error during the ``build'' phase.
 ===> Please investigate the following for more information:
 ===>      * log of the build
 ===>      * /home/schwarz/pkgsrc/pkgsrc/lang/kaffe/work/.work.log
 ===> 
 *** Error code 1

 Stop.
 bmake: stopped in /home/schwarz/pkgsrc/pkgsrc/lang/kaffe

 -- 
 Georg Schwarz    http://home.pages.de/~schwarz/
  georg.schwarz@freenet.de  +49 178 8545053

From: Antoine Reilles <Antoine.Reilles@loria.fr>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/32113
Date: Wed, 30 Nov 2005 19:59:01 +0100

 On Wed, Nov 30, 2005 at 06:24:01PM +0000, Georg Schwarz wrote:
 >  Added the patch. Now I end up like this:
 >  
 >  ...
 >  checking for gmp.h... (cached) no
 >  configure: error: Found GNU MP library, but can't find gmp.h.  Install
 >  the gmp development package, or pass --enable-pure-java-math to
 >  configure.
 >  I then added --enable-pure-java-math to CONFIGURE_ARGS (probably I could
 >  as well have made sure I had gmp.h instead by including the respective
 >  buildlink.mk file).
 This error is strange. Makefile.common already has
 .include "../../devel/gmp/buildlink3.mk"
 do gmp.h should be buildlinked. There may be a problem here with the gmp
 package, or maybe buildlink
 >  
 >  
 >  This time I end up like this:
 >  
 >  /usr/include/stdio.h:32: error: stray '\324' in program
 >  /usr/include/stdio.h:32: error: stray '\214' in program
 >  /usr/include/stdio.h:32: error: stray '\377' in program
 >  /usr/include/stdio.h:32: error: syntax error at '#' token
 >  /usr/include/stdio.h:32: error: stray '\377' in program
 >  /usr/include/stdio.h:32:64: missing terminating " character
 >  In file included from ../kaffevm/utf8const.h:14,
 >                   from main.c:19:
 the stdio.h error is really strange. Maybe a corrupted file ?

From: Antoine Reilles <tonio@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/32113 CVS commit: pkgsrc/lang/kaffe
Date: Wed,  7 Dec 2005 16:25:51 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	tonio
 Date:		Wed Dec  7 16:25:51 UTC 2005

 Modified Files:
 	pkgsrc/lang/kaffe: Makefile.common distinfo
 Added Files:
 	pkgsrc/lang/kaffe/patches: patch-ah

 Log Message:
 Add patch-ah to fix build under netbsd alpha for PR 32113
 Thanks riz@ for the testing machine
 Take maintainership


 To generate a diff of this commit:
 cvs rdiff -r1.10 -r1.11 pkgsrc/lang/kaffe/Makefile.common
 cvs rdiff -r1.17 -r1.18 pkgsrc/lang/kaffe/distinfo
 cvs rdiff -r0 -r1.5 pkgsrc/lang/kaffe/patches/patch-ah

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: tonio@netbsd.org
State-Changed-When: Thu, 08 Dec 2005 17:44:40 +0000
State-Changed-Why:
Asked for feedback. Does it build now ?


From: Antoine Reilles <Antoine.Reilles@loria.fr>
To: pkgsrc-bugs@netbsd.org, georg.schwarz@freenet.de
Cc: 
Subject: Re: PR/32113 CVS commit: pkgsrc/lang/kaffe
Date: Thu, 8 Dec 2005 18:39:36 +0100

 On Wed, Dec 07, 2005 at 04:30:02PM +0000, Antoine Reilles wrote:
 > Subject: PR/32113 CVS commit: pkgsrc/lang/kaffe
 > Date: Wed,  7 Dec 2005 16:25:51 +0000 (UTC)

 Do the new patch-ah fix the problem?

State-Changed-From-To: feedback->closed
State-Changed-By: tonio@netbsd.org
State-Changed-When: Sat, 18 Feb 2006 15:43:50 +0000
State-Changed-Why:
The kaffe package is reported to build fine on netbsd 2.1 alpha, as show the build results Havard posted:
http://mail-index.netbsd.org/tech-pkg/2006/02/18/0004.html


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.