==> Retrieving sources... -> Found portmanteau-release.tar.gz ==> Generating checksums for source files... ==> Making package: portmanteau 1.0-3 (Thu 21 Nov 2024 04:55:06 AM UTC) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found portmanteau-release.tar.gz ==> Validating source files with sha512sums... portmanteau-release.tar.gz ... Passed ==> Extracting sources... -> Extracting portmanteau-release.tar.gz with bsdtar ==> Starting build()... gcc -lcrypto -l sqlite3 -o portmanteau main.c fuzz.c sql.c macro.c device.c misc.c poc.c main.c: In function ‘main’: main.c:33:17: error: implicit declaration of function ‘PrintPmtOptions’ [-Wimplicit-function-declaration] 33 | PrintPmtOptions(); | ^~~~~~~~~~~~~~~ main.c:41:23: error: implicit declaration of function ‘AddDeviceToDatabase’ [-Wimplicit-function-declaration] 41 | ret = AddDeviceToDatabase(optarg); | ^~~~~~~~~~~~~~~~~~~ main.c:45:23: error: implicit declaration of function ‘DeleteDeviceInDatabase’ [-Wimplicit-function-declaration] 45 | ret = DeleteDeviceInDatabase(optarg); | ^~~~~~~~~~~~~~~~~~~~~~ main.c:49:23: error: implicit declaration of function ‘ConvertDefineToIoctl’ [-Wimplicit-function-declaration] 49 | ret = ConvertDefineToIoctl(); | ^~~~~~~~~~~~~~~~~~~~ main.c:57:23: error: implicit declaration of function ‘SelectDeviceFromDatabaseToFuzz’ [-Wimplicit-function-declaration] 57 | ret = SelectDeviceFromDatabaseToFuzz(deviceName, iterations); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:61:23: error: implicit declaration of function ‘FindIoctlsForDevice’ [-Wimplicit-function-declaration] 61 | ret = FindIoctlsForDevice(deviceName); | ^~~~~~~~~~~~~~~~~~~ main.c:65:23: error: implicit declaration of function ‘ImportUnixIoctlsFromFile’ [-Wimplicit-function-declaration] 65 | ret = ImportUnixIoctlsFromFile(optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:69:23: error: implicit declaration of function ‘UpdateColumnInDatabase’ [-Wimplicit-function-declaration] 69 | ret = UpdateColumnInDatabase(optarg); | ^~~~~~~~~~~~~~~~~~~~~~ main.c:74:17: error: implicit declaration of function ‘Inception’ [-Wimplicit-function-declaration] 74 | Inception(errorMsg); | ^~~~~~~~~ main.c:82:9: error: implicit declaration of function ‘PrintHelp’ [-Wimplicit-function-declaration] 82 | PrintHelp(argv[0]); | ^~~~~~~~~ fuzz.c: In function ‘FuzzRandom’: fuzz.c:56:23: error: implicit declaration of function ‘FuzzRandomSChar’; did you mean ‘FuzzRandom’? [-Wimplicit-function-declaration] 56 | int ret = FuzzRandomSChar(id, inDeviceName, inIoctlName, inIoctl, inIoctlBufType, inIoctlBufSize, inIoctlDirection); | ^~~~~~~~~~~~~~~ | FuzzRandom fuzz.c:68:23: error: implicit declaration of function ‘FuzzRandomUChar’; did you mean ‘FuzzRandom’? [-Wimplicit-function-declaration] 68 | int ret = FuzzRandomUChar(id, inDeviceName, inIoctlName, inIoctl, inIoctlBufType, inIoctlBufSize, inIoctlDirection); | ^~~~~~~~~~~~~~~ | FuzzRandom fuzz.c:80:13: error: implicit declaration of function ‘FuzzRandomSShort’; did you mean ‘FuzzRandom’? [-Wimplicit-function-declaration] 80 | FuzzRandomSShort(id, inDeviceName, inIoctlName, inIoctl, inIoctlBufType, inIoctlBufSize, inIoctlDirection); | ^~~~~~~~~~~~~~~~ | FuzzRandom fuzz.c:92:23: error: implicit declaration of function ‘FuzzRandomUShort’; did you mean ‘FuzzRandom’? [-Wimplicit-function-declaration] 92 | int ret = FuzzRandomUShort(id, inDeviceName, inIoctlName, inIoctl, inIoctlBufType, inIoctlBufSize, inIoctlDirection); | ^~~~~~~~~~~~~~~~ | FuzzRandom fuzz.c:104:23: error: implicit declaration of function ‘FuzzRandomSInt32’; did you mean ‘FuzzRandom’? [-Wimplicit-function-declaration] 104 | int ret = FuzzRandomSInt32(id, inDeviceName, inIoctlName, inIoctl, inIoctlBufType, inIoctlBufSize, inIoctlDirection); | ^~~~~~~~~~~~~~~~ | FuzzRandom fuzz.c:116:23: error: implicit declaration of function ‘FuzzRandomUInt32’; did you mean ‘FuzzRandom’? [-Wimplicit-function-declaration] 116 | int ret = FuzzRandomUInt32(id, inDeviceName, inIoctlName, inIoctl, inIoctlBufType, inIoctlBufSize, inIoctlDirection); | ^~~~~~~~~~~~~~~~ | FuzzRandom fuzz.c: In function ‘FuzzRandomSChar’: fuzz.c:152:21: error: implicit declaration of function ‘random’ [-Wimplicit-function-declaration] 152 | int randomInt = random(); | ^~~~~~ fuzz.c:158:8: error: implicit declaration of function ‘GeneratePoc’ [-Wimplicit-function-declaration] 158 | if(GeneratePoc(id, inDeviceName, inIoctl, inIoctlDirection, inIoctlBufType, inIoctlName, buffer, sizeof(buffer)) < 0) printf("[-] Error: GeneratePoc() failed\n"); | ^~~~~~~~~~~ fuzz.c:160:14: error: implicit declaration of function ‘OpenDevice’ [-Wimplicit-function-declaration] 160 | int fd = OpenDevice(inDeviceName); | ^~~~~~~~~~ fuzz.c:165:8: error: implicit declaration of function ‘ioctl’ [-Wimplicit-function-declaration] 165 | if(ioctl(fd, inIoctl, &buffer) < 0) printf("[-] Error: ioctl() errno %d - %s\n\n", errno, strerror(errno)); | ^~~~~ fuzz.c: In function ‘GetRandomSeed’: fuzz.c:324:9: error: implicit declaration of function ‘Inception’ [-Wimplicit-function-declaration] 324 | Inception(errorMsg); | ^~~~~~~~~ sql.c: In function ‘SelectBufTypeByIoctl’: sql.c:53:5: error: implicit declaration of function ‘gettimeofday’ [-Wimplicit-function-declaration] 53 | gettimeofday(&tv, NULL); | ^~~~~~~~~~~~ sql.c:84:9: error: implicit declaration of function ‘Inception’ [-Wimplicit-function-declaration] 84 | Inception(errorMsg); | ^~~~~~~~~ sql.c: In function ‘SelectDeviceFromDatabaseToFuzz’: sql.c:173:13: error: implicit declaration of function ‘ParseIoctlMacroFromDatabase’ [-Wimplicit-function-declaration] 173 | ParseIoctlMacroFromDatabase(inDeviceName, iterations, result[pos+1], result[pos+2]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ sql.c: In function ‘AddDeviceToDatabase’: sql.c:229:5: warning: ‘SHA1_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 229 | SHA1_Init(&ctx); | ^~~~~~~~~ In file included from sql.c:14: /usr/include/openssl/sha.h:49:27: note: declared here 49 | OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c); | ^~~~~~~~~ sql.c:230:5: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 230 | SHA1_Update(&ctx, deviceName, sizeof(deviceName)); | ^~~~~~~~~~~ /usr/include/openssl/sha.h:50:27: note: declared here 50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len); | ^~~~~~~~~~~ sql.c:231:5: warning: ‘SHA1_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 231 | SHA1_Final(hash, &ctx); | ^~~~~~~~~~ /usr/include/openssl/sha.h:51:27: note: declared here 51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c); | ^~~~~~~~~~ sql.c:264:19: error: implicit declaration of function ‘CreateDriverSignatures’ [-Wimplicit-function-declaration] 264 | ret = CreateDriverSignatures(database); | ^~~~~~~~~~~~~~~~~~~~~~ sql.c: In function ‘UpdateColumnInDatabase’: sql.c:397:8: error: implicit declaration of function ‘CheckStringForReqChars’ [-Wimplicit-function-declaration] 397 | if(CheckStringForReqChars(':', 2, inData) < 0) return -1; | ^~~~~~~~~~~~~~~~~~~~~~ macro.c: In function ‘CleanMacro’: macro.c:73:13: error: implicit declaration of function ‘isspace’ [-Wimplicit-function-declaration] 73 | if(!isspace(inString[i]) && inString[i] != '(' && inString[i] != ')' && inString[i] != '\'' && inString[i] != '*') | ^~~~~~~ macro.c:57:1: note: include ‘’ or provide a declaration of ‘isspace’ 56 | #include "include/main.h" +++ |+#include 57 | macro.c: In function ‘ImportUnixIoctlsFromFile’: macro.c:233:9: error: implicit declaration of function ‘Inception’ [-Wimplicit-function-declaration] 233 | Inception(errorMsg); | ^~~~~~~~~ macro.c:282:19: error: implicit declaration of function ‘AddDeviceToDatabase’ [-Wimplicit-function-declaration] 282 | ret = AddDeviceToDatabase(signature); | ^~~~~~~~~~~~~~~~~~~ device.c: In function ‘OpenDevice’: device.c:54:17: error: implicit declaration of function ‘Inception’ [-Wimplicit-function-declaration] 54 | Inception(errorMsg); | ^~~~~~~~~ device.c: In function ‘FindIoctlsForDevice’: device.c:95:19: error: implicit declaration of function ‘ioctl’ [-Wimplicit-function-declaration] 95 | int ret = ioctl(fd, code, &argp); | ^~~~~ device.c:118:5: error: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Wimplicit-function-declaration] 118 | close(fd); | ^~~~~ | pclose misc.c: In function ‘PrintHelp’: misc.c:59:11: error: implicit declaration of function ‘PrintDriverSignatures’ [-Wimplicit-function-declaration] 59 | ret = PrintDriverSignatures(); | ^~~~~~~~~~~~~~~~~~~~~ misc.c: In function ‘ParseIoctlMacroFromDatabase’: misc.c:176:56: error: implicit declaration of function ‘SelectBufTypeByIoctl’ [-Wimplicit-function-declaration] 176 | snprintf(ioctlBufType, sizeof(ioctlBufType), "%s", SelectBufTypeByIoctl(ioctlMacro)); | ^~~~~~~~~~~~~~~~~~~~ misc.c:235:24: error: implicit declaration of function ‘MapBufTypeToBufSize’ [-Wimplicit-function-declaration] 235 | int ioctlBufSize = MapBufTypeToBufSize(ioctlBufType); | ^~~~~~~~~~~~~~~~~~~ misc.c:243:13: error: implicit declaration of function ‘GetRandomSeed’ [-Wimplicit-function-declaration] 243 | srandom(GetRandomSeed()); | ^~~~~~~~~~~~~ misc.c:245:15: error: implicit declaration of function ‘FuzzRandom’ [-Wimplicit-function-declaration] 245 | int ret = FuzzRandom(inDeviceName, iterations, inIoctlName, ioctl, ioctlBufType, ioctlBufSize, ioctlDirection); | ^~~~~~~~~~ poc.c: In function ‘GeneratePoc’: poc.c:70:9: error: implicit declaration of function ‘Inception’ [-Wimplicit-function-declaration] 70 | Inception(errorMsg); | ^~~~~~~~~ make: *** [Makefile:6: portmanteau] Error 1 ==> ERROR: A failure occurred in build(). Aborting...