=> Bootstrap dependency digest>=20010302: found digest-20190127 WARNING: [license.mk] Every package should define a LICENSE. ===> Skipping vulnerability checks. WARNING: No /opt/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/opt/pkg/sbin/pkg_admin -K /opt/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Building for s10sh-0.2.0nb3 --- main.o --- --- crc.o --- --- usb.o --- --- serial.o --- --- common.o --- --- bar.o --- --- main.o --- gcc -O2 -I/opt/pkg/include -Wall -g -I/opt/pkg/include -c main.c -DHAVE_USB_SUPPORT --- crc.o --- gcc -O2 -I/opt/pkg/include -Wall -g -I/opt/pkg/include -c crc.c -DHAVE_USB_SUPPORT --- usb.o --- gcc -O2 -I/opt/pkg/include -Wall -g -I/opt/pkg/include -c usb.c -DHAVE_USB_SUPPORT --- serial.o --- gcc -O2 -I/opt/pkg/include -Wall -g -I/opt/pkg/include -c serial.c -DHAVE_USB_SUPPORT --- bar.o --- gcc -O2 -I/opt/pkg/include -Wall -g -I/opt/pkg/include -c bar.c -DHAVE_USB_SUPPORT --- common.o --- gcc -O2 -I/opt/pkg/include -Wall -g -I/opt/pkg/include -c common.c -DHAVE_USB_SUPPORT --- usb.o --- usb.c:153:21: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] dump_hex("DATA", buffer, size); ^~~~~~ ./common.h:36:53: note: passing argument to parameter 'buf' here void dump_hex(const char *msg, const unsigned char *buf, int len); ^ usb.c:173:21: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] dump_hex("DATA", buffer, size); ^~~~~~ ./common.h:36:53: note: passing argument to parameter 'buf' here void dump_hex(const char *msg, const unsigned char *buf, int len); ^ usb.c:221:37: warning: passing 'unsigned char [4096]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] return USB_write_control_msg(0x10, buffer, 0x50+size); ^~~~~~ usb.c:136:44: note: passing argument to parameter 'buffer' here int USB_write_control_msg(int value, char *buffer, int size) ^ usb.c:268:43: warning: passing 'unsigned char [4096]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] while (USB_read_control_msg(0x55, buffer, 1) == -1); ^~~~~~ usb.c:158:43: note: passing argument to parameter 'buffer' here int USB_read_control_msg(int value, char *buffer, int size) ^ usb.c:269:35: warning: passing 'unsigned char [4096]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] USB_read_control_msg(0x1, buffer, 0x58); ^~~~~~ usb.c:158:43: note: passing argument to parameter 'buffer' here int USB_read_control_msg(int value, char *buffer, int size) ^ usb.c:270:37: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] USB_write_control_msg(0x11, buffer+0x48, 0x10); ^~~~~~~~~~~ usb.c:136:44: note: passing argument to parameter 'buffer' here int USB_write_control_msg(int value, char *buffer, int size) ^ --- serial.o --- serial.c:55:9: warning: initializing 'unsigned char *' with an expression of type 'char [8]' converts between pointers to integer types with different sign [-Wpointer-sign] "\x01\x12\x22\x14\xf7\x8a\x00", /* MSG_TYPE_CAMERA_ID */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ serial.c:56:9: warning: initializing 'unsigned char *' with an expression of type 'char [8]' converts between pointers to integer types with different sign [-Wpointer-sign] "\x01\x11\x21\x6a\x08\x79\x04", /* MSG_TYPE_IMAGE */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ serial.c:57:9: warning: initializing 'unsigned char *' with an expression of type 'char [8]' converts between pointers to integer types with different sign [-Wpointer-sign] "\x01\x11\x21\xea\x0c\xb1\x02", /* MSG_TYPE_THUMB */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ serial.c:58:9: warning: initializing 'unsigned char *' with an expression of type 'char [8]' converts between pointers to integer types with different sign [-Wpointer-sign] "\x04\x12\x00\x08\xd3\x9d\x00", /* MSG_TYPE_SET_DATE */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ serial.c:59:9: warning: initializing 'unsigned char *' with an expression of type 'char [8]' converts between pointers to integer types with different sign [-Wpointer-sign] "\x05\x12\x00\xfc\xd2\x9d\x00", /* MSG_TYPE_CH_OWNER */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ serial.c:60:9: warning: initializing 'unsigned char *' with an expression of type 'char [8]' converts between pointers to integer types with different sign [-Wpointer-sign] "\x09\x11\x21\xd8\xf7\x8a\x00", /* MSG_TYPE_DISK_INFO */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ serial.c:61:9: warning: initializing 'unsigned char *' with an expression of type 'char [8]' converts between pointers to integer types with different sign [-Wpointer-sign] "\x0a\x11\x21\xdc\xf7\x8a\x00", /* MSG_TYPE_GET_DISK */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ serial.c:62:9: warning: initializing 'unsigned char *' with an expression of type 'char [8]' converts between pointers to integer types with different sign [-Wpointer-sign] "\x0a\x12\x22\x70\xf6\x8a\x00", /* MSG_TYPE_UNK_1 */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ serial.c:63:9: warning: initializing 'unsigned char *' with an expression of type 'char [8]' converts between pointers to integer types with different sign [-Wpointer-sign] "\x0b\x11\x21\x94\xf6\x8a\x00", /* MSG_TYPE_LIST_WITHOUT_DATE */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ serial.c:64:9: warning: initializing 'unsigned char *' with an expression of type 'char [8]' converts between pointers to integer types with different sign [-Wpointer-sign] "\x0b\x11\x21\xa8\xf6\x8a\x00", /* MSG_TYPE_LIST_WITH_DATE */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ serial.c:65:9: warning: initializing 'unsigned char *' with an expression of type 'char [8]' converts between pointers to integer types with different sign [-Wpointer-sign] --- usb.o --- usb.c:364:35: warning: passing 'char [4]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] --- serial.o --- "\x0d\x11\x21\x8c\xf4\x7b\x00", /* MSG_TYPE_DELETE_IMG */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- usb.o --- USB_cmd(0x09, 0x11, 0x201, 0x01, diskstr, 4); ^~~~~~~ usb.c:204:108: note: passing argument to parameter 'payload' here --- serial.o --- serial.c:66:9: warning: initializing 'unsigned char *' with an expression of type 'char [8]' converts between pointers to integer types with different sign [-Wpointer-sign] "\x0a\x12\x22\x70\xf6\x8a\x00", /* MSG_TYPE_POWER_STATUS */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- usb.o --- int USB_cmd(unsigned char cmd1, unsigned char cmd2, unsigned int cmd3, unsigned int serial, unsigned char *payload, int size) ^ --- serial.o --- serial.c:67:9: warning: initializing 'unsigned char *' with an expression of type 'char [8]' converts between pointers to integer types with different sign [-Wpointer-sign] "\x03\x12\x12\x78\xf3\x64\x01", /* MSG_TYPE_GET_DATE */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ serial.c:68:9: warning: initializing 'unsigned char *' with an expression of type 'char [8]' converts between pointers to integer types with different sign [-Wpointer-sign] "\x0e\x11\x00\x00\x00\x00\x00", /* MSG_TYPE_SET_ATTRIB */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ serial.c:69:9: warning: initializing 'unsigned char *' with an expression of type 'char [8]' converts between pointers to integer types with different sign [-Wpointer-sign] "\x05\x11\x00\x00\x00\x00\x00", /* MSG_TYPE_MKDIR */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ serial.c:70:9: warning: initializing 'unsigned char *' with an expression of type 'char [8]' converts between pointers to integer types with different sign [-Wpointer-sign] "\x06\x11\x00\x00\x00\x00\x00", /* MSG_TYPE_RMDIR */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ serial.c:71:9: warning: initializing 'unsigned char *' with an expression of type 'char [8]' converts between pointers to integer types with different sign [-Wpointer-sign] "\x03\x11\x21\x00\x00\x00\x00", /* MSG_TYPE_UPLOAD */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- usb.o --- usb.c:398:12: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] snprintf(arg, 1024, "%s\\%s", lastpath, pathname); ^~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:29: note: expanded from macro 'snprintf' __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__) ^~~ usb.c:399:12: warning: assigning to 'char *' from 'unsigned char [1024]' converts between pointers to integer types with different sign [-Wpointer-sign] pathname = arg; ^ ~~~ usb.c:402:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] USB_cmd(0x5, 0x11, 0x201, 0x01, pathname, strlen(pathname)+1); ^~~~~~~~ usb.c:204:108: note: passing argument to parameter 'payload' here int USB_cmd(unsigned char cmd1, unsigned char cmd2, unsigned int cmd3, unsigned int serial, unsigned char *payload, int size) ^ --- serial.o --- serial.c:189:30: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] cksum = canon_psa50_gen_crc(data, len); ^~~~ ./crc.h:4:48: note: passing argument to parameter 'pkt' here unsigned short canon_psa50_gen_crc(const char *pkt,int len); ^ --- usb.o --- usb.c:416:12: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] snprintf(arg, 1024, "%s\\%s", lastpath, pathname); ^~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:29: note: expanded from macro 'snprintf' __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__) ^~~ usb.c:417:12: warning: assigning to 'char *' from 'unsigned char [1024]' converts between pointers to integer types with different sign [-Wpointer-sign] pathname = arg; ^ ~~~ usb.c:420:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] USB_cmd(0x6, 0x11, 0x201, 0x01, pathname, strlen(pathname)+1); ^~~~~~~~ usb.c:204:108: note: passing argument to parameter 'payload' here int USB_cmd(unsigned char cmd1, unsigned char cmd2, unsigned int cmd3, unsigned int serial, unsigned char *payload, int size) ^ --- serial.o --- serial.c:279:27: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] return serial_send_frame(ack, 6); ^~~ serial.c:181:38: note: passing argument to parameter 'data' here int serial_send_frame(unsigned char *data, int len) ^ serial.c:289:12: warning: assigning to 'unsigned char *' from 'char [17]' converts between pointers to integer types with different sign [-Wpointer-sign] speedstr = SPEED_9600; ^ ~~~~~~~~~~ serial.c:292:12: warning: assigning to 'unsigned char *' from 'char [16]' converts between pointers to integer types with different sign [-Wpointer-sign] speedstr = SPEED_19200; ^ ~~~~~~~~~~~ serial.c:295:12: warning: assigning to 'unsigned char *' from 'char [16]' converts between pointers to integer types with different sign [-Wpointer-sign] speedstr = SPEED_38400; ^ ~~~~~~~~~~~ serial.c:298:12: warning: assigning to 'unsigned char *' from 'char [16]' converts between pointers to integer types with different sign [-Wpointer-sign] speedstr = SPEED_57600; ^ ~~~~~~~~~~~ serial.c:302:12: warning: assigning to 'unsigned char *' from 'char [16]' converts between pointers to integer types with different sign [-Wpointer-sign] speedstr = SPEED_115200; ^ ~~~~~~~~~~~~ serial.c:317:27: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] return serial_send_frame(eot, 6); ^~~ serial.c:181:38: note: passing argument to parameter 'data' here int serial_send_frame(unsigned char *data, int len) ^ --- usb.o --- usb.c:526:31: warning: passing 'unsigned char [8192]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] USB_write_control_msg(0x10, buffer, 0x40); ^~~~~~ usb.c:136:44: note: passing argument to parameter 'buffer' here int USB_write_control_msg(int value, char *buffer, int size) ^ --- serial.o --- serial.c:326:27: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] return serial_send_frame(eot, 6); ^~~ serial.c:181:38: note: passing argument to parameter 'data' here int serial_send_frame(unsigned char *data, int len) ^ serial.c:333:26: warning: passing 'char [7]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] serial_write(fd, "\xC0\x00\x02\x55\x2C\xC1",6); ^~~~~~~~~~~~~~~~~~~~~~~~~~ serial.c:153:41: note: passing argument to parameter 'buffer' here int serial_write(int fd, unsigned char *buffer, int size) ^ serial.c:334:35: warning: passing 'char [11]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] result = serial_write(fd, "\xC0\x00\x04\x01\x00\x00\x00\x24\xC6\xC1",8); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ serial.c:153:41: note: passing argument to parameter 'buffer' here int serial_write(int fd, unsigned char *buffer, int size) ^ serial.c:367:28: warning: passing 'unsigned char [1024]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] n_read = serial_read(fd, buffer, 1024); ^~~~~~ serial.c:339:31: note: passing argument to parameter 'buffer' here int serial_read(int fd, char *buffer, int size) ^ serial.c:425:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (canon_psa50_chk_crc(frame, framelen-2, hdr->cksum) == 0) { ^~~~~ ./crc.h:5:37: note: passing argument to parameter 'pkt' here int canon_psa50_chk_crc(const char *pkt,int len,unsigned short crc); ^ serial.c:598:6: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] pkt = serial_get_packet(&hdr); /* data */ ^ ~~~~~~~~~~~~~~~~~~~~~~~ --- main.o --- In file included from main.c:577: ./bytesex.h:6:10: fatal error: 'sys/endian.h' file not found --- serial.o --- serial.c:600:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(buffer, hdr.data+28, 1024); ^~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_string.h:128:34: note: expanded from macro 'strncpy' __builtin___strncpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest)) ^~~~~~~~~~~ --- main.o --- #include ^~~~~~~~~~~~~~ --- serial.o --- serial.c:622:6: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] pkt = serial_get_packet(&hdr); /* data */ ^ ~~~~~~~~~~~~~~~~~~~~~~~ serial.c:624:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(buffer, hdr.data+20, 1024); ^~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_string.h:128:34: note: expanded from macro 'strncpy' __builtin___strncpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest)) ^~~~~~~~~~~ serial.c:657:47: warning: passing 'char [4]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] serial_send_message_frag(MSG_TYPE_DISK_INFO, diskstr, 4, 0); ^~~~~~~ serial.c:235:55: note: passing argument to parameter 'frag' here int serial_send_message_frag(int type, unsigned char *frag, unsigned short len, int morefrag) ^ serial.c:683:43: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] serial_send_message_frag(MSG_TYPE_MKDIR, pathname, strlen(pathname)+1, 0); ^~~~~~~~ serial.c:235:55: note: passing argument to parameter 'frag' here int serial_send_message_frag(int type, unsigned char *frag, unsigned short len, int morefrag) ^ serial.c:706:43: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] serial_send_message_frag(MSG_TYPE_RMDIR, pathname, strlen(pathname)+1, 0); ^~~~~~~~ serial.c:235:55: note: passing argument to parameter 'frag' here int serial_send_message_frag(int type, unsigned char *frag, unsigned short len, int morefrag) ^ serial.c:729:48: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] serial_send_message_frag(MSG_TYPE_DELETE_IMG, pathname, strlen(pathname)+1, 0); ^~~~~~~~ serial.c:235:55: note: passing argument to parameter 'frag' here int serial_send_message_frag(int type, unsigned char *frag, unsigned short len, int morefrag) ^ serial.c:783:43: warning: passing 'char [1024]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] serial_send_message_frag(MSG_TYPE_IMAGE, aux, 9+strlen(pathname), 0); ^~~ serial.c:235:55: note: passing argument to parameter 'frag' here int serial_send_message_frag(int type, unsigned char *frag, unsigned short len, int morefrag) ^ --- main.o --- 1 error generated. *** [main.o] Error code 1 bmake: stopped in /opt/work/graphics/s10sh/work/s10sh-0.2.0 --- common.o --- common.c:219:5: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = strrchr(arg, '\\'); ^ ~~~~~~~~~~~~~~~~~~ common.c:301:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(lastpath, p, 1024); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_string.h:128:34: note: expanded from macro 'strncpy' __builtin___strncpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest)) ^~~~~~~~~~~ common.c:302:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] p += strlen(p) + 1; ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ common.c:336:40: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(dirlist[dirlist_size]->name, p, 1024); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_string.h:128:34: note: expanded from macro 'strncpy' __builtin___strncpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest)) ^~~~~~~~~~~ common.c:337:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] p += strlen(p); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ --- usb.o --- 14 warnings generated. --- common.o --- 5 warnings generated. --- serial.o --- 39 warnings generated. 1 error bmake: stopped in /opt/work/graphics/s10sh/work/s10sh-0.2.0 *** Error code 2 Stop. bmake[1]: stopped in /opt/pkgsrc/graphics/s10sh *** Error code 1 Stop. bmake: stopped in /opt/pkgsrc/graphics/s10sh