Subject: pkg/5618: libscsi fails to build on alpha.
To: None <gnats-bugs@gnats.netbsd.org>
From: Tim Rightnour <root@polaris.garbled.net>
List: netbsd-bugs
Date: 06/19/1998 01:03:25
>Number: 5618
>Category: pkg
>Synopsis: libscsi fails to build on alpha
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jun 19 01:05: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:
Due to a difference in machine/ansi.c regarding va_list (on my 1.3 i386
its defined *char, on the alpha its a structure) The libscsi pkg will not build.
The code in question tries to initialize a variable like so:
va_list ap=(va_list)0;
My change was to do:
va_list ap;
ap.__base=(char *)0;
(I ifdeffed it with __alpha__ so other ports wont break)
>How-To-Repeat:
yadda yadda yadda, you know the drill, build it on an alpha.
>Fix:
(per your request)
begin 644 patch-ac
M+2TM('-C<VDN8RYO<FEG"51H=2!*=6X@,3@@,C,Z-38Z,#8@,3DY.`HK*RL@
M<V-S:2YC"49R:2!*=6X@,3D@,#`Z-3(Z,SD@,3DY.`I`0"`M-#(L,B`K-#(L
M-2!`0`H@(VEN8VQU9&4@/&9C;G1L+F@^"BLC:69D968@7U].971"4T1?7PHK
M(VEN8VQU9&4@/&UA8VAI;F4O<W1D87)G+F@^"BLC96YD:68*(`I`0"`M,S8T
M+#,@*S,V-RPX($!`"B!["BLC:68@9&5F:6YE9"`H7U].971"4T1?7RD@)B8@
M9&5F:6YE9"`H7U]A;'!H85]?*0HK"79A7VQI<W0@87`["BL)87`N7U]B87-E
M(#T@*&-H87(@*BDP.PHK(V5L<V4*(`EV85]L:7-T(&%P(#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8VAA<B`J*3`[
M"BLC96QS90HK("`@("`@("!V85]L:7-T(&%P(#T@*'9A7VQI<W0I,#L**R-E
M;F1I9@H@"7)E='5R;B!D;U]E;F-O9&4H8G5F9BP@;&5N+"`P+`I`0"`M.#4Y
M+#,@*S@X-RPX($!`"B!["BT)=F%?;&ES="!A<"`]("AV85]L:7-T*3`["BLC
M:68@9&5F:6YE9"`H7U].971"4T1?7RD@)B8@9&5F:6YE9"`H7U]A;'!H85]?
M*0HK("`@("`@("!V85]L:7-T(&%P.PHK("`@("`@("!A<"Y?7V)A<V4@/2`H
M8VAA<B`J*3`["BLC96QS90HK("`@("`@("!V85]L:7-T(&%P(#T@*'9A7VQI
M<W0I,#L**R-E;F1I9@H@"7)E='5R;B!D;U]E;F-O9&4H<V-S:7)E<2T^9&%T
;86)U9BP@<V-S:7)E<2T^9&%T86QE;BP@,"P*
`
end
>Audit-Trail:
>Unformatted: