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

'BTRFS_BUILD_VERSION' undeclared (first use in this function) -- btrfs-progs 3.19 #11487

Closed
prologic opened this issue Mar 19, 2015 · 3 comments

Comments

@prologic
Copy link
Contributor

Docker 1.5.0 no longer builds successfully against btrfs-progs 3.19.

See build log:

=======> Building '/usr/ports/pkg/docker#1.5.0-5.pkg.tar.xz'.
cp /usr/ports/src/check-config.sh /usr/ports/work/docker/src
bsdtar -p -o -C /usr/ports/work/docker/src -xf /usr/ports/src/v1.5.0.tar.gz
cp docker /usr/ports/work/docker/src
cp docker.conf /usr/ports/work/docker/src
+ build
+ cd docker-1.5.0
+ export AUTO_GOPATH=1
+ AUTO_GOPATH=1
+ export DOCKER_GITCOMMIT=a8a31eff10
+ DOCKER_GITCOMMIT=a8a31eff10
+ unset CC
+ unset CXX
+ ./hack/make.sh dynbinary
# WARNING! I don't seem to be running in the Docker container.
# The result of this command might be an incorrect build, and will not be
#   officially supported.
#
# Try this instead: make all
#

---> Making bundle: dynbinary (in bundles/1.5.0/dynbinary)
Created binary: /usr/ports/work/docker/src/docker-1.5.0/bundles/1.5.0/dynbinary/dockerinit-1.5.0
# github.com/docker/docker/daemon/graphdriver/btrfs
37: error: 'BTRFS_BUILD_VERSION' undeclared (first use in this function)
=======> ERROR: Building '/usr/ports/pkg/docker#1.5.0-5.pkg.tar.xz' failed.

btrfs-progs 3.18.2 shipped with /usr/include/btrfs/version.h which contains:

$ grin BTRFS_BUILD_VERSION /usr/include/btrfs/version.h 
/usr/include/btrfs/version.h:
   14 : #define BTRFS_BUILD_VERSION "Btrfs v3.18.2"

Do we have a solution to this in master yet?

@prologic
Copy link
Contributor Author

ping @tianon I suspect Gentoo might have similar issues?

@tianon
Copy link
Member

tianon commented Mar 19, 2015

This is a dupe of #11417. 😉

@tianon tianon closed this as completed Mar 19, 2015
@prologic
Copy link
Contributor Author

Damnit I even searched before posting too :) sigh Thanks @tianon

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

2 participants