“ld: unknown option: -Bsymbolic” when trying to build iniparser on OSX











up vote
1
down vote

favorite












I'm trying to build http://github.com/ndevilla/iniparser on OSX, but getting:



~/ make
compiling src/iniparser.c ...
compiling src/dictionary.c ...
a - src/iniparser.o
a - src/dictionary.o
ld: unknown option: -Bsymbolic
collect2: ld returned 1 exit status
make: *** [libiniparser.so] Error 1


This seems to not be a known issue with the code itself. What do I need to adjust on my system?










share|improve this question


























    up vote
    1
    down vote

    favorite












    I'm trying to build http://github.com/ndevilla/iniparser on OSX, but getting:



    ~/ make
    compiling src/iniparser.c ...
    compiling src/dictionary.c ...
    a - src/iniparser.o
    a - src/dictionary.o
    ld: unknown option: -Bsymbolic
    collect2: ld returned 1 exit status
    make: *** [libiniparser.so] Error 1


    This seems to not be a known issue with the code itself. What do I need to adjust on my system?










    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I'm trying to build http://github.com/ndevilla/iniparser on OSX, but getting:



      ~/ make
      compiling src/iniparser.c ...
      compiling src/dictionary.c ...
      a - src/iniparser.o
      a - src/dictionary.o
      ld: unknown option: -Bsymbolic
      collect2: ld returned 1 exit status
      make: *** [libiniparser.so] Error 1


      This seems to not be a known issue with the code itself. What do I need to adjust on my system?










      share|improve this question













      I'm trying to build http://github.com/ndevilla/iniparser on OSX, but getting:



      ~/ make
      compiling src/iniparser.c ...
      compiling src/dictionary.c ...
      a - src/iniparser.o
      a - src/dictionary.o
      ld: unknown option: -Bsymbolic
      collect2: ld returned 1 exit status
      make: *** [libiniparser.so] Error 1


      This seems to not be a known issue with the code itself. What do I need to adjust on my system?







      macos build ld






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 26 '13 at 13:21









      GJ.

      2,21764269




      2,21764269
























          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          The -Bsymbolic flag specified in the Makefile of that project is specific to the GNU linker and platforms using the ELF binary format. OS X uses neither. The Makefile has several other flags that aren't compatible with the OS X toolchain, such as the use of the .so extension for shared libraries rather than .dylib, and another unsupported linker flag (-Wl,-soname=…). You should be able to remove the unsupported linker flags and then fix up the file extensions to make things work.






          share|improve this answer




























            up vote
            0
            down vote













            Using bdash's answer you can build iOS openssl-1.1.1 by doing the following:



            sed -ie "s!-Bsymbolic! !" "Makefile"
            sed -ie "s/-Wl,-soname=libssl$(SHLIB_EXT)/ /g" "Makefile"
            sed -ie "s/-Wl,-soname=libcrypto$(SHLIB_EXT)/ /g" "Makefile"
            sed -ie "s/--version-script=libcrypto.map/ /g" "Makefile"
            sed -ie "s/--version-script=libssl.map/ /g" "Makefile"





            share|improve this answer























              Your Answer






              StackExchange.ifUsing("editor", function () {
              StackExchange.using("externalEditor", function () {
              StackExchange.using("snippets", function () {
              StackExchange.snippets.init();
              });
              });
              }, "code-snippets");

              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "1"
              };
              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',
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              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%2fstackoverflow.com%2fquestions%2f15090198%2fld-unknown-option-bsymbolic-when-trying-to-build-iniparser-on-osx%23new-answer', 'question_page');
              }
              );

              Post as a guest
































              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              2
              down vote



              accepted










              The -Bsymbolic flag specified in the Makefile of that project is specific to the GNU linker and platforms using the ELF binary format. OS X uses neither. The Makefile has several other flags that aren't compatible with the OS X toolchain, such as the use of the .so extension for shared libraries rather than .dylib, and another unsupported linker flag (-Wl,-soname=…). You should be able to remove the unsupported linker flags and then fix up the file extensions to make things work.






              share|improve this answer

























                up vote
                2
                down vote



                accepted










                The -Bsymbolic flag specified in the Makefile of that project is specific to the GNU linker and platforms using the ELF binary format. OS X uses neither. The Makefile has several other flags that aren't compatible with the OS X toolchain, such as the use of the .so extension for shared libraries rather than .dylib, and another unsupported linker flag (-Wl,-soname=…). You should be able to remove the unsupported linker flags and then fix up the file extensions to make things work.






                share|improve this answer























                  up vote
                  2
                  down vote



                  accepted







                  up vote
                  2
                  down vote



                  accepted






                  The -Bsymbolic flag specified in the Makefile of that project is specific to the GNU linker and platforms using the ELF binary format. OS X uses neither. The Makefile has several other flags that aren't compatible with the OS X toolchain, such as the use of the .so extension for shared libraries rather than .dylib, and another unsupported linker flag (-Wl,-soname=…). You should be able to remove the unsupported linker flags and then fix up the file extensions to make things work.






                  share|improve this answer












                  The -Bsymbolic flag specified in the Makefile of that project is specific to the GNU linker and platforms using the ELF binary format. OS X uses neither. The Makefile has several other flags that aren't compatible with the OS X toolchain, such as the use of the .so extension for shared libraries rather than .dylib, and another unsupported linker flag (-Wl,-soname=…). You should be able to remove the unsupported linker flags and then fix up the file extensions to make things work.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 27 '13 at 7:00









                  bdash

                  14.9k13676




                  14.9k13676
























                      up vote
                      0
                      down vote













                      Using bdash's answer you can build iOS openssl-1.1.1 by doing the following:



                      sed -ie "s!-Bsymbolic! !" "Makefile"
                      sed -ie "s/-Wl,-soname=libssl$(SHLIB_EXT)/ /g" "Makefile"
                      sed -ie "s/-Wl,-soname=libcrypto$(SHLIB_EXT)/ /g" "Makefile"
                      sed -ie "s/--version-script=libcrypto.map/ /g" "Makefile"
                      sed -ie "s/--version-script=libssl.map/ /g" "Makefile"





                      share|improve this answer



























                        up vote
                        0
                        down vote













                        Using bdash's answer you can build iOS openssl-1.1.1 by doing the following:



                        sed -ie "s!-Bsymbolic! !" "Makefile"
                        sed -ie "s/-Wl,-soname=libssl$(SHLIB_EXT)/ /g" "Makefile"
                        sed -ie "s/-Wl,-soname=libcrypto$(SHLIB_EXT)/ /g" "Makefile"
                        sed -ie "s/--version-script=libcrypto.map/ /g" "Makefile"
                        sed -ie "s/--version-script=libssl.map/ /g" "Makefile"





                        share|improve this answer

























                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          Using bdash's answer you can build iOS openssl-1.1.1 by doing the following:



                          sed -ie "s!-Bsymbolic! !" "Makefile"
                          sed -ie "s/-Wl,-soname=libssl$(SHLIB_EXT)/ /g" "Makefile"
                          sed -ie "s/-Wl,-soname=libcrypto$(SHLIB_EXT)/ /g" "Makefile"
                          sed -ie "s/--version-script=libcrypto.map/ /g" "Makefile"
                          sed -ie "s/--version-script=libssl.map/ /g" "Makefile"





                          share|improve this answer














                          Using bdash's answer you can build iOS openssl-1.1.1 by doing the following:



                          sed -ie "s!-Bsymbolic! !" "Makefile"
                          sed -ie "s/-Wl,-soname=libssl$(SHLIB_EXT)/ /g" "Makefile"
                          sed -ie "s/-Wl,-soname=libcrypto$(SHLIB_EXT)/ /g" "Makefile"
                          sed -ie "s/--version-script=libcrypto.map/ /g" "Makefile"
                          sed -ie "s/--version-script=libssl.map/ /g" "Makefile"






                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited 2 days ago









                          rlandster

                          2,90993969




                          2,90993969










                          answered 2 days ago









                          Beckon

                          117




                          117






























                               

                              draft saved


                              draft discarded



















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f15090198%2fld-unknown-option-bsymbolic-when-trying-to-build-iniparser-on-osx%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest




















































































                              Popular posts from this blog

                              Bressuire

                              Vorschmack

                              Quarantine