make -C src all
make[1]: Verzeichnis „/home/juergen/Downloads/fdutils/src“ wird betreten
gcc -Wall -g -O2 -I. -I. -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -c -o floppycontrol.o floppycontrol.c
lex -Pmediaprm mediaprm.lex
gcc -Wall -g -O2 -I. -I. -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -c -o lex.mediaprm.o lex.mediaprm.c
lex.mediaprm.c:1605:16: Warnung: »input« definiert, aber nicht verwendet [-Wunused-function]
1605 | #else
| ^
lex.mediaprm.c:1562:17: Warnung: »yyunput« definiert, aber nicht verwendet [-Wunused-function]
1562 |
| ^
ar rv libfdutils.a lex.mediaprm.o
ar: creating libfdutils.a
a - lex.mediaprm.o
lex -Pdriveprm driveprm.lex
gcc -Wall -g -O2 -I. -I. -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -c -o lex.driveprm.o lex.driveprm.c
lex.driveprm.c:1528:16: Warnung: »input« definiert, aber nicht verwendet [-Wunused-function]
1528 | #else
| ^
lex.driveprm.c:1485:17: Warnung: »yyunput« definiert, aber nicht verwendet [-Wunused-function]
1485 |
| ^
ar rv libfdutils.a lex.driveprm.o
a - lex.driveprm.o
gcc -Wall -g -O2 -I. -I. -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -c -o mediaprm.o mediaprm.c
mediaprm.c: In Funktion »parse_mediaprm«:
mediaprm.c:323:12: Warnung: Operation auf »r« könnte undefiniert sein [-Wsequence-point]
323 | return ((r=parse_direct(argc, argv, drvprm, medprm) &&
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
324 | (r=parse_indirect(argc, argv, drvprm, medprm))));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ar rv libfdutils.a mediaprm.o
a - mediaprm.o
gcc -Wall -g -O2 -I. -I. -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -c -o driveprm.o driveprm.c
driveprm.c: In Funktion »getdrivenum«:
driveprm.c:143:6: Warnung: Implizite Deklaration der Funktion »major« [-Wimplicit-function-declaration]
143 | major(buf->st_rdev) != FLOPPY_MAJOR) {
| ^~~~~
driveprm.c:148:8: Warnung: Implizite Deklaration der Funktion »minor« [-Wimplicit-function-declaration]
148 | num = minor( buf->st_rdev );
| ^~~~~
ar rv libfdutils.a driveprm.o
a - driveprm.o
gcc -Wall -g -O2 -I. -I. -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -c -o parse.o parse.c
ar rv libfdutils.a parse.o
a - parse.o
gcc -Wall -g -O2 -I. -I. -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -c -o oldfdprm.o oldfdprm.c
ar rv libfdutils.a oldfdprm.o
a - oldfdprm.o
gcc -Wall -g -O2 -I. -I. -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -c -o enh_options.o enh_options.c
enh_options.c: In Funktion »parse_option«:
enh_options.c:195:3: Warnung: diese »else«-Klausel beschützt nicht … [-Wmisleading-indentation]
195 | else
| ^~~~
enh_options.c:197:4: Anmerkung: … diese Anweisung, aber letztere ist verwirrend eingerückt, als wäre sie abhängig von »else«
197 | return 0;
| ^~~~~~
enh_options.c: In Funktion »print_help«:
enh_options.c:382:21: Warnung: Variable »htlength« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
382 | int i, wordlength, htlength, col;
| ^~~~~~~~
ar rv libfdutils.a enh_options.o
a - enh_options.o
gcc -Wall -g -O2 -I. -I. -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -c -o measure.o measure.c
ar rv libfdutils.a measure.o
a - measure.o
gcc -Wall -g -O2 -I. -I. -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -c -o printfdprm.o printfdprm.c
printfdprm.c: In Funktion »print_params«:
printfdprm.c:11:45: Warnung: Variable »need_tpi« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
11 | int ssize, r, perp_ref, need_dtr, need_fm, need_tpi;
| ^~~~~~~~
ar rv libfdutils.a printfdprm.o
a - printfdprm.o
gcc -Wall -g -O2 -I. -I. -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -c -o calc-format.o calc-format.c
calc-format.c: In Funktion »calc_placement«:
calc-format.c:327:21: Warnung: Variable »max_offset« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
327 | int cur_sector, i, max_offset;
| ^~~~~~~~~~
ar rv libfdutils.a calc-format.o
a - calc-format.o
gcc -Wall -g -O2 -I. -I. -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -c -o misc.o misc.c
ar rv libfdutils.a misc.o
a - misc.o
gcc -Wall -g -O2 -I. -I. -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -c -o skews.o skews.c
ar rv libfdutils.a skews.o
a - skews.o
ranlib libfdutils.a
gcc -o floppycontrol floppycontrol.o -L. -lfdutils
gcc -Wall -g -O2 -I. -I. -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -c -o getfdprm.o getfdprm.c
gcc -o getfdprm getfdprm.o -L. -lfdutils
/usr/bin/ld: ./libfdutils.a(driveprm.o): in function `parse_driveprm':
/home/juergen/Downloads/fdutils/src/driveprm.c:143: undefined reference to `major'
/usr/bin/ld: /home/juergen/Downloads/fdutils/src/driveprm.c:148: undefined reference to `minor'
collect2: Fehler: ld gab 1 als Ende-Status zurück
make[1]: *** [Makefile:101: getfdprm] Fehler 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]: Verzeichnis „/home/juergen/Downloads/fdutils/src“ wird verlassen
make: *** [Makefile:8: compile] Fehler 2
Can you help me? What went wrong?
Kind regards
Jürgen