OSDN Git Service

add an entry about gnu malloc compat option
[uclinux-h8/uClibc.git] / docs / uclibc.org / FAQ.html
index 98f1b94..d129089 100644 (file)
@@ -1,75 +1,63 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> 
+<!--#include file="header.html" -->
 
-<HTML>
-<HEAD>
-    <TITLE>uClibc FAQ-- a C library for embedded systems</TITLE>
-</HEAD>
 
-<body text="#000000" alink="#660000" link="#660000" bgcolor="#dee2de" vlink="#660000">
+<h3>Frequently Asked Questions</h3>
 
-<basefont face="lucida, helvetica, arial" size="3">
-
-
-<CENTER>
-<p>
-
-<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=2>
-    <TR>
-       <td bgcolor="#000000">
-         <FONT FACE="lucida, helvetica" COLOR="#ccccc0">
-             <B>µ&nbsp;C&nbsp;l&nbsp;i&nbsp;b&nbsp;c</B>
-         </FONT>
-       </TD>
-    </TR>
-</TABLE>
-<p>
-
-
-<!-- Begin NOT Working List -->
-
-
-<TABLE WIDTH=95% CELLSPACING=1 CELLPADDING=4 BORDER=1>
-<TR><TD BGCOLOR="#ccccc0" ALIGN=center>
-    <A NAME="notworking"> <BIG><B>
-               uClibc Frequently Asked Questions (FAQ)
-    </font>
-    </A></B></BIG>
-</TD></TR>
-<TR><TD BGCOLOR="#eeeee0">
-
-<p> 
-This is a collection of some of the frequently asked questions
+This is a collection of some of the most frequently asked questions
 about uClibc.  Some of the questions even have answers. If you
 have additions to this FAQ document, we would love to add them,
-<br>
-When you are done, <a href="http://uclibc.org/">you can click here to return 
-to the uClibc home page.</a>
 
+<ol>
+<li><a href="#naming">Why is it called uClibc?</a>
+<li><a href="#platforms">What platforms does uClibc run on?</a>
+<li><a href="#why">Why are you doing this?  What's wrong with glibc?</a>
+<li><a href="#doesnt_suck">So uClibc is smaller then glibc?  Doesn't that mean it
+       completely sucks?  How could it be smaller and not suck?</a>
+<li><a href="#why_should_i">Why should I use uClibc?</a>
+<li><a href="#licensing">If I use uClibc, do I have to release all my source code to the world for
+       free?  I want to create a closed source commercial application and I want
+       to protect my intellectual property.</a>
+<li><a href="#development">Can I use it on my x86 development system?</a>
+<li><a href="#shared"> Does uClibc support shared libraries?</a>
+<li><a href="#compiling">How do I compile programs with uClibc?</a>
+<li><a href="#toolchain">Do I really need to build a uClibc toolchain?</a>
+<li><a href="#wrapper">What happened to the old toolchain wrapper?</a>
+<li><a href="#dev_systems">Is a pre-compiled uClibc development system available?</a>
+<li><a href="#bugs">I think I found a bug in uClibc!  What should I do?!</a>
+<li><a href="#miscompile">My package builds fine but link fails with errors like "undefined reference 
+       to __fputc_unlocked", who do I blame?!</a>
+<li><a href="#gnu_malloc">My package builds fine but link fails with errors like "undefined reference
+       to rpl_realloc / rpl_malloc", who do I blame?!</a>
+<li><a href="#job_control">Why do I keep getting "sh: can't access tty; job control
+       turned off" errors?  Why doesn't Control-C work within my shell?</a>
+<li><a href="#autoconf">How do I make autoconf and automake behave?</a>
+<li><a href="#ldd">When I run 'ldd' to get a list of the library dependencies
+       for a uClibc binary, ldd segfaults!  What should I do?</a>
+<li><a href="#timezones">Why does localtime() return times in UTC even when I have my timezone set?</a>
+<li><a href="#history">What is the history of uClibc?  Where did it come from?</a>
+<li><a href="#demanding">I demand that you to add &lt;favorite feature&gt; right now!   How come
+       you don't answer all my questions on the mailing list instantly?  I demand
+       that you help me with all of my problems <em>Right Now</em>!</a>
+<li><a href="#helpme">I need help with uClibc!  What should I do?</a>
+<li><a href="#contracts">I need you to add &lt;favorite feature&gt;!  Are the uClibc developers willing to
+       be paid in order to fix bugs or add in &lt;favorite feature&gt;?  Are you willing to provide
+       support contracts?</a>
+<li><a href="#support">I think you guys are great and I want to help support your work!</a>
+
+
+</ol>
+
+
+<hr />
 <p>
-<TR><TD BGCOLOR="#ccccc0" ALIGN=left>
-    <B>
-    What platforms does uClibc run on?
-    </B>
-</TD></TR>
-<TR><TD BGCOLOR="#eeeee0">
-
-    Currently uClibc runs on alpha, ARM, cris, i386, i960, h8300, 
-    m68k, mips/mipsel, PowerPC, SH, SPARC, and v850 processors.
-    
-
+<h2><a name="naming">Why is it called uClibc?</a></h2>
 <p>
-<TR><TD BGCOLOR="#ccccc0" ALIGN=left>
-    <B>
-    Why is it called uClibc?
-    </B>
-</TD></TR>
-<TR><TD BGCOLOR="#eeeee0">
 
     The letter 'u' is short for µ (the greek letter "mu").  µ is commonly used
     as the abbreviation for the word "micro".  The capital "C" is short for
     "controller".  So the name uClibc is sortof an abbreviation for "the
     microcontroller C library".  For simplicity, uClibc is pronounced
-    "yew-see-lib-see".  
+    "yew-see-lib-see".
     <p>
     The name is partly historical, since uClibc was originally
     created to support <a href="http://www.uclinux.org">µClinux</a>, a port of
@@ -77,13 +65,20 @@ to the uClibc home page.</a>
     ARM7TDMI.  These days, uClibc also works just fine on normal Linux systems
     (such as i386, ARM, and PowerPC), but we couldn't think of a better name.
 
+<hr />
+<p>
+<h2><a name="platforms">What platforms does uClibc run on?</a></h2>
+<p>
+
+
+    Currently uClibc runs on alpha, ARM, cris, i386, i960, h8300,
+    m68k, mips/mipsel, PowerPC, SH, SPARC, and v850 processors.
+
+
+<hr />
+<p>
+<h2><a name="why">Why are you doing this?  What's wrong with glibc?</a></h2>
 <p>
-<TR><TD BGCOLOR="#ccccc0" ALIGN=left>
-    <B>
-    Why are you doing this?  What's wrong with glibc?
-    </B>
-</TD></TR>
-<TR><TD BGCOLOR="#eeeee0">
 
     Initially, the project began since the GNU C library lacked support for
     MMU-less systems, and because glibc is very large.  The GNU C library is
@@ -100,14 +95,12 @@ to the uClibc home page.</a>
 
 
 
+<hr />
+<p>
+<h2><a name="doesnt_suck">So uClibc is smaller then glibc?  Doesn't that mean it completely sucks?
+How could it be smaller and not suck?</a></h2>
+<p>
 <p>
-<TR><TD BGCOLOR="#ccccc0" ALIGN=left>
-    <B>
-    So uClibc is smaller then glibc?  Doesn't that mean it completely sucks?
-    How could it be smaller and not suck?
-    </B>
-</TD></TR>
-<TR><TD BGCOLOR="#eeeee0">
 
     uClibc and glibc have different goals.  glibc strives for features
     and performance, and is targeted for desktops and servers with
@@ -126,13 +119,13 @@ to the uClibc home page.</a>
 
     <p>
 
-    In other cases, uClibc
-    leaves certain features (such as full C99 Math library support, wordexp, 
-    IPV6, and RPC support) disabled by default.  Those features can be enabled 
-    for people that need them, but are otherwise disabled to save space.
+    In other cases, uClibc leaves certain features (such as full C99 Math
+    library support, wordexp, IPV6, and RPC support) disabled by default.
+    Those features can be enabled for people that need them, but are otherwise
+    disabled to save space.
 
     <p>
-    
+
     Some of the space savings in uClibc is obtained at the cost of performance,
     and some is due to sacrificing features.  Much of it comes from aggressive
     refactoring of code to eliminate redundancy.  In regards to locale data,
@@ -150,15 +143,11 @@ to the uClibc home page.</a>
     throw at it, that looks like glibc to application programs when you
     compile, and is many times smaller.
 
-    
 
+<hr />
+<p>
+<h2><a name="why_should_i">Why should I use uClibc?</a></h2>
 <p>
-<TR><TD BGCOLOR="#ccccc0" ALIGN=left>
-    <B>
-    Why should I use uClibc?
-    </B>
-</TD></TR>
-<TR><TD BGCOLOR="#eeeee0">
 
     I don't know if you should use uClibc or not.  It depends on your needs.
     If you are building an embedded Linux system and you are tight on space, then
@@ -175,15 +164,12 @@ to the uClibc home page.</a>
 
 
 
+<hr />
+<p>
+<h2><a name="licensing">If I use uClibc, do I have to release all my source code to the world for
+       free?  I want to create a closed source commercial application and I want
+       to protect my intellectual property.</a></h2>
 <p>
-<TR><TD BGCOLOR="#ccccc0" ALIGN=left>
-    <B>
-    If I use uClibc, do I have to release all my source code to the world for
-    free?  I want to create a closed source commercial application and I want
-    to protect my intellectual property.  
-    </B>
-</TD></TR>
-<TR><TD BGCOLOR="#eeeee0">
 
     No, you do not need to give away your application source code just because
     you use uClibc and/or run on Linux.  uClibc is licensed under the <a
@@ -210,13 +196,10 @@ to the uClibc home page.</a>
     those you gave the fully linked application.
 
 
+<hr />
+<p>
+<h2><a name="development">Can I use it on my x86 development system?</a></h2>
 <p>
-<TR><TD BGCOLOR="#ccccc0" ALIGN=left>
-    <B>
-    Can I use it on my x86 development system?
-    </B>
-</TD></TR>
-<TR><TD BGCOLOR="#eeeee0">
 
     Sure!  In fact, this can be very nice during development.  By
     installing uClibc on your development system, you can be sure that
@@ -225,70 +208,219 @@ to the uClibc home page.</a>
 
 
 
+<hr />
+<p>
+<h2><a name="shared"> Does uClibc support shared libraries?</a></h2>
 <p>
-<TR><TD BGCOLOR="#ccccc0" ALIGN=left>
-    <B>
-    Does uClibc support shared libraries?
-    </B>
-</TD></TR>
-<TR><TD BGCOLOR="#eeeee0">
-    
-    Yes.  uClibc has native shared library support on i386, ARM, mips, 
+
+    Yes.  uClibc has native shared library support on i386, ARM, mips,
     SH, CRIS, and PowerPC processors.  Other architectures can use shared
     libraries but will need to use the GNU libc shared library loader.
     <p>
-    Shared Libraries are not currently supported by uClibc on MMU-less systems.  
+    Shared Libraries are not currently supported by uClibc on MMU-less systems.
     <a href="http://www.snapgear.com/">SnapGear</a> has implemented
-    shared library support for MMU-less systems, however, so if you need MMU-less 
+    shared library support for MMU-less systems, however, so if you need MMU-less
     shared library support they may be able to help.
 
 
+<hr />
+<p>
+<h2><a name="compiling">How do I compile programs with uClibc?</a></h2>
+<p>
+
+    You will need to have your own uClibc toolchain.  A toolchain consists
+    of <a href="http://sources.redhat.com/binutils/">GNU binutils</a>,
+    <a href="http://gcc.gnu.org/">the gcc compiler</a>, and uClibc, all
+    built to produce binaries for your target system linked with uClibc.
+    You can build your own native uClibc toolchain using the
+    <a href="http://buildroot.uclibc.org/">uClibc buildroot system</a>.
+
+    <p>
+    To build your own uClibc toolchain, follow the following simple
+    steps:
+    <ul>
+       <li> Point your web browser <a href="http://buildroot.uclibc.org/">here</a>,
+       <li> Download of copy of buildroot
+       <li> Unpack the tarball on your Linux system somewhere
+       <li> Edit the Makefile as needed if you wish to change anything.
+       <li> run 'unset CC'.   Then run 'unset CXX'.  Some Linux systems
+           (i.e. Gentoo) set variables such as 'CC' in the system environment
+           which really messes things up when cross compiling.
+       <li> run 'make menuconfig'
+       <li> Select the things you want to build.  If you <em>only</em> want a
+           toolchain, leave everything except the toolchain disabled.
+       <li> save your buildroot configuration.
+       <li> run 'make'
+       <li> go eat a nice wholesome sandwich, drink a pop, call a friend,
+           play a video game, and generally find something to do.  While you
+           are waiting, buildroot will download all the needed source code and
+           then compile things up for you.
+       <li> You should now have a shiny new toolchain, and maybe even a shiny
+           new uClibc based root filesystem or development system, depending on
+           the options you selected.
+    </ul>
+
+<hr />
+<p>
+<h2><a name="toolchain">Do I really need to build a uClibc toolchain?</h2>
+<p>
+
+    Yes, you really do need to build a toolchain to produce uClibc binaries.
+    We used to provide a toolchain wrapper, but that has been removed due to
+    numerous problems.  The uClibc developers have gone to a lot of trouble
+    to produce the
+    <a href="http://buildroot.uclibc.org/">uClibc buildroot system</a>,
+    which makes it easy to build your own uClibc toolchain and/or an initial
+    uClibc based system.
+
+    <p>
+    Feel free to take the gcc and binutils patches we provide and use them in
+    your own toolchain build system.  If you choose to use your own toolchain
+    build system, you will need to use these patches since the upstream GNU
+    binutils and gcc releases do not currently have full support for building a
+    uClibc toolchain.
+
+
+<hr />
+<p>
+<h2><a name="wrapper">What happened to the old toolchain wrapper?</h2>
+<p>
+
+    It is possible in some limited cases to re-use an existing glibc toolchain
+    and subvert it into building uClibc binaries by using gcc commands such as
+    "-nostdlib" and "-nostdinc".   In fact, this used to be the recommended
+    method for compiling programs with uClibc, and we made this easy to do by
+    providing a uClibc toolchain wrapper, which attempted to automagically subvert
+    an existing glibc toolchain.
+
+    <p>
+
+    This toolchain wrapper was removed from uClibc 0.9.22, and it will not be
+    coming back.  This is because it proved impossible to completely subvert an
+    existing toolchain in many cases, and therefore proved to be a real
+    maintainence burder.  As uClibc became more capable, the many problems with
+    re-using an existing glibc toolchain led us to conclude that the only safe
+    and sane way to build uClibc binaries was to use a uClibc toolchain.
+
+    <p>
+
+    Some discussion on the reasoning behind this decision can be found here:
+    <a href="http://www.uclibc.org/lists/uclibc/2003-October/007315.html">
+    http://www.uclibc.org/lists/uclibc/2003-October/007315.html</a>
+    in the uClibc mailing list archives.
+
+<hr />
+<p>
+<h2><a name="dev_systems">Is a pre-compiled uClibc development system available?</a></h2>
 <p>
-<TR><TD BGCOLOR="#ccccc0" ALIGN=left>
-    <B>
-    How do I compile programs with uClibc?
-    </B>
-</TD></TR>
-<TR><TD BGCOLOR="#eeeee0">
 
-    You will need to have your own uClibc toolchain (i.e. GNU binutils and
-    gcc configured to produce binaries linked with uClibc).
-    You can build your own native uClibc toolchain using the uClibc
-    toolchain builder from 
-    <a href="/cgi-bin/cvsweb/toolchain/">uClibc toolchain builder</a>,
-    or the uClibc buildroot system from
-    <a href="/cgi-bin/cvsweb/buildroot/">uClibc buildroot system</a>.
-    Simply adjust the Makefile settings to match your target system,
-    and then run 'make'.
+    If you want to be <em>really</em> lazy and start using uClibc right away
+    without needing to compile your own toolchain or anything, you can grab a
+    pre-compiled uClibc development system.  These are currently available for
+
+    <a href="http://www.uclibc.org/downloads/root_fs_arm.ext2.bz2">arm</a>,
+    <a href="http://www.uclibc.org/downloads/root_fs_armeb.ext2.bz2">armeb</a>,
+    <a href="http://www.uclibc.org/downloads/root_fs_i386.ext2.bz2">i386</a>,
+    <a href="http://www.uclibc.org/downloads/root_fs_mips.ext2.bz2">mips</a>,
+    <a href="http://www.uclibc.org/downloads/root_fs_mipsel.ext2.bz2">mipsel</a>,
+    <a href="http://www.uclibc.org/downloads/root_fs_powerpc.ext2.bz2">powerpc</a>, and
+    <a href="http://www.uclibc.org/downloads/root_fs_sh4.ext2.bz2">sh4</a>.
+
+    <p>
+
+    These are bzip2 compressed ext2 filesystems containing all the development
+    software you need to build your own uClibc applications, including: bash, awk,
+    make, gcc, g++, autoconf, automake, ncurses, zlib, openssl, openssh, gdb,
+    strace, busybox, GNU coreutils, GNU tar, GNU grep, etc.
+
+    <p>
+
+    Each of these uClibc development systems was created using
+    <a href="http://buildroot.uclibc.org/">buildroot</a>, specifically,
+    <a href="http://www.uclibc.org/downloads/buildroot.tar.bz2">buildroot.tar.bz2</a>
+    along with <a href="http://www.uclibc.org/downloads/buildroot-sources">these sources</a>.
+
+    <p>
+
+    These development systems should provide pretty much everything you need to get
+    started building your own applications with uClibc.  Once you download one of
+    these systems, you can then boot into it, loop mount it, dd it to a spare drive
+    and use a tool such as resize2fs to make it fill a partition...  Whatever works
+    best for you.
+
+    <p>
+    The quickest way to get started using a root_fs image (using the i386
+    platform as an example) is:
+    <ul>
+       <li>Download root_fs_i386.bz2 from uclibc.org</li>
+       <li>bunzip2 root_fs_i386.bz2</li>
+       <li>mkdir root_fs</li>
+       <li>su root</li>
+       <li>mount -o loop root_fs_i386 root_fs</li>
+       <li>chroot root_fs /bin/su -</li>
+    </ul>
+    Type "exit" to end the chroot session and return to the host system.
     <p>
-    If you want to be <em>really</em> lazy and start using uClibc right
-    away without needing to compile your own toolchain or anything, you can
-    grab a copy of the uClibc development systems, currently available for
-    <a href="http://www.kernel.org/pub/linux/libs/uclibc/root_fs_i386.bz2">i386</a>,
-    <a href="http://www.kernel.org/pub/linux/libs/uclibc/root_fs_powerpc.bz2">powerpc</a>,
-    <a href="http://www.kernel.org/pub/linux/libs/uclibc/root_fs_mipsel.bz2">mipsel</a>,
-    and
-    <a href="http://www.kernel.org/pub/linux/libs/uclibc/root_fs_arm.bz2">arm</a>.
-    These are pre-built uClibc only development systems (created using 
-    <a href="/cgi-bin/cvsweb/buildroot/">buildroot</a>), and provide a 
-    really really easy way to get started.  These are about bzip2 compressed
-    ext2 filesystems containing all the development software you need to build
-    your own uClibc applications.  With bash, awk, make, gcc, g++, autoconf,
-    automake, ncurses, zlib, openssl, openssh, gdb, strace, busybox, GNU
-    coreutils, GNU tar, GNU grep, etc, these should have pretty much everything
-    you need to get started building your own applications linked against
-    uClibc.  You can boot into them, loop mount them, dd them to a spare drive
-    and use resize2fs to make them fill a partition...  Whatever works best for
-    you.
-
-<p>
-<TR><TD BGCOLOR="#ccccc0" ALIGN=left>
-    <B>
-    Why do I keep getting "sh: can't access tty; job control turned off" errors?
-    Why doesn't Control-C work within my shell?
-    </B>
-</TD></TR>
-<TR><TD BGCOLOR="#eeeee0">
+
+
+
+<hr />
+<p>
+<h2><a name="bugs">I think I found a bug in uClibc!  What should I do?</h2>
+<p>
+
+    If you find a problem with uClibc, please submit a detailed bug report to
+    the uClibc mailing list at <a href="mailto:uclibc@mail.uclibc.org">
+    uclibc@mail.uclibc.org</a>.  Please do not send private email to Erik
+    (the maintainer of uClibc) asking for private help unless you are planning
+    on paying for consulting services.  When we answer questions on the uClibc
+    mailing list, it helps everyone, while private answers help only you...
+
+    A well-written bug report should include an example that demonstrates the
+    problem behaviors and enables anyone else to duplicate the bug on their own
+    machine.  For larger applications where it may prove difficult to provide
+    an example application, we recommend that you use a tool such as gdb,
+    strace, ltrace, and or valgrind to create a logfile showing the problem
+    behavior.
+
+
+<hr />
+<p>
+<h2><a name="miscompile">My package builds fine but link fails with errors like 
+       "undefined reference to __fputc_unlocked", who do I blame?!</h2>
+<p>
+
+    This error crops up when a build system mixes system headers (say glibc) 
+    with the target headers (say uClibc).  Make sure your build system is not 
+    including extraneous include options (-I) and double check that it is using 
+    the correct compiler.  Many build systems incorrectly force things like 
+    -I/usr/include or -I/usr/local/include or -I${prefix}/include (which usually 
+    just expands to -I/usr/include).
+
+
+<hr />
+<p>
+<h2><a name="gnu_malloc">My package builds fine but link fails with errors like "undefined reference
+       to rpl_realloc / rpl_malloc", who do I blame?!</h2>
+<p>
+
+    This error crops up because you didn't enable MALLOC_GLIBC_COMPAT support.
+    Configure scripts detect whether your libc supports "GNU malloc" features by
+    seeing whether malloc(0) returns NULL (glibc malloc(0) will return a non NULL
+    pointer).  uClibc defaults to malloc(0) returning NULL so autoconf will assume
+    malloc from your libc sucks and procede to try and compile the malloc replacement
+    version in the gnulib addon.  However, since not many packages include gnulib,
+    they will fail to link with rpl_realloc / rpl_malloc errors.  You could force
+    configure to assume working behavior by exporting the variables 'jm_cv_func_working_malloc'
+    (older autoconf) and 'ac_cv_func_malloc_0_nonnull' (newer autoconf) to 'yes'
+    before running `./configure`.
+
+
+<hr />
+<p>
+<h2><a name="job_control">Why do I keep getting "sh: can't access tty; job control
+       turned off" errors?  Why doesn't Control-C work within my shell?</a></h2>
+<p>
 
     This isn't really a uClibc question, but I'll answer it here anyways.  Job
     control will be turned off since your shell can not obtain a controlling
@@ -302,13 +434,10 @@ to the uClibc home page.</a>
     run your shell on a real console...
 
 
+<hr />
+<p>
+<h2><a name="autoconf">How do I make autoconf and automake behave?</a></h2>
 <p>
-<TR><TD BGCOLOR="#ccccc0" ALIGN=left>
-    <B>
-    How do I make autoconf and automake behave?
-    </B>
-</TD></TR>
-<TR><TD BGCOLOR="#eeeee0">
 
     When you are cross-compiling, autoconf and automake are known to behave
     badly.  This is because a large number of configure scripts (such as the
@@ -319,32 +448,30 @@ to the uClibc home page.</a>
     configure scripts.
 
 
+<hr />
 <p>
-<TR><TD BGCOLOR="#ccccc0" ALIGN=left>
-    <B>
-    When I run 'ldd' to get a list of the library dependencies for a uClibc
-    binary, ldd segfaults!  What should I do?
-    </B>
-</TD></TR>
-<TR><TD BGCOLOR="#eeeee0">
+<h2><a name="ldd">When I run 'ldd' to get a list of the library dependencies
+       for a uClibc binary, ldd segfaults!  What should I do?</a></h2>
+<p>
+
+    Use the ldd that is built by uClibc, not your system's one.  You can build
+    uClibc'd ldd for your host system by going into the uClibc/utils/ directory
+    in the uClibc source and running 'make ldd.host'.
+    <p>
 
-    Use the ldd that is built by uClibc, not your system's one.  When your
-    system's ldd looks for library dependencies, it actually _runs_ that
-    program.  This works fine -- usually.  It generally will not work at all 
-    when you have been cross compiling (which is why ldd segfaults).  The ldd
-    program created by uClibc is cross platform and doesn't even try to run
-    the target program (like your system one does).  So use the uClibc one
-    and it will do the right thing, and it won't segfault even when you are
-    cross compiling.
+    When your system's ldd looks for library dependencies, it actually _runs_
+    that program.  This works fine -- usually.  It generally will not work at
+    all when you have been cross compiling (which is why ldd segfaults).  The
+    ldd program created by uClibc is cross platform and doesn't mind at all if
+    it cannot execute the target program.  If you use the uClibc version of
+    'ldd', it will do the right thing and produce correct results, even when it
+    is used on cross compiled binaries.
 
 
+<hr />
+<p>
+<h2><a name="timezones">Why does localtime() return times in UTC even when I have my timezone set?</a></h2>
 <p>
-<TR><TD BGCOLOR="#ccccc0" ALIGN=left>
-    <B>
-    Why does localtime() return times in UTC even when I have my timezone set?
-    </B>
-</TD></TR>
-<TR><TD BGCOLOR="#eeeee0">
 
 
     The uClibc time functions get timezone information from the TZ environment
@@ -352,57 +479,54 @@ to the uClibc home page.</a>
      <a href="http://www.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap08.html">
     http://www.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap08.html</a>
     for details on valid settings of TZ.  For some additional examples, read
-    <a href="http://www.uclibc.org/lists/uclibc/2002-August/006261.html">
-    http://www.uclibc.org/lists/uclibc/2002-August/006261.html</a> in the uClibc
+    <a href="http://www.uclibc.org/lists/uclibc/2002-August/004010.html">
+    http://www.uclibc.org/lists/uclibc/2002-August/004010.html</a> in the uClibc
     mailing list archive.
     You can store the value of TZ in the file '/etc/TZ' and uClibc will then
     automagically use the specified setting.
 
 
+<hr />
+<p>
+<h2><a name="history">What is the history of uClibc?  Where did it come from?</a></h2>
 <p>
-<TR><TD BGCOLOR="#ccccc0" ALIGN=left>
-    <B>
-    What is the history of uClibc?  Where did it come from?
-    </B>
-</TD></TR>
-<TR><TD BGCOLOR="#eeeee0">
-
-    The history and origin of uClibc is long and twisty.
-    In the beginning, there was <a href="http://www.gnu.org/software/libc/libc.html">GNU libc</a>.  Then, libc4
-    (which later became linux libc 5) forked from GNU libc version 1.07.4, with
-    additions from 4.4BSD, in order to support Linux.  Later, the <a
-    href="http://www.cix.co.uk/~mayday/">Linux-8086 C library</a>, which is part of
-    the <a href="http://www.elks.ecs.soton.ac.uk/">elks project</a>, was created,
-    which was, apparently, largely written from scratch but also borrowed code from
-    libc4, glibc, some Atari library code, with bits and pieces from about 20 other
-    places.  Then uClibc forked off from the Linux-8086 C library in order to run
-    on <a href="http://www.uclinux.org">µClinux</a>.
+
+
+    uClibc started off as a fork on the <a
+    href="http://www.cix.co.uk/~mayday/">Linux-8086 C library</a>, which is
+    part of the <a href="http://www.elks.ecs.soton.ac.uk/">elks project</a>.
+    The Linux-8086 C library was, apparently, largely written from scratch but
+    also borrowed code from libc4, glibc, some Atari library code, with bits
+    and pieces from about 20 other places.
+
     <p>
 
     I had for some time been despairing over the state of C libraries in Linux.
-    GNU libc, the standard, is very poorly suited to embedded systems and
-    has been getting bigger with every release.  I spent quite a bit of time looking over the
-    available Open Source C libraries that I knew of, and none of them really
-    impressed me.  I felt there was a real vacancy in the embedded Linux ecology.
-    The closest library to what I imagined an embedded C library should be was
-    uClibc.  But it had a lot of problems too -- not the least of which was that,
-    traditionally, uClibc required a complete source tree fork in order to support
-    each and every new platform.  This resulted in a big mess of twisty versions,
-    all different.  I decided to fix it and the result is what you see here.
+    GNU libc, the standard, is very poorly suited to embedded systems and has
+    been getting bigger with every release.  I spent quite a bit of time
+    looking over the available Open Source C libraries that I knew of, and none
+    of them really impressed me.  I felt there was a real vacancy in the
+    embedded Linux ecology.  The closest library to what I imagined an embedded
+    C library should be was uClibc.  But it had a lot of problems too -- not
+    the least of which was that, traditionally, uClibc required a complete
+    source tree fork in order to support each and every new platform.  This
+    resulted in a big mess of twisty versions, all different.  I decided to fix
+    it and the result is what you see here.
 
     <p>
 
     To start with, (with some initial help from <a
-    href="http://www.uclinux.org/developers/">D. Jeff Dionne</a>), I
-    ported uClibc to run on i386.  I then grafted in the header files from glibc
-    and cleaned up the resulting breakage.  This (plus some additional work) has
-    made it much less dependant on kernel headers, a large departure from
-    its traditional tightly-coupled-to-the-kernel origins.  I have written and/or
-    rewritten a number of things that were missing or broken, and sometimes grafted
-    in bits of code from the current glibc and libc5.  I have also added a proper
-    configuration system which allows you to easily select your target architecture
-    and enable and disable various features.  Many people have helped by testing,
-    contributing ports to new architectures, and adding support for missing features.
+    href="http://www.uclinux.org/developers/">D. Jeff Dionne</a>), I ported
+    uClibc to run on i386.  I then grafted in the header files from glibc and
+    cleaned up the resulting breakage.  This (plus some additional work) has
+    made it much less dependant on kernel headers, a large departure from its
+    traditional tightly-coupled-to-the-kernel origins.  I have written and/or
+    rewritten a number of things that were missing or broken, and sometimes
+    grafted in bits of code from the current glibc and libc5.  I have also
+    added a proper configuration system which allows you to easily select your
+    target architecture and enable and disable various features.  Many people
+    have helped by testing, contributing ports to new architectures, and adding
+    support for missing features.
 
     <p>
 
@@ -414,22 +538,19 @@ to the uClibc home page.</a>
 
     <p>
 
-    These days, uClibc is being developed and enhanced by Erik Andersen 
+    These days, uClibc is being developed and enhanced by Erik Andersen
     and Manuel Novoa III of
-    <a href="http://codepoet-consulting.com/">CodePoet Consulting</a> 
+    <a href="http://codepoet-consulting.com/">CodePoet Consulting</a>
     along with the rest of the embedded Linux community.
 
 
 
+<hr />
+<p>
+<h2><a name="demanding">I demand that you to add &lt;favorite feature&gt; right now!   How come
+       you don't answer all my questions on the mailing list instantly?  I demand
+       that you help me with all of my problems <em>Right Now</em>!</a></h2>
 <p>
-<TR><TD BGCOLOR="#ccccc0" ALIGN=left>
-    <B>
-    I demand that you to add &lt;favorite feature&gt; right now!   How come 
-    you don't answer all my questions on the mailing list instantly?  I demand 
-    that you help me with all of my problems <em>Right Now</em>!
-    </B>
-</TD></TR>
-<TR><TD BGCOLOR="#eeeee0">
 
     You have not paid us a single cent and yet you still have the
     product of several years of work from Erik and Manuel and
@@ -438,34 +559,54 @@ to the uClibc home page.</a>
     ignore you.
 
 
+
+<hr />
+<p>
+<h2><a name="helpme">I need help with uClibc!  What should I do?</a></h2>
+<p>
+
+    If you find that you need help with uClibc, you can ask for help on the
+    uClibc mailing list at uclibc@mail.uclibc.org.  In addition to the uClibc
+    mailing list, Erik and Manuel are also known to sometimes hang out on the
+    uClibc IRC channel: #uclibc on irc.freenode.net.
+
+    <p>
+
+    <b>Please do not send private email to Erik and/or Manuel asking for
+    private help unless you are planning on paying for consulting services.</b>
+    When we answer questions on the uClibc mailing list, it helps everyone
+    since people with similar problems in the future will be able to get help
+    by searching the mailing list archives.  Private help is reserved as a paid
+    service.  If you need to use private communication, or if you are serious
+    about getting timely assistance with uClibc, you should seriously consider
+    paying for consulting time.
+
+    <p>
+
+
+
+<hr />
+<p>
+<h2><a name="contracts">I need you to add &lt;favorite feature&gt;!  Are the uClibc developers willing to
+       be paid in order to fix bugs or add in &lt;favorite feature&gt;?  Are you willing to provide
+       support contracts?</a></h2>
 <p>
-<TR><TD BGCOLOR="#ccccc0" ALIGN=left>
-    <B>
-    I need you to add &lt;favorite feature&gt;!  Are the uClibc developers willing to 
-    be paid in order to fix bugs or add in &lt;favorite feature&gt;?  Are you willing to provide
-    support contracts?  
-    </B>
-</TD></TR>
-<TR><TD BGCOLOR="#eeeee0">
 
     Sure!  Now you have our attention!  What you should do is contact <a
        href="mailto:andersen@codepoet.org">Erik Andersen</a> of <a
        href="http://codepoet-consulting.com/">CodePoet Consulting</a> to bid
     on your project.  If Erik is too busy to personally add your feature, there
-    are several other active uClibc contributors who will almost certainly be able 
+    are several other active uClibc contributors who will almost certainly be able
     to help you out.  Erik can contact them and ask them about their availability.
-    
-    
+
+
+<hr />
+<p>
+<h2><a name="support">I think you guys are great and I want to help support your work!</a></h2>
 <p>
-<TR><TD BGCOLOR="#ccccc0" ALIGN=left>
-    <B>
-    I think you guys are great and I want to help support your work!
-    </B>
-</TD></TR>
-<TR><TD BGCOLOR="#eeeee0">
 
     Wow, that would be great!  You can click here to help support uClibc and/or request features.
-    
+
     <!-- Begin PayPal Logo -->
     <center>
     <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
@@ -474,79 +615,81 @@ to the uClibc home page.</a>
        <input type="hidden" name="item_name" value="Support uClibc and/or request features">
        <input type="hidden" name="image_url" value="https://codepoet-consulting.com/images/codepoet.png">
        <input type="hidden" name="no_shipping" value="1">
-       <input type="image" src="images/donate.png" border="0" name="submit" alt="Make donation using PayPal">
+       <input type="image" src="images/donate.png" name="submit" alt="Make donation using PayPal">
     </form>
     </center>
     <!-- End PayPal Logo -->
 
-    If you prefer to contact us directly for payments, hardware donations, 
-    support requests, etc., you can contact 
+    If you prefer to contact us directly for payments, hardware donations,
+    support requests, etc., you can contact
     <a href="http://codepoet-consulting.com/">CodePoet Consulting</a> here.
 
-<p>
-<TR><TD BGCOLOR="#ccccc0" ALIGN=left>
-    <B>
-       Ok, I'm done reading all this stuff.
-    </B>
-</TD></TR>
-<TR><TD BGCOLOR="#eeeee0">
-
-<a href="http://uclibc.org/">Well then, click here to return to the uClibc home page.</a>
-
-
-
-<!-- End things -->
-
-</TD></TR>
-</TABLE>
-</P>
-
-
-
-<!-- Footer -->
-<HR>
-<TABLE WIDTH="100%">
-    <TR>
-       <TD>
-           <font size="-1" face="arial, helvetica, sans-serif">
-           Mail all comments, insults, suggestions and bribes to 
-           <a href="mailto:andersen@codepoet.org">Erik Andersen</a><BR>
-           </font>
-       </TD>
-
-       <TD>
-           <a href="http://www.vim.org"><img border=0 width=90 height=36
-           src="images/written.in.vi.png" 
-           alt="This site created with the vi editor"></a>
-       </TD>
-
-       <TD>
-           <a href="http://www.gimp.org/"><img border=0 width=90 height=36
-           src="images/gfx_by_gimp.png" alt="Graphics by GIMP"></a>
-       </TD>
-
-       <TD>
-           <a href="http://www.linuxtoday.com"><img width=90 height=36
-           src="images/ltbutton2.png" alt="Linux Today"></a>
-       </TD>
-
-       <TD>
-           <p><a href="http://slashdot.org"><img width=90 height=36
-           src="images/sdsmall.png" alt="Slashdot"></a>
-       </TD>
-
-       <TD>
-           <a href="http://freshmeat.net"><img width=90 height=36
-           src="images/fm.mini.png" alt="Freshmeat"></a>
-       </TD>
-
-    </TR>
-</TABLE>
+<hr />
 
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
+<br>
 
-</CENTER>
-</BODY>
-</HTML>
+<!--#include file="footer.html" -->