System:
- Debian 10
- DWipe version: 2.1.0 (made from sources)
Issue
NOTE: From security reasons, the patches on disk were trunchated
While configuring, I got following errors (extracted only error messages):
device.c: In function 'dwipe_device_scan':
device.c:139:28: warning: format '%lli' expects argument of type 'long long int *', but argument 5 has type 'loff_t *' {aka 'long int *'} [-Wformat=]
139 | if( sscanf( b, "%i %i %lli %s", &dmajor, &dminor, &dblocks, &dname[ strlen( dprefix ) ] ) == 4 )
| ~~~^ ~~~~~~~~
| | |
| long long int * loff_t * {aka long int *}
| %li
=======================================================
gui.c: In function 'dwipe_gui_title':
gui.c:142:6: warning: variable 'wy' set but not used [-Wunused-but-set-variable]
142 | int wy;
| ^~
=======================================================
httpd.c: In function 'handle_request':
httpd.c:117:10: warning: implicit declaration of function 'dwipe_get_info_json'; did you mean 'dwipe_get_info_xml'? [-Wimplicit-function-declaration]
117 | page = dwipe_get_info_json();
| ^~~~~~~~~~~~~~~~~~~
| dwipe_get_info_xml
httpd.c:117:8: warning: assignment to 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
117 | page = dwipe_get_info_json();
| ^
httpd.c:125:11: warning: implicit declaration of function 'dwipe_get_status_json'; did you mean 'dwipe_get_status_xml'? [-Wimplicit-function-declaration]
125 | page = dwipe_get_status_json(c1);
| ^~~~~~~~~~~~~~~~~~~~~
| dwipe_get_status_xml
httpd.c:125:9: warning: assignment to 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
125 | page = dwipe_get_status_json(c1);
| ^
httpd.c:133:9: warning: assignment to 'const char ' from 'int' makes pointer from integer without a cast [-Wint-conversion]
133 | page = dwipe_get_status_json(c2);
| ^
httpd.c: In function 'dwipe_start_web_server':
httpd.c:154:36: warning: passing argument 5 of 'MHD_start_daemon' from incompatible pointer type [-Wincompatible-pointer-types]
154 | &handle_request, NULL, MHD_OPTION_END);
| ^~~~~~~~~~~~~~~
| |
| int ()(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, size_t , void **) {aka int ()(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, long unsigned int , void **)}
In file included from httpd.h:44,
from httpd.c:27:
/usr/include/microhttpd.h:2443:45: note: expected 'MHD_AccessHandlerCallback' {aka 'enum MHD_Result ()(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, long unsigned int , void **)'} but argument is of type 'int ()(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, size_t , void **)' {aka 'int ()(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, long unsigned int *, void **)'}
2443 | MHD_AccessHandlerCallback dh, void *dh_cls,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
=======================================================
xml.c: In function 'dwipe_get_info_xml':
xml.c:54:13: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
54 | int rc, buffer_size;
| ^~
xml.c: In function 'dwipe_get_status_xml':
xml.c:160:92: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'loff_t' {aka 'long int'} [-Wformat=]
160 | rc = xmlTextWriterWriteFormatElement( writer, BAD_CAST "size", "%llu" , context[i].device_size );
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~
| | |
| | loff_t {aka long int}
| long long unsigned int
| %lu
xml.c:102:13: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
102 | int rc, buffer_size;
| ^~
=======================================================
/usr/bin/ld: cannot find -ljson
/usr/bin/ld: gui.o:(.bss+0x0): multiple definition of dwipe_loadavg'; dwipe.o:(.bss+0x98): first defined here /usr/bin/ld: gui.o:(.bss+0x8): multiple definition of
dwipe_throughput'; dwipe.o:(.bss+0xa0): first defined here
/usr/bin/ld: gui.o:(.bss+0x20): multiple definition of dwipe_errors'; dwipe.o:(.bss+0xb8): first defined here /usr/bin/ld: gui.o:(.bss+0x18): multiple definition of
dwipe_runtime'; dwipe.o:(.bss+0xb0): first defined here
/usr/bin/ld: gui.o:(.bss+0x10): multiple definition of dwipe_remaining'; dwipe.o:(.bss+0xa8): first defined here /usr/bin/ld: httpd.o:(.bss+0x20): multiple definition of
dwipe_options'; dwipe.o:(.bss+0x20): first defined here
/usr/bin/ld: httpd.o:(.bss+0x8): multiple definition of c1'; dwipe.o:(.bss+0x8): first defined here /usr/bin/ld: httpd.o:(.bss+0x0): multiple definition of
c2'; dwipe.o:(.bss+0x0): first defined here
/usr/bin/ld: httpd.o:(.bss+0x90): multiple definition of dwipe_selected'; dwipe.o:(.bss+0x90): first defined here /usr/bin/ld: httpd.o:(.bss+0x94): multiple definition of
dwipe_enumerated'; dwipe.o:(.bss+0x94): first defined here
/usr/bin/ld: httpd.o:(.bss+0x98): multiple definition of dwipe_loadavg'; dwipe.o:(.bss+0x98): first defined here /usr/bin/ld: httpd.o:(.bss+0xa0): multiple definition of
dwipe_throughput'; dwipe.o:(.bss+0xa0): first defined here
/usr/bin/ld: httpd.o:(.bss+0xa8): multiple definition of dwipe_remaining'; dwipe.o:(.bss+0xa8): first defined here /usr/bin/ld: httpd.o:(.bss+0xb0): multiple definition of
dwipe_runtime'; dwipe.o:(.bss+0xb0): first defined here
/usr/bin/ld: httpd.o:(.bss+0xb8): multiple definition of dwipe_errors'; dwipe.o:(.bss+0xb8): first defined here /usr/bin/ld: json.o:(.bss+0x20): multiple definition of
dwipe_runtime'; dwipe.o:(.bss+0xb0): first defined here
/usr/bin/ld: json.o:(.bss+0x18): multiple definition of dwipe_remaining'; dwipe.o:(.bss+0xa8): first defined here /usr/bin/ld: json.o:(.bss+0x8): multiple definition of
dwipe_loadavg'; dwipe.o:(.bss+0x98): first defined here
/usr/bin/ld: json.o:(.bss+0x10): multiple definition of dwipe_throughput'; dwipe.o:(.bss+0xa0): first defined here /usr/bin/ld: json.o:(.bss+0x28): multiple definition of
dwipe_errors'; dwipe.o:(.bss+0xb8): first defined here
/usr/bin/ld: json.o:(.bss+0x4): multiple definition of dwipe_enumerated'; dwipe.o:(.bss+0x94): first defined here /usr/bin/ld: json.o:(.bss+0x0): multiple definition of
dwipe_selected'; dwipe.o:(.bss+0x90): first defined here
/usr/bin/ld: logging.o:(.bss+0x0): multiple definition of dwipe_options'; dwipe.o:(.bss+0x20): first defined here /usr/bin/ld: notify.o:(.bss+0x0): multiple definition of
dwipe_options'; dwipe.o:(.bss+0x20): first defined here
/usr/bin/ld: options.o:(.bss+0x0): multiple definition of dwipe_options'; dwipe.o:(.bss+0x20): first defined here /usr/bin/ld: xml.o:(.bss+0x20): multiple definition of
dwipe_runtime'; dwipe.o:(.bss+0xb0): first defined here
/usr/bin/ld: xml.o:(.bss+0x18): multiple definition of dwipe_remaining'; dwipe.o:(.bss+0xa8): first defined here /usr/bin/ld: xml.o:(.bss+0x8): multiple definition of
dwipe_loadavg'; dwipe.o:(.bss+0x98): first defined here
/usr/bin/ld: xml.o:(.bss+0x10): multiple definition of dwipe_throughput'; dwipe.o:(.bss+0xa0): first defined here /usr/bin/ld: xml.o:(.bss+0x28): multiple definition of
dwipe_errors'; dwipe.o:(.bss+0xb8): first defined here
/usr/bin/ld: xml.o:(.bss+0x4): multiple definition of dwipe_enumerated'; dwipe.o:(.bss+0x94): first defined here /usr/bin/ld: xml.o:(.bss+0x0): multiple definition of
dwipe_selected'; dwipe.o:(.bss+0x90): first defined here
collect2: error: ld returned 1 exit status
Please fix it asap. Thanks