audio/libnjb
C library, API for communicating with Creative and Dell audio players
| Flavor | Version | Run | OSVersion | Arch | License | Restricted | Status | |
|---|---|---|---|---|---|---|---|---|
| 2.2.7 | 621 | 4.0 | amd64 | bsd3 | 0 | fail |
License Permissions:
Events
| Machine | Type | Time | Message |
|---|---|---|---|
| m4064b | info | 2025-12-09 07:17:04.948299 | Test Started |
| m4064b | fail | 2025-12-09 07:19:32.789647 | make build returned non-zero: 1 |
| m4064b | fail | 2025-12-09 07:19:32.858684 | Test complete. |
Log
[1m===> Building for libnjb-2.2.7[0m
--- all ---
/usr/bin/make all-recursive
--- all-recursive ---
Making all in src
--- base.lo ---
--- ioutil.lo ---
--- protocol.lo ---
--- procedure.lo ---
--- byteorder.lo ---
--- playlist.lo ---
--- usb_io.lo ---
--- njb_error.lo ---
--- datafile.lo ---
--- songid.lo ---
--- eax.lo ---
--- njbtime.lo ---
--- protocol3.lo ---
--- unicode.lo ---
--- base.lo ---
/bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT base.lo -MD -MP -MF .deps/base.Tpo -c -o base.lo base.c
--- ioutil.lo ---
/bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT ioutil.lo -MD -MP -MF .deps/ioutil.Tpo -c -o ioutil.lo ioutil.c
--- protocol.lo ---
/bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT protocol.lo -MD -MP -MF .deps/protocol.Tpo -c -o protocol.lo protocol.c
--- procedure.lo ---
/bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT procedure.lo -MD -MP -MF .deps/procedure.Tpo -c -o procedure.lo procedure.c
--- byteorder.lo ---
/bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT byteorder.lo -MD -MP -MF .deps/byteorder.Tpo -c -o byteorder.lo byteorder.c
--- playlist.lo ---
/bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT playlist.lo -MD -MP -MF .deps/playlist.Tpo -c -o playlist.lo playlist.c
--- usb_io.lo ---
/bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT usb_io.lo -MD -MP -MF .deps/usb_io.Tpo -c -o usb_io.lo usb_io.c
--- njb_error.lo ---
/bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT njb_error.lo -MD -MP -MF .deps/njb_error.Tpo -c -o njb_error.lo njb_error.c
--- datafile.lo ---
/bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT datafile.lo -MD -MP -MF .deps/datafile.Tpo -c -o datafile.lo datafile.c
--- songid.lo ---
/bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT songid.lo -MD -MP -MF .deps/songid.Tpo -c -o songid.lo songid.c
--- eax.lo ---
/bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT eax.lo -MD -MP -MF .deps/eax.Tpo -c -o eax.lo eax.c
--- njbtime.lo ---
/bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT njbtime.lo -MD -MP -MF .deps/njbtime.Tpo -c -o njbtime.lo njbtime.c
--- protocol3.lo ---
/bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT protocol3.lo -MD -MP -MF .deps/protocol3.Tpo -c -o protocol3.lo protocol3.c
--- unicode.lo ---
/bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT unicode.lo -MD -MP -MF .deps/unicode.Tpo -c -o unicode.lo unicode.c
--- base.lo ---
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT base.lo -MD -MP -MF .deps/base.Tpo -c base.c -fPIC -DPIC -o .libs/base.o
--- ioutil.lo ---
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT ioutil.lo -MD -MP -MF .deps/ioutil.Tpo -c ioutil.c -fPIC -DPIC -o .libs/ioutil.o
--- njbtime.lo ---
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT njbtime.lo -MD -MP -MF .deps/njbtime.Tpo -c njbtime.c -fPIC -DPIC -o .libs/njbtime.o
--- playlist.lo ---
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT playlist.lo -MD -MP -MF .deps/playlist.Tpo -c playlist.c -fPIC -DPIC -o .libs/playlist.o
--- usb_io.lo ---
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT usb_io.lo -MD -MP -MF .deps/usb_io.Tpo -c usb_io.c -fPIC -DPIC -o .libs/usb_io.o
--- byteorder.lo ---
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT byteorder.lo -MD -MP -MF .deps/byteorder.Tpo -c byteorder.c -fPIC -DPIC -o .libs/byteorder.o
--- njb_error.lo ---
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT njb_error.lo -MD -MP -MF .deps/njb_error.Tpo -c njb_error.c -fPIC -DPIC -o .libs/njb_error.o
--- datafile.lo ---
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT datafile.lo -MD -MP -MF .deps/datafile.Tpo -c datafile.c -fPIC -DPIC -o .libs/datafile.o
--- protocol.lo ---
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT protocol.lo -MD -MP -MF .deps/protocol.Tpo -c protocol.c -fPIC -DPIC -o .libs/protocol.o
--- eax.lo ---
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT eax.lo -MD -MP -MF .deps/eax.Tpo -c eax.c -fPIC -DPIC -o .libs/eax.o
--- unicode.lo ---
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT unicode.lo -MD -MP -MF .deps/unicode.Tpo -c unicode.c -fPIC -DPIC -o .libs/unicode.o
--- protocol3.lo ---
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT protocol3.lo -MD -MP -MF .deps/protocol3.Tpo -c protocol3.c -fPIC -DPIC -o .libs/protocol3.o
--- procedure.lo ---
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT procedure.lo -MD -MP -MF .deps/procedure.Tpo -c procedure.c -fPIC -DPIC -o .libs/procedure.o
--- songid.lo ---
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT songid.lo -MD -MP -MF .deps/songid.Tpo -c songid.c -fPIC -DPIC -o .libs/songid.o
--- usb_io.lo ---
usb_io.c:149:51: warning: format specifies type 'int' but the argument has type 'ssize_t' (aka 'long') [-Wformat]
149 | printf("LIBNJB: ERROR %d in usb_bulk_read\n", bread);
| ~~ ^~~~~
| %zd
--- datafile.lo ---
datafile.c:36:27: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
36 | df = (njb_datafile_t *) malloc(sizeof(njb_datafile_t));
| ^
datafile.c:36:27: note: include the header or explicitly provide a declaration for 'malloc'
--- eax.lo ---
eax.c:112:39: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
112 | mutingeax->option_names = (char **) malloc(2 * sizeof(char *));
| ^
eax.c:112:39: note: include the header or explicitly provide a declaration for 'malloc'
--- datafile.lo ---
datafile.c:58:5: warning: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
58 | free(df->filename);
| ^
datafile.c:58:5: note: include the header or explicitly provide a declaration for 'free'
--- ioutil.lo ---
ioutil.c:70:25: warning: format specifies type 'unsigned int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
70 | fprintf(f, "\t%04x:", dump_boundry);
| ~~~~ ^~~~~~~~~~~~
| %04zx
--- njb_error.lo ---
njb_error.c:102:33: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
102 | njb->error_stack = (void *) malloc(sizeof(njb_error_stack_t));
| ^
njb_error.c:102:33: note: include the header or explicitly provide a declaration for 'malloc'
--- eax.lo ---
eax.c:325:5: warning: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
325 | free(eax->name);
| ^
eax.c:325:5: note: include the header or explicitly provide a declaration for 'free'
--- njb_error.lo ---
njb_error.c:127:5: warning: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
127 | free(estack->msg);
| ^
njb_error.c:127:5: note: include the header or explicitly provide a declaration for 'free'
--- protocol3.lo ---
protocol3.c:231:13: warning: variable 'supports_wav' set but not used [-Wunused-but-set-variable]
231 | u_int16_t supports_wav;
| ^
protocol3.c:232:13: warning: variable 'supports_mp3' set but not used [-Wunused-but-set-variable]
232 | u_int16_t supports_mp3;
| ^
protocol3.c:233:13: warning: variable 'supports_wma' set but not used [-Wunused-but-set-variable]
233 | u_int16_t supports_wma;
| ^
protocol3.c:696:13: warning: variable 'status' set but not used [-Wunused-but-set-variable]
696 | u_int16_t status;
| ^
--- ioutil.lo ---
1 warning generated.
--- usb_io.lo ---
1 warning generated.
--- byteorder.lo ---
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT byteorder.lo -MD -MP -MF .deps/byteorder.Tpo -c byteorder.c -o byteorder.o >/dev/null 2>&1
--- ioutil.lo ---
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT ioutil.lo -MD -MP -MF .deps/ioutil.Tpo -c ioutil.c -o ioutil.o >/dev/null 2>&1
--- procedure.lo ---
procedure.c:762:7: warning: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
762 | free(tmp);
| ^
procedure.c:762:7: note: include the header or explicitly provide a declaration for 'free'
--- usb_io.lo ---
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT usb_io.lo -MD -MP -MF .deps/usb_io.Tpo -c usb_io.c -o usb_io.o >/dev/null 2>&1
--- procedure.lo ---
procedure.c:930:6: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
930 | close(fd);
| ^
procedure.c:937:6: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
937 | close(fd);
| ^
procedure.c:942:6: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
942 | unlink(path);
| ^
procedure.c:1014:31: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1014 | block = (unsigned char *) malloc(NJB_XFER_BLOCK_SIZE + NJB_XFER_BLOCK_HEADER_SIZE);
| ^
procedure.c:1014:31: note: include the header or explicitly provide a declaration for 'malloc'
procedure.c:1051:8: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1051 | if ( (write(fd, &block[NJB_XFER_BLOCK_HEADER_SIZE], bread-NJB_XFER_BLOCK_HEADER_SIZE)) == -1 ) {
| ^
procedure.c:1012:9: warning: variable 'wasshort' set but not used [-Wunused-but-set-variable]
1012 | int wasshort = 0;
| ^
procedure.c:1196:21: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1196 | if ( (bwritten = write(fd, block, bread) ) == -1 ) {
| ^
--- njbtime.lo ---
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT njbtime.lo -MD -MP -MF .deps/njbtime.Tpo -c njbtime.c -o njbtime.o >/dev/null 2>&1
--- procedure.lo ---
procedure.c:1333:5: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1333 | close(fd);
| ^
procedure.c:1405:21: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1405 | if ( (bread = read(fd, &block[bufbottom], readsize)) < 1 ) {
| ^
procedure.c:1407:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1407 | close(fd);
| ^
procedure.c:1434:7: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1434 | close(fd);
| ^
procedure.c:1460:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1460 | close(fd);
| ^
procedure.c:1475:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1475 | close(fd);
| ^
procedure.c:1518:7: warning: call to undeclared function 'sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1518 | sleep(1);
| ^
--- protocol3.lo ---
protocol3.c:1750:22: warning: variable 'word2' set but not used [-Wunused-but-set-variable]
1750 | u_int16_t word1, word2, word3, word5;
| ^
protocol3.c:1750:29: warning: variable 'word3' set but not used [-Wunused-but-set-variable]
1750 | u_int16_t word1, word2, word3, word5;
| ^
protocol3.c:1696:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1696 | static int read_metadata_chunk(njb,
| ^
protocol3.c:1902:40: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1902 | result = (*terminate_metadata_post) (njb, &target);
| ^
protocol3.c:1919:40: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1919 | result = (*terminate_metadata_post) (njb, &target);
| ^
protocol3.c:1936:35: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1936 | result = (*create_metadata_post) (postid, &target);
| ^
protocol3.c:1953:37: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1953 | result = (*add_to_metadata_post) (frameid, framelen, data1, &target);
| ^
protocol3.c:1806:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1806 | static int get_metadata_chunks(njb,
| ^
protocol3.c:2070:38: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2070 | result = (*terminate_metadata_post) (njb, &target);
| ^
protocol3.c:2088:40: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2088 | result = (*create_metadata_post) (postid, &target);
| ^
protocol3.c:2104:35: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2104 | result = (*add_to_metadata_post) (frameid, framelen, data1, &target);
| ^
protocol3.c:2030:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2030 | static int parse_metadata_block(njb,
| ^
protocol3.c:2121:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2121 | static int create_songid(postid, target)
| ^
protocol3.c:2136:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2136 | static int add_to_songid(frameid, framelen, data, target)
| ^
protocol3.c:2256:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2256 | static int terminate_songid(njb, target)
| ^
protocol3.c:2518:50: warning: format specifies type 'unsigned int' but the argument has type 'ssize_t' (aka 'long') [-Wformat]
2518 | printf("Parsing this buffer, 0x%x bytes:\n", bread);
| ~~ ^~~~~
| %zx
protocol3.c:2553:4: warning: format specifies type 'unsigned int' but the argument has type 'ssize_t' (aka 'long') [-Wformat]
2551 | printf("bread=%08x, i=%08x, framelen=%04x, 0x%x bytes left, "
| ~~~~
| %08zx
2552 | "read new chunk, save those bytes\n",
2553 | bread, i, framelen, remain);
| ^~~~~
protocol3.c:2553:24: warning: format specifies type 'unsigned int' but the argument has type 'ssize_t' (aka 'long') [-Wformat]
2551 | printf("bread=%08x, i=%08x, framelen=%04x, 0x%x bytes left, "
| ~~
| %zx
2552 | "read new chunk, save those bytes\n",
2553 | bread, i, framelen, remain);
| ^~~~~~
protocol3.c:2584:49: warning: format specifies type 'unsigned int' but the argument has type 'ssize_t' (aka 'long') [-Wformat]
2584 | printf("Parsing this buffer, 0x%x bytes:\n", remain);
| ~~ ^~~~~~
| %zx
protocol3.c:2595:63: warning: format specifies type 'unsigned int' but the argument has type 'ssize_t' (aka 'long') [-Wformat]
2595 | printf("get statusword at offset %04x, remain: %04x\n", i, remain);
| ~~~~ ^~~~~~
| %04zx
protocol3.c:2597:56: warning: format specifies type 'int' but the argument has type 'ssize_t' (aka 'long') [-Wformat]
2597 | printf("LIBNJB PANIC: remaining bytes != 2 (%d)\n", remain);
| ~~ ^~~~~~
| %zd
protocol3.c:2627:48: warning: format specifies type 'unsigned int' but the argument has type 'ssize_t' (aka 'long') [-Wformat]
2627 | printf("Found endmarker, remain: %04x\n", remain);
| ~~~~ ^~~~~~
| %04zx
protocol3.c:2636:26: warning: format specifies type 'unsigned int' but the argument has type 'ssize_t' (aka 'long') [-Wformat]
2635 | "%04x (remain %04x)\n",
| ~~~~
| %04zx
2636 | framelen, frameid, i, remain);
| ^~~~~~
protocol3.c:2688:49: warning: format specifies type 'unsigned int' but the argument has type 'ssize_t' (aka 'long') [-Wformat]
2688 | printf("Parsing this buffer, 0x%x bytes:\n", bread);
| ~~ ^~~~~
| %zx
protocol3.c:2526:9: warning: unused variable 'success' [-Wunused-variable]
2526 | int success;
| ^~~~~~~
protocol3.c:2666:60: warning: variable 'retries' is uninitialized when used here [-Wuninitialized]
2666 | printf("LIBNJB Panic: unable to send command (try %d)\n", retries);
| ^~~~~~~
protocol3.c:2525:16: note: initialize the variable 'retries' to silence this warning
2525 | int retries;
| ^
| = 0
protocol3.c:2757:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2757 | static int create_playlistid(postid, target)
| ^
protocol3.c:2773:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2773 | static int add_to_playlistid(frameid, framelen, data, target)
| ^
protocol3.c:2797:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2797 | static int terminate_playlistid(njb, target)
| ^
--- eax.lo ---
2 warnings generated.
--- protocol3.lo ---
protocol3.c:2943:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2943 | static int create_datafile(postid, target)
| ^
protocol3.c:2958:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2958 | static int add_to_datafile(frameid, framelen, data, target)
| ^
protocol3.c:3003:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
3003 | static int terminate_datafile(njb, target)
| ^
--- eax.lo ---
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT eax.lo -MD -MP -MF .deps/eax.Tpo -c eax.c -o eax.o >/dev/null 2>&1
--- protocol3.lo ---
protocol3.c:3106:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
3106 | static int create_key(postid, target)
| ^
--- base.lo ---
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT base.lo -MD -MP -MF .deps/base.Tpo -c base.c -o base.o >/dev/null 2>&1
--- protocol3.lo ---
protocol3.c:3120:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
3120 | static int add_to_key(frameid, framelen, data, target)
| ^
protocol3.c:3140:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
3140 | static int terminate_key(njb, target)
| ^
protocol3.c:3185:7: warning: variable 'result' set but not used [-Wunused-but-set-variable]
3185 | int result;
| ^
--- datafile.lo ---
2 warnings generated.
--- playlist.lo ---
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT playlist.lo -MD -MP -MF .deps/playlist.Tpo -c playlist.c -o playlist.o >/dev/null 2>&1
--- datafile.lo ---
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT datafile.lo -MD -MP -MF .deps/datafile.Tpo -c datafile.c -o datafile.o >/dev/null 2>&1
--- unicode.lo ---
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT unicode.lo -MD -MP -MF .deps/unicode.Tpo -c unicode.c -o unicode.o >/dev/null 2>&1
--- njb_error.lo ---
2 warnings generated.
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT njb_error.lo -MD -MP -MF .deps/njb_error.Tpo -c njb_error.c -o njb_error.o >/dev/null 2>&1
--- usb_io.lo ---
mv -f .deps/usb_io.Tpo .deps/usb_io.Plo
--- byteorder.lo ---
mv -f .deps/byteorder.Tpo .deps/byteorder.Plo
--- ioutil.lo ---
mv -f .deps/ioutil.Tpo .deps/ioutil.Plo
--- njbtime.lo ---
mv -f .deps/njbtime.Tpo .deps/njbtime.Plo
--- eax.lo ---
mv -f .deps/eax.Tpo .deps/eax.Plo
--- songid.lo ---
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT songid.lo -MD -MP -MF .deps/songid.Tpo -c songid.c -o songid.o >/dev/null 2>&1
--- base.lo ---
mv -f .deps/base.Tpo .deps/base.Plo
--- playlist.lo ---
mv -f .deps/playlist.Tpo .deps/playlist.Plo
--- unicode.lo ---
mv -f .deps/unicode.Tpo .deps/unicode.Plo
--- datafile.lo ---
mv -f .deps/datafile.Tpo .deps/datafile.Plo
--- njb_error.lo ---
mv -f .deps/njb_error.Tpo .deps/njb_error.Plo
--- protocol.lo ---
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT protocol.lo -MD -MP -MF .deps/protocol.Tpo -c protocol.c -o protocol.o >/dev/null 2>&1
--- procedure.lo ---
15 warnings generated.
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT procedure.lo -MD -MP -MF .deps/procedure.Tpo -c procedure.c -o procedure.o >/dev/null 2>&1
--- songid.lo ---
mv -f .deps/songid.Tpo .deps/songid.Plo
--- protocol3.lo ---
40 warnings generated.
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT protocol3.lo -MD -MP -MF .deps/protocol3.Tpo -c protocol3.c -o protocol3.o >/dev/null 2>&1
--- protocol.lo ---
mv -f .deps/protocol.Tpo .deps/protocol.Plo
--- procedure.lo ---
mv -f .deps/procedure.Tpo .deps/procedure.Plo
--- protocol3.lo ---
mv -f .deps/protocol3.Tpo .deps/protocol3.Plo
--- libnjb.la ---
/bin/sh ../libtool --tag=CC --mode=link cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -L/usr/local/lib -fstack-protector-strong -version-info 6:1:1 -L/usr/local/lib -fstack-protector-strong -o libnjb.la -rpath /usr/local/lib base.lo ioutil.lo protocol.lo procedure.lo byteorder.lo playlist.lo usb_io.lo njb_error.lo datafile.lo songid.lo eax.lo njbtime.lo protocol3.lo unicode.lo -lusb
libtool: link: cc -shared -fPIC -DPIC .libs/base.o .libs/ioutil.o .libs/protocol.o .libs/procedure.o .libs/byteorder.o .libs/playlist.o .libs/usb_io.o .libs/njb_error.o .libs/datafile.o .libs/songid.o .libs/eax.o .libs/njbtime.o .libs/protocol3.o .libs/unicode.o -L/usr/local/lib -lusb -O2 -fstack-protector-strong -fstack-protector-strong -fstack-protector-strong -Wl,-soname -Wl,libnjb.so.5 -o .libs/libnjb.so.5.1.1
libtool: link: (cd ".libs" && rm -f "libnjb.so.5" && ln -s "libnjb.so.5.1.1" "libnjb.so.5")
libtool: link: (cd ".libs" && rm -f "libnjb.so" && ln -s "libnjb.so.5.1.1" "libnjb.so")
libtool: link: ar cru .libs/libnjb.a base.o ioutil.o protocol.o procedure.o byteorder.o playlist.o usb_io.o njb_error.o datafile.o songid.o eax.o njbtime.o protocol3.o unicode.o
libtool: link: ranlib .libs/libnjb.a
libtool: link: ( cd ".libs" && rm -f "libnjb.la" && ln -s "../libnjb.la" "libnjb.la" )
Making all in sample
--- cursesplay.o ---
--- delfile.o ---
--- deltr.o ---
--- dumpeax.o ---
--- dumptime.o ---
--- files.o ---
--- fwupgrade.o ---
--- getfile.o ---
--- getowner.o ---
--- gettr.o ---
--- getusage.o ---
--- handshake.o ---
--- pl.o ---
--- play.o ---
--- playlists.o ---
--- sendfile.o ---
--- sendtr.o ---
--- setowner.o ---
--- setpbm.o ---
--- settime.o ---
--- tagtr.o ---
--- tracks.o ---
--- cursesplay.o ---
cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I../src -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT cursesplay.o -MD -MP -MF .deps/cursesplay.Tpo -c -o cursesplay.o cursesplay.c
--- delfile.o ---
cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I../src -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT delfile.o -MD -MP -MF .deps/delfile.Tpo -c -o delfile.o delfile.c
--- deltr.o ---
cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I../src -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT deltr.o -MD -MP -MF .deps/deltr.Tpo -c -o deltr.o deltr.c
--- dumpeax.o ---
cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I../src -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT dumpeax.o -MD -MP -MF .deps/dumpeax.Tpo -c -o dumpeax.o dumpeax.c
--- dumptime.o ---
cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I../src -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT dumptime.o -MD -MP -MF .deps/dumptime.Tpo -c -o dumptime.o dumptime.c
--- files.o ---
cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I../src -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT files.o -MD -MP -MF .deps/files.Tpo -c -o files.o files.c
--- fwupgrade.o ---
cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I../src -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT fwupgrade.o -MD -MP -MF .deps/fwupgrade.Tpo -c -o fwupgrade.o fwupgrade.c
--- getfile.o ---
cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I../src -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT getfile.o -MD -MP -MF .deps/getfile.Tpo -c -o getfile.o getfile.c
--- getowner.o ---
cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I../src -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT getowner.o -MD -MP -MF .deps/getowner.Tpo -c -o getowner.o getowner.c
--- gettr.o ---
cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I../src -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT gettr.o -MD -MP -MF .deps/gettr.Tpo -c -o gettr.o gettr.c
--- getusage.o ---
cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I../src -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT getusage.o -MD -MP -MF .deps/getusage.Tpo -c -o getusage.o getusage.c
--- handshake.o ---
cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I../src -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT handshake.o -MD -MP -MF .deps/handshake.Tpo -c -o handshake.o handshake.c
--- pl.o ---
cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I../src -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT pl.o -MD -MP -MF .deps/pl.Tpo -c -o pl.o pl.c
--- play.o ---
cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I../src -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT play.o -MD -MP -MF .deps/play.Tpo -c -o play.o play.c
--- playlists.o ---
cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I../src -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT playlists.o -MD -MP -MF .deps/playlists.Tpo -c -o playlists.o playlists.c
--- sendfile.o ---
cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I../src -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT sendfile.o -MD -MP -MF .deps/sendfile.Tpo -c -o sendfile.o sendfile.c
--- sendtr.o ---
cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I../src -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT sendtr.o -MD -MP -MF .deps/sendtr.Tpo -c -o sendtr.o sendtr.c
--- setowner.o ---
cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I../src -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT setowner.o -MD -MP -MF .deps/setowner.Tpo -c -o setowner.o setowner.c
--- setpbm.o ---
cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I../src -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT setpbm.o -MD -MP -MF .deps/setpbm.Tpo -c -o setpbm.o setpbm.c
--- settime.o ---
cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I../src -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT settime.o -MD -MP -MF .deps/settime.Tpo -c -o settime.o settime.c
--- tagtr.o ---
cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I../src -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT tagtr.o -MD -MP -MF .deps/tagtr.Tpo -c -o tagtr.o tagtr.c
--- tracks.o ---
cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I../src -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wmissing-prototypes -MT tracks.o -MD -MP -MF .deps/tracks.Tpo -c -o tracks.o tracks.c
--- dumptime.o ---
dumptime.c:15:12: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
15 | debug = atoi(optarg);
| ^
--- deltr.o ---
deltr.c:19:11: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
19 | debug= atoi(optarg);
| ^
--- getfile.o ---
getfile.c:22:11: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
--- dumpeax.o ---
dumpeax.c:15:15: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
--- getfile.o ---
22 | debug= atoi(optarg);
| ^
--- dumpeax.o ---
15 | debug = atoi(optarg);
| ^
--- getfile.o ---
getfile.c:25:10: warning: call to undeclared library function 'strtoul' with type 'unsigned long (const char *, char **, int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
25 | size= strtoul(optarg, &endptr, 10);
| ^
getfile.c:25:10: note: include the header or explicitly provide a declaration for 'strtoul'
--- deltr.o ---
deltr.c:30:6: warning: call to undeclared library function 'strtoul' with type 'unsigned long (const char *, char **, int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
30 | id= strtoul(argv[0], &endptr, 10);
| ^
deltr.c:30:6: note: include the header or explicitly provide a declaration for 'strtoul'
--- dumpeax.o ---
dumpeax.c:28:5: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
28 | exit(1);
| ^
dumpeax.c:28:5: note: include the header or explicitly provide a declaration for 'exit'
--- getfile.o ---
getfile.c:94:26: warning: format specifies type 'unsigned long long' but the argument has type 'u_int64_t' (aka 'unsigned long') [-Wformat]
94 | printf("%Lu bytes\n", size);
| ~~~ ^~~~
| %lu
--- getowner.o ---
getowner.c:16:11: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
16 | debug= atoi(optarg);
| ^
--- delfile.o ---
delfile.c:20:14: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
--- getowner.o ---
getowner.c:32:9: warning: call to undeclared function 'getenv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
32 | lang = getenv("LANG");
| ^
--- delfile.o ---
20 | debug= atoi(optarg);
| ^
--- getowner.o ---
getowner.c:32:7: error: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
32 | lang = getenv("LANG");
| ^ ~~~~~~~~~~~~~~
--- delfile.o ---
delfile.c:31:8: warning: call to undeclared library function 'strtoul' with type 'unsigned long (const char *, char **, int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
31 | id = strtoul(argv[0], &endptr, 10);
| ^
delfile.c:31:8: note: include the header or explicitly provide a declaration for 'strtoul'
--- deltr.o ---
deltr.c:74:2: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
74 | exit(1);
| ^
deltr.c:74:2: note: include the header or explicitly provide a declaration for 'exit'
--- getowner.o ---
getowner.c:60:4: warning: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
60 | free(ownerstring);
| ^
getowner.c:60:4: note: include the header or explicitly provide a declaration for 'free'
--- delfile.o ---
delfile.c:9:17: warning: variable 'syntax' set but not used [-Wunused-but-set-variable]
9 | int n, debug, syntax, opt;
| ^
--- getfile.o ---
getfile.c:120:44: warning: format specifies type 'unsigned long long' but the argument has type 'u_int64_t' (aka 'unsigned long') [-Wformat]
120 | printf("Progress: %llu of %llu (%d%%)\r", sent, total, percent);
| ~~~~ ^~~~
| %lu
getfile.c:120:50: warning: format specifies type 'unsigned long long' but the argument has type 'u_int64_t' (aka 'unsigned long') [-Wformat]
120 | printf("Progress: %llu of %llu (%d%%)\r", sent, total, percent);
| ~~~~ ^~~~~
| %lu
--- delfile.o ---
delfile.c:74:3: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
74 | exit(1);
| ^
delfile.c:74:3: note: include the header or explicitly provide a declaration for 'exit'
--- getowner.o ---
3 warnings and 1 error generated.
--- gettr.o ---
gettr.c:9:45: warning: format specifies type 'unsigned long long' but the argument has type 'u_int64_t' (aka 'unsigned long') [-Wformat]
9 | printf("Progress: %llu of %llu (%d%%)\r", sent, total, percent);
| ~~~~ ^~~~
| %lu
--- handshake.o ---
handshake.c:15:14: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
--- gettr.o ---
gettr.c:9:51: warning: format specifies type 'unsigned long long' but the argument has type 'u_int64_t' (aka 'unsigned long') [-Wformat]
--- handshake.o ---
15 | debug= atoi(optarg);
| ^
--- gettr.o ---
9 | printf("Progress: %llu of %llu (%d%%)\r", sent, total, percent);
| ~~~~ ^~~~~
| %lu
--- getusage.o ---
getusage.c:16:15: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
16 | debug = atoi(optarg);
| ^
--- pl.o ---
pl.c:61:14: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
61 | debug= atoi(optarg);
| ^
--- gettr.o ---
gettr.c:35:14: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
35 | debug= atoi(optarg);
| ^
--- pl.o ---
pl.c:81:10: warning: call to undeclared function 'getenv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
81 | lang = getenv("LANG");
| ^
--- gettr.o ---
gettr.c:38:13: warning: call to undeclared library function 'strtoul' with type 'unsigned long (const char *, char **, int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
38 | size= strtoul(optarg, &endptr, 10);
| ^
--- pl.o ---
pl.c:81:8: error: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
81 | lang = getenv("LANG");
| ^ ~~~~~~~~~~~~~~
--- gettr.o ---
gettr.c:38:13: note: include the header or explicitly provide a declaration for 'strtoul'
--- getusage.o ---
getusage.c:55:3: warning: format specifies type 'unsigned long long' but the argument has type 'u_int64_t' (aka 'unsigned long') [-Wformat]
54 | printf("Total bytes on jukebox: %llu (%llu MB)\n",
| ~~~~
| %lu
55 | total, total/(1024*1024));
| ^~~~~
getusage.c:55:10: warning: format specifies type 'unsigned long long' but the argument has type 'u_int64_t' (aka 'unsigned long') [-Wformat]
54 | printf("Total bytes on jukebox: %llu (%llu MB)\n",
| ~~~~
| %lu
55 | total, total/(1024*1024));
| ^~~~~~~~~~~~~~~~~
--- pl.o ---
pl.c:107:18: warning: call to undeclared library function 'strtoul' with type 'unsigned long (const char *, char **, int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
107 | u_int32_t trid= strtoul(argv[i], &endptr, 10);
| ^
pl.c:107:18: note: include the header or explicitly provide a declaration for 'strtoul'
--- getusage.o ---
getusage.c:57:3: warning: format specifies type 'unsigned long long' but the argument has type 'u_int64_t' (aka 'unsigned long') [-Wformat]
56 | printf("Free bytes on jukebox: %llu (%llu MB)\n",
| ~~~~
| %lu
57 | free, free/(1024*1024));
| ^~~~
getusage.c:57:9: warning: format specifies type 'unsigned long long' but the argument has type 'u_int64_t' (aka 'unsigned long') [-Wformat]
56 | printf("Free bytes on jukebox: %llu (%llu MB)\n",
| ~~~~
| %lu
--- handshake.o ---
handshake.c:89:45: warning: format specifies type 'unsigned long long' but the argument has type 'u_int64_t' (aka 'unsigned long') [-Wformat]
89 | printf(" Library counter: %llu\n", NJB_Get_NJB1_Libcounter(njb));
| ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| %lu
--- getusage.o ---
57 | free, free/(1024*1024));
| ^~~~~~~~~~~~~~~~
--- play.o ---
play.c:24:11: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
24 | debug= atoi(optarg);
| ^
--- playlists.o ---
playlists.c:34:14: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
34 | debug= atoi(optarg);
| ^
--- getowner.o ---
*** [getowner.o] Error code 1
make[2]: stopped in /magus/work/usr/mports/audio/libnjb/work/libnjb-2.2.7/sample
--- playlists.o ---
playlists.c:50:10: warning: call to undeclared function 'getenv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
50 | lang = getenv("LANG");
| ^
playlists.c:50:8: error: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
50 | lang = getenv("LANG");
| ^ ~~~~~~~~~~~~~~
--- play.o ---
play.c:62:12: warning: call to undeclared library function 'strtoul' with type 'unsigned long (const char *, char **, int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
62 | trackid= strtoul(argv[i], NULL, 10);
| ^
play.c:62:12: note: include the header or explicitly provide a declaration for 'strtoul'
play.c:96:3: warning: call to undeclared function 'sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
96 | sleep(1);
| ^
--- files.o ---
files.c:17:42: warning: format specifies type 'unsigned long long' but the argument has type 'u_int64_t' (aka 'unsigned long') [-Wformat]
17 | fprintf(fp, "Size : %llu bytes\n", size);
| ~~~~ ^~~~
| %lu
files.c:34:14: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
34 | debug= atoi(optarg);
| ^
files.c:50:10: warning: call to undeclared function 'getenv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
50 | lang = getenv("LANG");
| ^
files.c:50:8: error: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
50 | lang = getenv("LANG");
| ^ ~~~~~~~~~~~~~~
--- tracks.o ---
tracks.c:45:15: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
45 | debug = atoi(optarg);
| ^
--- setowner.o ---
setowner.c:46:14: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
46 | debug= atoi(optarg);
| ^
--- tracks.o ---
tracks.c:64:10: warning: call to undeclared function 'getenv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
64 | lang = getenv("LANG");
| ^
--- setowner.o ---
setowner.c:62:10: warning: call to undeclared function 'getenv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
62 | lang = getenv("LANG");
| ^
setowner.c:62:8: error: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
62 | lang = getenv("LANG");
| ^ ~~~~~~~~~~~~~~
--- tracks.o ---
tracks.c:64:8: error: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
64 | lang = getenv("LANG");
| ^ ~~~~~~~~~~~~~~
--- fwupgrade.o ---
fwupgrade.c:31:45: warning: format specifies type 'unsigned long long' but the argument has type 'u_int64_t' (aka 'unsigned long') [-Wformat]
--- pl.o ---
3 warnings and 1 error generated.
--- fwupgrade.o ---
31 | printf("Progress: %llu of %llu (%d%%)\r", sent, total, percent);
| ~~~~ ^~~~
| %lu
fwupgrade.c:31:51: warning: format specifies type 'unsigned long long' but the argument has type 'u_int64_t' (aka 'unsigned long') [-Wformat]
31 | printf("Progress: %llu of %llu (%d%%)\r", sent, total, percent);
| ~~~~ ^~~~~
| %lu
--- setowner.o ---
setowner.c:95:3: warning: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
95 | free(ownerstring);
| ^
setowner.c:95:3: note: include the header or explicitly provide a declaration for 'free'
--- playlists.o ---
2 warnings and 1 error generated.
--- fwupgrade.o ---
fwupgrade.c:40:3: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
40 | exit(1);
| ^
fwupgrade.c:40:3: note: include the header or explicitly provide a declaration for 'exit'
--- play.o ---
play.c:123:2: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
123 | exit(1);
| ^
play.c:123:2: note: include the header or explicitly provide a declaration for 'exit'
--- fwupgrade.o ---
fwupgrade.c:60:11: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
60 | bread = read(fd, buffer, BUFFERSIZE);
| ^
--- tagtr.o ---
tagtr.c:35:3: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
35 | exit(1);
| ^
tagtr.c:35:3: note: include the header or explicitly provide a declaration for 'exit'
--- fwupgrade.o ---
fwupgrade.c:63:5: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
63 | close(fd);
| ^
fwupgrade.c:71:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
71 | close(fd);
| ^
fwupgrade.c:72:53: warning: format specifies type 'unsigned int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
72 | printf("Read in a firmware file of size 0x%x.\n", bread);
| ~~ ^~~~~
| %zx
fwupgrade.c:84:10: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]
84 | while (!str[0] == 0x00 || !str[1] == 0x00) {
| ^ ~~
--- tagtr.o ---
tagtr.c:63:14: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
63 | debug= atoi(optarg);
| ^
--- fwupgrade.o ---
fwupgrade.c:84:10: note: add parentheses after the '!' to evaluate the comparison first
84 | while (!str[0] == 0x00 || !str[1] == 0x00) {
| ^
| ( )
--- files.o ---
3 warnings and 1 error generated.
--- fwupgrade.o ---
fwupgrade.c:84:10: note: add parentheses around left hand side expression to silence this warning
84 | while (!str[0] == 0x00 || !str[1] == 0x00) {
| ^
| ( )
fwupgrade.c:84:29: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]
84 | while (!str[0] == 0x00 || !str[1] == 0x00) {
| ^ ~~
fwupgrade.c:84:29: note: add parentheses after the '!' to evaluate the comparison first
84 | while (!str[0] == 0x00 || !str[1] == 0x00) {
| ^
| ( )
fwupgrade.c:84:29: note: add parentheses around left hand side expression to silence this warning
84 | while (!str[0] == 0x00 || !str[1] == 0x00) {
| ^
| ( )
--- tagtr.o ---
tagtr.c:82:10: warning: call to undeclared function 'getenv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
82 | lang = getenv("LANG");
| ^
tagtr.c:82:8: error: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
82 | lang = getenv("LANG");
| ^ ~~~~~~~~~~~~~~
tagtr.c:91:12: warning: call to undeclared library function 'strtoul' with type 'unsigned long (const char *, char **, int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
--- setowner.o ---
3 warnings and 1 error generated.
--- tagtr.o ---
91 | trackid= strtoul(argv[0], &endptr, 10);
| ^
tagtr.c:91:12: note: include the header or explicitly provide a declaration for 'strtoul'
--- tracks.o ---
2 warnings and 1 error generated.
--- setpbm.o ---
setpbm.c:8:3: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
8 | exit(1);
| ^
--- fwupgrade.o ---
fwupgrade.c:164:37: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
164 | *decompressed = (unsigned char *) malloc(BUFFERSIZE);
| ^
fwupgrade.c:164:37: note: include the header or explicitly provide a declaration for 'malloc'
--- setpbm.o ---
setpbm.c:8:3: note: include the header or explicitly provide a declaration for 'exit'
--- fwupgrade.o ---
fwupgrade.c:192:8: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
192 | if (write(fd, decompressed, rawlen) == -1) {
| ^
--- pl.o ---
*** [pl.o] Error code 1
make[2]: stopped in /magus/work/usr/mports/audio/libnjb/work/libnjb-2.2.7/sample
--- fwupgrade.o ---
fwupgrade.c:194:6: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
194 | close(fd);
| ^
fwupgrade.c:195:6: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
195 | unlink(path);
| ^
fwupgrade.c:198:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
198 | close(fd);
| ^
--- playlists.o ---
*** [playlists.o] Error code 1
make[2]: stopped in /magus/work/usr/mports/audio/libnjb/work/libnjb-2.2.7/sample
--- files.o ---
*** [files.o] Error code 1
make[2]: stopped in /magus/work/usr/mports/audio/libnjb/work/libnjb-2.2.7/sample
--- cursesplay.o ---
cursesplay.c:40:12: warning: variable 'root' set but not used [-Wunused-but-set-variable]
40 | WINDOW * root;
| ^
--- fwupgrade.o ---
fwupgrade.c:244:15: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
244 | debug = atoi(optarg);
| ^
--- sendfile.o ---
sendfile.c:11:45: warning: format specifies type 'unsigned long long' but the argument has type 'u_int64_t' (aka 'unsigned long') [-Wformat]
11 | printf("Progress: %llu of %llu (%d%%)\r", sent, total, percent);
| ~~~~ ^~~~
| %lu
sendfile.c:11:51: warning: format specifies type 'unsigned long long' but the argument has type 'u_int64_t' (aka 'unsigned long') [-Wformat]
--- fwupgrade.o ---
fwupgrade.c:264:10: warning: call to undeclared function 'getenv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
264 | lang = getenv("LANG");
| ^
--- sendfile.o ---
11 | printf("Progress: %llu of %llu (%d%%)\r", sent, total, percent);
| ~~~~ ^~~~~
| %lu
--- fwupgrade.o ---
fwupgrade.c:264:8: error: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
264 | lang = getenv("LANG");
| ^ ~~~~~~~~~~~~~~
--- sendfile.o ---
sendfile.c:20:3: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
20 | exit(1);
| ^
sendfile.c:20:3: note: include the header or explicitly provide a declaration for 'exit'
--- setpbm.o ---
setpbm.c:74:14: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
74 | debug= atoi(optarg);
| ^
--- settime.o ---
settime.c:83:15: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
83 | debug = atoi(optarg);
| ^
--- sendfile.o ---
sendfile.c:39:15: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
39 | debug = atoi(optarg);
| ^
--- tracks.o ---
*** [tracks.o] Error code 1
make[2]: stopped in /magus/work/usr/mports/audio/libnjb/work/libnjb-2.2.7/sample
--- setowner.o ---
*** [setowner.o] Error code 1
make[2]: stopped in /magus/work/usr/mports/audio/libnjb/work/libnjb-2.2.7/sample
--- sendfile.o ---
sendfile.c:71:10: warning: call to undeclared function 'getenv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
71 | lang = getenv("LANG");
| ^
sendfile.c:71:8: error: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
71 | lang = getenv("LANG");
| ^ ~~~~~~~~~~~~~~
--- fwupgrade.o ---
fwupgrade.c:349:50: warning: passing 'char[10]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
349 | dexor_fw_image(&buffer[offset+4], zimglen, known_key, strlen(known_key));
| ^~~~~~~~~
fwupgrade.c:140:22: note: passing argument to parameter 'key' here
140 | unsigned char *key,
| ^
fwupgrade.c:359:47: warning: format specifies type 'unsigned int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
359 | printf("Decompressed image size: 0x%x\n", rawlen);
| ~~ ^~~~~~
| %zx
--- settime.o ---
settime.c:125:29: warning: call to undeclared library function 'strtoul' with type 'unsigned long (const char *, char **, int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
125 | time->year= (u_int16_t) strtoul(pnum, 0, 10);
| ^
settime.c:125:29: note: include the header or explicitly provide a declaration for 'strtoul'
--- fwupgrade.o ---
fwupgrade.c:379:5: warning: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
379 | free(buffer);
| ^
fwupgrade.c:379:5: note: include the header or explicitly provide a declaration for 'free'
--- dumptime.o ---
1 warning generated.
--- deltr.o ---
3 warnings generated.
--- delfile.o ---
4 warnings generated.
--- sendfile.o ---
5 warnings and 1 error generated.
--- dumptime.o ---
mv -f .deps/dumptime.Tpo .deps/dumptime.Po
--- deltr.o ---
mv -f .deps/deltr.Tpo .deps/deltr.Po
--- tagtr.o ---
4 warnings and 1 error generated.
--- delfile.o ---
mv -f .deps/delfile.Tpo .deps/delfile.Po
--- sendfile.o ---
*** [sendfile.o] Error code 1
make[2]: stopped in /magus/work/usr/mports/audio/libnjb/work/libnjb-2.2.7/sample
--- sendtr.o ---
sendtr.c:33:45: warning: format specifies type 'unsigned long long' but the argument has type 'u_int64_t' (aka 'unsigned long') [-Wformat]
33 | printf("Progress: %llu of %llu (%d%%)\r", sent, total, percent);
| ~~~~ ^~~~
| %lu
--- fwupgrade.o ---
19 warnings and 1 error generated.
--- sendtr.o ---
sendtr.c:33:51: warning: format specifies type 'unsigned long long' but the argument has type 'u_int64_t' (aka 'unsigned long') [-Wformat]
33 | printf("Progress: %llu of %llu (%d%%)\r", sent, total, percent);
| ~~~~ ^~~~~
| %lu
sendtr.c:72:3: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
72 | exit(1);
| ^
sendtr.c:72:3: note: include the header or explicitly provide a declaration for 'exit'
sendtr.c:106:15: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
106 | debug = atoi(optarg);
| ^
--- getfile.o ---
5 warnings generated.
--- sendtr.o ---
sendtr.c:154:10: warning: call to undeclared function 'getenv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
154 | lang = getenv("LANG");
| ^
sendtr.c:154:8: error: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
154 | lang = getenv("LANG");
| ^ ~~~~~~~~~~~~~~
--- fwupgrade.o ---
*** [fwupgrade.o] Error code 1
make[2]: stopped in /magus/work/usr/mports/audio/libnjb/work/libnjb-2.2.7/sample
--- tagtr.o ---
*** [tagtr.o] Error code 1
make[2]: stopped in /magus/work/usr/mports/audio/libnjb/work/libnjb-2.2.7/sample
--- sendtr.o ---
sendtr.c:220:13: warning: call to undeclared library function 'strtoul' with type 'unsigned long (const char *, char **, int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
220 | tracknum = strtoul(pnum, 0, 10);
| ^
sendtr.c:220:13: note: include the header or explicitly provide a declaration for 'strtoul'
--- getfile.o ---
mv -f .deps/getfile.Tpo .deps/getfile.Po
--- gettr.o ---
4 warnings generated.
--- getusage.o ---
5 warnings generated.
--- dumpeax.o ---
2 warnings generated.
--- gettr.o ---
mv -f .deps/gettr.Tpo .deps/gettr.Po
--- sendtr.o ---
6 warnings and 1 error generated.
--- getusage.o ---
mv -f .deps/getusage.Tpo .deps/getusage.Po
--- dumpeax.o ---
mv -f .deps/dumpeax.Tpo .deps/dumpeax.Po
--- sendtr.o ---
*** [sendtr.o] Error code 1
make[2]: stopped in /magus/work/usr/mports/audio/libnjb/work/libnjb-2.2.7/sample
--- play.o ---
4 warnings generated.
mv -f .deps/play.Tpo .deps/play.Po
--- cursesplay.o ---
1 warning generated.
mv -f .deps/cursesplay.Tpo .deps/cursesplay.Po
--- handshake.o ---
2 warnings generated.
mv -f .deps/handshake.Tpo .deps/handshake.Po
--- settime.o ---
2 warnings generated.
--- setpbm.o ---
2 warnings generated.
--- settime.o ---
mv -f .deps/settime.Tpo .deps/settime.Po
--- setpbm.o ---
mv -f .deps/setpbm.Tpo .deps/setpbm.Po
10 errors
make[2]: stopped in /magus/work/usr/mports/audio/libnjb/work/libnjb-2.2.7/sample
make[1]: stopped in /magus/work/usr/mports/audio/libnjb/work/libnjb-2.2.7
make: stopped in /magus/work/usr/mports/audio/libnjb/work/libnjb-2.2.7
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make: stopped in /usr/mports/audio/libnjb
Links
Depends On
- devel/doxygen (build)
Depend Of
NothingCategories
CVEs
- Loading CVE information...
MidnightBSD Magus