сборка ПО под linux 64 бита

Различное оборудование. Работа АТС. Программирование, обслуживание, документация, полезные советы.
Ответить
unknown
Сообщения: 1
Зарегистрирован: Ср янв 16, 2013 12:00 pm

сборка ПО под linux 64 бита

Сообщение unknown » Чт янв 17, 2013 5:06 am

Не компилируются программы под 64 разрядную систему
scom

Код: Выделить всё

/home/m200/soft/scomm-0.8.5# make
make  all-recursive
make[1]: Entering directory `/home/m200/soft/scomm-0.8.5'
Making all in src
make[2]: Entering directory `/home/m200/soft/scomm-0.8.5/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -MT main.o -MD -MP -MF ".deps/main.Tpo" \
          -c -o main.o `test -f 'main.cpp' || echo './'`main.cpp; \
        then mv -f ".deps/main.Tpo" ".deps/main.Po"; \
        else rm -f ".deps/main.Tpo"; exit 1; \
        fi
main.cpp: In function ‘void* Client_ptread(void*)’:
main.cpp:56:37: error: cast from ‘void*’ to ‘unsigned int’ loses precision [-fpermissive]
main.cpp: In function ‘void* InfoClient_ptread(void*)’:
main.cpp:112:31: error: cast from ‘void*’ to ‘int’ loses precision [-fpermissive]
main.cpp: In function ‘void* Server_ptread(void*)’:
main.cpp:241:51: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
main.cpp: In function ‘void* InfoServer_ptread(void*)’:
main.cpp:348:39: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
make[2]: *** [main.o] Ошибка 1
make[2]: Leaving directory `/home/m200/soft/scomm-0.8.5/src'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/home/m200/soft/scomm-0.8.5'
make: *** [all] Ошибка 2
tune

Код: Выделить всё

/home/m200/soft/tune-0.2.0# make
make  all-recursive
make[1]: Entering directory `/home/m200/soft/tune-0.2.0'
Making all in src
make[2]: Entering directory `/home/m200/soft/tune-0.2.0/src'
g++ -DHAVE_CONFIG_H -I. -I..   -I. -I./include -fpack-struct=1  -O0 -fsigned-char -O0 -g -MT tune-tune.o -MD -MP -MF .deps/tune-tune.Tpo -c -o tune-tune.o `test -f 'tune.cpp' || echo './'`tune.cpp
tune.cpp: In function ‘bool StrToLog(const char*)’:
tune.cpp:83:35: error: ‘write’ was not declared in this scope
tune.cpp:85:13: error: ‘close’ was not declared in this scope
tune.cpp: In function ‘int Login_ethernet(const char*, in_addr_t)’:
tune.cpp:139:17: error: ‘close’ was not declared in this scope
tune.cpp:156:17: error: ‘close’ was not declared in this scope
tune.cpp:186:21: error: ‘close’ was not declared in this scope
tune.cpp:198:21: error: ‘close’ was not declared in this scope
tune.cpp:204:21: error: ‘close’ was not declared in this scope
tune.cpp: In function ‘int Create_server_point(in_addr_t)’:
tune.cpp:229:17: error: ‘close’ was not declared in this scope
tune.cpp:272:17: error: ‘close’ was not declared in this scope
tune.cpp:280:17: error: ‘close’ was not declared in this scope
tune.cpp: In function ‘void sig_SIGTERM_hndlr(int)’:
tune.cpp:319:23: error: ‘close’ was not declared in this scope
tune.cpp: In function ‘void OnMessage(CSMPMessage*)’:
tune.cpp:654:48: error: ‘write’ was not declared in this scope
tune.cpp:672:58: error: ‘write’ was not declared in this scope
tune.cpp: In function ‘void Reinit_connection()’:
tune.cpp:764:19: error: ‘close’ was not declared in this scope
tune.cpp:769:16: error: ‘sleep’ was not declared in this scope
tune.cpp: In function ‘void* Server_ptread(void*)’:
tune.cpp:839:42: error: ‘close’ was not declared in this scope
tune.cpp:862:38: error: ‘close’ was not declared in this scope
tune.cpp:875:79: error: ‘read’ was not declared in this scope
tune.cpp:902:46: error: ‘dup’ was not declared in this scope
tune.cpp:904:49: error: ‘dup2’ was not declared in this scope
tune.cpp:914:46: error: ‘dup2’ was not declared in this scope
tune.cpp:918:40: error: ‘close’ was not declared in this scope
tune.cpp:928:43: error: ‘close’ was not declared in this scope
tune.cpp:939:20: error: ‘close’ was not declared in this scope
tune.cpp: In function ‘int waitdata(BYTE*, int)’:
tune.cpp:965:59: error: ‘read’ was not declared in this scope
tune.cpp: In function ‘void* terminal_ptread(void*)’:
tune.cpp:1734:64: error: ‘read’ was not declared in this scope
tune.cpp: In function ‘int main(int, char**)’:
tune.cpp:1784:21: error: ‘pipe’ was not declared in this scope
tune.cpp:1788:20: error: ‘daemon’ was not declared in this scope
tune.cpp:1793:16: error: ‘sleep’ was not declared in this scope
tune.cpp:1848:51: error: ‘read’ was not declared in this scope
make[2]: *** [tune-tune.o] Ошибка 1
make[2]: Leaving directory `/home/m200/soft/tune-0.2.0/src'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/home/m200/soft/tune-0.2.0'
make: *** [all] Ошибка 2
Питер ответил что они под 64 разрядную систему не тестируют. Как быть?

Ответить