Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 19th December 2006, 04:37
jack.ma jack.ma is offline
Junior Member
 
Join Date: Nov 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can I install uClibc on my ubuntu5.10?

Hi,folks
Can I install uClibc on my ubuntu5.10? You see in my distribution gcc 4.0.2 is here.Why do I have to do so? When I make the busybox 1.3.0 it says

jack@ma:~/kernel/busybox-1.3.0$ make
CC applets/applets.o
applets/applets.c:22:2: error: #warning Static linking against glibc
produces buggy executables
applets/applets.c:23:2: error: #warning (glibc does not cope well with ld
--gc-sections).
applets/applets.c:24:2: error: #warning See
sources.redhat.com/bugzilla/show_bug.cgi?id=3400
applets/applets.c:25:2: error: #warning Note that glibc is utterly
unsuitable for static linking anyway.
make[1]: *** [applets/applets.o] Error 1
make: *** [applets] Error 2

Someone suggestst that

glibc has critical bugs that
make it so programs static-linked against glibc with gc-sections
option DO NOT WORK. Thus BB has provided an error message for you
rather than generating a binary that will seriously misbehave under
many circumstances.

glibc authors have intentionally not supported static linking for a
long time. If you want static linking, use a different libc that
properly supports it.

So,can I and how to install uClibc ?

Thanks
-jack
Reply With Quote
Sponsored Links
  #2  
Old 20th December 2006, 14:24
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

uClibc is recommended for Busybox.
What's the output of
Code:
apt-cache search uclibc
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 21st December 2006, 09:48
jack.ma jack.ma is offline
Junior Member
 
Join Date: Nov 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
uClibc is recommended for Busybox.
What's the output of
Code:
apt-cache search uclibc
?
Hi,falko

This is the output of apt-cache search uclibc as below

jack@ma:~$ sudo apt-cache search uclibc
libuclibc-dev - A small implementation of the C library
libuclibc0 - A small implementation of the C library
uclibc-toolchain - A compiler wrapper for uClibc

So, can I install the uclibc, compile some program against the C library, even use the uclibc-toolchain?

-jack
Reply With Quote
  #4  
Old 22nd December 2006, 14:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Run
Code:
apt-get install libuclibc-dev libuclibc0 uclibc-toolchain
and try again to build Busybox.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 25th December 2006, 11:25
jack.ma jack.ma is offline
Junior Member
 
Join Date: Nov 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,falko

Can I compile C program against uclibc with gcc ? If yes, how can I set the gcc 's options to compile successfully?If not,do I need some uclibc related compiler?

-Jack

Last edited by jack.ma; 25th December 2006 at 11:30.
Reply With Quote
  #6  
Old 26th December 2006, 17:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
 
Default

I think that Busybox compiles against uclibc automatically.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
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
problem install perl modules Cirox Installation/Configuration 10 16th May 2007 17:04
VMWare Server Free License - Invalid bardgd HOWTO-Related Questions 6 19th November 2006 18:50
install Net::DNS chrno Installation/Configuration 4 5th September 2006 18:01
/usr/bin/make install install HTML::Parser -- NOT OK oddo Installation/Configuration 4 14th March 2006 19:32
Mandriva 10.2 Perfect Setup Install Problems... ctroyp Installation/Configuration 12 30th December 2005 17:04


All times are GMT +2. The time now is 02:46.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.