Fedora Linux Support Community & Resources Center
Old 15th July 2004, 06:09 AM
Ka-Spel Offline
Registered User
Join Date: Jul 2004
Posts: 1
Developing 32 bit apps under FC2 x86_64

I just bought a dual processor Opteron a week or two ago and am still trying to get all the wrinkles worked out on it. I am trying to develop some software to run on it, but I am using some proprietary libraries that are only in i386 format. When I try to link those libraries in with the FC2 libraries such as TCL or Open Motif, it exits because they are incompatible. If it is a 32 bit app, then the TCL libraries can't be found. If it is 64 bit, then the proprietary libraries can't be found.

My question is, how does one setup a machine that would allow me to develop both 32bit and 64bit applications? I would need to have both 32bit and 64bit versions of most/all of the libraries, but that doesn't seem to be included with FC2. Do I have to install everything twice, by myself? And if I tried to do that, would the 32 bit and 64 bit rpms try to uninstall each other?

Reply With Quote
Old 15th July 2004, 07:03 AM
Bana Offline
Retired Community Manager
Join Date: Feb 2004
Location: Austin, Texas
Age: 30
Posts: 581
From http://www.linuxtx.org/amd64faq.html:
Can I develop for both x86_64 and i386 on the same machine?
Generally speaking, this should not be a problem just build with '-m32'. The way biarch works in theory, means that both 32bit and 64bit libs are installed concurrently (/lib and /lib64), and libtool helps to ensure that the right thing is done behind the scenes. In practice however this can get a bit messy, with some lib packages including arch specific bits in /etc or /usr/bin, resulting in rpm conflicts, and unexpected behavior. If you plan on doing a reasonable amount of biarch development, one solution I have been fairly happy with is setting up a dual boot. Once both arch are installed as listed, you can remain running in 64bit, and simply build in a chroot/setarch to your 32bit root. This also holds the advantage of having an option for playing 32bit 3D games when you need to blow off steam and 64bit versions are not available. In practice I really do not boot into 32bit mode, but the chroot does ensure I have everything I need for building 32bit packages if one of my 32bit machines are not available
I think it will help if you look into libtool as well for managing your libraries:
I notice some RPMS are installed twice, how do I handle multilib?
A few things of note here:
* rpm and yum both support name-version-release.arch so for installing foo-1.1-1 RPMs, you can explicitly call rpm -ivh foo-1.1-1.i386 foo-1.1-1.x86_64. You can also query and remove with this method. yum will default to the system architecture if given a choice, so to install say 32bit firefox where you have both 32bit and 64bit available in your repositories, you can call 'yum install firefox.i386' and it should do the right thing.

* At this time, apt is *not* biarch compatible, but I am told this is being addressed.

* libtool in Fedora releases is patched to handle multilib systems appropriatelyr. While this patch has been pushed upstream, it may not be in all distributions yet. If you are building an rpm or a tarball you may need to libtoolize, even if the libtool scripts are already there. Try without first, but if the build is looking for things in /*lib you might try the following before running configure (in %prep for rpm specs) as the easy fix:

libtoolize --force
aclocal --force
automake --add-missing
binarybana AT gmail.com
Reply With Quote
Old 4th January 2005, 05:47 AM
chadrico Offline
Registered User
Join Date: Jan 2005
Posts: 15
Could I use this method to run 32 bit NDiswrapper with my broadcom driver in a 64 bit enviroment?
HP Pavilion ZV5000Z
CPU : AMD_64 3700+
Kernel : 2.6.9-1.681_FC3 X86_64
NVIDIA GeForce 440 Go 64M
Broadcom 54G 802.11G
Reply With Quote
Old 25th August 2005, 11:08 PM
|znogooD Offline
Registered User
Join Date: Mar 2005
Posts: 6
I found the reason wky this did not work. lib-tools . You nees that to run 32bit programs! Thanks for all help
Reply With Quote

apps, bit, developing, fc2, x8664

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
updated FC6/i386 to F7/x86_64; now apps don't build mwette Using Fedora 2 25th August 2007 05:17 PM
Developing 'Flash apps' in Linux Thetargos Linux Chat 3 25th August 2007 06:55 AM
Developing 64 bit apps sharique Using Fedora 3 28th July 2007 07:07 PM
Apps Missing in FC5 x86_64 oshuaa Using Fedora 4 1st September 2006 01:11 PM
I want to start developing apps... v8s10blazer Programming & Packaging 3 8th March 2006 03:08 AM

Current GMT-time: 01:54 (Saturday, 19-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat