Subject: pkg/5794: mit-pthreads does not build on alpha
To: None <gnats-bugs@gnats.netbsd.org>
From: Tim Rightnour <root@polaris.garbled.net>
List: netbsd-bugs
Date: 07/18/1998 06:54:02
>Number:         5794
>Category:       pkg
>Synopsis:       mit-pthreads does not build on alpha
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 18 06:35:00 1998
>Last-Modified:
>Originator:     Tim Rightnour
>Organization:
Tim Rightnour    -  root@garbled.net
http://www.zynetwc.com/~garbled/garbled.html
>Release:        6/10/98<NetBSD-current source date>
>Environment:
	
System: NetBSD polaris 1.3 NetBSD 1.3 (POLARIS) #0: Thu Mar 26 13:17:18 MST 1998 root@polaris:/usr/src/sys/arch/i386/compile/POLARIS i386


>Description:
mit-pthreads doesn't build on alpha.  The solution was simpler than I 
thought.  mysql uses it's own in-tree pthreads.  That one worked fine on 
alpha..  The trick was mainly porting over the changes made for alpha-1.3 
and a few other minor nits.  The build went flawless once all the right 
peices were in place.  The package then proceeded to pass all the tests 
it came with, so.. looks good to me!

Also: a note to others..  there is a framework in there for m68k and 
sparc.  Assembler looks like it is done.. Someone probably just needs to 
go and give it a shot. (I would, but I'm not patient enough for a build 
of this on my poor SS1)

	
>How-To-Repeat:
insert flange into widget alpha.
	
>Fix:
this is only known to work with the latest and greatest as.  There were 
some problems with the as from my 6/10 build.  The one in the latest 
snapshot is what I used, and the problems magicly went away.  No idea.

The below is a tar of the patches directory, which should completely 
replace the one there now.  I broke apart a all-in-one style patch while 
I was in there.. (had to to get at one of the patches)

begin 644 pth.tar.gz
M'XL(")2FL#4"`W!T:"YT87(`[#W[5^.VTONK^2M4^DI"$FSG!<GE=BE+6^X"
MRP':>WO:'A_'5A(OCNVU'1[=\OWMW\Q(=OQ(V-`ML.W!VR:Q-"-I1J/1/&03
MF+$UX='FBP>\6%OM]3KL!<-++7S+&];M=-J:UFWUVHQI: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