Re: Bridging on Netra X1

"Tom \"spot\" Callaway" <[email protected]> Mon, 08 Dec 2008 18:19:39 -0500
Newsgroups gmane.linux.aurora.user
Organization Red Hat | Fedora
Message-ID <[email protected]>
On Mon, 2008-12-08 at 13:16 -0800, Gary W. Smith wrote:
> Spot,
>  
> Follow up question then.  Is there anything special I need to do to
> compile 64bit under sparc64 with 32bit userland?  Or is it just
> implied that anything compiled in that environment will default to
> 64bit?
>  
> I'm familair with compiling RPM's and know that if I create a 32bit
> chroot it defaults to 32bit even on x64 but I've never compiles
> anything on sparc.

Well, you need to be sure that you have 64bit versions of any libraries
that you want to link to. For bridge-utils, this would just be glibc.
There is a glibc.sparc64 rpm in all of the Aurora trees, just grab the
one that matches your Aurora install and manually install it (with -i,
not -U). You'll now have two glibc packages installed on your system,
the 32bit one and the 64bit one.

Now, if you run:

rpmbuild --rebuild --target sparc64 bridge-utils-*.src.rpm

It should rebuild cleanly and spit out a bridge-utils-*.sparc64.rpm.
Remove any 32 bit bridge-utils package that you have installed (rpm -e
bridge-utils) then install the new sparc64 rpm. See if that works
better. It may not. :/

~spot



_______________________________________________
Aurora-sparc-user mailing list
[email protected]
http://lists.auroralinux.org/mailman/listinfo/aurora-sparc-user
Aurora FAQ: http://www.ecs.soton.ac.uk/~mas01r/aurorafaq.html