Kompilace – OS - GNU / Linux – Fórum – Programujte.com
 x   TIP: Přetáhni ikonu na hlavní panel pro připnutí webu

Kompilace – OS - GNU / Linux – Fórum – Programujte.comKompilace – OS - GNU / Linux – Fórum – Programujte.com

 

Ykita
~ Anonymní uživatel
16 příspěvků
25. 8. 2008   #1
-
0
-

Zdravím,
mám takovej větší problém už delší dobu. Snažím se zkompilovat jeden software pod linuxama ale moc s linuxama neumím proto hledám pomoc :)

This file describers how to install
a new server on a new machine:
I. Login as root
II.Install the rpm's from the Libs directory
- at this time, this directory contains the bzip2 rpm, used by the login server

III. To instal the pgsql server on the machine:
a. Install the postgresql-libs-..... .rpm from the pgsql directory
You also need to install other rpm's if asked (ex: krb5-libs-1.2.7-10.i386.rpm)
b. Install the postgresql-7.4.5-..... .rpm from the pgsql directory
c. Install the postgresql-server-.... .rpm from the pgsql directory
d. mkdir /usr/local/pgsql/data

Licu: first you need to create /usr/local/pgsql dir and after that the data

e. chown postgres /usr/local/pgsql/data

Licu: both user and group must be set on postgres for both pgsql and data dirs

f. su postgres
g. initdb -D /usr/local/pgsql/data
i. postmaster -D /usr/local/pgsql/data >logfile 2>&1 &
j. Copy the rc.postgres file from the "pgsql/config files" directory into the /etc/rc.d directory
and
add the folowing line at the end of the /etc/rc.d/rc.local file:
/etc/rc.d/rc.postgres

[CAUTION] Make sure the rc.postgres doesn't have any strange line terminators.
This will cause the parsing errors (like " : bad interpreter" for first bash line).
If this is the case edit the file (in LINUX!) and delete the ^ terminators (most
probably added by Windows version of CVS).

k. reboot the computer
i. su postgres
j. type:
createdb login_svr
k. type:
createdb rot
l. type:
exit
m. Copy the files pg_hba.conf and postgresql.conf
located into the "pgsql/config files" directory
into the /usr/local/pgsql/data directory,
overwriting the existing files
n. Copy the postgres.rc file
located into the "pgsql/config files" directory
into /etc/rc.d
o. reboot the system
IV. Copy the entire "sql" directory where the game will be installed (eg. /rot/)
Type the following commands:
a. cd /rot/sql
b. psql -U postgres rot
c. \i rot.sql
(here, you are already into the psql shell)
d. \i dbupdate.sql
- here, the database is populated with the datas dumped from another pgsql server
(if such datas are available, dump made with the dumpdatabase.sh script)
e. \q
(return to bash)

f. psql -U postgres login_svr
g. \i login_svr.sql
(here, you are already into the psql shell)
h. populate the "servers" table with the servers that will use this login server
(this operation can be done later :P )
i. \q
(return to bash)

V. If u will want to compile the sources of the game, also install the /pgsql/postgresql-devel-...... .rpm
Set the MAINDIR, PGINCDIR and the PGLIBDIR from the Makefile.global with the proper paths, so the project will compile.
Also, do not forget to modify the chat.conf, game_svr.conf and node.conf file from each server in order to properly configure the servers
The actual ptoject is made for KDevelop 3.0, but, rh 9.0 comes with KDevelop 2.1, so, the project won't be loaded under kdevelop 2.1 :(
The project for KDevelop 2.1 is also made, and, for now, it seems pretty friendly
VI. If no cvs is installed, install the rpm from the cvs_to_install directory


Hlavně nechápu poslední dva body nevím jak to zkompilovat. Jestli nějak stím cvs nebo tak nevim.. Když to kompiluju samostaně přes gcc nebo make tak to nějak nejde..
Pokud by někdo vědel jak nato budu mu vděčen ..

VII. Login to the CVS repository in thew following way:
cvs -d :pserver:username@ip:/rot_rep login
checkout the sources in the following way:
cvs -d :pserver:username@ip:/rot_rep checkout rot (if u want the entire rot module)
be carefull with the path where the module will be checkouted

VIII. Copy the executables and the additional files needed for the servers to properly run (found in CVS)
!!!!!!run
gserver -generate
(from the gserver directory - wherever that is, or else, the game server won't start)
and then copy the files from the "generated" directory into the client directory,
or, simply run the
generate.sh script (this requires a predefined directory structure)
Then, start the login server and the rest of the servers


Nahlásit jako SPAM
IP: 83.208.22.–
bukaj0
Věrný člen
25. 8. 2008   #2
-
0
-

Ykita
Hlavně nechápu poslední dva body nevím jak to zkompilovat.
Tak přesně napiš, co nechápeš ;o)

Jestli nějak stím cvs nebo tak nevim..
S CVS budeš jen těžko kompilovat. Už z názvu (Concurrent Version System) je vidět, že to není žádný kompilátor :o)

Když to kompiluju samostaně přes gcc nebo make tak to nějak nejde..
Pak to asi bude rozbitý ;o)

Nezlob se, ale tvůj popis problému je k ničemu. Doporučuji si přečíst, jak se správně ptát[1]. Je sice hezké, že jsi sem zkopíroval celý návod, jak něco udělat, ale že bys taky napsal, o co vlastně jde (nějaká hra?), nebo odkud ten návod je, to ne. Taky napsat, že s „gcc nebo make to nějak nejde“ je k ničemu. Jestli to nejde, tak to pravděpodobně vypisuje nějakou chybu, ne? A jestli ano, tak tu chybu pošli. A hlavně zkus nejdřív pořádně Googlit[2], jestli nenajdeš nějaký lepší návod, nebo řešení té které chyby při postupování podle toho v návodu, který jsi sem zkopíroval.

[1] http://www.hash.cz/inferno/otazky.html
[2] http://google.com

Nahlásit jako SPAM
IP: 85.70.13.–
Jak se správně ptát? -> http://www.hash.cz/inferno/otazky.html[br][br] Po programování je člověk hladovej.
Ykita
~ Anonymní uživatel
16 příspěvků
25. 8. 2008   #3
-
0
-

Ok:)
Sry za tu předešlou zprávu už se v tom motám nějaký ten měsíc..
Tak dáme se do toho.


Oč se jedná?
jedná se o herní server pro můj projekt. Server je psanej v c++ za podpory skriptovacího jazyka LUA.
Server je rozdělen do několika části login server, chat server, game server, a uzel. Většina game informací je právě v LUA a SQL databází.


Problem?

Problém je v tom, že když dám kompilovat napíše to strašně moc chyb zde jsou:

More errors in the compilation are written here in the log:
lab22@lab linux]$ make -i
Makefile:28: warning: overriding commands for target `dep'
Makefile.global:27: warning: ignoring old commands for target `dep'
for i in login_svr gserver CHAT cluster_node keepalive_svr; do \
cd $i; \
make all || exit 1; \
cd ../; \
done
make[1]: Entering directory `/home/lab22/Desktop/linux/login_svr'
g++ -g3 -O0 -fno-exceptions -Wall -Wno-missing-braces -Wno-char-subscripts -I/mn
t/rot/Dev -I/usr/local/pgsql/include -I/mnt/rot/Dev/LINUX/common/include -I/mnt/
rot/Dev/LINUX/login_svr -DDEBUG -DLINUX -DA_EXPORT -D_NO_PCH -c -o main.o main
.cpp
main.cpp:13:20: error: config.h: není souborem ani adresářem
main.cpp:14:24: error: confparser.h: není souborem ani adresářem
main.cpp:15:25: error: login_proto.h: není souborem ani adresářem
main.cpp:16:24: error: linux_misc.h: není souborem ani adresářem
main.cpp:17:22: error: pg_dbcon.h: není souborem ani adresářem
main.cpp:19:20: error: logger.h: není souborem ani adresářem
updater.h:11: error: ‘word’ has not been declared
updater.h:11: error: ‘rtime_t’ has not been declared
main.cpp:31: error: ‘word’ does not name a type
main.cpp:32: error: ‘word’ does not name a type
main.cpp:45: error: ‘SVRNAME_SIZE’ was not declared in this scope
main.cpp:47: error: ‘word’ does not name a type
main.cpp:48: error: ‘word’ does not name a type
main.cpp:49: error: ‘word’ does not name a type
main.cpp:50: error: ‘SVRDESC_SIZE’ was not declared in this scope
main.cpp:51: error: ‘byte’ does not name a type
main.cpp:62: error: ‘word’ does not name a type
main.cpp:65: error: expected constructor, destructor, or type conversion before
‘(’ token
main.cpp: In function ‘void sig_handler(int)’:
main.cpp:88: error: ‘l_log’ was not declared in this scope
main.cpp:97: error: ‘pgdbcon_t’ has not been declared
main.cpp:104: error: ‘l_log’ was not declared in this scope
main.cpp: In function ‘void rehash_svrlist(int)’:
main.cpp:118: error: ‘byte’ was not declared in this scope
main.cpp:118: error: expected `;' before ‘touched’
main.cpp:120: error: ‘pgdbcon_t’ was not declared in this scope
main.cpp:120: error: expected `;' before ‘dbcon’
main.cpp:126: error: ‘l_log’ was not declared in this scope
main.cpp:128: error: ‘l_log’ was not declared in this scope
main.cpp:130: error: ‘dbcon’ was not declared in this scope
main.cpp:131: error: ‘l_log’ was not declared in this scope
main.cpp:135: error: ‘dbcon’ was not declared in this scope
main.cpp:137: error: ‘l_log’ was not declared in this scope
main.cpp:140: error: ‘l_log’ was not declared in this scope
main.cpp:144: error: ‘touched’ was not declared in this scope
main.cpp:153: error: ‘struct svrinfo_t’ has no member named ‘name’
main.cpp:153: error: ‘SVRNAME_SIZE’ was not declared in this scope
main.cpp:154: error: ‘struct svrinfo_t’ has no member named ‘desc’
main.cpp:154: error: ‘SVRDESC_SIZE’ was not declared in this scope
main.cpp:162: error: ‘struct svrinfo_t’ has no member named ‘name’
main.cpp:162: error: ‘SVRNAME_SIZE’ was not declared in this scope
main.cpp:163: error: ‘struct svrinfo_t’ has no member named ‘desc’
main.cpp:163: error: ‘SVRDESC_SIZE’ was not declared in this scope
main.cpp: In function ‘int parser_callback(const char*, const char*)’:
main.cpp:200: error: ‘dbhost’ was not declared in this scope
main.cpp:200: error: ‘CONF_ADD_STRING’ was not declared in this scope
main.cpp:201: error: ‘dbuser’ was not declared in this scope
main.cpp:202: error: ‘dbpass’ was not declared in this scope
main.cpp:203: error: ‘dbname’ was not declared in this scope
main.cpp:204: error: ‘client_root’ was not declared in this scope
main.cpp:205: error: ‘announce_file’ was not declared in this scope
main.cpp:206: error: ‘sn_prefix’ was not declared in this scope
main.cpp:207: error: ‘cl_port’ was not declared in this scope
main.cpp:207: error: ‘CONF_ADD_INT’ was not declared in this scope
main.cpp:208: error: ‘sv_port’ was not declared in this scope
main.cpp:209: error: ‘download_bandwidth’ was not declared in this scope
main.cpp:210: error: ‘compress_thresh’ was not declared in this scope
main.cpp: In function ‘int check_config()’:
main.cpp:218: error: ‘dbhost’ was not declared in this scope
main.cpp:218: error: ‘CONF_CHECK_STRING’ was not declared in this scope
main.cpp:219: error: ‘dbuser’ was not declared in this scope
main.cpp:220: error: ‘dbname’ was not declared in this scope
main.cpp:221: error: ‘client_root’ was not declared in this scope
main.cpp:222: error: ‘announce_file’ was not declared in this scope
main.cpp:223: error: ‘cl_port’ was not declared in this scope
main.cpp:223: error: ‘CONF_CHECK_INT’ was not declared in this scope
main.cpp:224: error: ‘sv_port’ was not declared in this scope
main.cpp:225: error: ‘download_bandwidth’ was not declared in this scope
main.cpp:226: error: ‘compress_thresh’ was not declared in this scope
main.cpp: At global scope:
main.cpp:233: error: ‘word’ has not been declared
main.cpp: In function ‘int init_sock(int*, int)’:
main.cpp:239: error: ‘l_perror’ was not declared in this scope
main.cpp:245: error: ‘l_perror’ was not declared in this scope
main.cpp:248: error: ‘l_perror’ was not declared in this scope
main.cpp:251: error: ‘l_perror’ was not declared in this scope
main.cpp:256: error: ‘word’ was not declared in this scope
main.cpp:258: error: ‘l_perror’ was not declared in this scope
main.cpp:263: error: ‘l_perror’ was not declared in this scope
main.cpp: At global scope:
main.cpp:275: error: ‘tClientLogin’ has not been declared
main.cpp: In function ‘uint auth_user(int, int, int*, int*)’:
main.cpp:278: error: ‘USERNAME_SIZE’ was not declared in this scope
main.cpp:279: error: ‘PASSWORD_SIZE’ was not declared in this scope
main.cpp:280: error: ‘SN_SIZE’ was not declared in this scope
main.cpp:282: error: ‘pgdbcon_t’ was not declared in this scope
main.cpp:282: error: expected `;' before ‘dbcon’
main.cpp:285: error: ‘user’ was not declared in this scope
main.cpp:285: error: request for member ‘name’ in ‘* pkt’, which is of non-class
type ‘int’
main.cpp:287: error: ‘pass’ was not declared in this scope
main.cpp:287: error: request for member ‘pass’ in ‘* pkt’, which is of non-class
type ‘int’
main.cpp:289: error: ‘sn’ was not declared in this scope
main.cpp:289: error: request for member ‘sn’ in ‘* pkt’, which is of non-class t
ype ‘int’
main.cpp:297: error: ‘dbcon’ was not declared in this scope
main.cpp:305: error: ‘REASON_ACCOUNTINUSE’ was not declared in this scope
main.cpp:307: error: ‘REASON_ACCOUNTBANNED’ was not declared in this scope
main.cpp:309: error: ‘REASON_ACCOUNTEXPIRED’ was not declared in this scope
main.cpp:312: error: ‘REASON_AUTHORIZATIONFAILED’ was not declared in this scope
main.cpp:317: error: ‘l_log’ was not declared in this scope
main.cpp:318: error: ‘REASON_DATABASEERROR’ was not declared in this scope
main.cpp:320: error: ‘REASON_ACCOUNTINUSE’ was not declared in this scope
main.cpp:327: error: ‘dbcon’ was not declared in this scope
main.cpp:331: error: ‘l_log’ was not declared in this scope
main.cpp:333: error: ‘REASON_DATABASEERROR’ was not declared in this scope
main.cpp: In function ‘void* server_thread(void*)’:
main.cpp:357: error: ‘byte’ was not declared in this scope
main.cpp:357: error: expected `;' before ‘code’
main.cpp:360: error: ‘login_report’ was not declared in this scope
main.cpp:360: error: expected `;' before ‘init’
main.cpp:361: error: ‘login_auth’ was not declared in this scope
main.cpp:361: error: ‘l_pkt’ was not declared in this scope
main.cpp:362: error: ‘login_unlock’ was not declared in this scope
main.cpp:362: error: ‘u_pkt’ was not declared in this scope
main.cpp:363: error: ‘login_resp’ was not declared in this scope
main.cpp:363: error: expected `;' before ‘l_resp’
main.cpp:365: error: ‘pgdbcon_t’ was not declared in this scope
main.cpp:365: error: expected `;' before ‘dbcon’
main.cpp:369: error: ‘init’ was not declared in this scope
main.cpp:373: error: ‘l_log’ was not declared in this scope
main.cpp:379: error: ‘l_log’ was not declared in this scope
main.cpp:383: error: ‘struct svrinfo_t’ has no member named ‘max’
main.cpp:384: error: ‘struct svrinfo_t’ has no member named ‘port’
main.cpp:392: error: ‘code’ was not declared in this scope
main.cpp:392: error: expected primary-expression before ‘)’ token
main.cpp:392: error: expected `)' before ‘buf’
main.cpp:396: error: ‘LOGIN_AUTH’ was not declared in this scope
main.cpp:399: error: expected primary-expression before ‘)’ token
main.cpp:399: error: expected `;' before ‘buf’
main.cpp:400: error: ‘l_resp’ was not declared in this scope
main.cpp:404: error: ‘LOGIN_UNLOCK’ was not declared in this scope
main.cpp:407: error: expected primary-expression before ‘)’ token
main.cpp:407: error: expected `;' before ‘buf’
main.cpp:408: error: ‘dbcon’ was not declared in this scope
main.cpp:413: error: ‘straddr’ was not declared in this scope
main.cpp:418: error: ‘straddr’ was not declared in this scope
main.cpp:419: error: ‘struct svrinfo_t’ has no member named ‘alive’
main.cpp:420: error: ‘dbcon’ was not declared in this scope
main.cpp: In function ‘void server_loop()’:
main.cpp:443: error: ‘l_perror’ was not declared in this scope
main.cpp:452: error: ‘struct svrinfo_t’ has no member named ‘alive’
main.cpp:453: error: ‘straddr’ was not declared in this scope
main.cpp:453: error: ‘l_log’ was not declared in this scope
main.cpp:454: error: ‘struct svrinfo_t’ has no member named ‘alive’
main.cpp:460: error: ‘straddr’ was not declared in this scope
main.cpp:460: error: ‘l_log’ was not declared in this scope
main.cpp:471: error: ‘l_log’ was not declared in this scope
main.cpp: In function ‘void send_svrlist(int)’:
main.cpp:484: error: ‘tCSServersList’ was not declared in this scope
main.cpp:484: error: ‘resp’ was not declared in this scope
main.cpp:485: error: ‘tLoginReply’ was not declared in this scope
main.cpp:485: error: expected `;' before ‘hdr’
main.cpp:486: error: ‘pgdbcon_t’ was not declared in this scope
main.cpp:486: error: expected `;' before ‘dbcon’
main.cpp:488: error: expected primary-expression before ‘)’ token
main.cpp:488: error: expected `;' before ‘malloc’
main.cpp:489: error: ‘hdr’ was not declared in this scope
main.cpp:489: error: ‘LOGIN_SVRLIST’ was not declared in this scope
main.cpp:492: error: ‘struct svrinfo_t’ has no member named ‘name’
main.cpp:492: error: ‘SVRNAME_SIZE’ was not declared in this scope
main.cpp:493: error: ‘struct svrinfo_t’ has no member named ‘desc’
main.cpp:493: error: ‘SVRDESC_SIZE’ was not declared in this scope
main.cpp:495: error: ‘struct svrinfo_t’ has no member named ‘port’
main.cpp:496: error: ‘struct svrinfo_t’ has no member named ‘max’
main.cpp:497: error: ‘SERVER_OFFLINE’ was not declared in this scope
main.cpp:498: error: ‘struct svrinfo_t’ has no member named ‘alive’
main.cpp:500: error: ‘dbcon’ was not declared in this scope
main.cpp: In function ‘void send_announcement(int)’:
main.cpp:518: error: ‘tLoginReply’ was not declared in this scope
main.cpp:518: error: expected `;' before ‘rep’
main.cpp:534: error: ‘rep’ was not declared in this scope
main.cpp:534: error: ‘LOGIN_ANNOUNCEMENT’ was not declared in this scope
main.cpp: In function ‘int validate_sn(const char*, char*)’:
main.cpp:567: error: ‘REASON_INVALIDALPHATESTACCOUNT’ was not declared in this s
cope
main.cpp:635: error: ‘REASON_INVALIDSERIAL’ was not declared in this scope
main.cpp:699: error: ‘REASON_INVALIDALPHATESTACCOUNT’ was not declared in this s
cope
main.cpp:731: error: ‘REASON_INVALIDALPHATESTACCOUNT’ was not declared in this s
cope
main.cpp: In function ‘void* client_thread(void*)’:
main.cpp:796: error: ‘word’ was not declared in this scope
main.cpp:796: error: expected `;' before ‘port’
main.cpp:797: error: ‘tClientLogin’ was not declared in this scope
main.cpp:797: error: expected `;' before ‘login_pkt’
main.cpp:798: error: ‘tClientLoginErr’ was not declared in this scope
main.cpp:798: error: expected `;' before ‘err_pkt’
main.cpp:800: error: aggregate ‘tUpdateRequest freq’ has incomplete type and can
not be defined
main.cpp:801: error: ‘byte’ was not declared in this scope
main.cpp:801: error: expected `;' before ‘type’
main.cpp:804: error: ‘rtime_t’ was not declared in this scope
main.cpp:804: error: expected `;' before ‘start’
main.cpp:805: error: ‘pgdbcon_t’ was not declared in this scope
main.cpp:805: error: expected `;' before ‘dbcon’
main.cpp:810: error: ‘port’ was not declared in this scope
main.cpp:810: error: ‘struct clthrdinfo_t’ has no member named ‘port’
main.cpp:813: error: ‘straddr’ was not declared in this scope
main.cpp:813: error: ‘l_log’ was not declared in this scope
main.cpp:815: error: ‘type’ was not declared in this scope
main.cpp:815: error: ‘safe_recv’ was not declared in this scope
main.cpp:824: error: ‘LOGIN_AUTHORIZE’ was not declared in this scope
main.cpp:825: error: ‘login_pkt’ was not declared in this scope
main.cpp:829: error: ‘err_pkt’ was not declared in this scope
main.cpp:829: error: ‘REASON_SERVERPROTOCOLERROR’ was not declared in this scope
main.cpp:842: error: ‘err_pkt’ was not declared in this scope
main.cpp:846: error: ‘LOGIN_NEWACCOUNT’ was not declared in this scope
main.cpp:860: error: ‘REASON_INVALIDSERIAL’ was not declared in this scope
main.cpp:860: error: ‘err_pkt’ was not declared in this scope
main.cpp:864: error: ‘REASON_INVALIDACCOUNTDATA’ was not declared in this scope
main.cpp:864: error: ‘err_pkt’ was not declared in this scope
main.cpp:864: error: ‘REASON_INVALIDACCOUNTDATA’ was not declared in this scope
main.cpp:864: error: ‘err_pkt’ was not declared in this scope
main.cpp:865: error: ‘REASON_INVALIDACCOUNTDATA’ was not declared in this scope
main.cpp:865: error: ‘err_pkt’ was not declared in this scope
main.cpp:865: error: ‘REASON_INVALIDACCOUNTDATA’ was not declared in this scope
main.cpp:865: error: ‘err_pkt’ was not declared in this scope
main.cpp:866: error: ‘REASON_INVALIDACCOUNTDATA’ was not declared in this scope
main.cpp:866: error: ‘err_pkt’ was not declared in this scope
main.cpp:866: error: ‘REASON_INVALIDACCOUNTDATA’ was not declared in this scope
main.cpp:866: error: ‘err_pkt’ was not declared in this scope
main.cpp:867: error: ‘REASON_INVALIDACCOUNTDATA’ was not declared in this scope
main.cpp:867: error: ‘err_pkt’ was not declared in this scope
main.cpp:867: error: ‘REASON_INVALIDACCOUNTDATA’ was not declared in this scope
main.cpp:867: error: ‘err_pkt’ was not declared in this scope
main.cpp:868: error: ‘REASON_INVALIDACCOUNTDATA’ was not declared in this scope
main.cpp:868: error: ‘err_pkt’ was not declared in this scope
main.cpp:868: error: ‘REASON_INVALIDACCOUNTDATA’ was not declared in this scope
main.cpp:868: error: ‘err_pkt’ was not declared in this scope
main.cpp:882: error: ‘REASON_INVALIDACCOUNTDATA’ was not declared in this scope
main.cpp:882: error: ‘err_pkt’ was not declared in this scope
main.cpp:885: error: ‘REASON_INVALIDACCOUNTDATA’ was not declared in this scope
main.cpp:885: error: ‘err_pkt’ was not declared in this scope
main.cpp:886: error: ‘dbcon’ was not declared in this scope
main.cpp:887: error: ‘REASON_DATABASEERROR’ was not declared in this scope
main.cpp:887: error: ‘err_pkt’ was not declared in this scope
main.cpp:888: error: ‘dbcon’ was not declared in this scope
main.cpp:889: error: ‘REASON_EMAILBANNED’ was not declared in this scope
main.cpp:889: error: ‘err_pkt’ was not declared in this scope
main.cpp:890: error: ‘dbcon’ was not declared in this scope
main.cpp:891: error: ‘REASON_DATABASEERROR’ was not declared in this scope
main.cpp:891: error: ‘err_pkt’ was not declared in this scope
main.cpp:892: error: ‘dbcon’ was not declared in this scope
main.cpp:893: error: ‘REASON_ILLEGALWORDS’ was not declared in this scope
main.cpp:893: error: ‘err_pkt’ was not declared in this scope
main.cpp:894: error: ‘dbcon’ was not declared in this scope
main.cpp:895: error: ‘REASON_DATABASEERROR’ was not declared in this scope
main.cpp:895: error: ‘err_pkt’ was not declared in this scope
main.cpp:896: error: ‘dbcon’ was not declared in this scope
main.cpp:897: error: ‘REASON_DUPLICATEDACCOUNTNAME’ was not declared in this sco
pe
main.cpp:897: error: ‘err_pkt’ was not declared in this scope
main.cpp:898: error: ‘dbcon’ was not declared in this scope
main.cpp:899: error: ‘REASON_DATABASEERROR’ was not declared in this scope
main.cpp:899: error: ‘err_pkt’ was not declared in this scope
main.cpp:900: error: ‘dbcon’ was not declared in this scope
main.cpp:901: error: ‘REASON_DUPLICATEDSERIAL’ was not declared in this scope
main.cpp:901: error: ‘err_pkt’ was not declared in this scope
main.cpp:902: error: ‘dbcon’ was not declared in this scope
main.cpp:903: error: ‘REASON_DATABASEERROR’ was not declared in this scope
main.cpp:903: error: ‘err_pkt’ was not declared in this scope
main.cpp:904: error: ‘dbcon’ was not declared in this scope
main.cpp:905: error: ‘REASON_DUPLICATEDEMAIL’ was not declared in this scope
main.cpp:905: error: ‘err_pkt’ was not declared in this scope
main.cpp:908: error: ‘err_pkt’ was not declared in this scope
main.cpp:909: error: ‘dbcon’ was not declared in this scope
main.cpp:913: error: ‘REASON_DATABASEERROR’ was not declared in this scope
main.cpp:913: error: ‘err_pkt’ was not declared in this scope
main.cpp:917: error: ‘REASON_ACCOUNTCREATEDOK’ was not declared in this scope
main.cpp:917: error: ‘err_pkt’ was not declared in this scope
main.cpp:920: error: ‘REASON_SERVERPROTOCOLERROR’ was not declared in this scope
main.cpp:920: error: ‘err_pkt’ was not declared in this scope
main.cpp:933: error: ‘start’ was not declared in this scope
main.cpp:943: error: ‘LOGIN_ENDUPDATE’ was not declared in this scope
main.cpp:945: error: ‘LOGIN_EARLYEXIT’ was not declared in this scope
main.cpp:951: error: ‘LOGIN_GETFILE’ was not declared in this scope
main.cpp:952: error: ‘REASON_SERVERPROTOCOLERROR’ was not declared in this scope
main.cpp:952: error: ‘err_pkt’ was not declared in this scope
main.cpp:961: error: ‘get_time’ was not declared in this scope
main.cpp:966: error: ‘err_pkt’ was not declared in this scope
main.cpp:975: error: ‘get_time’ was not declared in this scope
main.cpp: In function ‘void* client_loop(void*)’:
main.cpp:994: error: ‘tClientLoginErr’ was not declared in this scope
main.cpp:994: error: expected `;' before ‘err_pkt’
main.cpp:1003: error: ‘l_perror’ was not declared in this scope
main.cpp:1009: error: ‘struct clthrdinfo_t’ has no member named ‘port’
main.cpp:1009: error: ‘word’ was not declared in this scope
main.cpp:1013: error: ‘straddr’ was not declared in this scope
main.cpp:1013: error: ‘struct clthrdinfo_t’ has no member named ‘port’
main.cpp:1013: error: ‘l_log’ was not declared in this scope
main.cpp:1015: error: ‘err_pkt’ was not declared in this scope
main.cpp:1015: error: ‘REASON_SESSIONFULL’ was not declared in this scope
main.cpp: In function ‘int main(int, const char**)’:
main.cpp:1027: error: ‘l_init’ was not declared in this scope
main.cpp:1028: error: ‘argdb_init’ was not declared in this scope
main.cpp:1029: error: ‘argdb_isset’ was not declared in this scope
main.cpp:1031: error: ‘VERSION’ was not declared in this scope
main.cpp:1031: error: ‘l_log’ was not declared in this scope
main.cpp:1036: error: ‘l_log’ was not declared in this scope
main.cpp:1037: error: ‘VERSION’ was not declared in this scope
main.cpp:1041: error: ‘go_daemon’ was not declared in this scope
main.cpp:1042: error: ‘l_log’ was not declared in this scope
main.cpp:1049: error: ‘l_log’ was not declared in this scope
main.cpp:1051: error: ‘parse_config’ was not declared in this scope
main.cpp:1060: error: ‘struct tSvrConf’ has no member named ‘cl_port’
main.cpp:1061: error: ‘struct tSvrConf’ has no member named ‘cl_port’
main.cpp:1064: error: ‘struct tSvrConf’ has no member named ‘sv_port’
main.cpp:1065: error: ‘struct tSvrConf’ has no member named ‘sv_port’
main.cpp:1068: error: ‘pgdbcon_t’ has not been declared
main.cpp:1080: error: ‘l_perror’ was not declared in this scope
make[1]: [main.o] Error 1 (ignored)
g++ -g3 -O0 -fno-exceptions -Wall -Wno-missing-braces -Wno-char-subscripts -I/mn
t/rot/Dev -I/usr/local/pgsql/include -I/mnt/rot/Dev/LINUX/common/include -I/mnt/
rot/Dev/LINUX/login_svr -DDEBUG -DLINUX -DA_EXPORT -D_NO_PCH -c -o updater.o u
pdater.cpp
updater.cpp:23:20: error: config.h: není souborem ani adresářem
updater.cpp:25:42: error: Header/ClientServer/messages.h: není souborem ani adre
sářem
updater.cpp:26:24: error: linux_misc.h: není souborem ani adresářem
updater.cpp:27:20: error: logger.h: není souborem ani adresářem
updater.h:11: error: ‘word’ has not been declared
updater.h:11: error: ‘rtime_t’ has not been declared
updater.cpp:112: error: ‘byte’ does not name a type
updater.cpp: In function ‘int archive_file(const char*)’:
updater.cpp:173: warning: comparison between signed and unsigned integer express
ions
updater.cpp:176: warning: missing sentinel in function call
updater.cpp:177: error: ‘l_perror’ was not declared in this scope
updater.cpp:183: error: ‘l_perror’ was not declared in this scope
updater.cpp:190: error: ‘l_perror’ was not declared in this scope
updater.cpp: In function ‘int get_archattr(const char*, uint*, uint*, uint*)’:
updater.cpp:233: error: ‘byte’ was not declared in this scope
updater.cpp:233: error: ‘buf’ was not declared in this scope
updater.cpp:237: error: ‘l_log’ was not declared in this scope
updater.cpp:243: error: ‘l_log’ was not declared in this scope
updater.cpp:248: error: expected primary-expression before ‘)’ token
updater.cpp:248: error: expected `;' before ‘malloc’
updater.cpp:254: error: ‘l_log’ was not declared in this scope
updater.cpp: In function ‘int process_file(const char*, FILE*)’:
updater.cpp:282: error: ‘tUpdateFileInfo’ was not declared in this scope
updater.cpp:282: error: expected `;' before ‘fi’
updater.cpp:284: error: ‘l_log’ was not declared in this scope
updater.cpp:312: error: ‘fi’ was not declared in this scope
updater.cpp: In function ‘int process_dir(const char*, FILE*)’:
updater.cpp:340: error: ‘l_log’ was not declared in this scope
updater.cpp:373: error: ‘struct flistitem_t’ has no member named ‘isdir’
updater.cpp:376: error: ‘struct flistitem_t’ has no member named ‘isdir’
updater.cpp:434: error: ‘struct flistitem_t’ has no member named ‘isdir’
updater.cpp:473: error: ‘struct flistitem_t’ has no member named ‘isdir’
updater.cpp:489: error: ‘struct flistitem_t’ has no member named ‘isdir’
updater.cpp: In function ‘int create_filelist()’:
updater.cpp:556: error: ‘l_log’ was not declared in this scope
updater.cpp: In function ‘int init_updater(const char*, uint, uint)’:
updater.cpp:600: error: ‘l_perror’ was not declared in this scope
updater.cpp:609: error: ‘l_log’ was not declared in this scope
updater.cpp:640: error: ‘tUpdateFileInfo’ was not declared in this scope
updater.cpp:652: error: ‘l_log’ was not declared in this scope
updater.cpp: In function ‘int send_filelist(int)’:
updater.cpp:690: error: ‘tLoginReply’ was not declared in this scope
updater.cpp:690: error: expected `;' before ‘rep’
updater.cpp:692: error: ‘rep’ was not declared in this scope
updater.cpp:692: error: ‘LOGIN_FILELIST’ was not declared in this scope
updater.cpp: In function ‘uint partial_crc(const char*, uint, int*)’:
updater.cpp:719: error: ‘byte’ was not declared in this scope
updater.cpp:719: error: expected `;' before ‘buf’
updater.cpp:729: error: ‘buf’ was not declared in this scope
updater.cpp: At global scope:
updater.cpp:748: error: ‘word’ has not been declared
updater.cpp:748: error: ‘rtime_t’ has not been declared
updater.cpp: In function ‘int send_file(int, tUpdateRequest*, const char*, int,
int, uint*)’:
updater.cpp:754: error: ‘rtime_t’ was not declared in this scope
updater.cpp:754: error: expected `;' before ‘start’
updater.cpp:757: error: ‘tLoginReply’ was not declared in this scope
updater.cpp:757: error: expected `;' before ‘rep’
updater.cpp:759: error: invalid use of undefined type ‘struct tUpdateRequest’
updater.h:6: error: forward declaration of ‘struct tUpdateRequest’
updater.cpp:760: error: invalid use of undefined type ‘struct tUpdateRequest’
updater.h:6: error: forward declaration of ‘struct tUpdateRequest’
updater.cpp:760: error: ‘l_log’ was not declared in this scope
updater.cpp:761: error: ‘REASON_NOSUCHFILE’ was not declared in this scope
updater.cpp:763: error: invalid use of undefined type ‘struct tUpdateRequest’
updater.h:6: error: forward declaration of ‘struct tUpdateRequest’
updater.cpp:764: error: invalid use of undefined type ‘struct tUpdateRequest’
updater.h:6: error: forward declaration of ‘struct tUpdateRequest’
updater.cpp:765: error: invalid use of undefined type ‘struct tUpdateRequest’
updater.h:6: error: forward declaration of ‘struct tUpdateRequest’
updater.cpp:766: error: ‘rep’ was not declared in this scope
updater.cpp:766: error: ‘LOGIN_COMPRESSEDRESUME’ was not declared in this scope
updater.cpp:768: error: ‘rep’ was not declared in this scope
updater.cpp:768: error: ‘LOGIN_COMPRESSED’ was not declared in this scope
updater.cpp:771: error: invalid use of undefined type ‘struct tUpdateRequest’
updater.h:6: error: forward declaration of ‘struct tUpdateRequest’
updater.cpp:772: error: invalid use of undefined type ‘struct tUpdateRequest’
updater.h:6: error: forward declaration of ‘struct tUpdateRequest’
updater.cpp:773: error: ‘rep’ was not declared in this scope
updater.cpp:773: error: ‘LOGIN_UNCOMPRESSEDRESUME’ was not declared in this scop
e
updater.cpp:775: error: ‘rep’ was not declared in this scope
updater.cpp:775: error: ‘LOGIN_UNCOMPRESSED’ was not declared in this scope
updater.cpp:779: error: ‘l_log’ was not declared in this scope
updater.cpp:780: error: ‘REASON_INTERNAL’ was not declared in this scope
updater.cpp:783: error: invalid use of undefined type ‘struct tUpdateRequest’
updater.h:6: error: forward declaration of ‘struct tUpdateRequest’
updater.cpp:784: error: invalid use of undefined type ‘struct tUpdateRequest’
updater.h:6: error: forward declaration of ‘struct tUpdateRequest’
updater.cpp:785: error: invalid use of undefined type ‘struct tUpdateRequest’
updater.h:6: error: forward declaration of ‘struct tUpdateRequest’
updater.cpp:787: error: ‘REASON_INTERNAL’ was not declared in this scope
updater.cpp:788: error: invalid use of undefined type ‘struct tUpdateRequest’
updater.h:6: error: forward declaration of ‘struct tUpdateRequest’
updater.cpp:790: error: invalid use of undefined type ‘struct tUpdateRequest’
updater.h:6: error: forward declaration of ‘struct tUpdateRequest’
updater.cpp:791: error: ‘rep’ was not declared in this scope
updater.cpp:796: error: invalid use of undefined type ‘struct tUpdateRequest’
updater.h:6: error: forward declaration of ‘struct tUpdateRequest’
updater.cpp:797: error: ‘rep’ was not declared in this scope
updater.cpp:801: error: ‘rep’ was not declared in this scope
updater.cpp:801: error: invalid use of undefined type ‘struct tUpdateRequest’
updater.h:6: error: forward declaration of ‘struct tUpdateRequest’
updater.cpp:804: error: ‘l_perror’ was not declared in this scope
updater.cpp:810: error: ‘l_log’ was not declared in this scope
updater.cpp:811: error: ‘REASON_INTERNAL’ was not declared in this scope
updater.cpp:813: error: invalid use of undefined type ‘struct tUpdateRequest’
updater.h:6: error: forward declaration of ‘struct tUpdateRequest’
updater.cpp:813: error: ‘l_log’ was not declared in this scope
updater.cpp:815: error: invalid use of undefined type ‘struct tUpdateRequest’
updater.h:6: error: forward declaration of ‘struct tUpdateRequest’
updater.cpp:817: error: ‘start’ was not declared in this scope
updater.cpp:817: error: ‘get_time’ was not declared in this scope
updater.cpp:821: error: invalid use of undefined type ‘struct tUpdateRequest’
updater.h:6: error: forward declaration of ‘struct tUpdateRequest’
updater.cpp:821: error: ‘l_perror’ was not declared in this scope
updater.cpp:823: error: ‘REASON_INTERNAL’ was not declared in this scope
updater.cpp:827: error: ‘l_perror’ was not declared in this scope
updater.cpp:838: warning: comparison between signed and unsigned integer express
ions
make[1]: [updater.o] Error 1 (ignored)
g++ -g3 -O0 -fno-exceptions -Wall -Wno-missing-braces -Wno-char-subscripts -I/mn
t/rot/Dev -I/usr/local/pgsql/include -I/mnt/rot/Dev/LINUX/common/include -I/mnt/
rot/Dev/LINUX/login_svr -DDEBUG -DLINUX -DA_EXPORT -D_NO_PCH -c -o ../common/p
g_dbcon.o ../common/pg_dbcon.cpp
../common/pg_dbcon.cpp:10:20: error: config.h: není souborem ani adresářem
../common/pg_dbcon.cpp:11:22: error: pg_dbcon.h: není souborem ani adresářem
../common/pg_dbcon.cpp:12:20: error: logger.h: není souborem ani adresářem
../common/pg_dbcon.cpp:18: error: expected initializer before ‘*’ token
../common/pg_dbcon.cpp:22: error: ‘pgdbcon_t’ has not been declared
../common/pg_dbcon.cpp:22: error: ISO C++ forbids declaration of ‘pgdbcon_t’ wit
h no type
../common/pg_dbcon.cpp: In function ‘int pgdbcon_t()’:
../common/pg_dbcon.cpp:23: error: ‘last_res’ was not declared in this scope
../common/pg_dbcon.cpp:24: error: ‘last_type’ was not declared in this scope
../common/pg_dbcon.cpp: At global scope:
../common/pg_dbcon.cpp:27: error: expected constructor, destructor, or type conv
ersion before ‘::’ token
../common/pg_dbcon.cpp:35: error: ‘pgdbcon_t’ is not a class or namespace
../common/pg_dbcon.cpp: In function ‘int connect(const char*, const char*, const
char*, const char*)’:
../common/pg_dbcon.cpp:36: error: ‘conn_id’ was not declared in this scope
../common/pg_dbcon.cpp:37: error: ‘PQfinish’ was not declared in this scope
../common/pg_dbcon.cpp:41: error: ‘snprintf’ was not declared in this scope
../common/pg_dbcon.cpp:43: error: ‘snprintf’ was not declared in this scope
../common/pg_dbcon.cpp:45: error: ‘conn_id’ was not declared in this scope
../common/pg_dbcon.cpp:45: error: ‘PQconnectdb’ was not declared in this scope
../common/pg_dbcon.cpp:47: error: ‘PQstatus’ was not declared in this scope
../common/pg_dbcon.cpp:47: error: ‘CONNECTION_BAD’ was not declared in this scop
e
../common/pg_dbcon.cpp:51: error: ‘PQerrorMessage’ was not declared in this scop
e
../common/pg_dbcon.cpp:51: error: ‘l_log’ was not declared in this scope
../common/pg_dbcon.cpp:57: error: ‘PQbackendPID’ was not declared in this scope
../common/pg_dbcon.cpp:57: error: ‘l_log’ was not declared in this scope
../common/pg_dbcon.cpp: At global scope:
../common/pg_dbcon.cpp:62: error: ‘pgdbcon_t’ is not a class or namespace
../common/pg_dbcon.cpp: In function ‘int disconnect()’:
../common/pg_dbcon.cpp:64: error: ‘conn_id’ was not declared in this scope
../common/pg_dbcon.cpp:64: error: ‘PQfinish’ was not declared in this scope
../common/pg_dbcon.cpp: At global scope:
../common/pg_dbcon.cpp:72: error: ‘pgdbcon_t’ is not a class or namespace
../common/pg_dbcon.cpp: In function ‘const char* get_error()’:
../common/pg_dbcon.cpp:73: error: ‘last_res’ was not declared in this scope
../common/pg_dbcon.cpp:74: error: ‘PQresultErrorMessage’ was not declared in thi
s scope
../common/pg_dbcon.cpp: At global scope:
../common/pg_dbcon.cpp:87: error: ‘pgdbcon_t’ is not a class or namespace
../common/pg_dbcon.cpp: In function ‘int query(const char*, ...)’:
../common/pg_dbcon.cpp:100: error: ‘last_res’ was not declared in this scope
../common/pg_dbcon.cpp:101: error: ‘PQclear’ was not declared in this scope
../common/pg_dbcon.cpp:127: error: ‘PQescapeString’ was not declared in this sco
pe
../common/pg_dbcon.cpp:138: error: ‘snprintf’ was not declared in this scope
../common/pg_dbcon.cpp:169: error: ‘last_res’ was not declared in this scope
../common/pg_dbcon.cpp:169: error: ‘conn_id’ was not declared in this scope
../common/pg_dbcon.cpp:169: error: ‘PQexec’ was not declared in this scope
../common/pg_dbcon.cpp:176: error: ‘PQresultStatus’ was not declared in this sco
pe
../common/pg_dbcon.cpp:177: error: ‘PGRES_TUPLES_OK’ was not declared in this sc
ope
../common/pg_dbcon.cpp:178: error: ‘last_type’ was not declared in this scope
../common/pg_dbcon.cpp:180: error: ‘PGRES_COMMAND_OK’ was not declared in this s
cope
../common/pg_dbcon.cpp: At global scope:
../common/pg_dbcon.cpp:193: error: ‘pgdbcon_t’ is not a class or namespace
../common/pg_dbcon.cpp: In function ‘int ntuples()’:
../common/pg_dbcon.cpp:196: error: ‘last_res’ was not declared in this scope
../common/pg_dbcon.cpp:198: error: ‘last_type’ was not declared in this scope
../common/pg_dbcon.cpp:199: error: ‘last_res’ was not declared in this scope
../common/pg_dbcon.cpp:199: error: ‘PQcmdTuples’ was not declared in this scope
../common/pg_dbcon.cpp:206: error: ‘last_res’ was not declared in this scope
../common/pg_dbcon.cpp:206: error: ‘PQntuples’ was not declared in this scope
../common/pg_dbcon.cpp: At global scope:
../common/pg_dbcon.cpp:213: error: ‘pgdbcon_t’ is not a class or namespace
../common/pg_dbcon.cpp: In function ‘const char* get_s(int, const char*)’:
../common/pg_dbcon.cpp:216: error: ‘last_res’ was not declared in this scope
../common/pg_dbcon.cpp:219: error: ‘last_res’ was not declared in this scope
../common/pg_dbcon.cpp:219: error: ‘PQfnumber’ was not declared in this scope
../common/pg_dbcon.cpp:222: error: ‘PQgetvalue’ was not declared in this scope
../common/pg_dbcon.cpp: At global scope:
../common/pg_dbcon.cpp:230: error: ‘pgdbcon_t’ is not a class or namespace
../common/pg_dbcon.cpp:244: error: ‘pgdbcon_t’ is not a class or namespace
../common/pg_dbcon.cpp:254: error: ‘pgdbcon_t’ is not a class or namespace
../common/pg_dbcon.cpp: In function ‘int copy_buffer(const char*, const char*)’:
../common/pg_dbcon.cpp:257: error: ‘snprintf’ was not declared in this scope
../common/pg_dbcon.cpp:258: error: ‘conn_id’ was not declared in this scope
../common/pg_dbcon.cpp:258: error: ‘PQexec’ was not declared in this scope
../common/pg_dbcon.cpp:259: error: ‘PQputline’ was not declared in this scope
../common/pg_dbcon.cpp:261: error: ‘PQendcopy’ was not declared in this scope
../common/pg_dbcon.cpp: At global scope:
../common/pg_dbcon.cpp:270: error: ‘pgdbcon_t’ is not a class or namespace
../common/pg_dbcon.cpp: In function ‘void escape(const char*, char*, int)’:
../common/pg_dbcon.cpp:271: error: ‘PQescapeString’ was not declared in this sco
pe
make[1]: [../common/pg_dbcon.o] Error 1 (ignored)
g++ -g3 -O0 -fno-exceptions -Wall -Wno-missing-braces -Wno-char-subscripts -I/mn
t/rot/Dev -I/usr/local/pgsql/include -I/mnt/rot/Dev/LINUX/common/include -I/mnt/
rot/Dev/LINUX/login_svr -DDEBUG -DLINUX -DA_EXPORT -D_NO_PCH -c -o ../common/l
inux_misc.o ../common/linux_misc.cpp
../common/linux_misc.cpp:14:20: error: config.h: není souborem ani adresářem
../common/linux_misc.cpp:15:20: error: logger.h: není souborem ani adresářem
../common/linux_misc.cpp:16:24: error: linux_misc.h: není souborem ani adresářem
../common/linux_misc.cpp: In function ‘int get_exedir(char*, int)’:
../common/linux_misc.cpp:31: error: ‘l_perror’ was not declared in this scope
../common/linux_misc.cpp:36: error: ‘l_log’ was not declared in this scope
../common/linux_misc.cpp: In function ‘int go_daemon(void (*)(int), int)’:
../common/linux_misc.cpp:66: error: ‘l_log’ was not declared in this scope
../common/linux_misc.cpp: In function ‘void argdb_init(const char**, int)’:
../common/linux_misc.cpp:114: error: ‘malloc’ was not declared in this scope
../common/linux_misc.cpp: In function ‘int delete_files_by_type(const char*, con
st char*)’:
../common/linux_misc.cpp:218: error: ‘l_perror’ was not declared in this scope
../common/linux_misc.cpp:229: error: ‘l_perror’ was not declared in this scope
make[1]: [../common/linux_misc.o] Error 1 (ignored)
g++ -g3 -O0 -fno-exceptions -Wall -Wno-missing-braces -Wno-char-subscripts -I/mn
t/rot/Dev -I/usr/local/pgsql/include -I/mnt/rot/Dev/LINUX/common/include -I/mnt/
rot/Dev/LINUX/login_svr -DDEBUG -DLINUX -DA_EXPORT -D_NO_PCH -c -o ../common/c
onfparser.o ../common/confparser.cpp
../common/confparser.cpp:4:20: error: config.h: není souborem ani adresářem
../common/confparser.cpp:5:24: error: confparser.h: není souborem ani adresářem
../common/confparser.cpp:6:20: error: logger.h: není souborem ani adresářem
../common/confparser.cpp:8: error: ‘confparse_callback_t’ has not been declared
../common/confparser.cpp: In function ‘int parse_config(const char*, int)’:
../common/confparser.cpp:9: error: ‘uint’ was not declared in this scope
../common/confparser.cpp:9: error: expected `;' before ‘n’
../common/confparser.cpp:17: error: ‘l_log’ was not declared in this scope
../common/confparser.cpp:34: error: ‘n’ was not declared in this scope
../common/confparser.cpp:41: error: ‘cb’ cannot be used as a function
make[1]: [../common/confparser.o] Error 1 (ignored)
g++ -o l main.o updater.o ../common/logger.o ../common/pg_dbcon.o ../common/lin ux_misc.o ../common/confparser.o -L/usr/local/pgsql/lib -lpthread -lpq -lbz2
g++: main.o: není souborem ani adresářem
g++: updater.o: není souborem ani adresářem
g++: ../common/pg_dbcon.o: není souborem ani adresářem
g++: ../common/linux_misc.o: není souborem ani adresářem
g++: ../common/confparser.o: není souborem ani adresářem
make[1]: [l] Error 1 (ignored)
make[1]: Leaving directory `/home/lab22/Desktop/linux/login_svr'
make[1]: Entering directory `/home/lab22/Desktop/linux/gserver'
Makefile:4: *** commands commence before first target. Stop.
make[1]: Leaving directory `/home/lab22/Desktop/linux/gserver'
make: [all] Error 1 (ignored)


Nevím přesně, ale většina říká, že je to tím cvs, celej kod je tím propletenej.
CVS zde bude určitě hrát velkou roli v děláni updatu to je jasný, ale stále jsem nepochopil proč by to bez toho nešlo zkompilovat.

Ty soubory co to píše, že schází tu mám, ale i tak to hází stejné chybky.
To je můj problém..

Nahlásit jako SPAM
IP: 83.208.22.–
bukaj0
Věrný člen
25. 8. 2008   #4
-
0
-

Ykita
main.cpp:13:20: error: config.h: není souborem ani adresářem
main.cpp:14:24: error: confparser.h: není souborem ani adresářem

Tak to se nedivím, že se to nechce zkompilovat, když nemáš hlavičkové soubory :o)

Ty soubory co to píše, že schází tu mám, ale i tak to hází stejné chybky.
Když se v tom postupu píše o CVS, tak předpokládám, že se zdrojáky získávají checkoutováním repozitáře, že? A pak by problém mohl být v tom, že Makefile je sestavený na jiném stroji – tzn. s jinými cestami apod.

Teď záleží, kde ty soubory máš? V jakých složkách?

make běží podle všeho ve složce /home/lab22/Desktop/linux a cesty k hlavičkovým souborům pro g++ jsou:

-I/mnt/rot/Dev -I/usr/local/pgsql/include -I/mnt/rot/Dev/LINUX/common/include -I/mnt/rot/Dev/LINUX/login_svr
A g++ ty hlavičky prostě nikde v tom nemůže najít :o) Tak kde tedy jsou?

Předpokládám, že ten projekt využívá „klasické“ GNU Autotools[1], pak by mělo stačit použít „svatou trojkombinaci“:
./configure ; make ; make install
čimž se nakonfiguruje Makefile podle tvého stroje a mělo by to již jít sestavit.

[1] http://en.wikipedia.org/wiki/Autotools


PS. Pouštět $ make -i nemá v tomto případě smysl. Když se něco builduje, prakticky vždy hodně, hodně vadí, když se něco nezkompiluje ;o)

PPS. Tyhle dlouhatánské chybové logy ukládej do souboru, který pak připojíš ke svému příspěvku. Tohle je strašné.

Nahlásit jako SPAM
IP: 85.70.13.–
Jak se správně ptát? -> http://www.hash.cz/inferno/otazky.html[br][br] Po programování je člověk hladovej.
Ykita
~ Anonymní uživatel
16 příspěvků
30. 8. 2008   #5
-
0
-

mno tak to už jsem zkoušel jenže
./configure tu nemám mám tu jen soubory pro make. Což bych řekl, že je asi problem.? Většina těchto erroru je z includu bych řekl.
Na Počítači společnosti od které mám tento projekt to prý jede.. A na mém ne, a pokud neupřesním includy tak se ani nehnu... A pokud to budu upravovat soubor po souboru tak se zblázním.

Proto se ptám zda-li to nejde nějak obejít?

btw: Struktura složek je stejná jak měli oni.

Nahlásit jako SPAM
IP: 83.208.22.–
Zelenáč0
Posthunter
30. 8. 2008   #6
-
0
-

Ty soubory co to píše, že schází tu mám, ale i tak to hází stejné chybky.


V tom pripade by snad mohlo stacit, kdyz jako parametr g++ predas
-Iadresar/s/hlavickovymi/soubory

Nahlásit jako SPAM
IP: 62.24.71.–
bukaj0
Věrný člen
30. 8. 2008   #7
-
0
-

Ykita
./configure tu nemám mám tu jen soubory pro make. Což bych řekl, že je asi problem.?
Není, sice to nepoužívá autotool, což by hodně práci usnadnilo, ale konec světa to také není. Holt se asi budeš muset pohrabat v těch Makefilech.

Většina těchto erroru je z includu bych řekl.
S tím bych souhlasil. Něco se neincluduje a hned tam naskáčou ty chyby v deklaracích.

Na Počítači společnosti od které mám tento projekt to prý jede..
Tak to jim můžeš vyřídit, že to je sice hezké, ale tobě k h*vnu :o)

Proto se ptám zda-li to nejde nějak obejít?
Těžko. Nejjednodušší je nastavit kompilátoru správné cesty ;o)

Jinak bez toho kódu, Makefileů a dalších věcí jen těžko říct, co by mohlo být špatně. To je pak už jenom zbytečné hádání.

Nahlásit jako SPAM
IP: 85.70.13.–
Jak se správně ptát? -> http://www.hash.cz/inferno/otazky.html[br][br] Po programování je člověk hladovej.
Ykita
~ Anonymní uživatel
16 příspěvků
30. 8. 2008   #8
-
0
-

Mno tak jasný nastavit kompilatoru spravnou cestu ja bych řekl, že to mám... aspon si to myslím tady je makefile.global ..

Jinak prosím pokud by mě někdo chtěl pomoct byl bych mu vděčen jako myslím nějaká domluva po ICQ než to vše řešit zde:)


Nevím zda-li je něco špatně..

.PHONY: count all dep mrproper clean

MAINDIR=/mnt/rot/Dev
BUILDDIR=$(MAINDIR)/LINUX
#CXX=icc
#CC=icc
CXX=g++
CC=gcc
LDREL=ld -r
PGINCDIR=/usr/local/pgsql/include
PGLIBDIR=/usr/local/pgsql/lib

GLOBALINCDIR=$(BUILDDIR)/common/include
GAMESVRINCDIR=$(BUILDDIR)/gserver


default: all

count:
find -name "*.cpp" -or -name "*.h" | xargs cat | wc -l

ifeq ($(USE_PCH), 0)
CXXFLAGS := $(CXXFLAGS) -D_NO_PCH
endif

dep:
/bin/rm -f depend
/bin/rm -f build_pch
ifeq ($(USE_PCH), 1)
for i in $(OBJS); do \
../extract_includes.pl $$i "$(CXX)" "$(CXXFLAGS)">> build_pch; \
$(CXX) -MM -MT $$i $(CXXFLAGS) `echo $$i | sed "s/\(.*\)\\.o$$/\1.cpp/"` >> depend; \
done
../fix_depend.pl depend
else
for i in $(OBJS); do \
$(CXX) -MM -MT $$i $(CXXFLAGS) `echo $$i | sed "s/\(.*\)\\.o$$/\1.cpp/"` >> depend; \
done
endif

ifeq ($(USE_PCH), 1)
ifeq (build_pch,$(wildcard build_pch))
include build_pch
endif
endif

ifeq (depend,$(wildcard depend))
include depend
endif



Nahlásit jako SPAM
IP: 83.208.22.–
Zelenáč0
Posthunter
30. 8. 2008   #9
-
0
-

Rekl bych, ze v MAINDIR by mel byt adresar se zdrojaky... Opravdu je mas v /mnt/rot/Dev?

Nahlásit jako SPAM
IP: 62.24.71.–
Ykita
~ Anonymní uživatel
16 příspěvků
30. 8. 2008   #10
-
0
-

jj mam nasel jsem mensi chybku LINUX jsem mel napsany velkyma pismenama prepsal na Linux a uz si to vetsinu includu naslo, ale tet to pise toto nevim co stim..


---------------------------------
[root@lab login_svr]# make
g++ -g3 -O0 -fno-exceptions -Wall -Wno-missing-braces -Wno-char-subscripts -I/mnt/rot/Dev -I/usr/local/pgsql/include -I/mnt/rot/Dev/linux/common/include -I/mnt/rot/Dev/linux/login_svr -DDEBUG -DLINUX -DA_EXPORT -D_NO_PCH -c -o main.o main.cpp
In file included from ../common/include/config.h:10,
from main.cpp:13:
/mnt/rot/Dev/Header/Types/aTypes.h:103:48: error: mnt/rot/Dev/xTree/Interfaces/xNode.h: není souborem ani adresářem
/mnt/rot/Dev/xTree/Interfaces/xNode.h:16: warning: ‘class xNode’ has virtual functions but non-virtual destructor
/mnt/rot/Dev/xTree/Interfaces/xNodeList.h:12: warning: ‘class xNodeList’ has virtual functions but non-virtual destructor
/mnt/rot/Dev/xTree/Interfaces/xTreeSyntax.h:12: warning: ‘class xTreeSyntax’ has virtual functions but non-virtual destructor
/mnt/rot/Dev/xTree/Interfaces/xExtensions.h:12: warning: ‘class xExtensions’ has virtual functions but non-virtual destructor
/mnt/rot/Dev/xTree/Interfaces/xLibrary.h:12: warning: ‘class xLibrary’ has virtual functions but non-virtual destructor
/mnt/rot/Dev/xTree/Interfaces/xLink.h:10: warning: ‘class xLink’ has virtual functions but non-virtual destructor
/mnt/rot/Dev/xTree/Interfaces/xProcess.h:12: warning: ‘class xProcess’ has virtual functions but non-virtual destructor
/mnt/rot/Dev/xTree/Header/Library.h:13: warning: ‘class LibNodes’ has virtual functions but non-virtual destructor
/mnt/rot/Dev/xTree/Header/Library.h:29: warning: ‘class Library’ has virtual functions but non-virtual destructor
/mnt/rot/Dev/xTree/Header/Link.h:13: warning: ‘class LinkObj’ has virtual functions but non-virtual destructor
/mnt/rot/Dev/Header/Types/aDynArray.h: In member function ‘void aDynStepArray<TYPE, STEP>::Add(TYPE)’:
/mnt/rot/Dev/Header/Types/aDynArray.h:290: error: there are no arguments to ‘_AddNewElem’ that depend on a template parameter, so a declaration of ‘_AddNewElem’ must be available
/mnt/rot/Dev/Header/Types/aDynArray.h:290: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/mnt/rot/Dev/Header/Types/aDynArray.h:291: error: ‘elem’ was not declared in this scope
/mnt/rot/Dev/Header/Types/aDynArray.h:291: error: ‘no’ was not declared in this scope
/mnt/rot/Dev/Header/Types/aDynArray.h: In member function ‘void aDynStepArray<TYPE, STEP>::AddIndexedPnt(TYPE)’:
/mnt/rot/Dev/Header/Types/aDynArray.h:297: error: ‘no’ was not declared in this scope
/mnt/rot/Dev/Header/Types/aDynArray.h:298: error: there are no arguments to ‘_AddNewElem’ that depend on a template parameter, so a declaration of ‘_AddNewElem’ must be available
/mnt/rot/Dev/Header/Types/aDynArray.h:299: error: ‘elem’ was not declared in this scope
/mnt/rot/Dev/Header/Types/aDynArray.h: In member function ‘void aDynStepArray<TYPE, STEP>::AddIndexedElem(TYPE)’:
/mnt/rot/Dev/Header/Types/aDynArray.h:306: error: ‘no’ was not declared in this scope
/mnt/rot/Dev/Header/Types/aDynArray.h:307: error: there are no arguments to ‘_AddNewElem’ that depend on a template parameter, so a declaration of ‘_AddNewElem’ must be available
/mnt/rot/Dev/Header/Types/aDynArray.h:308: error: ‘elem’ was not declared in this scope
/mnt/rot/Dev/Header/Types/aDynArray.h: In member function ‘void aDynStepArray<TYPE, STEP>::AddBlank()’:
/mnt/rot/Dev/Header/Types/aDynArray.h:314: error: there are no arguments to ‘_AddNewElem’ that depend on a template parameter, so a declaration of ‘_AddNewElem’ must be available
make: *** [main.o] Error 1


vypadato ze este nejaky includy jsou spatne ale teda nevim kde a ktery a uz vubec proc nektere to bere a neketere ne..

Nahlásit jako SPAM
IP: 83.208.22.–
9. 6. 2009   #11
-
0
-

Opět, IMHO to nedokázalo includovat soubor "mnt/rot/Dev/xTree/Interfaces/xNode.h" a s tím je spojeno, že to nezná různé proměnné apod. Podívej se, prosím, přesně do umístění "mnt/rot/Dev/xTree/Interfaces/" a zkontroluj, jestli tam ten soubor je, popřípadě jestli nemá jinou cestu.

Nahlásit jako SPAM
IP: 83.240.78.–
Podpis: Do podpisu nelze vložit obrázky ani HTML kód. Je podporován nový řádek tagem
.
Zjistit počet nových příspěvků

Přidej příspěvek

Toto téma je starší jak čtvrt roku – přidej svůj příspěvek jen tehdy, máš-li k tématu opravdu co říct!

Ano, opravdu chci reagovat → zobrazí formulář pro přidání příspěvku

×Vložení zdrojáku

×Vložení obrázku

Vložit URL obrázku Vybrat obrázek na disku
Vlož URL adresu obrázku:
Klikni a vyber obrázek z počítače:

×Vložení videa

Aktuálně jsou podporována videa ze serverů YouTube, Vimeo a Dailymotion.
×
 
Podporujeme Gravatara.
Zadej URL adresu Avatara (40 x 40 px) nebo emailovou adresu pro použití Gravatara.
Email nikam neukládáme, po získání Gravatara je zahozen.
-
Pravidla pro psaní příspěvků, používej diakritiku. ENTER pro nový odstavec, SHIFT + ENTER pro nový řádek.
Sledovat nové příspěvky (pouze pro přihlášené)
Sleduj vlákno a v případě přidání nového příspěvku o tom budeš vědět mezi prvními.
Reaguješ na příspěvek:

Uživatelé prohlížející si toto vlákno

Uživatelé on-line: 0 registrovaných, 3 hosté

Podobná vlákna

Kompilace — založil Kulich

Kompilace — založil Rade.k

Kompilace v Qt — založil Turak

Kompilace skriptů — založil Prasklej Talíř

Správná kompilace — založil Jura

Moderátoři diskuze

 

Hostujeme u Českého hostingu       ISSN 1801-1586       ⇡ Nahoru Webtea.cz logo © 20032024 Programujte.com
Zasadilo a pěstuje Webtea.cz, šéfredaktor Lukáš Churý