Re: Compiling Question

Brian E.W. Wood (beww@intac.com)
Tue, 23 Jul 1996 13:28:55 -0400 (EDT)

On Tue, 23 Jul 1996, Brian wrote:

> ***Warning--New guy to this list and even Alphas ;-)
>
> I've recently gotten the UDB alpha up with Craftworks Linux. I've tried
> to compile several packages which I'm using on my intel box. Samba is
> the highest on my list right now since I'm supposed to doing a
> demonstration this weekend.
> Is there any particular -D flags that should be added. I know when I'm
> compiling on the PPC platform with the powermac I use the -D__powerpc__
> flag which helps alot. I also notice a lot of error messages about
> integers being wrong and pointers.
>
You can save yourself a lot of time re-compiling packages by getting
the RedHat axp release. I am running Craftworks myself but I added
RPM to it and can now install RedHat's packages quite easily (samba
is one of these, there is an axp RPM package).

As good as Craftworks is, RedHat has a more complete library of
applications already compiled for the alpha, and their axp release is
well worth the nominal cost.

The errors you mention are due to the fact that on the intel platform
both integers and pointers are 32 bit, while on the Alpha an integer
is 32 bit and a pointer is 64 bit. Some of these may in fact be
warnings and not actual errors, and the programs may in fact run OK.
Others are real trouble. I ran into a problem with an initialized union
in mgetty which prevented compilation until David Mossberger-Tang came
up with a solution which relied on some extensions to gcc (Thanks again
David).

I got the book "Porting Unix Software" (O'Reilly & Assoc) and have
found it very useful in finding problems re-compiling programs for
the alpha platform.

Anyway, just my $0.02 from a "barely out of the newbie stage" user.

Brian E.W. Wood
beww@intac.com

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null



Feedback | Store | News | Support | Product Errata | About Us | Linux Info | Search | JumpWords
No Frames | Show Frames

Copyright © 1995-1997 Red Hat Software. Legal notices