Hello, all:
I went to put together my first run of fdutils. I entered "./configure", all went well. Using "make" went through several stages, then bombed out with a fatal error message, posted at the end of this message.
I am using an Ubuntu Studio 18.04 host system, all is up to date with it. I followed the trail, installing (via apt-get) bison, flex, and fdutils. I am not certain how to get a version level on "mtools".
At this point, there is only a broken make sequence, and it will go no further until I find out what is causing it. Header files not included? Environment variables not set? I am not certain.
The message:
fdmount.c:25:10: fatal error: linux/ext2_fs.h: No such file or directory #include <linux/ext2_fs.h> ^~~~~~~~~~~~~~~~~ compilation terminated. <builtin>: recipe for target 'fdmount' failed make[1]: *** [fdmount] Error 1 rm enh_options.o measure.o calc-format.o oldfdprm.o parse.o driveprm.o misc.o lex.mediaprm.o lex.driveprm.o printfdprm.o skews.o lex.mediaprm.c mediaprm.o lex.driveprm.c make[1]: Leaving directory '/sdl1/bharts/midi-stuff/Ensoniq/SQ80/dox/utils/FD5-5/fdutils-5.5/src' Makefile:8: recipe for target 'compile' failed make: *** [compile] Error 2 =========================
(additional efforts to track down internal functions, e.g., fdmount, and compile separately resulted in):
fdmount.c:25:10: fatal error: linux/ext2_fs.h: No such file or directory #include <linux/ext2_fs.h> ^~~~~~~~~~~~~~~~~ compilation terminated. <builtin>: recipe for target 'fdmount' failed
--------fdmount.c: In function ‘id_fstype’: fdmount.c:453:13: error: dereferencing pointer to incomplete type ‘struct ext2_super_block’ if (ext2->s_magic==EXT2_SUPER_MAGIC ^~ fdmount.c: In function ‘canonicalize’: getcwd (canonical, PATH_MAX); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ fdmount.c: In function ‘do_mount’: read(fd,super,sizeof(super)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ fdmount.c: In function ‘main’: chdir ("/"); /* no current directory. */ ^~~~~~~~~~~ make[1]: *** [fdmount] Error 1 make: *** [all] Error 2
---------------------------------------------
Ideas, anyone?
Brian
On Fri, Mar 19, 2021 at 09:23:15PM -0500, Brian Hagen wrote:
fdmount.c:25:10: fatal error: linux/ext2_fs.h: No such file or directory #include <linux/ext2_fs.h>
That's included in the kernel source:
$ apt-file search ext2_fs.h
libext2fs-dev: /usr/include/ext2fs/ext2_fs.h linux-headers-5.10.0-4-common: /usr/src/linux-headers-5.10.0-4-common/include/linux/ext2_fs.h linux-headers-5.10.0-4-common-rt: /usr/src/linux-headers-5.10.0-4-common-rt/include/linux/ext2_fs.h
Perhaps you just need to install libext2fs-dev ? Otherwise the linux-headers?
ael