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

install / compilation error with cockroachdb/pebble #988

Closed
anoduck opened this issue Feb 17, 2023 · 3 comments · Fixed by projectdiscovery/hmap#77
Closed

install / compilation error with cockroachdb/pebble #988

anoduck opened this issue Feb 17, 2023 · 3 comments · Fixed by projectdiscovery/hmap#77
Assignees
Labels
Status: Completed Nothing further to be done with this issue. Awaiting to be closed. Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@anoduck
Copy link

anoduck commented Feb 17, 2023

httpx version: Latest as of 2-17-2023

Current Behavior:

During execution of go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest the install failed on the required dependency pebble. It ejected the following set of errors:

# github.com/cockroachdb/pebble/vfs
/go/bin/pkg/mod/github.com/cockroachdb/pebble@v0.0.0-20230207164304-7d1e4ba7ffd0/vfs/disk_usage_unix.go:18:27: stat.Bsize undefined (type unix.Statfs_t has no field or method Bsize)
/go/bin/pkg/mod/github.com/cockroachdb/pebble@v0.0.0-20230207164304-7d1e4ba7ffd0/vfs/disk_usage_unix.go:18:48: stat.Bfree undefined (type unix.Statfs_t has no field or method Bfree)
/go/bin/pkg/mod/github.com/cockroachdb/pebble@v0.0.0-20230207164304-7d1e4ba7ffd0/vfs/disk_usage_unix.go:19:28: stat.Bsize undefined (type unix.Statfs_t has no field or method Bsize)
/go/bin/pkg/mod/github.com/cockroachdb/pebble@v0.0.0-20230207164304-7d1e4ba7ffd0/vfs/disk_usage_unix.go:19:49: stat.Bavail undefined (type unix.Statfs_t has no field or method Bavail)
/go/bin/pkg/mod/github.com/cockroachdb/pebble@v0.0.0-20230207164304-7d1e4ba7ffd0/vfs/disk_usage_unix.go:20:28: stat.Bsize undefined (type unix.Statfs_t has no field or method Bsize)
/go/bin/pkg/mod/github.com/cockroachdb/pebble@v0.0.0-20230207164304-7d1e4ba7ffd0/vfs/disk_usage_unix.go:20:49: stat.Blocks undefined (type unix.Statfs_t has no field or method Blocks)

System: OpenBSD Current 7.2
Go Version: go1.19.4 openbsd/amd64

An issue has been created and opened in the pebble repository for this as well. cockroachdb/pebble#2341

Expected Behavior:

Expected a clean install without any hiccups.

Steps To Reproduce:

  1. Create a bootable OpenBSD installation. (can be done on vm if needed) https://www.openbsd.org/faq/faq4.html
  2. Install go as root user pkg_add -U go
  3. Install Bash to avoid using ksh `pkg_add -U bash bash-completion``
  4. Setup GOPATH echo 'export GOPATH="$HOME/go"' >> ~/.bashrc
  5. Setup GOBIN echo 'export GOBIN="$GOPATH/bin"' >> ~/.bashrc
  6. source ~/.bashrc
  7. Attempt install go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest

Anything else:

Not at this moment.

@anoduck anoduck added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Feb 17, 2023
@Mzack9999
Copy link
Member

@anoduck Thanks for reporting this - I removed support for pebble in hmap as also, in the past, it introduced compilation errors for arm and 386 architectures.

@Mzack9999 Mzack9999 self-assigned this Mar 9, 2023
@ehsandeep ehsandeep changed the title Install Failed: stat.Bsize undefined | stat.Bfree undefined | stat.Bsize undefined | stat.Bavail undefined install / compilation error with cockroachdb/pebble Mar 10, 2023
@anoduck
Copy link
Author

anoduck commented Mar 11, 2023

@Mzack9999 Awesome! When should I look for the changes to be reflected in the repository?

@Mzack9999
Copy link
Member

@anoduck as soon as hmap new version is released (ca 1 week) the change will be available in the dev branch

@Mzack9999 Mzack9999 added the Status: Completed Nothing further to be done with this issue. Awaiting to be closed. label Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Completed Nothing further to be done with this issue. Awaiting to be closed. Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants