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

libext2fs: compile errors with current Genode staging branch #167

Closed
cproc opened this issue May 24, 2019 · 2 comments
Closed

libext2fs: compile errors with current Genode staging branch #167

cproc opened this issue May 24, 2019 · 2 comments

Comments

@cproc
Copy link
Member

cproc commented May 24, 2019

When building 'make LIB=libext2fs' with the current Genode staging branch, the following error occurs:

    COMPILE  alloc.o
In file included from /.../contrib/fuse-ext2-867fc9cb8f828f6463871d5db396b8cda9d7b5b5/src/lib/fuse-ext2/e2fsprogs-1.41.12.newgit/ext2fs/alloc.c:26:
/.../contrib/fuse-ext2-867fc9cb8f828f6463871d5db396b8cda9d7b5b5/src/lib/fuse-ext2/e2fsprogs-1.41.12.newgit/ext2fs/ext2fs.h:52:22: error: conflicting types for ‘dev_t’
 typedef unsigned int dev_t;
                      ^~~~~
In file included from /.../contrib/fuse-ext2-867fc9cb8f828f6463871d5db396b8cda9d7b5b5/src/lib/fuse-ext2/e2fsprogs-1.41.12.newgit/ext2fs/ext2fs.h:49,
                 from /.../contrib/fuse-ext2-867fc9cb8f828f6463871d5db396b8cda9d7b5b5/src/lib/fuse-ext2/e2fsprogs-1.41.12.newgit/ext2fs/alloc.c:26:
/.../contrib/libc-15bedbc9f3adea283d1c036ef57448ebbdaa4cbc/include/libc/sys/types.h:107:17: note: previous declaration of ‘dev_t’ was here
 typedef __dev_t  dev_t;  /* device number or struct cdev */
@ttcoder
Copy link

ttcoder commented Nov 9, 2021

I don't have the code handy, but I think I "solved" that one by removing the typedef, and replacing it with ...

#include <sys/types>

...So that the proper definition is used instead.

But since this is in contrib/, the thing to do is probably to create a .patch file (to be applied by tools/prepare_port) rather than change the code by hand ?

@cnuke
Copy link
Member

cnuke commented Jun 7, 2022

Problem was fixed (see #199).

@cnuke cnuke closed this as completed Jun 7, 2022
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