Add in pkg/lib/mkpkg.inc to every *FLAGS line the following: -m32, so it should look like:
$set XFLAGS = "$(XFLAGS) -p ifocas -m32"
$set XVFLAGS = "$(XVFLAGS) -p ifocas -m32"
$set LFLAGS = "$(LFLAGS) -p ifocas -m32"
(Ifocas is the used package in this example, but you catch my drift.)
Then in both pkg/src/mkpkg and pkg/mkpkg you add -m32 to each line starting with $link, i.e.:
$link x_focas.o libpkg.a -lc -o xx_focas.e -m32
(so, that's two files to be changed!!)
Finally, if it does not exist, create pkg/bin.redhat
Fix up the $hlib/external.pkg as usual...
Then as iraf user go into cl and type:
cd pkg$
mkpkg -p pkg
And it should compile.
If you have a normal makefile, i.e. you need to type something like make or make ALL, just add -m32 to all *FLAGS and it should compile.
Hope this helps all desperate people out there with 64bit machines. Make sure, of course, that you have always the 32bit libraries installed of everything ;)

Calendar



