Перестала работать программа на С под Ubuntu после обновления
7 USDПосле обновления Ubuntu ранее нормально работающая программа начала выдавать ошибку Symbol `json_tokener_errors' has different size in shared object, consider re-linking"
Нужно либо поремонтировать Linux, либо внести корректировки в программу
-
Здравствуйте.
Какая версия бубунты?
grive используете?
-
не могу сказать или используется grive. Необходимости в нем нет. Вот текст фрагмента программы
int sysconf_load(const char* filename, config* cnf) {
FILE* config_fd = 0;
char* config_buff = 0;
int config_size = 0;
// trying to open config file
config_fd = fopen(CONFIG_FILE, "r");
if (config_fd == 0) {
printf("Can not open file \n");
return -1;
}
// getting config size
fseek(config_fd, 0, SEEK_END);
config_size = ftell(config_fd);
rewind(config_fd);
// allocate memory and read config file
config_buff = (char*) malloc(config_size);
fread(config_buff, 1, config_size, config_fd);
struct json_object* root;
root = json_tokener_parse(config_buff);
if ((long int) root < 0) {
int err = -(long int) root;
printf("parse error %s \n", json_tokener_errors[err]);
exit(-1);
}
if (sysconf_loadSystem(root, &cnf->sys) < 0) return -1;
if (sysconf_loadRooms(root, (room*) & cnf->rooms) < 0) return -1;
free(config_buff);
fclose(config_fd);
return 0;
}; -
Все, вопрос решился просто перекомпиляцией программы! Спасибо!
-
Current freelance projects in the category C & C++
Comparative analysis of the effectiveness of custom software (v2.2-field) and reference software (Meshtastic v2.x)
22 USD
Comparative analysis of the effectiveness of custom software (v2.2-field) and reference software (Meshtastic v2.x) on the identical hardware platform (ESP32 + SX1268, 2W) based on the criteria of range, throughput, link stability, and power consumption. Conduct tests with… C & C++, C# ∙ 23 hours 6 minutes back ∙ 2 proposals |
Consultation and audit of the current project on Odoo 19 Community EditionWe are looking for an Odoo Developer — a solo developer with experience in Odoo 19 Community Edition, including using Claude Code. We need a specialist who has successfully implemented projects in Odoo and practical experience in development using Claude Code. Important: we only… C & C++, Javascript and Typescript ∙ 4 days back ∙ 7 proposals |
Software development for Arduino (RF modules 3–7.5 GHz, automatic frequency scanning)It is necessary to develop a system on Arduino for the automatic search of active analog video signals and the automatic tuning of the transmitter to the detected frequency.It is planned to use three separate transceiver modules: 3000–4200 MHz; 4900–6000 MHz; 6100–7500… C & C++, Embedded Systems & Microcontrollers ∙ 5 days back ∙ 4 proposals |
Black Ukraine (RP-project on base MTA)
1154 USD
|
Residential Proxy Infrastructure EngineerWe're building a residential proxy network from scratch — fully owned, no third-party suppliers. We need one exceptional network engineer to build the entire technical foundation. What you'll build: - Android background SDK that routes proxy traffic through user devices… C & C++, DevOps ∙ 10 days 21 hours back ∙ 15 proposals |