[pocket-linux] Copying libraries

David Horton dhorton at speakeasy.net
Tue Apr 6 20:35:42 CDT 2004


Troy Yee wrote:
> Please forgive me if this is answered somewhere in the archive...
> I didn't see a way to search it.
> 
> Although there appears to be an effort to ensure that the
> packages compiled are compatible with all x86 platforms,
> in Chapter 3, we start copying libraries from the host
> system.  What caveats should one be aware of when doing this?
> I'm building on modern machines (SuSE 8.2, i686+) with the
> intent of putting the results on an old 486SX laptop.  Actually,
> I've already completed all of the activities (so far without problems)
> excluding the Appendix.  I'm now looking at building up
> the system to get a basic road-worthy tool.  I want to know
> if I can safely continue to use the same techniques used in the
> guide for satisfying library requirements for future packages.
> 
> Assuming the answer is no, how can I determine which ones can be
> copied and which ones need to be built from source?
> 
> Troy
> 
> (P.S.  I've seen that David has a project building on the
> basic Pocket-Linux but haven't been able to access the
> home page to date (site always seems to be down)... is this
> issue covered there?)
> 
> 

I think the library copying technique should work if your distribution's 
libraries are built for i386 architecture.  I have used Redhat and 
Slackware and I believe they both have i386 libraries.  Redhat has i686 
libraries as well, but they are in a separate /lib/i686 directory.  If 
you want to be absolutely sure that your libraries are compatible with 
your architecture you can build them from source.  It really isn't any 
harder than building any other package, but it sure takes a long time.

If you want to build the libraries (or any of the other basic packages) 
I have a project called "The GNU/Linux System Architect" that can 
automate the building tasks.  Basically you type 'architect glibc-2.3.2' 
and after some time you get a binary package called 
'glibc-2.3.2.i386.tar.gz'.  It also builds many other system packages. 
You can get Architect at SourceForge.  The home page is 
http://architect.sourceforge.net.

Good luck building your laptop.

Dave




More information about the Pocket-Linux mailing list