Can I build a linux distro with libc instead of glibcCan new glibc versions be used with an old...

A torrent of foreign terms

The cat ate your input again!

Graphs for which a calculus student can reasonably compute the arclength

Boss wants me to ignore a software API license prohibiting mass download

If I animate and control a zombie, does it benefit from Undead Fortitude when it's reduced to 0 HP?

Does Nightpack Ambusher's second ability trigger if I cast spells during the end step?

Why aren't rainbows blurred-out into nothing after they are produced?

Possible to ground-fault protect both legs of a MWBC with two single-pole breakers?

Can a bald person be a Nazir?

Case Condition for two lines

Does fossil fuels use since 1990 account for half of all the fossil fuels used in history?

Escape Velocity - Won't the orbital path just become larger with higher initial velocity?

Why is the Lucas test not recommended to differentiate higher alcohols?

How do I call a 6-digit Australian phone number with a US-based mobile phone?

Is it okay for a ticket seller to grab a tip in the USA?

What is the hottest thing in the universe?

If you know the location of an invisible creature, can you attack it?

What is the difference between 王 and 皇?

How much can I judge a company based on a phone screening?

Modeling the uncertainty of the input parameters

Why command hierarchy, if the chain of command is standing next to each other?

How should I write this passage to make it the most readable?

Is this n-speak?

Why aren’t there water shutoff valves for each room?



Can I build a linux distro with libc instead of glibc


Can new glibc versions be used with an old kernel?Looking for tools to build minimal linux desktopHow do I search for Linux distro build tools?LFS 7.5 - Glibc-2.19 compile errors at section 6.9, are they fatal to my LFS build?Run a program with a newer libcHow to update libc(glibc) on kali linux (debian based)?How can I compile a more compact glibc?Compiling Apache with another glibc versionConstraints on gcc / glibc versions between build and runWhich distro has glibc 2.2.5 installed default?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







6















I recently had a conversation with a friend who is a highly skill software engineer, and he showed me some articles outlining the fact libc was much better than glibc.



I wonder if its possible to use libc instead, and what kind of problems would I come up against if I went this route?










share|improve this question






















  • 5





    That's kinda meaningless; "libc" is not a single thing, it's a family (of which glibc is a member). Whose libc? FreeBSD's?

    – geekosaur
    Apr 11 '12 at 20:12











  • yeah i think he was being specific about freebsd when he was making the reference, my knowledge in this area is limited!

    – yakamok
    Apr 11 '12 at 20:21











  • Quite meaningless is an understatement. He said it was "much better" in what way? Such statements are useless without elaboration.

    – underscore_d
    May 20 '17 at 16:35




















6















I recently had a conversation with a friend who is a highly skill software engineer, and he showed me some articles outlining the fact libc was much better than glibc.



I wonder if its possible to use libc instead, and what kind of problems would I come up against if I went this route?










share|improve this question






















  • 5





    That's kinda meaningless; "libc" is not a single thing, it's a family (of which glibc is a member). Whose libc? FreeBSD's?

    – geekosaur
    Apr 11 '12 at 20:12











  • yeah i think he was being specific about freebsd when he was making the reference, my knowledge in this area is limited!

    – yakamok
    Apr 11 '12 at 20:21











  • Quite meaningless is an understatement. He said it was "much better" in what way? Such statements are useless without elaboration.

    – underscore_d
    May 20 '17 at 16:35
















6












6








6


3






I recently had a conversation with a friend who is a highly skill software engineer, and he showed me some articles outlining the fact libc was much better than glibc.



I wonder if its possible to use libc instead, and what kind of problems would I come up against if I went this route?










share|improve this question
















I recently had a conversation with a friend who is a highly skill software engineer, and he showed me some articles outlining the fact libc was much better than glibc.



I wonder if its possible to use libc instead, and what kind of problems would I come up against if I went this route?







linux compiling glibc






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 11 '12 at 20:14









Mat

40.9k8 gold badges127 silver badges131 bronze badges




40.9k8 gold badges127 silver badges131 bronze badges










asked Apr 11 '12 at 20:10









yakamokyakamok

3451 gold badge4 silver badges11 bronze badges




3451 gold badge4 silver badges11 bronze badges











  • 5





    That's kinda meaningless; "libc" is not a single thing, it's a family (of which glibc is a member). Whose libc? FreeBSD's?

    – geekosaur
    Apr 11 '12 at 20:12











  • yeah i think he was being specific about freebsd when he was making the reference, my knowledge in this area is limited!

    – yakamok
    Apr 11 '12 at 20:21











  • Quite meaningless is an understatement. He said it was "much better" in what way? Such statements are useless without elaboration.

    – underscore_d
    May 20 '17 at 16:35
















  • 5





    That's kinda meaningless; "libc" is not a single thing, it's a family (of which glibc is a member). Whose libc? FreeBSD's?

    – geekosaur
    Apr 11 '12 at 20:12











  • yeah i think he was being specific about freebsd when he was making the reference, my knowledge in this area is limited!

    – yakamok
    Apr 11 '12 at 20:21











  • Quite meaningless is an understatement. He said it was "much better" in what way? Such statements are useless without elaboration.

    – underscore_d
    May 20 '17 at 16:35










5




5





That's kinda meaningless; "libc" is not a single thing, it's a family (of which glibc is a member). Whose libc? FreeBSD's?

– geekosaur
Apr 11 '12 at 20:12





That's kinda meaningless; "libc" is not a single thing, it's a family (of which glibc is a member). Whose libc? FreeBSD's?

– geekosaur
Apr 11 '12 at 20:12













yeah i think he was being specific about freebsd when he was making the reference, my knowledge in this area is limited!

– yakamok
Apr 11 '12 at 20:21





yeah i think he was being specific about freebsd when he was making the reference, my knowledge in this area is limited!

– yakamok
Apr 11 '12 at 20:21













Quite meaningless is an understatement. He said it was "much better" in what way? Such statements are useless without elaboration.

– underscore_d
May 20 '17 at 16:35







Quite meaningless is an understatement. He said it was "much better" in what way? Such statements are useless without elaboration.

– underscore_d
May 20 '17 at 16:35












3 Answers
3






active

oldest

votes


















7














Context: assuming from above comments that a BSDish libc is meant.



I think it's been looked into, but libc tends to be tightly tied to a given kernel (glibc has an abstraction layer, which allows it some portability but causes the usual problems that an abstraction layer causes) and making BSD libc work with a Linux kernel would require a near complete rewrite. key system services are very different between the two systems (one example: BSD libc assumes that there are no pipes/FIFOs, because BSD uses socketpairs instead; conversely, Linux doesn't support pipe-compatible socketpairs).



Going the other direction (Debian has an experimental Linux userspace on a FreeBSD kernel, I think) is possible due to glibc's portability layer.






share|improve this answer

































    4














    There are many libc implementations. It is possible and quite commmon to build a system using uClibc or EGLIBC. It's not even particularly difficult: try Buildroot.






    share|improve this answer


























    • fantastic recommendation, i am looking into this now

      – yakamok
      Apr 11 '12 at 20:41






    • 1





      eglibc is virtually equivalent to glibc, for the purposes of this question.

      – jmtd
      Apr 12 '12 at 13:09



















    0














    Many software depends on glibc itself or glibc macroses or just glibc style so build fails. You can fix any software easy if you know glibc from inside. For example we can see here linux headers for musl. Headers are not finished but you can checkout commits and see how this work looks like.



    Every developer tests its software using glibc based system. It is not possible to fix all live software development and make it compatible with other libc using right solution like pull request. So general purpose systems like gentoo can't be build using alternative libc without infinite pain.



    Embedded developers (from openwrt for example) are fixing software versions and making a heavy work around it. So embedded system (like openwrt) only can provide a source that can be build with alternative libc like musl or uclibc.



    The only painless and right way to replace glibc with other libc is to implement special wrapper that simulates all glibc behaviours using other libc. There is no such project today.






    share|improve this answer








    New contributor



    puchu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.
























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "106"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f36267%2fcan-i-build-a-linux-distro-with-libc-instead-of-glibc%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      7














      Context: assuming from above comments that a BSDish libc is meant.



      I think it's been looked into, but libc tends to be tightly tied to a given kernel (glibc has an abstraction layer, which allows it some portability but causes the usual problems that an abstraction layer causes) and making BSD libc work with a Linux kernel would require a near complete rewrite. key system services are very different between the two systems (one example: BSD libc assumes that there are no pipes/FIFOs, because BSD uses socketpairs instead; conversely, Linux doesn't support pipe-compatible socketpairs).



      Going the other direction (Debian has an experimental Linux userspace on a FreeBSD kernel, I think) is possible due to glibc's portability layer.






      share|improve this answer






























        7














        Context: assuming from above comments that a BSDish libc is meant.



        I think it's been looked into, but libc tends to be tightly tied to a given kernel (glibc has an abstraction layer, which allows it some portability but causes the usual problems that an abstraction layer causes) and making BSD libc work with a Linux kernel would require a near complete rewrite. key system services are very different between the two systems (one example: BSD libc assumes that there are no pipes/FIFOs, because BSD uses socketpairs instead; conversely, Linux doesn't support pipe-compatible socketpairs).



        Going the other direction (Debian has an experimental Linux userspace on a FreeBSD kernel, I think) is possible due to glibc's portability layer.






        share|improve this answer




























          7












          7








          7







          Context: assuming from above comments that a BSDish libc is meant.



          I think it's been looked into, but libc tends to be tightly tied to a given kernel (glibc has an abstraction layer, which allows it some portability but causes the usual problems that an abstraction layer causes) and making BSD libc work with a Linux kernel would require a near complete rewrite. key system services are very different between the two systems (one example: BSD libc assumes that there are no pipes/FIFOs, because BSD uses socketpairs instead; conversely, Linux doesn't support pipe-compatible socketpairs).



          Going the other direction (Debian has an experimental Linux userspace on a FreeBSD kernel, I think) is possible due to glibc's portability layer.






          share|improve this answer













          Context: assuming from above comments that a BSDish libc is meant.



          I think it's been looked into, but libc tends to be tightly tied to a given kernel (glibc has an abstraction layer, which allows it some portability but causes the usual problems that an abstraction layer causes) and making BSD libc work with a Linux kernel would require a near complete rewrite. key system services are very different between the two systems (one example: BSD libc assumes that there are no pipes/FIFOs, because BSD uses socketpairs instead; conversely, Linux doesn't support pipe-compatible socketpairs).



          Going the other direction (Debian has an experimental Linux userspace on a FreeBSD kernel, I think) is possible due to glibc's portability layer.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 11 '12 at 20:38









          geekosaurgeekosaur

          23.9k3 gold badges62 silver badges54 bronze badges




          23.9k3 gold badges62 silver badges54 bronze badges




























              4














              There are many libc implementations. It is possible and quite commmon to build a system using uClibc or EGLIBC. It's not even particularly difficult: try Buildroot.






              share|improve this answer


























              • fantastic recommendation, i am looking into this now

                – yakamok
                Apr 11 '12 at 20:41






              • 1





                eglibc is virtually equivalent to glibc, for the purposes of this question.

                – jmtd
                Apr 12 '12 at 13:09
















              4














              There are many libc implementations. It is possible and quite commmon to build a system using uClibc or EGLIBC. It's not even particularly difficult: try Buildroot.






              share|improve this answer


























              • fantastic recommendation, i am looking into this now

                – yakamok
                Apr 11 '12 at 20:41






              • 1





                eglibc is virtually equivalent to glibc, for the purposes of this question.

                – jmtd
                Apr 12 '12 at 13:09














              4












              4








              4







              There are many libc implementations. It is possible and quite commmon to build a system using uClibc or EGLIBC. It's not even particularly difficult: try Buildroot.






              share|improve this answer













              There are many libc implementations. It is possible and quite commmon to build a system using uClibc or EGLIBC. It's not even particularly difficult: try Buildroot.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Apr 11 '12 at 20:30









              Shawn J. GoffShawn J. Goff

              31.2k19 gold badges114 silver badges134 bronze badges




              31.2k19 gold badges114 silver badges134 bronze badges
















              • fantastic recommendation, i am looking into this now

                – yakamok
                Apr 11 '12 at 20:41






              • 1





                eglibc is virtually equivalent to glibc, for the purposes of this question.

                – jmtd
                Apr 12 '12 at 13:09



















              • fantastic recommendation, i am looking into this now

                – yakamok
                Apr 11 '12 at 20:41






              • 1





                eglibc is virtually equivalent to glibc, for the purposes of this question.

                – jmtd
                Apr 12 '12 at 13:09

















              fantastic recommendation, i am looking into this now

              – yakamok
              Apr 11 '12 at 20:41





              fantastic recommendation, i am looking into this now

              – yakamok
              Apr 11 '12 at 20:41




              1




              1





              eglibc is virtually equivalent to glibc, for the purposes of this question.

              – jmtd
              Apr 12 '12 at 13:09





              eglibc is virtually equivalent to glibc, for the purposes of this question.

              – jmtd
              Apr 12 '12 at 13:09











              0














              Many software depends on glibc itself or glibc macroses or just glibc style so build fails. You can fix any software easy if you know glibc from inside. For example we can see here linux headers for musl. Headers are not finished but you can checkout commits and see how this work looks like.



              Every developer tests its software using glibc based system. It is not possible to fix all live software development and make it compatible with other libc using right solution like pull request. So general purpose systems like gentoo can't be build using alternative libc without infinite pain.



              Embedded developers (from openwrt for example) are fixing software versions and making a heavy work around it. So embedded system (like openwrt) only can provide a source that can be build with alternative libc like musl or uclibc.



              The only painless and right way to replace glibc with other libc is to implement special wrapper that simulates all glibc behaviours using other libc. There is no such project today.






              share|improve this answer








              New contributor



              puchu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.


























                0














                Many software depends on glibc itself or glibc macroses or just glibc style so build fails. You can fix any software easy if you know glibc from inside. For example we can see here linux headers for musl. Headers are not finished but you can checkout commits and see how this work looks like.



                Every developer tests its software using glibc based system. It is not possible to fix all live software development and make it compatible with other libc using right solution like pull request. So general purpose systems like gentoo can't be build using alternative libc without infinite pain.



                Embedded developers (from openwrt for example) are fixing software versions and making a heavy work around it. So embedded system (like openwrt) only can provide a source that can be build with alternative libc like musl or uclibc.



                The only painless and right way to replace glibc with other libc is to implement special wrapper that simulates all glibc behaviours using other libc. There is no such project today.






                share|improve this answer








                New contributor



                puchu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.
























                  0












                  0








                  0







                  Many software depends on glibc itself or glibc macroses or just glibc style so build fails. You can fix any software easy if you know glibc from inside. For example we can see here linux headers for musl. Headers are not finished but you can checkout commits and see how this work looks like.



                  Every developer tests its software using glibc based system. It is not possible to fix all live software development and make it compatible with other libc using right solution like pull request. So general purpose systems like gentoo can't be build using alternative libc without infinite pain.



                  Embedded developers (from openwrt for example) are fixing software versions and making a heavy work around it. So embedded system (like openwrt) only can provide a source that can be build with alternative libc like musl or uclibc.



                  The only painless and right way to replace glibc with other libc is to implement special wrapper that simulates all glibc behaviours using other libc. There is no such project today.






                  share|improve this answer








                  New contributor



                  puchu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  Many software depends on glibc itself or glibc macroses or just glibc style so build fails. You can fix any software easy if you know glibc from inside. For example we can see here linux headers for musl. Headers are not finished but you can checkout commits and see how this work looks like.



                  Every developer tests its software using glibc based system. It is not possible to fix all live software development and make it compatible with other libc using right solution like pull request. So general purpose systems like gentoo can't be build using alternative libc without infinite pain.



                  Embedded developers (from openwrt for example) are fixing software versions and making a heavy work around it. So embedded system (like openwrt) only can provide a source that can be build with alternative libc like musl or uclibc.



                  The only painless and right way to replace glibc with other libc is to implement special wrapper that simulates all glibc behaviours using other libc. There is no such project today.







                  share|improve this answer








                  New contributor



                  puchu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.








                  share|improve this answer



                  share|improve this answer






                  New contributor



                  puchu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.








                  answered 15 hours ago









                  puchupuchu

                  1011 bronze badge




                  1011 bronze badge




                  New contributor



                  puchu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.




                  New contributor




                  puchu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.



































                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Unix & Linux Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f36267%2fcan-i-build-a-linux-distro-with-libc-instead-of-glibc%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                      Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                      Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...