OSDev.org

The Place to Start for Operating System Developers
It is currently Mon Apr 22, 2019 4:09 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Porting Glibc
PostPosted: Mon Jan 21, 2019 11:07 pm 
Offline

Joined: Fri Jan 11, 2019 7:59 am
Posts: 6
How do I link glibc into my Operating system? I tried a couple of times but I keep getting errors from the actual source from headers and .c files.

And the glibc headers had missing header files that exist in the glibc-build folder containing everything, how do I contain every folder that has glibc *.o files, *.c and *.h properly without any issues?


Top
 Profile  
 
 Post subject: Re: Porting Glibc
PostPosted: Mon Jan 21, 2019 11:45 pm 
Offline
Member
Member

Joined: Thu May 17, 2007 1:27 pm
Posts: 565
glibc is known to be hard to port. It only runs on Linux (and maybe GNU Hurd). If you do not want to invest massive amounts of time into porting it, I'd suggest to look for other, more portable C libraries.

_________________
managarm: A microkernel-based OS that is capable of running a Wayland desktop


Top
 Profile  
 
 Post subject: Re: Porting Glibc
PostPosted: Mon Jan 21, 2019 11:57 pm 
Offline

Joined: Fri Jan 11, 2019 7:59 am
Posts: 6
What good portable C libraries do you recommend? (And include how easy it is port them)


Top
 Profile  
 
 Post subject: Re: Porting Glibc
PostPosted: Tue Jan 22, 2019 10:15 am 
Offline
Member
Member

Joined: Tue May 13, 2014 3:02 am
Posts: 253
Location: Private, UK
Jush wrote:
What good portable C libraries do you recommend? (And include how easy it is port them)


https://wiki.osdev.org/C_Library

(Although ignore the poetry under "MyOS libc"; what's "best" and "most in the osdev spirit" is entirely up to you.)

_________________
Image


Top
 Profile  
 
 Post subject: Re: Porting Glibc
PostPosted: Wed Jan 23, 2019 4:41 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 3:45 am
Posts: 9281
Location: On the balcony, watching the Swedish Chef
mallard wrote:
Although ignore the poetry under "MyOS libc"; what's "best" and "most in the osdev spirit" is entirely up to you.
I've updated the wiki accordingly :wink:

_________________
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group