make: *** [Makefile:79: aeff.o] Error 1 when compiling on Fedora 40
Status: Beta
Brought to you by:
btakahashi
Sorry, I don't really know how to file issues here
I'm compiling Aewan as instruction says: https://aewan.sourceforge.net/
When I enter make an error appears
user@fedora:~/Downloads/aewan-1.0.01$ ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for initscr in -lncurses... yes
checking for gzopen in -lz... yes
checking for ANSI C header files... (cached) no
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for mode_t... yes
checking for atexit... yes
checking for strdup... yes
checking for strerror... yes
checking for cygwin OSTYPE... not cygwin
configure: creating ./config.status
config.status: creating Makefile
user@fedora:~/Downloads/aewan-1.0.01$ make
gcc -g -O2 -fno-strict-aliasing -Wall -c aewan.c -o aewan.o
gcc -g -O2 -fno-strict-aliasing -Wall -c absmenu.c -o absmenu.o
gcc -g -O2 -fno-strict-aliasing -Wall -c aeff.c -o aeff.o
In file included from bores/bores.h:32,
from aeff.h:54,
from aeff.c:64:
aeff.c: In function ‘read_parse_data_line’:
aeff.c:91:40: error: passing argument 2 of ‘freadline_ex’ from incompatible pointer type [-Wincompatible-pointer-types]
91 | autod_assign( line, freadline_ex(f, gzgetc) );
| ^~~~~~
| |
| int (*)(struct gzFile_s *)
bores/autod.h:110:53: note: in definition of macro ‘autod_assign’
110 | (void**)&ptr, newvalue)
| ^~~~~~~~
In file included from bores/bores.h:37:
bores/util.h:144:36: note: expected ‘int (*)(void *)’ but argument is of type ‘int (*)(struct gzFile_s *)’
144 | char *freadline_ex(void *fh, int (*readch)(void*));
| ~~~~~~^~~~~~~~~~~~~~
aeff.c: In function ‘aeff_read_mark’:
aeff.c:195:42: error: passing argument 2 of ‘freadline_ex’ from incompatible pointer type [-Wincompatible-pointer-types]
195 | autod_assign(line, freadline_ex(f->f, gzgetc));
| ^~~~~~
| |
| int (*)(struct gzFile_s *)
bores/autod.h:110:53: note: in definition of macro ‘autod_assign’
110 | (void**)&ptr, newvalue)
| ^~~~~~~~
bores/util.h:144:36: note: expected ‘int (*)(void *)’ but argument is of type ‘int (*)(struct gzFile_s *)’
144 | char *freadline_ex(void *fh, int (*readch)(void*));
| ~~~~~~^~~~~~~~~~~~~~
make: *** [Makefile:79: aeff.o] Error 1
Duplicate of bug #14 which already has a patch to fix this.