2 Replies Latest reply on Apr 27, 2020 10:42 AM by fritz.kraus

    compiling git on Solaris 10 - fatal: unable to find remote helper for 'https'

    fritz.kraus

      Hi!

       

      has someone experience compiling git v2.26 (current) on Solaris 10 sparc?

      I can't get it to work with https. After finishing compiling, I get

       

      $ /usr/local/bin/git clone https://xxx.address.org/repo.git

      Cloning into 'agent'...

      fatal: unable to find remote helper for 'https'

       

      Basically I installed the tools and libs from openCSW.

       

      to name a few -

      + autoconf

      + openssl_utils

      + expat

      + curl_devel_stub

      + tcl_dev

      + libiconv_utils

      + libncurses_dev

      + gcc5g++

      + libexpat_dev

      + curl

      + curldevel

      + libcurl-dev

       


      git is very old getting it from openCSW with v2.4 from 2015

       

      but eg. openssl and curl seem to be still maintained at openCSW, they are very current.

       

      1)

      my way is

       

      $ ./configure --prefix=/usr/local --with-curl --with-expat --with-openssl=/opt/csw/lib

      or

      $ ./configure --prefix=/usr/local --with-curl --with-expat

      or

      $ ./configure --prefix=/usr/local --with-curl

      $ ./make -j4

      ...

      ld: fatal: library -lcares: not found

      ld: fatal: library -lrtmp: not found

      ld: fatal: library -lssh2: not found

      ld: fatal: library -lssh2: not found

      ld: fatal: library -lgssapi_krb5: not found

      ld: fatal: library -lk5crypto: not found

      ld: fatal: library -lcom_err: not found

      ld: fatal: library -llber: not found

      ld: fatal: library -lbrotlidec: not found

      ld: fatal: library -lbrotlidec: not found

      ld: fatal: file processing errors. No output written to git-imap-send

      make: *** [git-imap-send] Error 1

      make: *** Waiting for unfinished jobs....

       

      2)

      different result

       

      $ ./configure --with-curl=/opt/csw/lib/libcurl.so --with-openssl=/opt/csw/lib/libssl.so --with-expat

      $ ./make -j4

      (works)

      $ ./make install

      $ /usr/local/bin/git --version

      git version 2.26.0-rc1

      $ /usr/local/bin/git clone https://xxx.address.org/repo.git

      Cloning into 'agent'...

      fatal: unable to find remote helper for 'https'

       

      I also tried setting LD_LIBRARY_PATH=/opt/csw/lib

       

      For me it seems like that openssl is not included. Or something with curl.

      Or the current version v2.26 is not compatible with some openCSW tools.

       

      Any hint is highly appreciated.

       

      --Fritz

        • 1. Re: compiling git on Solaris 10 - fatal: unable to find remote helper for 'https'
          Tomáš Glozar

          In the first case it looks like the libraries listed in the make output were detected by configure, but for some reason it can't link against them. Setting LDFLAGS to include /opt/csw/lib in the library search directory could help:

           

          ./configure --with-curl=/opt/csw --with-openssl=/opt/csw --with-expat LDFLAGS="-L/opt/csw/lib"

           

          If this doesn't work, check the architecture of the libraries in /opt/csw/lib and the architecture of binaries produced by the compiler used in the compilation. I don't know about SPARC, but 32-bit vs 64-bit mismatch can happen quite easily on x86. Also checking the output of configure for which libraries were found and which not and the linker command (a verbose option to make may be needed for that) could reveal the cause of the errors.

          • 2. Re: compiling git on Solaris 10 - fatal: unable to find remote helper for 'https'
            fritz.kraus

            I could now compile git v2.25 on Solaris 10

             

            install git from openCSW

            necessary for existance of /opt/csw/libexec/git-core/git-remote-https

             

            download current git:

             

            (git-compile-node) $ cd /tmp ; git clone https://github.com/git/git.git

            (git-compile-node) $ unzip -q git-master.zip

             

            copying from a working S10 node, because git-remote-https is necessary for https:

             

            (solaris 10 node) $ scp /opt/csw/libexec/git-core/git-remote-https (git-compile-node):/opt/csw/libexec/git-core/

             

            compile:

             

            (git-compile-node) /export/home/labuser/git-2.25.1 $ ./configure --with-curl=/opt/csw/lib/libcurl.so --with-openssl=/opt/csw/lib/libssl.so --with-expat

            (git-compile-node) /export/home/labuser/git-2.25.1 $ make -j4

            (git-compile-node) /export/home/labuser/git-2.25.1 $ make install

             

            Test :

             

            (git-compile-node) $ /usr/local/bin/git --version

            (git-compile-node) $ /usr/local/bin/git clone https://github.com/git/git.git