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

[openbsd] can't compile, no SEEK_DATA/SEEK_HOLE support #1

Open
jirib opened this issue Aug 24, 2015 · 3 comments
Open

[openbsd] can't compile, no SEEK_DATA/SEEK_HOLE support #1

jirib opened this issue Aug 24, 2015 · 3 comments

Comments

@jirib
Copy link

jirib commented Aug 24, 2015

IIUC SEEK_DATA/SEEK_HOLE is not standardized yet, could you meanwhile make it portable to OpenBSD?

$ gmake
for x in vmdk ova; do gmake -C $x all; done
gmake[1]: Entering directory '/home/jirib/tmp/open-vmdk/vmdk'
mkdir -p ../build/vmdk
gcc -W -Wall -O2 -g -c -o ../build/vmdk/flat.o flat.c
flat.c: In function 'FlatNextData':
flat.c:85: error: 'SEEK_DATA' undeclared (first use in this function)
flat.c:85: error: (Each undeclared identifier is reported only once
flat.c:85: error: for each function it appears in.)
flat.c:99: error: 'SEEK_HOLE' undeclared (first use in this function)
Makefile:36: recipe for target '../build/vmdk/flat.o' failed
gmake[1]: *** [../build/vmdk/flat.o] Error 1
gmake[1]: Leaving directory '/home/jirib/tmp/open-vmdk/vmdk'
gmake[1]: Entering directory '/home/jirib/tmp/open-vmdk/ova'
gmake[1]: Nothing to be done for 'all'.
gmake[1]: Leaving directory '/home/jirib/tmp/open-vmdk/ova'

$ sysctl kern.version                                                                                                                                                         
kern.version=OpenBSD 5.8 (GENERIC.MP) #1234: Thu Aug  6 09:26:52 MDT 2015
    [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
@jirib
Copy link
Author

jirib commented Aug 24, 2015

@oliverkurth
Copy link
Contributor

Sorry, I missed this issue. I'll have a look when I find some time.

If you have a patch, let me know. I never tested building this with OpenBSD.

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