Uploaded image for project: 'Fabric CA'
  1. Fabric CA
  2. FABC-313

Build warnings indicate statically-linked builds potentially non-portable

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Low
    • Resolution: Done
    • None
    • v1.2.0
    • None
    • None

    Description

      After upgrading to golang 1.9, build warning messages are issued (not new, just newly unmasked). The warnings imply limited portability of the statically-linked executable.

      make peer-docker

      14:39:29 /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libltdl.a(dlopen.o): In function `vm_open':
      14:39:29 (.text+0x5e): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
      14:39:29 /tmp/go-link-176411200/000000.o: In function `_cgo_b0c710f30cfd_C2func_getaddrinfo':
      14:39:29 /tmp/go-build/net/_obj/cgo-gcc-prolog:46: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
      

      make orderer-docker:

      14:41:00 /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libltdl.a(dlopen.o): In function `vm_open':
      14:41:00 (.text+0x5e): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
      14:41:00 /tmp/go-link-344798825/000000.o: In function `_cgo_b0c710f30cfd_C2func_getaddrinfo':
      14:41:00 /tmp/go-build/net/_obj/cgo-gcc-prolog:46: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
      

      The warnings for fabric ca client and server are ever more profuse:

      15:38:51  # github.com/hyperledger/fabric-ca/cmd/fabric-ca-client
      15:38:51  /tmp/go-link-521788677/000000.o: In function `unixDlOpen':
      15:38:51  /opt/gopath/src/github.com/hyperledger/fabric-ca/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c:35414: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
      15:38:51  /tmp/go-link-521788677/000002.o: In function `mygetgrouplist':
      15:38:51  /tmp/workdir/go/src/os/user/getgrouplist_unix.go:15: warning: Using 'getgrouplist' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
      15:38:51  /tmp/go-link-521788677/000002.o: In function `mygetgrgid_r':
      15:38:51  /tmp/workdir/go/src/os/user/cgo_lookup_unix.go:38: warning: Using 'getgrgid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
      15:38:51  /tmp/go-link-521788677/000002.o: In function `mygetgrnam_r':
      15:38:51  /tmp/workdir/go/src/os/user/cgo_lookup_unix.go:43: warning: Using 'getgrnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
      15:38:51  /tmp/go-link-521788677/000002.o: In function `mygetpwnam_r':
      15:38:51  /tmp/workdir/go/src/os/user/cgo_lookup_unix.go:33: warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
      15:38:51  /tmp/go-link-521788677/000002.o: In function `mygetpwuid_r':
      15:38:51  /tmp/workdir/go/src/os/user/cgo_lookup_unix.go:28: warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
      15:38:51  /tmp/go-link-521788677/000001.o: In function `_cgo_b0c710f30cfd_C2func_getaddrinfo':
      15:38:51  /tmp/go-build/net/_obj/cgo-gcc-prolog:46: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
      15:38:52  Building build/docker/bin/fabric-ca-server
      15:39:37  # github.com/hyperledger/fabric-ca/cmd/fabric-ca-server
      15:39:37  /tmp/go-link-759930536/000000.o: In function `unixDlOpen':
      15:39:37  /opt/gopath/src/github.com/hyperledger/fabric-ca/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c:35414: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
      15:39:37  /tmp/go-link-759930536/000002.o: In function `mygetgrouplist':
      15:39:37  /tmp/workdir/go/src/os/user/getgrouplist_unix.go:15: warning: Using 'getgrouplist' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
      15:39:37  /tmp/go-link-759930536/000002.o: In function `mygetgrgid_r':
      15:39:37  /tmp/workdir/go/src/os/user/cgo_lookup_unix.go:38: warning: Using 'getgrgid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
      15:39:37  /tmp/go-link-759930536/000002.o: In function `mygetgrnam_r':
      15:39:37  /tmp/workdir/go/src/os/user/cgo_lookup_unix.go:43: warning: Using 'getgrnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
      15:39:37  /tmp/go-link-759930536/000002.o: In function `mygetpwnam_r':
      15:39:37  /tmp/workdir/go/src/os/user/cgo_lookup_unix.go:33: warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
      15:39:37  /tmp/go-link-759930536/000002.o: In function `mygetpwuid_r':
      15:39:37  /tmp/workdir/go/src/os/user/cgo_lookup_unix.go:28: warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
      15:39:37  /tmp/go-link-759930536/000001.o: In function `_cgo_b0c710f30cfd_C2func_getaddrinfo':
      15:39:37  /tmp/go-build/net/_obj/cgo-gcc-prolog:46: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
      

      Attachments

        Activity

          People

            aambati AnilKumar Ambati
            rennman Allen Bailey
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: