All Forums |
Register |
Login |
Search |
Subscriptions |
My Profile |
Inbox |
Tool Warehouse |
FAQs |
Resources |
Help |
Member List |
Address Book |
Logout |
|
|
glibc on Interix?
|
Logged in as: Guest |
Users viewing this topic: none |
|
Login  |
|
|
glibc on Interix? - Dec. 23, '05, 6:42:19 PM
|
|
|
mkoeppe
Posts: 2
Joined: Dec. 8, '05,
Status: offline
|
Hello,
I'm using Debian GNU/Linux as well as Windows with Interix. I like both, and I'd like to help improve both to be still better interoperable.
Debian has been ported to several architectures, including some not based on the Linux kernel, e.g. Hurd and FreeBSD. Especially interesting I find the idea of Debian GNU/kFreeBSD: the kernel comes from FreeBSD, the complete userland comes from Debian. I'm using this port for some time now on a test machine.
So the idea is: Why not bring the rich amount of packages available for Debian to the Interix system as well? I especially like the Debian package management tools. A major thing on doing this would be porting the glibc to Interix, I think. For Debian GNU/kFreeBSD they did it to have it easier to port the other packages of Debian.
My question now is: Is it possible (with reasonable amount of work) to port the glibc to Interix? Or is the libc included with Interix an integral part of it, i.e. calls the NT kernel directly? Is there a clear "kernel" API (where documented?) on which the supplied libc is set up? To what flavour of Unix is that Interix kernel API comparable?
I tried to compile glibc 2.3 for Interix. While configuring it works (I configured as bsd4.4), making it fails very soon.
Thank you.
Martin
|
|
|
RE: glibc on Interix? - Dec. 24, '05, 6:42:45 AM
|
|
|
jumphigh
Posts: 61
Joined: Jul. 10, '04,
From: Germany
Status: offline
|
libc is included in the Interix SDK package which comes with your SfU Installer.
In my opinion you should first check what are the differences between our libc and the GNU version glibc.
Andreas
|
|
|
RE: glibc on Interix? - Dec. 24, '05, 7:45:09 AM
|
|
|
mkoeppe
Posts: 2
Joined: Dec. 8, '05,
Status: offline
|
I don't want to completely replace the supplied libc with glibc, but instead have both installed to be able to choose while builing a package.
And yes, I tried to build with the supplied libc already. I found the following issues: During configure, the libc is not glibc >= 2.1, obviously. While trying to build I got an error on obstack.h functions. This was only a short first try, so I suspect many more such issues. That's why I think having glibc available may be useful.
Patching each package is certainly not the way to go, and instead of patching the supplied libc, it may (or may not) be easier to just use the complete glibc. That's why I asked about the internals.
Martin
|
|
|
RE: glibc on Interix? - Dec. 24, '05, 10:55:30 AM
|
|
|
Rodney
Posts: 3142
Joined: Jul. 9, '02,
From: /Tools lab
Status: online
|
There is already glib version 2.4 ported in the warehouse if you'd like to use that.
Install what's available from /Tools and a lot of your portability issue will go away.
Also follow the guidelines in the FAQ about setting up your environment as a developer for
any packages that you are going to run "configure" with.
Whenever possible on any platform you want to use the native libc first.
Other ones will often try "cute things" to do a certain task that totally messes things up.
I will use cvs as an example. CVS used to be fine and has gotten worse over time
as they integrate functions from glibc into CVS. They are slowly turning CVS into a piece
of non-portable crap because of it. For example, using their version of getcwd() instead
of the system supplied one. It takes 4 times as long to work and then produces a wrong answer.
There are also different techniques on Interix that are better to use because of the unique
nature of working above the NT kernel and/or interacting with the Win32 subsystem.
For example, using the API setuser() instead of setusercontext().
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
|
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|
|