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

compile error on current master #56

Closed
majek opened this issue Mar 14, 2018 · 3 comments
Closed

compile error on current master #56

majek opened this issue Mar 14, 2018 · 3 comments

Comments

@majek
Copy link

majek commented Mar 14, 2018

Current master

commit 55df9a925159bd5560757847570622903cc61e23
Author: Dmitry V. Levin <ldv@altlinux.org>
Date:   Tue Mar 13 20:54:25 2018 +0000

    Enable USE_SEIZE code unconditionally

    It is by no means an experimental code.

    * defs.h (USE_SEIZE): Remove.
    * strace.c [!USE_SEIZE]: Remove.

Compile error:

btrfs.c:141:47: fatal error: xlat/btrfs_logical_ino_args_flags.h: No such file or directory
 #include "xlat/btrfs_logical_ino_args_flags.h"

Later

gcc -std=gnu99 -E -P -DHAVE_CONFIG_H   -I./linux/x86_64 -I./linux/x86_64 -I./linux -I./linux -I. -I.     -DIN_MPERS_BOOTSTRAP v4l2.c -o v4l2.c.mpers.i
v4l2.c:89:32: fatal error: xlat/v4l2_pix_fmts.h: No such file or directory
 #include "xlat/v4l2_pix_fmts.h"

These are fixed by running ./gen.sh in xlat directory

But then I hit

In file included from btrfs.c:141:0:
xlat/btrfs_logical_ino_args_flags.h:8:3: error: #error static const struct xlat btrfs_logical_ino_args_flags in mpers mode
 # error static const struct xlat btrfs_logical_ino_args_flags in mpers mode
   ^
btrfs.c: In function ‘m32_btrfs_ioctl’:
btrfs.c:959:17: error: ‘btrfs_logical_ino_args_flags’ undeclared (first use in this function)
    printflags64(btrfs_logical_ino_args_flags,
                 ^
btrfs.c:959:17: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [libmpers_m32_a-btrfs.o] Error 1
make[2]: Leaving directory `/home/marek-local/src/strace'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/marek-local/src/strace'
make: *** [all] Error 2
@ldv-alt
Copy link
Member

ldv-alt commented Mar 14, 2018

Looks like you didn't run ./bootstrap script. How do you build strace?

@esyr
Copy link
Member

esyr commented Mar 14, 2018

Do you build from the distribution tarball or from the git repository? In the latter case, have you followed instructions that present in INSTALL-git.md?

@majek
Copy link
Author

majek commented Mar 14, 2018

Apologies, I missed that. All good. I think I only looked at README.

@majek majek closed this as completed Mar 14, 2018
esyr-rh pushed a commit to esyr-rh/strace that referenced this issue Mar 15, 2018
As its source, being written in assumption of using a distribution
tarball, might be confusing for those who try to build strace from
git repository.

* README: Move...
* dist/README: ...here.
* bootstrap: Move README from dist directory to the root one after
successful autoreconf.

References: strace#56
esyr-rh pushed a commit to esyr-rh/strace that referenced this issue Mar 19, 2018
As its source, being written in assumption of using a distribution
tarball, might be confusing for those who try to build strace from
git repository.

* README: Move...
* dist/README: ...here.
* bootstrap: Move README from dist directory to the root one after
successful autoreconf.

References: strace#56
esyr-rh pushed a commit to esyr-rh/strace that referenced this issue Mar 19, 2018
As its source, being written in assumption of using a distribution
tarball, might be confusing for those who try to build strace from
git repository.

* README: Move...
* dist/README: ...here.
* bootstrap: Move README from dist directory to the root one after
successful autoreconf.

References: strace#56
ldv-alt added a commit that referenced this issue Mar 20, 2018
README was originally written for users of distribution tarballs.
Nowadays it appears to be confusing for those who build strace
using a GIT version of strace source code.

* README: Move...
* dist/README: ...here.
* bootstrap: Copy README from dist subdirectory to the toplevel
directory after successful autoreconf.

Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
References: #56
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

3 participants