index.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
  2. <HTML>
  3. <HEAD>
  4. <TITLE>uClibc -- a C library for embedded systems</TITLE>
  5. </HEAD>
  6. <body text="#000000" alink="#660000" link="#660000" bgcolor="#dee2de" vlink="#660000">
  7. <basefont face="lucida, helvetica, arial" size="3">
  8. <CENTER>
  9. <p>
  10. <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=2>
  11. <TR>
  12. <td bgcolor="#000000">
  13. <FONT FACE="lucida, helvetica" COLOR="#ccccc0">
  14. <B>µ&nbsp;C&nbsp;l&nbsp;i&nbsp;b&nbsp;c</B>
  15. </FONT>
  16. </TD>
  17. </TR>
  18. </TABLE>
  19. <p>
  20. <!-- Begin Introduction section -->
  21. <TABLE WIDTH=95% CELLSPACING=1 CELLPADDING=4 BORDER=1>
  22. <TR><TD BGCOLOR="#ccccc0" ALIGN=center>
  23. <A NAME="intro"> <BIG><B>
  24. uClibc -- a C library for embedded systems
  25. </font>
  26. </A></B></BIG>
  27. </TD></TR>
  28. <TR><TD BGCOLOR="#eeeee0">
  29. <a href="http://www.uclibc.org">uClibc</a> (aka µClibc/pronounced
  30. yew-see-lib-see) is a C library for developing embedded Linux systems.
  31. It is much smaller than the
  32. <a href="http://www.gnu.org/software/libc/libc.html">GNU C Library</a>,
  33. but nearly all applications supported by glibc also work perfectly with
  34. uClibc. Porting applications from glibc to uClibc typically involves
  35. just recompiling the source code. uClibc even supports shared libraries
  36. and threading. It currently runs on <a href="http://kernel.org/">standard Linux</a>
  37. and <a href="http://www.uclinux.org">MMU-less (also known as µClinux)</a>
  38. systems with support for alpha, ARM, i386, i960, h8300, m68k, mips/mipsel,
  39. PowerPC, SH, SPARC, and v850 processors.
  40. <p>
  41. If you are building an embedded Linux system and you find that glibc is
  42. eating up too much space, you should consider using uClibc. If you are
  43. building a huge fileserver with 12 Terabytes of storage, than using
  44. glibc may be a better choice...
  45. <p>
  46. uClibc is maintained by
  47. <a href="http://www.codepoet.org/andersen/erik/erik.html">Erik Andersen</a>
  48. and is licensed under the
  49. <a href="http://www.gnu.org/copyleft/lgpl.html">GNU LIBRARY GENERAL PUBLIC LICENSE</a>
  50. . This license allows you to make closed source commercial applications using
  51. uClibc (Please consider sharing some of the money you make ;-). You do not need
  52. to give away all your source code just because you use uClibc and/or run on Linux.
  53. <p>
  54. <h3>Mailing List Information</h3>
  55. uClibc has a <a href="/lists/uclibc/">mailing list</a>.<br>
  56. To subscribe, go and visit
  57. <a href="http://www.uclibc.org/mailman/listinfo/uclibc">this page</a>.
  58. <p>
  59. <h3>Frequently Asked Questions</h3>
  60. Before asking questions on the uClibc mailing list,
  61. you might want to take a look at the
  62. <a href="FAQ.html">list of Frequently Asked Questions</a>
  63. or
  64. you might want to search the mailing list archives...
  65. <form method="GET" action="http://www.google.com/custom">
  66. <input type="hidden" name="domains" value="uclibc.org">
  67. <input type="hidden" name="sitesearch" value="uclibc.org">
  68. <a href="http://www.google.com"><img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" height="32" width="75" align="middle"></a>&nbsp;<input type="text" name="q" size="31" maxlength="255" value="">&nbsp;<input type="submit" name="sa" value="search the mailing list archives">...
  69. </form>
  70. <h3>Working Applications List</h3>
  71. These days, pretty much everything compiles with uClibc. This
  72. is a <a href="uClibc-apps.html">list of applications</a> that are known
  73. to work just fine with uClibc. Since most applications work just
  74. fine with uClibc, we are especially interested in knowing about any
  75. applications that either <em>do not compile</em> or <em>do not work</em>
  76. properly with uClibc. Submissions are welcome!
  77. <!-- Begin Latest News section -->
  78. <TR><TD BGCOLOR="#ccccc0" ALIGN=center>
  79. <A NAME="news">
  80. <BIG><B>
  81. Latest News</A>
  82. </B></BIG>
  83. </A>
  84. </TD></TR>
  85. <TR><TD BGCOLOR="#eeeee0">
  86. <ul>
  87. <p>
  88. <li> <b>17 February 2003, development system updates</b>
  89. <br>
  90. The uClibc development systems for
  91. <a href="http://www.uclibc.org/downloads/root_fs-i386.bz2">i386</a>
  92. and
  93. <a href="http://www.uclibc.org/downloads/root_fs-powerpc.bz2">powerpc</a>,
  94. and
  95. <a href="http://www.uclibc.org/downloads/root_fs-arm.bz2">arm</a>
  96. have been again updated. This time around a few broken symlinks
  97. (one preventing C++ code from compiling) have been fixed, several
  98. system calls related to uids and gid have been fixed, the powerpc
  99. system call mechanism has been updated, and GNU tar and GNU grep
  100. have been added. gcc, gcc+, ssh, etc are all still included and
  101. things remain binary compatible with uClibc 0.9.18.
  102. Have Fun.
  103. <p>
  104. <p>
  105. <li> <b>12 February 2003, development system updates</b>
  106. <br>
  107. The uClibc development system has had a number of problems
  108. fixed, and has been updated for uClibc 0.9.18. The
  109. <a href="http://www.uclibc.org/downloads/root_fs-i386.bz2">i386</a>
  110. and
  111. <a href="http://www.uclibc.org/downloads/root_fs-powerpc.bz2">powerpc</a>,
  112. and
  113. <a href="http://www.uclibc.org/downloads/root_fs-arm.bz2">arm</a>
  114. devel systems are updated and ready to download and use.
  115. Have Fun.
  116. <p>
  117. <p>
  118. <li> <b>12 February 2003, uClibc 0.9.18 Released</b>
  119. <br>
  120. CodePoet Consulting is pleased to announce the immediate availability of
  121. uClibc 0.9.18. This is primarily a bug-fix release, as there were a few
  122. directory handling problem that could cause application using uClibc 0.9.17
  123. to either segfault or lose the first character when reading directry names.
  124. Unfortunately, once again, this release is _NOT_ binary compatible with
  125. earlier uClibc releases. I _think this will be the last time (with the
  126. possible exception of some future changes to our locale support...)
  127. <p>
  128. As usual, the
  129. <a href="http://www.uclibc.org/downloads/Changelog">Changelog</a>
  130. and <a href="http://www.uclibc.org/downloads/uClibc-0.9.18.tar.bz2">source code</a>
  131. for this release are available <a href="http://www.uclibc.org/downloads/">here</a>.
  132. You might want to download uClibc from the closest
  133. <a href="http://kernel.org/mirrors/">kernel.org mirror site</a>.
  134. Just pick the closest mirror site, and then go to
  135. <a href="http://www.kernel.org/pub/linux/libs/uclibc/">
  136. http://www.XX.kernel.org/pub/linux/libs/uclibc/</a>
  137. to download uClibc, where XX is your two letter country code.
  138. <p>
  139. <p>
  140. <p>
  141. <li> <b>25 January 2003, uClibc 0.9.17 Released</b>
  142. <br>
  143. CodePoet Consulting is pleased to announce the immediate availability of
  144. uClibc 0.9.17. The biggest piece of news with this release, thanks to
  145. Manuel Novoa's continuing hard work, is that we now have fully standards
  146. compliant locale support (optional of course). The support works nicely,
  147. (though configuring the locales you wish to support is still manual -- a
  148. task for the next release). Full locale data for over 300 locales adds
  149. approximately 250k. The collation data for all supported locales is
  150. roughly 180k. This may seem rather large to some -- but it is much smaller
  151. than the approximately 40 MB needed by Glibc to provide the same data. And
  152. if you don't need it, you can either disable locale support entirely, or
  153. enable a smaller set of locales.
  154. <p>
  155. This release also fixes <em>lots and lots</em> of bugs. The arm
  156. architecture support (I am embarrassed to note) was totally broken in the
  157. last release, but is now working as expected. A security problem (a
  158. buffer overflow in getlogin_r) was fixed. And there were architecture
  159. updates across the board (x86, arm, powerpc, cris, h8300, sparc, and mips).
  160. And of course, this release includes the usual pile of bug fixes. Many
  161. thanks for the large number of patches and fixes that were contributed!
  162. <p>
  163. Unfortunately, this release is not binary compatible with earlier uClibc
  164. releases. As noted as item 3 <a href="downloads/Glibc_vs_uClibc_Differences.txt">here</a>,
  165. uClibc does not (yet) attempt to
  166. ensure binary compatibility across releases. We will eventually do that
  167. (once we reach the "1.0" release) but not yet. A few bugs turned up that
  168. needed to be fixed, and the only good way to fix them was to change some
  169. fundamental data structure sizes. As a result, this release is _NOT_
  170. binary compatible with earlier releases -- you will need to recompile your
  171. applications. The x86, arm, powerpc, and mips architectures (i.e. the
  172. systems Erik has available in his office for testing) have been tested and
  173. are known to work following this change. Other architectures <em>may</em>
  174. need additional updates. Sorry about that, but it had to be done.
  175. <p>
  176. As usual, the
  177. <a href="http://www.uclibc.org/downloads/Changelog">Changelog</a>
  178. and <a href="http://www.uclibc.org/downloads/uClibc-0.9.17.tar.bz2">source code</a>
  179. for this release are available <a href="http://www.uclibc.org/downloads/">here</a>.
  180. You might want to download uClibc from the closest
  181. <a href="http://kernel.org/mirrors/">kernel.org mirror site</a>.
  182. Just pick the closest mirror site, and then go to
  183. <a href="http://www.kernel.org/pub/linux/libs/uclibc/">
  184. http://www.XX.kernel.org/pub/linux/libs/uclibc/</a>
  185. to download uClibc, where XX is your two letter country code.
  186. <p>
  187. <p>
  188. <li> <b>25 January 2003, dev system updates, arm image released</b>
  189. <br>
  190. A number of additional problems have been fixed and the arm build
  191. is now, finally, compiling and working as expected. As such,
  192. I have updated the <a href="http://www.uclibc.org/downloads/root_fs-i386.bz2">
  193. i386 development system image</a>, the
  194. <a href="http://www.uclibc.org/downloads/root_fs-powerpc.bz2">
  195. powerpc development system image</a>, and I am also releasing
  196. upon an unsuspecting world the brand new
  197. <a href="http://www.uclibc.org/downloads/root_fs-arm.bz2">
  198. arm development system image</a>!
  199. Have fun!
  200. <p>
  201. All three development system images were compiled and built using the stock
  202. <a href="/cgi-bin/cvsweb/buildroot/">buildroot</a> system. These were also
  203. built using the (about to be announced in a couple on minutes) uClibc
  204. 0.9.17 release, so if you want to begin compiling and testing stuff with
  205. uClibc, but you don't feel like spending the _hours_ it takes to download,
  206. configure, and build your own uClibc based development system -- then you
  207. may want to download these and give them a try. They each contain a 100 MB
  208. ext2 filesystem with everything you need to begin compiling your own
  209. applications. I have (at least minimally) tested each of them and verified
  210. that the included gcc and g++ compilers produce working uClibc linked
  211. executables.
  212. <p>
  213. Oh, and I have also have updated the uClibc/gcc toolchain builders, so
  214. if you just want a simple uClibc/gcc toolchain,
  215. <a href="/cgi-bin/cvsweb/toolchain/">one of these should work for you.</a>
  216. <p>
  217. <p>
  218. <li> <b>10 January 2003, dev system updates, powerpc image released</b>
  219. <br>
  220. A few problems showed up in yesterday's development system release
  221. (adduser was broken, gdb didn't work, libstdc++ shared libs were missing,
  222. etc). So I've updated the <a href="http://www.uclibc.org/downloads/root_fs-i386.bz2">
  223. i386 development system image</a> to fix these problems.
  224. Also, the <a href="http://www.uclibc.org/downloads/root_fs-powerpc.bz2">
  225. powerpc development system image</a> has finally finished compiling
  226. and is now released upon an unsuspecting world. Have fun!
  227. <p>
  228. <p>
  229. <li> <b>9 January 2003, uClibc development system released</b>
  230. <br>
  231. CodePoet Consulting (i.e. Erik) has been working hard on <a
  232. href="/cgi-bin/cvsweb/buildroot/">buildroot</a> recently, and is pleased to
  233. offer a full stand-alone uClibc-only development system. This is an ext2
  234. filesystem for i386 containing all the development software you need to
  235. build your own uClibc applications. With bash, awk, make, gcc, g++,
  236. autoconf, automake, ncurses, zlib, openssl, openssh, gdb, strace, valgrind,
  237. busybox, GNU coreutils, and more, this should have pretty much everything
  238. you need to get started building your own applications linked against
  239. uClibc. By using a uClibc only system, you can avoid all the painful
  240. cross-configuration problems that have made using uClibc somewhat painful
  241. in the past. A powerpc and an arm version are in progress. Expect them
  242. to be released shortly....
  243. <p>
  244. The <a href="http://www.uclibc.org/downloads/root_fs-i386.bz2">
  245. uClibc development system is an 18MB bzip2 compressed ext2 filesystem</a>,
  246. so be prepared to wait if you are on a slow link. If you wish to have more
  247. space, you can loop mount it and 'cp -a' the contents to their own
  248. partition, or do what I did... <EM>WARNING, the following can be very
  249. dangerous. Please be sure you know what you are doing before trying this.
  250. I am not responsible if you lose all your important data.</EM>I had a spare
  251. hard drive (in my case /dev/hdg but you'll want to adapt this to your own
  252. needs), so I partitioned it with a single ext2 partition filling the drive
  253. (in my case /dev/hdg1). Then I ran:<PRE>
  254. bzcat root_fs-i386.bz2 | dd of=/dev/hdg1
  255. e2fsck -f /dev/hdg1
  256. resize2fs -p /dev/hdg1</PRE>
  257. which overwrote everything on /dev/hdg with the new uClibc devel system,
  258. and then expanded the filesystem with the uClibc devel system till it
  259. filled the whole drive.
  260. <p>
  261. <p> <li> <b>Old News</b>
  262. <br>
  263. <a href="old-news.html">Click here to read older news</a>.
  264. <p>
  265. </ul>
  266. <!-- Begin Sponsors section -->
  267. <TR><TD BGCOLOR="#ccccc0" ALIGN=center>
  268. <A NAME="sponsors"><BIG><B>
  269. Sponsors
  270. </A></B></BIG>
  271. </TD></TR>
  272. <tr><td bgcolor="#EEEEE0">
  273. Please visit our sponsors and thank them for their support! They have
  274. provided money, equipment, bandwidth, etc. Next time you need help with a
  275. project, consider these fine companies! Several individuals have also
  276. contributed (If you have contributed and would like your name added here,
  277. just email Erik and let him know).
  278. <ul>
  279. <li><a href="http://www.penguru.net">Penguru Consulting</a><br>
  280. Custom development for embedded Linux systems and multimedia platforms</li>
  281. <li><a href="http://opensource.se/">opensource.se</a><br>
  282. Embedded open source consulting in Europe.</li>
  283. <li><a href="http://www.codepoet-consulting.com">Codepoet Consulting</a><br>
  284. Custom Linux, embedded Linux, BusyBox, and uClibc development.</li>
  285. </ul>
  286. <table CELLSPACING=6 CELLPADDING=6 BORDER=0><tr>
  287. <td>
  288. Do you like uClibc? Do you need support? Do you need some feature
  289. added? Then why not help out? We are happy to accept donations
  290. (such as bandwidth, mirrors sites, and hardware for the various
  291. architectures). We can also provide support contracts, and implement
  292. funded feature requests. To contribute, you can either click on the
  293. Donate image to donate using PayPal, or you can contact Erik at
  294. <a href="http://codepoet-consulting.com/">CodePoet Consulting</a>
  295. (we have a credit card machine so you can avoid PayPal if you wish).
  296. </td>
  297. <td>
  298. <!-- Begin PayPal Logo -->
  299. <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
  300. <input type="hidden" name="cmd" value="_xclick">
  301. <input type="hidden" name="business" value="andersen@codepoet.org">
  302. <input type="hidden" name="item_name" value="Support uClibc">
  303. <input type="hidden" name="image_url" value="https://codepoet-consulting.com/images/codepoet.png">
  304. <input type="hidden" name="no_shipping" value="1">
  305. <input type="image" src="images/donate.png" border="0" name="submit" alt="Make donation using PayPal">
  306. </form>
  307. </td>
  308. <!-- End PayPal Logo -->
  309. </tr>
  310. </table>
  311. <!-- Begin Download section -->
  312. <TR><TD BGCOLOR="#ccccc0" ALIGN=center>
  313. <A NAME="download"><BIG><B>
  314. Download
  315. </A></B></BIG>
  316. </TD></TR>
  317. <TR><TD BGCOLOR="#eeeee0">
  318. <ul>
  319. <li> Source for the latest release can always be downloaded from
  320. <a href="downloads/">http://www.uclibc.org/downloads</a>
  321. <li> A <a href="downloads/snapshots/">daily snapshot of the source</a> is
  322. available for those wishing to follow uClibc developments, but cannot
  323. or do not wish to use CVS.
  324. <li> uClibc has a publically <a href="/cgi-bin/cvsweb/uClibc/">browsable CVS tree</a>.
  325. <li> <a href="cvs_anon.html">Anonymous CVS access</a> is available to let you track development.
  326. <li> <a href="cvs_write.html">CVS write access</a> is also available for those that are actively
  327. contributing.
  328. </ul>
  329. <!-- Begin Links section -->
  330. <TR><TD BGCOLOR="#ccccc0" ALIGN=center>
  331. <A NAME="links">
  332. <BIG><B>
  333. Other Open Source C libraries:
  334. </A>
  335. </B></BIG>
  336. </A>
  337. </TD></TR>
  338. <TR><TD BGCOLOR="#eeeee0">
  339. I am currently aware of the following open source C libraries.
  340. <ul>
  341. <li><a href="http://www.gnu.org/software/libc/libc.html">GNU C Library (aka glibc)</a>
  342. <li> <a href="http://www.k9wk.com/cdoc.html">Al's FREE C Runtime Library</a>
  343. <li><a href="http://www.fefe.de/dietlibc/">diet libc </a>
  344. <li>the <a href="http://www.cs.vu.nl/~ast/minix.html">minix</a>
  345. <a href="http://www.cs.vu.nl/cgi-bin/raw/pub/minix/2.0.0/src.tar"
  346. >C library</a>
  347. <li> <a href="http://sources.redhat.com/newlib/">newlib</a>
  348. <li>and there is a
  349. <a href="ftp://sourceware.cygnus.com/pub/ecos/">C library</a>, for
  350. <a href="http://sources.redhat.com/ecos/">eCos</a> as well.
  351. <ul>
  352. <!-- Begin Links section -->
  353. <TR><TD BGCOLOR="#ccccc0" ALIGN=center>
  354. <A NAME="links">
  355. <BIG><B>
  356. Links to other useful stuff
  357. </A>
  358. </B></BIG>
  359. </A>
  360. </TD></TR>
  361. <TR><TD BGCOLOR="#eeeee0">
  362. <ul>
  363. <li> <a href="http://www.uclibc.org/">The uClibc home page</a>
  364. <p>
  365. <li> <a href="/cgi-bin/cvsweb/uClibc/">The uClibc CVS tree</a>
  366. <p>
  367. <li> <a href="http://busybox.net/">BusyBox</a>
  368. <p>
  369. <li> <a href="http://udhcp.busybox.net/">udhcp</a>
  370. <p>
  371. <li> <a href="http://www.uclinux.org/">The uClinux home page</a>
  372. <p>
  373. <li> <a href="http://cvs.uclinux.org/">The uClinux CVS repository</a>
  374. <p>
  375. <li> <a href="http://codepoet-consulting.com/">CodePoet Consulting</a>
  376. <p>
  377. </ul>
  378. <!-- End of Table -->
  379. </TD></TR>
  380. </TABLE>
  381. </P>
  382. <!-- Footer -->
  383. <HR>
  384. <TABLE WIDTH="100%">
  385. <TR>
  386. <TD>
  387. <font size="-1" face="arial, helvetica, sans-serif">
  388. Mail all comments, insults, suggestions and bribes to
  389. <a href="mailto:andersen@codepoet.org">Erik Andersen</a><BR>
  390. </font>
  391. </TD>
  392. <TD>
  393. <a href="http://www.vim.org"><img border=0 width=90 height=36
  394. src="images/written.in.vi.png"
  395. alt="This site created with the vi editor"></a>
  396. </TD>
  397. <TD>
  398. <a href="http://www.gimp.org/"><img border=0 width=90 height=36
  399. src="images/gfx_by_gimp.png" alt="Graphics by GIMP"></a>
  400. </TD>
  401. <TD>
  402. <a href="http://www.linuxtoday.com"><img width=90 height=36
  403. src="images/ltbutton2.png" alt="Linux Today"></a>
  404. </TD>
  405. <TD>
  406. <p><a href="http://slashdot.org"><img width=90 height=36
  407. src="images/sdsmall.png" alt="Slashdot"></a>
  408. </TD>
  409. <TD>
  410. <a href="http://freshmeat.net"><img width=90 height=36
  411. src="images/fm.mini.png" alt="Freshmeat"></a>
  412. </TD>
  413. </TR>
  414. </TABLE>
  415. </CENTER>
  416. </BODY>
  417. </HTML>