Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing dependency in v0.7.3 (fileb0x) #368

Open
rwarren opened this issue Jul 2, 2023 · 0 comments
Open

Missing dependency in v0.7.3 (fileb0x) #368

rwarren opened this issue Jul 2, 2023 · 0 comments

Comments

@rwarren
Copy link

rwarren commented Jul 2, 2023

I am downloading the v0.7.3 source directly from here:
https://github.com/ochinchina/supervisord/archive/refs/tags/v0.7.3.zip

After unpacking that, I follow the install directions in the main README.md (here) and run go generate:

$ go generate
go: downloading github.com/jessevdk/go-flags v1.5.0
go: downloading github.com/gorilla/mux v1.8.0
go: downloading github.com/kardianos/service v1.2.0
go: downloading github.com/gorilla/rpc v1.2.0
go: downloading github.com/ochinchina/go-daemon v0.1.5
go: downloading github.com/ochinchina/go-ini v1.0.1
go: downloading github.com/ochinchina/go-reaper v0.0.0-20181016012355-6b11389e79fc
go: downloading github.com/ochinchina/gorilla-xmlrpc v0.0.0-20171012055324-ecf2fe693a2c
go: downloading github.com/prometheus/client_golang v1.10.0
go: downloading github.com/sirupsen/logrus v1.8.1
go: downloading github.com/rogpeppe/go-charset v0.0.0-20190617161244-0dc95cdf6f31
go: downloading github.com/ochinchina/filechangemonitor v0.3.1
go: downloading github.com/robfig/cron/v3 v3.0.1
go: downloading golang.org/x/sys v0.0.0-20210503080704-8803ae5d1324
go: downloading github.com/cespare/xxhash/v2 v2.1.1
go: downloading github.com/golang/protobuf v1.5.2
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/prometheus/client_model v0.2.0
go: downloading github.com/prometheus/common v0.23.0
go: downloading github.com/prometheus/procfs v0.6.0
go: downloading google.golang.org/protobuf v1.26.0
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
no required module provides package github.com/UnnoTed/fileb0x; to add it:
        go get github.com/UnnoTed/fileb0x
assets_dev.go:2: running "go": exit status 1

It looks like the dependencies aren't set up properly.

I then successfully grab the missing dependency tree, as suggested:

$ go get github.com/UnnoTed/fileb0x
go: downloading github.com/UnnoTed/fileb0x v1.1.4
go: downloading github.com/labstack/echo v3.2.1+incompatible
go: downloading golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420
go: downloading github.com/bmatcuk/doublestar v1.1.1
go: downloading github.com/karrick/godirwalk v1.7.8
go: downloading github.com/gizak/termui/v3 v3.1.0
go: downloading github.com/BurntSushi/toml v0.3.1
go: downloading gopkg.in/yaml.v2 v2.3.0
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/nsf/termbox-go v0.0.0-20190121233118-02980233997d
go: downloading github.com/mattn/go-runewidth v0.0.3
go: downloading github.com/mitchellh/go-wordwrap v1.0.0
go: downloading golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9
go: downloading github.com/labstack/gommon v0.2.7
go: downloading github.com/mattn/go-isatty v0.0.4
go: downloading github.com/mattn/go-colorable v0.0.9
go: downloading github.com/valyala/fasttemplate v0.0.0-20170224212429-dcecefd839c4
go: downloading github.com/valyala/bytebufferpool v1.0.0
go: downloading golang.org/x/text v0.3.6
go: added github.com/UnnoTed/fileb0x v1.1.4

After doing this I can build successfully with step 2 of the provided build instructions... but with some glibc warnings that could be a problem for portability:

$ GOOS=linux go build -tags release -a -ldflags
# github.com/ochinchina/supervisord
/usr/local/bin/ld: /tmp/go-link-1145361369/000021.o: in function `mygetgrouplist':
/_/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
/usr/local/bin/ld: /tmp/go-link-1145361369/000020.o: in function `mygetgrgid_r':
/_/os/user/cgo_lookup_cgo.go:45: warning: Using 'getgrgid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/local/bin/ld: /tmp/go-link-1145361369/000020.o: in function `mygetgrnam_r':
/_/os/user/cgo_lookup_cgo.go:54: warning: Using 'getgrnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/local/bin/ld: /tmp/go-link-1145361369/000020.o: in function `mygetpwnam_r':
/_/os/user/cgo_lookup_cgo.go:36: warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/local/bin/ld: /tmp/go-link-1145361369/000020.o: in function `mygetpwuid_r':
/_/os/user/cgo_lookup_cgo.go:27: warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/local/bin/ld: /tmp/go-link-1145361369/000004.o: in function `_cgo_cbcce81e6342_C2func_getaddrinfo':
/tmp/go-build/cgo-gcc-prolog:58: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking

Is this all expected behaviour?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant