Kühl, scheint zu funktionieren, vielen Dank! Flicken selbst geschrieben oder aus dem CVS (ist für Zuse Voodoo) ausgegraben? Wem soll ich das Commit widmen?
In file included from buffer/buffer_0.c:2:
./buffer.h:40:65: error: initialization of ‘ssize_t (*)(void)’ {aka ‘long int (*)(void)’} from incompatible pointer type ‘ssize_t (*)(int, char *, size_t)’ {aka ‘long int (*)(int, char *, long unsigned int)’} [-Wincompatible-pointer-types]
40 | #define BUFFER_INIT(op,fd,buf,len) { (char*)(buf), 0, 0, (len), (op), NULL, NULL, (fd) }
| ^
./buffer.h:42:41: note: in expansion of macro ‘BUFFER_INIT’
42 | #define BUFFER_INIT_READ(op,fd,buf,len) BUFFER_INIT(op,fd,buf,len) /*obsolete*/
| ^~~~~~~~~~~
buffer/buffer_0.c:10:20: note: in expansion of macro ‘BUFFER_INIT_READ’
10 | static buffer it = BUFFER_INIT_READ(b0read,0,buffer_0_space,sizeof buffer_0_space);
| ^~~~~~~~~~~~~~~~
./buffer.h:40:65: note: (near initialization for ‘it.op’)
40 | #define BUFFER_INIT(op,fd,buf,len) { (char*)(buf), 0, 0, (len), (op), NULL, NULL, (fd) }
| ^
./buffer.h:42:41: note: in expansion of macro ‘BUFFER_INIT’
42 | #define BUFFER_INIT_READ(op,fd,buf,len) BUFFER_INIT(op,fd,buf,len) /*obsolete*/
| ^~~~~~~~~~~
buffer/buffer_0.c:10:20: note: in expansion of macro ‘BUFFER_INIT_READ’
10 | static buffer it = BUFFER_INIT_READ(b0read,0,buffer_0_space,sizeof buffer_0_space);
| ^~~~~~~~~~~~~~~~
buffer/buffer_0.c:4:16: note: ‘b0read’ declared here
4 | static ssize_t b0read(int fd,char* buf, size_t len) {
| ^~~~~~
In file included from buffer/buffer_0small.c:2:
./buffer.h:40:65: error: initialization of ‘ssize_t (*)(void)’ {aka ‘long int (*)(void)’} from incompatible pointer type ‘ssize_t (*)(int, char *, size_t)’ {aka ‘long int (*)(int, char *, long unsigned int)’} [-Wincompatible-pointer-types]
40 | #define BUFFER_INIT(op,fd,buf,len) { (char*)(buf), 0, 0, (len), (op), NULL, NULL, (fd) }
| ^
./buffer.h:42:41: note: in expansion of macro ‘BUFFER_INIT’
42 | #define BUFFER_INIT_READ(op,fd,buf,len) BUFFER_INIT(op,fd,buf,len) /*obsolete*/
| ^~~~~~~~~~~
buffer/buffer_0small.c:10:20: note: in expansion of macro ‘BUFFER_INIT_READ’
10 | static buffer it = BUFFER_INIT_READ(b0read,0,buffer_0_space,sizeof buffer_0_space);
| ^~~~~~~~~~~~~~~~
./buffer.h:40:65: note: (near initialization for ‘it.op’)
40 | #define BUFFER_INIT(op,fd,buf,len) { (char*)(buf), 0, 0, (len), (op), NULL, NULL, (fd) }
| ^
./buffer.h:42:41: note: in expansion of macro ‘BUFFER_INIT’
42 | #define BUFFER_INIT_READ(op,fd,buf,len) BUFFER_INIT(op,fd,buf,len) /*obsolete*/
| ^~~~~~~~~~~
buffer/buffer_0small.c:10:20: note: in expansion of macro ‘BUFFER_INIT_READ’
10 | static buffer it = BUFFER_INIT_READ(b0read,0,buffer_0_space,sizeof buffer_0_space);
| ^~~~~~~~~~~~~~~~
buffer/buffer_0small.c:4:16: note: ‘b0read’ declared here
4 | static ssize_t b0read(int fd,char* buf, size_t len) {
| ^~~~~~
In file included from buffer/buffer_1.c:2:
./buffer.h:40:65: error: initialization of ‘ssize_t (*)(void)’ {aka ‘long int (*)(void)’} from incompatible pointer type ‘ssize_t (*)(int, const void *, size_t)’ {aka ‘long int (*)(int, const void *, long unsigned int)’} [-Wincompatible-pointer-types]
40 | #define BUFFER_INIT(op,fd,buf,len) { (char*)(buf), 0, 0, (len), (op), NULL, NULL, (fd) }
| ^
buffer/buffer_1.c:8:20: note: in expansion of macro ‘BUFFER_INIT’
8 | static buffer it = BUFFER_INIT(write,1,buffer_1_space,sizeof buffer_1_space);
| ^~~~~~~~~~~
./buffer.h:40:65: note: (near initialization for ‘it.op’)
40 | #define BUFFER_INIT(op,fd,buf,len) { (char*)(buf), 0, 0, (len), (op), NULL, NULL, (fd) }
| ^
buffer/buffer_1.c:8:20: note: in expansion of macro ‘BUFFER_INIT’
8 | static buffer it = BUFFER_INIT(write,1,buffer_1_space,sizeof buffer_1_space);
| ^~~~~~~~~~~
In file included from buffer/buffer_1.c:1:
[KLASSIFIZIERT]/dietchan2/build/include/unistd.h:79:9: note: ‘write’ declared here
79 | ssize_t write(int fd,const void* buf,size_t len) __THROW;
| ^~~~~
make[3]: *** [GNUmakefile:1186: buffer_0.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [GNUmakefile:1186: buffer_0small.o] Error 1
make[3]: *** [GNUmakefile:1186: buffer_1.o] Error 1
In file included from buffer/buffer_2.c:2:
./buffer.h:40:65: error: initialization of ‘ssize_t (*)(void)’ {aka ‘long int (*)(void)’} from incompatible pointer type ‘ssize_t (*)(int, const void *, size_t)’ {aka ‘long int (*)(int, const void *, long unsigned int)’} [-Wincompatible-pointer-types]
40 | #define BUFFER_INIT(op,fd,buf,len) { (char*)(buf), 0, 0, (len), (op), NULL, NULL, (fd) }
| ^
buffer/buffer_2.c:5:20: note: in expansion of macro ‘BUFFER_INIT’
5 | static buffer it = BUFFER_INIT(write,2,buffer_2_space,sizeof buffer_2_space);
| ^~~~~~~~~~~
./buffer.h:40:65: note: (near initialization for ‘it.op’)
40 | #define BUFFER_INIT(op,fd,buf,len) { (char*)(buf), 0, 0, (len), (op), NULL, NULL, (fd) }
| ^
buffer/buffer_2.c:5:20: note: in expansion of macro ‘BUFFER_INIT’
5 | static buffer it = BUFFER_INIT(write,2,buffer_2_space,sizeof buffer_2_space);
| ^~~~~~~~~~~
In file included from buffer/buffer_2.c:1:
[KLASSIFIZIERT]/dietchan2/build/include/unistd.h:79:9: note: ‘write’ declared here
79 | ssize_t write(int fd,const void* buf,size_t len) __THROW;
| ^~~~~
make[3]: *** [GNUmakefile:1186: buffer_2.o] Error 1
In file included from buffer/buffer_1small.c:2:
./buffer.h:40:65: error: initialization of ‘ssize_t (*)(void)’ {aka ‘long int (*)(void)’} from incompatible pointer type ‘ssize_t (*)(int, const void *, size_t)’ {aka ‘long int (*)(int, const void *, long unsigned int)’} [-Wincompatible-pointer-types]
40 | #define BUFFER_INIT(op,fd,buf,len) { (char*)(buf), 0, 0, (len), (op), NULL, NULL, (fd) }
| ^
buffer/buffer_1small.c:5:20: note: in expansion of macro ‘BUFFER_INIT’
5 | static buffer it = BUFFER_INIT(write,1,buffer_1_space,sizeof buffer_1_space);
| ^~~~~~~~~~~
./buffer.h:40:65: note: (near initialization for ‘it.op’)
40 | #define BUFFER_INIT(op,fd,buf,len) { (char*)(buf), 0, 0, (len), (op), NULL, NULL, (fd) }
| ^
buffer/buffer_1small.c:5:20: note: in expansion of macro ‘BUFFER_INIT’
5 | static buffer it = BUFFER_INIT(write,1,buffer_1_space,sizeof buffer_1_space);
| ^~~~~~~~~~~
In file included from buffer/buffer_1small.c:1:
[KLASSIFIZIERT]/dietchan2/build/include/unistd.h:79:9: note: ‘write’ declared here
79 | ssize_t write(int fd,const void* buf,size_t len) __THROW;
| ^~~~~
make[3]: *** [GNUmakefile:1186: buffer_1small.o] Error 1
make[2]: *** [CMakeFiles/libowfat.dir/build.make:96: .prefix/libowfat/src/libowfat-stamp/libowfat-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:132: CMakeFiles/libowfat.dir/all] Error 2
make: *** [Makefile:91: all] Error 2