Subject: pkg/10766: pkgsrc/devel/mit-pthreads fails to configure for i386-unknown-netbsd1.5
To: None <gnats-bugs@gnats.netbsd.org>
From: None <cinnion@infinet.com>
List: netbsd-bugs
Date: 08/06/2000 08:59:32
>Number:         10766
>Category:       pkg
>Synopsis:       mit-pthreads package will not compile on 1.5_ALPHA
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 06 09:00:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Douglas Wade Needham
>Release:        NetBSD 1.5_ALPHA (cvs checkout date 2000 Jul 29 00:00 EDT)
>Organization:

>Environment:
	
System: NetBSD fargone 1.5_ALPHA NetBSD 1.5_ALPHA (GENERIC_DEBUG_APM) #0: Sun Jul  9 00:17:31 EDT 2000     root@fargone:/amd/pell/user/src/sys/arch/i386/compile/GENERIC_DEBUG_APM i386


>Description:
	The mit-pthreads library (pkgsrc/devel/mit-pthreads) fails to
        compile on a i386 NetBSD 1.5_ALPHA system.  The checkout date
	for the pkgsrc portion appears to be unrelated to the problem
	at this time, but the latest checkout date I have verified
	this with is "2000 Aug 03 12:00 EDT".  The key to this problem
	appears to be that the uname command returns "1.5*" instead of "1.4*".

        The errors are as follows:

	    => Checksum OK for pthreads-1_60_beta6.tar.gz.
	    ===> Extracting for mit-pthreads-1.60b6
	    ===> Patching for mit-pthreads-1.60b6
	    ===> Applying NetBSD patches for mit-pthreads-1.60b6
	    ===> Configuring for mit-pthreads-1.60b6
	    creating cache ./config.cache
	    checking for gcc... cc
	    checking whether we are using GNU C... yes
	    checking for c++... c++
	    checking whether we are using GNU C++... yes
	    checking whether c++ accepts -g... yes
	    checking compiler availability and simple error detection... ok
	    checking how to run the C preprocessor... cc -E
	    checking for ranlib... ranlib
	    checking host system type... i386-unknown-netbsd1.5.
	    checking target system type... i386-unknown-netbsd1.5.
	    checking build system type... i386-unknown-netbsd1.5.
	    configure: error: System type i386-unknown-netbsd1.5. not recognized or not supported.
	    See ./config/configure.in for supported systems.
	    *** Error code 1
	    
	    Stop.
	    *** Error code 1
	    
	    Stop.
	    *** Error code 1
	    
	    Stop.

>How-To-Repeat:
	Do a 'make cleandir ; make configure' in pkgsrc/devel/mit-pthreads
>Fix:

Here are the patches (cvs diff -c) that appear to be working for
me...they are untested beyond the i386 platform.

Index: files/patch-sum
===================================================================
RCS file: /cvsroot/pkgsrc/devel/mit-pthreads/files/patch-sum,v
retrieving revision 1.16
diff -c -r1.16 patch-sum
*** patch-sum	2000/01/10 20:15:16	1.16
--- patch-sum	2000/07/26 13:21:22
***************
*** 9,16 ****
  MD5 (patch-ag) = 46040c24e589e90ebf85efa5297431a1
  MD5 (patch-ah) = dbd55a3663beee3a52764c9624e2b2f6
  MD5 (patch-ai) = 1fccdc004b2cfc9becefe152092257a3
! MD5 (patch-aj) = ae690139225e326c88073e16ee7cf71e
! MD5 (patch-ak) = f33d9a0dfece3ad19a271a5b5a657e34
  MD5 (patch-al) = c09486e1df2ac8e817a79c64d99b4c76
  MD5 (patch-am) = 5cc3228a2d6d23e76ea22519157e5771
  MD5 (patch-an) = a23a065821615f8a28867e28e5a90a59
--- 9,16 ----
  MD5 (patch-ag) = 46040c24e589e90ebf85efa5297431a1
  MD5 (patch-ah) = dbd55a3663beee3a52764c9624e2b2f6
  MD5 (patch-ai) = 1fccdc004b2cfc9becefe152092257a3
! MD5 (patch-aj) = e52baf2c617f2476fe4773e5137265e0
! MD5 (patch-ak) = 30aa318bc0b0521df51ad82107e02ad4
  MD5 (patch-al) = c09486e1df2ac8e817a79c64d99b4c76
  MD5 (patch-am) = 5cc3228a2d6d23e76ea22519157e5771
  MD5 (patch-an) = a23a065821615f8a28867e28e5a90a59
Index: patches/patch-aj
===================================================================
RCS file: /cvsroot/pkgsrc/devel/mit-pthreads/patches/patch-aj,v
retrieving revision 1.8
diff -c -r1.8 patch-aj
*** patch-aj	1999/09/10 20:38:23	1.8
--- patch-aj	2000/07/26 13:21:23
***************
*** 6,12 ****
   name=$host_cpu-$host_os
   
   case $host in
! +    alpha-*-netbsd1.3[H-Z]|alpha-*-netbsd1.4*) 
  +	name=alpha-netbsd-1.3
  +	sysincludes=netbsd-1.1
  +	except="fork lseek pipe fstat"
--- 6,12 ----
   name=$host_cpu-$host_os
   
   case $host in
! +    alpha-*-netbsd1.3[H-Z]|alpha-*-netbsd1.[45]*) 
  +	name=alpha-netbsd-1.3
  +	sysincludes=netbsd-1.1
  +	except="fork lseek pipe fstat"
***************
*** 24,30 ****
   	  CFLAGS="$CFLAGS -std"
   	fi
   	;;
! +    arm32-*-netbsd1.3[H-Z]|arm32-*-netbsd1.4*)
  +	name=arm32-netbsd-1.3
  +	sysincludes=netbsd-1.1
  +	except="fork pipe lseek ftruncate fstat"
--- 24,30 ----
   	  CFLAGS="$CFLAGS -std"
   	fi
   	;;
! +    arm32-*-netbsd1.3[H-Z]|arm32-*-netbsd1.[45]*)
  +	name=arm32-netbsd-1.3
  +	sysincludes=netbsd-1.1
  +	except="fork pipe lseek ftruncate fstat"
***************
*** 42,48 ****
   EOF
   
   	;;
! +    sparc-*-netbsd1.3[H-Z]|sparc-*-netbsd1.4*)
  +	name=sparc-netbsd-1.3
  +	sysincludes=netbsd-1.1
  +	except="pipe fork lseek ftruncate fstat"
--- 42,48 ----
   EOF
   
   	;;
! +    sparc-*-netbsd1.3[H-Z]|sparc-*-netbsd1.[45]*)
  +	name=sparc-netbsd-1.3
  +	sysincludes=netbsd-1.1
  +	except="pipe fork lseek ftruncate fstat"
***************
*** 60,66 ****
           syscall=i386-bsdi-2.0
           except="fork lseek sigsuspend"
   		;;
! +    i386-*-netbsd1.3[H-Z]|i386-*-netbsd1.4*)
  +	name=i386-netbsd-1.3
  +	sysincludes=netbsd-1.1
  +	except="fork lseek ftruncate pipe fstat"
--- 60,66 ----
           syscall=i386-bsdi-2.0
           except="fork lseek sigsuspend"
   		;;
! +    i386-*-netbsd1.3[H-Z]|i386-*-netbsd1.[45]*)
  +	name=i386-netbsd-1.3
  +	sysincludes=netbsd-1.1
  +	except="fork lseek ftruncate pipe fstat"
***************
*** 79,85 ****
   	sysincludes=netbsd-0.9
   	;;
  -    m68*-*-netbsd*)
! +    m68*-*-netbsd1.3[H-Z]|m68*-*-netbsd1.4*)
   	name=m68000-netbsd
  +	sysincludes=netbsd-1.1
  +	except="lseek ftruncate pipe fstat"
--- 79,85 ----
   	sysincludes=netbsd-0.9
   	;;
  -    m68*-*-netbsd*)
! +    m68*-*-netbsd1.3[H-Z]|m68*-*-netbsd1.[45]*)
   	name=m68000-netbsd
  +	sysincludes=netbsd-1.1
  +	except="lseek ftruncate pipe fstat"
Index: patches/patch-ak
===================================================================
RCS file: /cvsroot/pkgsrc/devel/mit-pthreads/patches/patch-ak,v
retrieving revision 1.8
diff -c -r1.8 patch-ak
*** patch-ak	1999/09/10 20:38:23	1.8
--- patch-ak	2000/07/26 13:21:23
***************
*** 7,13 ****
   
   case $host in
  +changequote(,)dnl
! +    alpha-*-netbsd1.3[H-Z]|alpha-*-netbsd1.4*) 
  +	name=alpha-netbsd-1.3
  +	sysincludes=netbsd-1.1
  +	except="fork lseek pipe fstat"
--- 7,13 ----
   
   case $host in
  +changequote(,)dnl
! +    alpha-*-netbsd1.3[H-Z]|alpha-*-netbsd1.[45]*) 
  +	name=alpha-netbsd-1.3
  +	sysincludes=netbsd-1.1
  +	except="fork lseek pipe fstat"
***************
*** 27,33 ****
   	fi
   	;;
  +changequote(,)dnl
! +    arm32-*-netbsd1.3[H-Z]|arm32-*-netbsd1.4*)
  +	name=arm32-netbsd-1.3
  +	sysincludes=netbsd-1.1
  +	except="fork pipe lseek ftruncate fstat"
--- 27,33 ----
   	fi
   	;;
  +changequote(,)dnl
! +    arm32-*-netbsd1.3[H-Z]|arm32-*-netbsd1.[45]*)
  +	name=arm32-netbsd-1.3
  +	sysincludes=netbsd-1.1
  +	except="fork pipe lseek ftruncate fstat"
***************
*** 47,53 ****
   	AC_DEFINE(BROKEN_SIGNALS)
   	;;
  +changequote(,)dnl
! +    sparc-*-netbsd1.3[H-Z]|sparc-*-netbsd1.4*)
  +	name=sparc-netbsd-1.3
  +	sysincludes=netbsd-1.1
  +	except="pipe fork lseek ftruncate fstat"
--- 47,53 ----
   	AC_DEFINE(BROKEN_SIGNALS)
   	;;
  +changequote(,)dnl
! +    sparc-*-netbsd1.3[H-Z]|sparc-*-netbsd1.[45]*)
  +	name=sparc-netbsd-1.3
  +	sysincludes=netbsd-1.1
  +	except="pipe fork lseek ftruncate fstat"
***************
*** 67,73 ****
           except="fork lseek sigsuspend"
   		;;
  +changequote(,)dnl
! +    i386-*-netbsd1.3[H-Z]|i386-*-netbsd1.4*)
  +	name=i386-netbsd-1.3
  +	sysincludes=netbsd-1.1
  +	except="fork lseek ftruncate pipe fstat"
--- 67,73 ----
           except="fork lseek sigsuspend"
   		;;
  +changequote(,)dnl
! +    i386-*-netbsd1.3[H-Z]|i386-*-netbsd1.[45]*)
  +	name=i386-netbsd-1.3
  +	sysincludes=netbsd-1.1
  +	except="fork lseek ftruncate pipe fstat"
***************
*** 88,94 ****
   	;;
  -    m68*-*-netbsd*)
  +changequote(,)dnl
! +    m68*-*-netbsd1.3[H-Z]|m68*-*-netbsd1.4*)
   	name=m68000-netbsd
  +	sysincludes=netbsd-1.1
  +	except="lseek ftruncate pipe fstat"
--- 88,94 ----
   	;;
  -    m68*-*-netbsd*)
  +changequote(,)dnl
! +    m68*-*-netbsd1.3[H-Z]|m68*-*-netbsd1.[45]*)
   	name=m68000-netbsd
  +	sysincludes=netbsd-1.1
  +	except="lseek ftruncate pipe fstat"


>Release-Note:
>Audit-Trail:
>Unformatted: