Hello Brian,
it seems like the header linux/ext2_fs.h is missing on your build system:
fdmount.c:25:10: fatal error: linux/ext2_fs.h: No such file or directory
You can check if it is there with:
|ls -l /usr/include/linux/ext2_fs.h|
|If it isn't, installing this package should solve the problem:|
||sudo apt-get install e2fslibs-dev||
||It might be necessary to re-run ./configure afterwards, if it depends
on the existence of this package.
||
||- Stefan
||
Am 20.03.2021 um 12:00 schrieb fdutils-request(a)fdutils.linux.lu:
Message: 1
Date: Fri, 19 Mar 2021 21:23:15 -0500
From: Brian Hagen <bdhagen(a)fastmail.com>
To: fdutils(a)fdutils.linux.lu
Subject: [Fdutils] fdutil 5.5/5.6 cannot compile
Message-ID: <5fbb5d98-7f23-20af-65da-05769458c61a(a)fastmail.com>
Content-Type: text/plain; charset=utf-8
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