Skip to content

'make fs' fails in lib/pclsync #208

Description

@muessjoeh

When I type 'make fs' in lib/pclsync, I get the following errors and warnings on my Ubuntu 25.10:

(Although it is defined as code, the formatting is very bad)

chris@rincewind:~/devel/console-client/pCloudCC/lib/pclsync (master)> make fs gcc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -mtune=core2 -I../sqlite -DP_ELECTRON -fPIC -DP_OS_LINUX -D_FILE_OFFSET_BITS=64 -DP_SSL_MBEDTLS -I../mbedtls/include -c -o psynclib.o psynclib.c psynclib.c: In function ‘psync_check_new_version’: psynclib.c:1730:12: warning: unused variable ‘params’ [-Wunused-variable] 1730 | binparam params[]={P_STR("os", os), P_NUM("version", currentversion)}; | ^~~~~~ In file included from psynclib.c:29: psynclib.c: In function ‘psync_cache_links_all’: psynclib.c:2324:34: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 6 has type ‘time_t’ {aka ‘long int’} [-Wformat=] 2324 | debug(D_WARNING, "refreshing link too early %u", (unsigned)psync_current_time - links_last_refresh_time); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | time_t {aka long int} plibs.h:67:108: note: in definition of macro ‘debug’ 67 | vel, ...) do {if (level<=DEBUG_LEVEL) psync_debug(__FILE__, __FUNCTION__, __LINE__, level, __VA_ARGS__);} while (0) | ^~~~~~~~~~~ psynclib.c:2324:62: note: format string is defined here 2324 | debug(D_WARNING, "refreshing link too early %u", (unsigned)psync_current_time - links_last_refresh_time); | ~^ | | | unsigned int | %lu psynclib.c: In function ‘psync_get_promo’: psynclib.c:2467:19: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 6 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=] 2467 | debug(D_NOTICE, "Promo window Width: [%llu]", *width); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~ | | | uint64_t {aka long unsigned int} plibs.h:67:108: note: in definition of macro ‘debug’ 67 | vel, ...) do {if (level<=DEBUG_LEVEL) psync_debug(__FILE__, __FUNCTION__, __LINE__, level, __VA_ARGS__);} while (0) | ^~~~~~~~~~~ psynclib.c:2467:44: note: format string is defined here 2467 | debug(D_NOTICE, "Promo window Width: [%llu]", *width); | ~~~^ | | | long long unsigned int | %lu psynclib.c:2478:19: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 6 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=] 2478 | debug(D_NOTICE, "Promo window Height: [%llu]", *height); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~ | | | uint64_t {aka long unsigned int} plibs.h:67:108: note: in definition of macro ‘debug’ 67 | vel, ...) do {if (level<=DEBUG_LEVEL) psync_debug(__FILE__, __FUNCTION__, __LINE__, level, __VA_ARGS__);} while (0) | ^~~~~~~~~~~ psynclib.c:2478:45: note: format string is defined here 2478 | debug(D_NOTICE, "Promo window Height: [%llu]", *height); | ~~~^ | | | long long unsigned int | %lu psynclib.c: In function ‘psync_is_folder_syncable’: psynclib.c:2588:17: warning: passing argument 1 of ‘parse_os_path’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 2588 | parse_os_path(ignorePaths, &folders, DELIM_SEMICOLON, 0); | ^~~~~~~~~~~ In file included from psynclib.h:40, from plibs.h:33: ptools.h:89:26: note: expected ‘char *’ but argument is of type ‘const char *’ 89 | void parse_os_path(char* path, folderPath* folders, char* delim, int mode); | ~~~~~~^~~~ ptools.h:42:25: error: passing argument 3 of ‘parse_os_path’ makes pointer from integer without a cast [-Wint-conversion] 42 | #define DELIM_SEMICOLON ';' | ^~~ | | | int psynclib.c:2588:40: note: in expansion of macro ‘DELIM_SEMICOLON’ 2588 | parse_os_path(ignorePaths, &folders, DELIM_SEMICOLON, 0); | ^~~~~~~~~~~~~~~ ptools.h:89:59: note: expected ‘char *’ but argument is of type ‘int’ 89 | void parse_os_path(char* path, folderPath* folders, char* delim, int mode); | ~~~~~~^~~~~ psynclib.c: In function ‘psync_get_syncs_bytype’: psynclib.c:2605:30: warning: passing argument 1 of ‘psync_list_get_list’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 2605 | return psync_list_get_list(syncType); | ^~~~~~~~ In file included from psynclib.c:39: pfolder.h:59:48: note: expected ‘char *’ but argument is of type ‘const char *’ 59 | psync_folder_list_t* psync_list_get_list(char* syncTypes); | ~~~~~~^~~~~~~~~ psynclib.c: In function ‘create_bup_mach_folder’: psynclib.c:2646:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 2646 | rootFolIdObj = psync_find_result(retData, "folderid", PARAM_NUM); | ^ psynclib.c: In function ‘psync_create_backup’: ptools.h:49:20: error: passing argument 3 of ‘parse_os_path’ makes pointer from integer without a cast [-Wint-conversion] 49 | #define DELIM_DIR '/' | ^~~ | | | int psynclib.c:2689:33: note: in expansion of macro ‘DELIM_DIR’ 2689 | parse_os_path(path, &folders, DELIM_DIR, 1); | ^~~~~~~~~ ptools.h:89:59: note: expected ‘char *’ but argument is of type ‘int’ 89 | void parse_os_path(char* path, folderPath* folders, char* delim, int mode); | ~~~~~~^~~~~ psynclib.c:2730:11: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 2730 | folId = psync_find_result(retData, FOLDER_ID, PARAM_NUM); | ^ psynclib.c: In function ‘psync_delete_backup’: psynclib.c:2772:20: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 6 has type ‘psync_syncid_t’ {aka ‘unsigned int’} [-Wformat=] 2772 | debug(D_ERROR, "Failed to find folder id for syncId: [%lld]", syncId); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~ | | | psync_syncid_t {aka unsigned int} plibs.h:67:108: note: in definition of macro ‘debug’ 67 | vel, ...) do {if (level<=DEBUG_LEVEL) psync_debug(__FILE__, __FUNCTION__, __LINE__, level, __VA_ARGS__);} while (0) | ^~~~~~~~~~~ psynclib.c:2772:62: note: format string is defined here 2772 | debug(D_ERROR, "Failed to find folder id for syncId: [%lld]", syncId); | ~~~^ | | | long long int | %d psynclib.c: In function ‘psync_async_delete_sync’: psynclib.c:2870:27: error: initialization of ‘psync_syncid_t’ {aka ‘unsigned int’} from ‘psync_syncid_t *’ {aka‘unsigned int *’} makes integer from pointer without a cast [-Wint-conversion] 2870 | psync_syncid_t syncId = (psync_syncid_t*)ptr; | ^ psynclib.c: In function ‘psync_async_ui_callback’: psynclib.c:2883:17: error: initialization of ‘int’ from ‘int *’ makes integer from pointer without a cast [-Wint-conversion] 2883 | int eventId = (int*)ptr; | ^ psynclib.c: In function ‘psync_delete_sync_by_folderid’: psynclib.c:2913:10: error: assignment to ‘psync_syncid_t *’ {aka ‘unsigned int *’} from ‘uint64_t’ {aka ‘long unsigned int’} makes pointer from integer without a cast [-Wint-conversion] 2913 | syncId = row[0]; | ^ psynclib.c: In function ‘psync_delete_backup_device’: psynclib.c:2928:19: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 6 has type ‘psync_folderid_t’ {aka ‘long unsigned int’} [-Wformat=] 2928 | debug(D_NOTICE, "Check if the local device was stopped. Id: [%lld]", fId); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ | | | psync_folderid_t {aka long unsigned int} plibs.h:67:108: note: in definition of macro ‘debug’ 67 | vel, ...) do {if (level<=DEBUG_LEVEL) psync_debug(__FILE__, __FUNCTION__, __LINE__, level, __VA_ARGS__);} while (0) | ^~~~~~~~~~~ psynclib.c:2928:67: note: format string is defined here 2928 | debug(D_NOTICE, "Check if the local device was stopped. Id: [%lld]", fId); | ~~~^ | | | long long int | %ld psynclib.c:2940:21: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 6 has type ‘psync_folderid_t’ {aka ‘long unsigned int’} [-Wformat=] 2940 | debug(D_NOTICE, "Stop for different device. Id: [%lld]", bFId); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ | | | psync_folderid_t {aka long unsigned int} plibs.h:67:108: note: in definition of macro ‘debug’ 67 | vel, ...) do {if (level<=DEBUG_LEVEL) psync_debug(__FILE__, __FUNCTION__, __LINE__, level, __VA_ARGS__);} while (0) | ^~~~~~~~~~~ psynclib.c:2940:57: note: format string is defined here 2940 | debug(D_NOTICE, "Stop for different device. Id: [%lld]", bFId); | ~~~^ | | | long long int | %ld In file included from psynclib.c:35: pssl.h: At top level: pssl.h:74:24: warning: ‘rsa_decr_mutex’ defined but not used [-Wunused-variable] 74 | static pthread_mutex_t rsa_decr_mutex = PTHREAD_MUTEX_INITIALIZER; | ^~~~~~~~~~~~~~ make: *** [<eingebaut>: psynclib.o] Fehler 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions