Uploaded image for project: 'Fabric'
  1. Fabric
  2. FAB-2854

Failed Compilation due to ltdl.h header file missing

    Details

      Description

      This has the same symptom as https://jira.hyperledger.org/browse/FAB-2684. This is more pervasive in it also impacts fabric makes outside of docker. I am hitting is when building outside of vagrant and trying to run the examples/e2e_cli. Here is the error:

      Building configtxgen
      
      build/bin/configtxgen
      
      CGO_CFLAGS=" " GOBIN=/home/barry/go/src/github.com/hyperledger/fabric/build/bin go install -ldflags "-X github.com/hyperledger/fabric/common/metadata.Version=1.0.0-snapshot-424cbde -X github.com/hyperledger/fabric/common/metadata.BaseVersion=0.3.0 -X github.com/hyperledger/fabric/common/metadata.BaseDockerLabel=org.hyperledger.fabric" github.com/hyperledger/fabric/common/configtx/tool/configtxgen
      
      # github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11
      
      vendor/github.com/miekg/pkcs11/pkcs11.go:29:18: fatal error: ltdl.h: No such file or directory
      
      #include <ltdl.h>
      
                       ^
      
      compilation terminated.
      
      make: *** [build/bin/configtxgen] Error 2
      
      Generating genesis block
      
      generateCfgTrx.sh: line 21: ./build/bin/configtxgen: No such file or directory
      
      mv: cannot stat ‘orderer.block’: No such file or directory
      
      Generating channel configuration transaction
      

      I am marking this as highest as most people running vagrant will incur this issue. We can for the short-term add it as a note in the e2e_cli README.

      The fix for FAB-2684 was in https://gerrit.hyperledger.org/r/#/c/7167/2/docs/source/Setup/ca-setup.rst:

       # sudo apt install libtool libltdl-dev
      
      For more information on libtool, see https://www.gnu.org/software/libtool.
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nickgaski Nick Gaski
                Reporter:
                bmos299 Barry Mosakowski
              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Integration