Стоит линукс Open Suse 11.1 (Текстовый режим)
Проблема следующая - ставлю асечный сервер iserverd http://iserverd.khstu.ru/russian/install.html
Пакет IServerd-2.0.0.tar.gz разархивировал, configure проходит нормально не ругается.
Но make all даёт такие ошибки:
g++ -I. -DHAVE_CONFIG_H -Iinclude/ -Itvision/ -I/var/lib/pgsql/ -I/var/lib/pgsql//libpq -DVAR_DIR=/var/run/iserverd -DBIN_DIR=/usr/bin -DETC_DIR=/etc/iserverd -DLOG_DIR=/var/log/iserverd -c system/daemon.cpp -o system/daemon.o
In file included from system/daemon.cpp:34:
include/includes.h:157:22: error: libpq-fe.h: No such file or directory
include/includes.h:158:22: error: libpq-fs.h: No such file or directory
In file included from include/includes.h:161,
from system/daemon.cpp:34:
include/public.h:84: error: expected initializer before ‘* token
In file included from include/proto.h:449,
from include/includes.h:162,
from system/daemon.cpp:34:
./database/db_proto.h:94: error: ‘PGresult was not declared in this scope
./database/db_proto.h:94: error: ‘res was not declared in this scope
./database/db_proto.h:94: error: expected primary-expression before ‘unsigned
./database/db_proto.h:94: error: expected primary-expression before ‘unsigned
./database/db_proto.h:94: error: initializer expression list treated as compound expression
./database/db_proto.h:104: error: ‘PGconn was not declared in this scope
./database/db_proto.h:104: error: ‘dbconn was not declared in this scope
./database/db_proto.h:104: error: expected primary-expression before ‘char
./database/db_proto.h:104: error: expected primary-expression before ‘int
./database/db_proto.h:104: error: initializer expression list treated as compound expression
./database/db_proto.h:105: error: ‘PGconn was not declared in this scope
./database/db_proto.h:105: error: ‘dbconn was not declared in this scope
./database/db_proto.h:105: error: expected primary-expression before ‘char
./database/db_proto.h:105: error: expected primary-expression before ‘int
./database/db_proto.h:105: error: initializer expression list treated as compound expression
./database/db_proto.h:106: error: ‘PGconn was not declared in this scope
./database/db_proto.h:106: error: ‘dbconn was not declared in this scope
./database/db_proto.h:106: error: expected primary-expression before ‘char
./database/db_proto.h:106: error: initializer expression list treated as compound expression
./database/db_proto.h:107: error: ‘PGconn was not declared in this scope
./database/db_proto.h:107: error: ‘dbconn was not declared in this scope
./database/db_proto.h:107: error: expected primary-expression before ‘char
./database/db_proto.h:107: error: expected primary-expression before ‘char
./database/db_proto.h:107: error: initializer expression list treated as compound expression
./database/db_proto.h:108: error: ‘PGconn was not declared in this scope
./database/db_proto.h:108: error: ‘dbconn was not declared in this scope
./database/db_proto.h:108: error: expected primary-expression before ‘char
./database/db_proto.h:108: error: initializer expression list treated as compound expression
./database/db_proto.h:111: error: ‘PGresult was not declared in this scope
./database/db_proto.h:111: error: ‘res was not declared in this scope
./database/db_proto.h:111: error: expected primary-expression before ‘char
./database/db_proto.h:111: error: initializer expression list treated as compound expression
system/daemon.cpp: In function ‘BOOL write_pid():
system/daemon.cpp:48: warning: deprecated conversion from string constant to ‘char*
system/daemon.cpp:48: warning: deprecated conversion from string constant to ‘char*
system/daemon.cpp:48: warning: deprecated conversion from string constant to ‘char*
system/daemon.cpp:55: warning: deprecated conversion from string constant to ‘char*
system/daemon.cpp:55: warning: deprecated conversion from string constant to ‘char*
system/daemon.cpp:55: warning: deprecated conversion from string constant to ‘char*
system/daemon.cpp:63: warning: deprecated conversion from string constant to ‘char*
system/daemon.cpp:63: warning: deprecated conversion from string constant to ‘char*
system/daemon.cpp:63: warning: deprecated conversion from string constant to ‘char*
system/daemon.cpp: In function ‘int become_daemon():
system/daemon.cpp:77: warning: deprecated conversion from string constant to ‘char*
system/daemon.cpp:82: warning: deprecated conversion from string constant to ‘char*
system/daemon.cpp:96: warning: deprecated conversion from string constant to ‘char*
system/daemon.cpp:101: warning: deprecated conversion from string constant to ‘char*
make: *** [system/daemon.o] Error 1
Видел подобную тему здесь: http://forum.ubuntu.ru/index.php?topic=20495.0
вот что писали:
"помести в директорию_откуда_инсталишь/include файлы libpq-fe.h libpq-fs.h postgres_ext.h
после этого у меня скомпилилось только что"
Но у меня этих файлов (libpq-fe.h libpq-fs.h postgres_ext.h) нет.
Поидее они должны появиться после установки libpq-dev, но они так и не появились. Может потому что у меня libpq.so.5.1 а надо 3 версию.
Что посоветуете, что скачать или что изменить для правильной компиляции
Проблема следующая - ставлю асечный сервер iserverd http://iserverd.khstu.ru/russian/install.html
Пакет IServerd-2.0.0.tar.gz разархивировал, configure проходит нормально не ругается.
Но make all даёт такие ошибки:
g++ -I. -DHAVE_CONFIG_H -Iinclude/ -Itvision/ -I/var/lib/pgsql/ -I/var/lib/pgsql//libpq -DVAR_DIR=/var/run/iserverd -DBIN_DIR=/usr/bin -DETC_DIR=/etc/iserverd -DLOG_DIR=/var/log/iserverd -c system/daemon.cpp -o system/daemon.o
In file included from system/daemon.cpp:34:
include/includes.h:157:22: error: libpq-fe.h: No such file or directory
include/includes.h:158:22: error: libpq-fs.h: No such file or directory
In file included from include/includes.h:161,
from system/daemon.cpp:34:
include/public.h:84: error: expected initializer before ‘* token
In file included from include/proto.h:449,
from include/includes.h:162,
from system/daemon.cpp:34:
./database/db_proto.h:94: error: ‘PGresult was not declared in this scope
./database/db_proto.h:94: error: ‘res was not declared in this scope
./database/db_proto.h:94: error: expected primary-expression before ‘unsigned
./database/db_proto.h:94: error: expected primary-expression before ‘unsigned
./database/db_proto.h:94: error: initializer expression list treated as compound expression
./database/db_proto.h:104: error: ‘PGconn was not declared in this scope
./database/db_proto.h:104: error: ‘dbconn was not declared in this scope
./database/db_proto.h:104: error: expected primary-expression before ‘char
./database/db_proto.h:104: error: expected primary-expression before ‘int
./database/db_proto.h:104: error: initializer expression list treated as compound expression
./database/db_proto.h:105: error: ‘PGconn was not declared in this scope
./database/db_proto.h:105: error: ‘dbconn was not declared in this scope
./database/db_proto.h:105: error: expected primary-expression before ‘char
./database/db_proto.h:105: error: expected primary-expression before ‘int
./database/db_proto.h:105: error: initializer expression list treated as compound expression
./database/db_proto.h:106: error: ‘PGconn was not declared in this scope
./database/db_proto.h:106: error: ‘dbconn was not declared in this scope
./database/db_proto.h:106: error: expected primary-expression before ‘char
./database/db_proto.h:106: error: initializer expression list treated as compound expression
./database/db_proto.h:107: error: ‘PGconn was not declared in this scope
./database/db_proto.h:107: error: ‘dbconn was not declared in this scope
./database/db_proto.h:107: error: expected primary-expression before ‘char
./database/db_proto.h:107: error: expected primary-expression before ‘char
./database/db_proto.h:107: error: initializer expression list treated as compound expression
./database/db_proto.h:108: error: ‘PGconn was not declared in this scope
./database/db_proto.h:108: error: ‘dbconn was not declared in this scope
./database/db_proto.h:108: error: expected primary-expression before ‘char
./database/db_proto.h:108: error: initializer expression list treated as compound expression
./database/db_proto.h:111: error: ‘PGresult was not declared in this scope
./database/db_proto.h:111: error: ‘res was not declared in this scope
./database/db_proto.h:111: error: expected primary-expression before ‘char
./database/db_proto.h:111: error: initializer expression list treated as compound expression
system/daemon.cpp: In function ‘BOOL write_pid():
system/daemon.cpp:48: warning: deprecated conversion from string constant to ‘char*
system/daemon.cpp:48: warning: deprecated conversion from string constant to ‘char*
system/daemon.cpp:48: warning: deprecated conversion from string constant to ‘char*
system/daemon.cpp:55: warning: deprecated conversion from string constant to ‘char*
system/daemon.cpp:55: warning: deprecated conversion from string constant to ‘char*
system/daemon.cpp:55: warning: deprecated conversion from string constant to ‘char*
system/daemon.cpp:63: warning: deprecated conversion from string constant to ‘char*
system/daemon.cpp:63: warning: deprecated conversion from string constant to ‘char*
system/daemon.cpp:63: warning: deprecated conversion from string constant to ‘char*
system/daemon.cpp: In function ‘int become_daemon():
system/daemon.cpp:77: warning: deprecated conversion from string constant to ‘char*
system/daemon.cpp:82: warning: deprecated conversion from string constant to ‘char*
system/daemon.cpp:96: warning: deprecated conversion from string constant to ‘char*
system/daemon.cpp:101: warning: deprecated conversion from string constant to ‘char*
make: *** [system/daemon.o] Error 1
Видел подобную тему здесь: http://forum.ubuntu.ru/index.php?topic=20495.0
вот что писали:
"помести в директорию_откуда_инсталишь/include файлы libpq-fe.h libpq-fs.h postgres_ext.h
после этого у меня скомпилилось только что"
Но у меня этих файлов (libpq-fe.h libpq-fs.h postgres_ext.h) нет.
Поидее они должны появиться после установки libpq-dev, но они так и не появились. Может потому что у меня libpq.so.5.1 а надо 3 версию.
Что посоветуете, что скачать или что изменить для правильной компиляции