Subject: pkg/23956: ...pkgsrc/archivers/arj has build problems on NetBSD/amd64
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rkr@olib.org>
List: netbsd-bugs
Date: 01/02/2004 21:42:50
>Number: 23956
>Category: pkg
>Synopsis: ...pkgsrc/archivers/arj has build problems on NetBSD/amd64
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jan 03 03:43:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:
>Release: NetBSD 1.6ZG
>Organization:
"I probably don't know what I'm talking about." http://www.olib.org/~rkr/
>Environment:
System: NetBSD socrates 1.6ZG NetBSD 1.6ZG (socrates) #1: Wed Dec 31 15:24:34 CST 2003 root@socrates:/usr/netbsd/current/src/sys/arch/amd64/compile/obj.amd64/socrates amd64
Architecture: x86_64
Machine: amd64
>Description:
The "arj" package does not build for me out of pkgsrc. It has
numerous warnings and at least one show-stopping error caused by
a missing "-fPIC" for some code.
Patches are included.
>How-To-Repeat:
Try to build "arj" from pkgsrc on my AMD64 box? (^&
"make >& log", "view log", search for "arning" and "rror".
>Fix:
The below patches remove the errors and all warnings. Some
warnings are nuissances (main() returns an int, not void;
the generated "c_defs.h" needs a trailing newline). Others
are more serious (pass the address of a 64-bit integer to
something looking for a {time_t *}; casting 64-bit pointers
to 32-bit integers).
Especially a second pair of eyes to check the changes
from "(unsigned int)ptr1 > (unsigned int)ptr2" to
"(ptr1 - ptr2) > 0" would be appreciated. The
code is making me cross-eyed, so I might have changed
> for < (or vice versa) in some places.
I think that the below are all necessary patches to eliminate
all warnings. (I know I have eliminated the warnings; I might
have forgot to make a ".orig" file for some of the patched
files.) Because there are so many modifications, I am including
the patches in a uuencoded .tar.gz archive. At least one patch
is a modification to an existing patchfile. Because I generated
the list automatically, the simplest thing was to include all
patches, including pre-existing changes, so this *should*
replace all arj patchfiles.
Two of the patches have some XXX comments; one is in a
makefile.in (the change may be port-sensitive), and another
is in a regular C file (the change questions a previous
comment and explains why the original code was wrong).
Lastly, the format of the patch: ./arj-patches/* is a
tree that mirrors the arj source tree. (Is there a nice
tool for generating the patch-?? sets? I used find/sed/awk/sh
to generate the patches in a one-off command.) The C patches
are in, e.g., "arj.c" for the arj.c file. There is a further
sub-dir for some of the GNU autoconfig stuff.
begin 644 arj-patches.tar.gz
M'XL("%PU]C\"`V%R:BUP871C:&5S+G1A<@#M7/]WVC@2[Z^;OT*;]KH0,+'-
MMX0TW5)"M^PED`>DV[TTS\^Q3>+&V)QE\N5Z_=]O1I*-L4V2]K7NW2U^>1&6
M1M+HVV=&HY%U_Z,TTP/CTJ)/OM<CRS6Y6:]#R)YDR'\WF\UZK2I7:U6(5U2Y
MVGQ2?Y+#,Z>![A/RQ/>\X#ZZFTO+<I[\WSWZ8ORW+??:]CVW8GSK\5=DN5&K
MK1I_I::HX?BKM0;&*]4FC+^\'O_O_DB21*)Q_TF%I2K)BB2K1)5;]7JKJE:B
M-4HDN2'+&Z52:9&CXOGV!693);DJJ4VB[+1DM57=265[]8I(]6JY24KL_ZM7
M&X0\M2?$M":V:YD%QW;GMT6(A%C7<.:F15[0.[IM>T;@5"Y?+J<PZNT)Q02)
M/+6<6$F:]L:WK->C`TTKDG__.Q;?MP(>O5&Z)T^:AYGNZ],4#Y@R]>9NP%.@
M0&JQ9JI-5<&&BI`UE<SH_LPJ*7OP^S.YN;0=J[`ULW[>_^6#_$MQ3W3&Z,U[
M[;#[KGNXO]\>_@XM(S3PC=E=P;1H4":;VW/J;\^N+K;/;7<;ENXFY"QE$L4(
MB&CK<N'P]@[Y6LY;P4QT<GM];\:PE;NBE;O1@&;3_SY<7=-'/UY5.![#+N0L
M/M`!OO5@%T0DX?@`'TAS*I^QGN<)KFE/-I[\)9\X_@>>J=]]<_1_$/_EAEI+
MX7]-KJ[Q/R?\%^,>1W^EUE)W5Z&_H(^P/YZIV5)JF=BO-!$LV'^$B@VRO46.
M=-LEOC</8,V3K6V(E6PW(%.(+N`/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