Ubuntu Server 8.10 compile error (dbcore.cpp)
Moderator: Team Members
-
intodesi
- Posts: 87
- Joined: Wed Feb 06, 2008 8:17 am
- Location: Reno, NV
Ubuntu Server 8.10 compile error (dbcore.cpp)
I am getting the following issues with my compile on Ubuntu Server 8.10
../common/md5.cpp:259: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:260: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:261: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:263: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:264: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:265: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:266: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:267: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:268: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:269: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:270: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:271: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:272: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:273: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:274: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:275: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:276: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:277: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:278: warning: suggest parentheses around + or - inside shift
g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include -I./LUA/include ../common/dbcore.cpp -o ../common/dbcore.o
In file included from ../common/../common/Mutex.h:29,
from ../common/debug.h:65,
from ../common/dbcore.cpp:20:
../common/../common/../common/types.h:186: warning: âtypedefâ was ignored in this declaration
../common/dbcore.cpp: In member function âbool DBcore::ReadDBINI(char*, char*, char*, char*, int32&, bool&, bool*)â:
../common/dbcore.cpp:126: error: âatoiâ was not declared in this scope
../common/dbcore.cpp:85: warning: ignoring return value of âchar* fgets(char*, int, FILE*)â, declared with attribute warn_unused_result
make: *** [../common/dbcore.o] Error 1
../common/md5.cpp:259: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:260: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:261: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:263: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:264: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:265: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:266: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:267: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:268: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:269: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:270: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:271: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:272: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:273: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:274: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:275: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:276: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:277: warning: suggest parentheses around + or - inside shift
../common/md5.cpp:278: warning: suggest parentheses around + or - inside shift
g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include -I./LUA/include ../common/dbcore.cpp -o ../common/dbcore.o
In file included from ../common/../common/Mutex.h:29,
from ../common/debug.h:65,
from ../common/dbcore.cpp:20:
../common/../common/../common/types.h:186: warning: âtypedefâ was ignored in this declaration
../common/dbcore.cpp: In member function âbool DBcore::ReadDBINI(char*, char*, char*, char*, int32&, bool&, bool*)â:
../common/dbcore.cpp:126: error: âatoiâ was not declared in this scope
../common/dbcore.cpp:85: warning: ignoring return value of âchar* fgets(char*, int, FILE*)â, declared with attribute warn_unused_result
make: *** [../common/dbcore.o] Error 1
The IRS, its not an agency, its a service. They do it because they love us.
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
-
Bion
- Retired
- Posts: 241
- Joined: Sun Sep 16, 2007 1:47 pm
Is that the topmost error?
atoi is a function try putting the following #include in the dbcore.cpp
#include <stdio.h>
#include <stdlib.h>
you can open it with any txt editor scroll near the top and you will see some #include put those with them.
[/url][/quote]
common/dbcore.cpp:126: error: âatoiâ was not declared in this scope
atoi is a function try putting the following #include in the dbcore.cpp
#include <stdio.h>
#include <stdlib.h>
you can open it with any txt editor scroll near the top and you will see some #include put those with them.
[/url][/quote]
-
intodesi
- Posts: 87
- Joined: Wed Feb 06, 2008 8:17 am
- Location: Reno, NV
Ok Bion that fixed that I think.. but now i get a similiar error
Code: Select all
../common/misc.cpp: In function âint EQsprintf(char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*)â:
../common/misc.cpp:259: error: âstrcpyâ was not declared in this scope
../common/misc.cpp:260: error: âstrlenâ was not declared in this scope
make: *** [../common/misc.o] Error 1The IRS, its not an agency, its a service. They do it because they love us.
-
intodesi
- Posts: 87
- Joined: Wed Feb 06, 2008 8:17 am
- Location: Reno, NV
-
Bion
- Retired
- Posts: 241
- Joined: Sun Sep 16, 2007 1:47 pm
I dont think your gcc environment include path is set up right.
you can go to the misc.cpp and put in like you did with the other one.
#include <stdio.h>
#include <string.h>
also before you try that you can try setting your include path.
at the shell
CPLUS_INCLUDE_PATH=your/gcc/include/path/here
export CPLUS_INCLUDE_PATH
C_INCLUDE_PATH=your/gcc/include/path/here
export C_INCLUDE_PATH
and see if that helps these changes to your path will not stay after you log out but if they work you can add them to a login bash script.
to see what you include path is type
gcc -v
here is a sample of what you will see and post yours here but if the above commands dont fix it the only thing i know to keep doing is manually putting in the header files in the .cpp
a way to search for it you could do
and see if you get a string like /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include...to help ya find the include dir
you can go to the misc.cpp and put in like you did with the other one.
#include <stdio.h>
#include <string.h>
also before you try that you can try setting your include path.
at the shell
CPLUS_INCLUDE_PATH=your/gcc/include/path/here
export CPLUS_INCLUDE_PATH
C_INCLUDE_PATH=your/gcc/include/path/here
export C_INCLUDE_PATH
and see if that helps these changes to your path will not stay after you log out but if they work you can add them to a login bash script.
to see what you include path is type
gcc -v
here is a sample of what you will see and post yours here but if the above commands dont fix it the only thing i know to keep doing is manually putting in the header files in the .cpp
Code: Select all
Target: i686-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.2 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --disable-libgcj --with-arch=i686 --enable-languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.2 (Gentoo 4.1.2 p1.1)
Code: Select all
find / | grep <gcc-version number/include
Last edited by Bion on Mon Dec 01, 2008 1:28 pm, edited 1 time in total.
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
-
intodesi
- Posts: 87
- Joined: Wed Feb 06, 2008 8:17 am
- Location: Reno, NV
-
intodesi
- Posts: 87
- Joined: Wed Feb 06, 2008 8:17 am
- Location: Reno, NV
This is the exact problem I think is the issue here
Your package fails to build with GCC 4.3. Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning. In GCC 4.3, the C++ header
dependencies have been cleaned up. The advantage of this is that
programs will compile faster. The downside is that you actually
need to directly #include everything you use (but you really should
do this anyway, otherwise your program won't work with any compiler
other than GCC). Some background of this can be found at
Your package fails to build with GCC 4.3. Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning. In GCC 4.3, the C++ header
dependencies have been cleaned up. The advantage of this is that
programs will compile faster. The downside is that you actually
need to directly #include everything you use (but you really should
do this anyway, otherwise your program won't work with any compiler
other than GCC). Some background of this can be found at
The IRS, its not an agency, its a service. They do it because they love us.
-
intodesi
- Posts: 87
- Joined: Wed Feb 06, 2008 8:17 am
- Location: Reno, NV
Ok got that fixed.. and had a successful make... now when i run the server i get this below.. not sure what I did wrong here.
Code: Select all
[Error] Error Loading Armor ID: 974
[Error] Error Loading Armor ID: 964
[Error] Error Loading Armor ID: 935
[Error] Error Loading Armor ID: 921
[Error] Error Loading Armor ID: 920
[Error] Error Loading Armor ID: 889
[Error] Error Loading Armor ID: 886
[Error] Error Loading Armor ID: 880
[Error] Error Loading Armor ID: 869
[Error] Error Loading Armor ID: 868
[Error] Error Loading Armor ID: 866
[Error] Error Loading Armor ID: 863
[Error] Error Loading Armor ID: 857
[Error] Error Loading Armor ID: 843
[Error] Error Loading Armor ID: 831
[Error] Error Loading Armor ID: 827
[Error] Error Loading Armor ID: 807
[Error] Error Loading Armor ID: 802
[Error] Error Loading Armor ID: 798
[Error] Error Loading Armor ID: 790
[Error] Error Loading Armor ID: 789
[Error] Error Loading Armor ID: 784
[Error] Error Loading Armor ID: 781
[Error] Error Loading Armor ID: 773
[Error] Error Loading Armor ID: 765
[Error] Error Loading Armor ID: 764
[Error] Error Loading Armor ID: 762
[Error] Error Loading Armor ID: 754
[Error] Error Loading Armor ID: 753
[Error] Error Loading Armor ID: 738
[Error] Error Loading Armor ID: 714
[Error] Error Loading Armor ID: 712
[Error] Error Loading Armor ID: 706
[Error] Error Loading Armor ID: 703
[Error] Error Loading Armor ID: 691
[Error] Error Loading Armor ID: 681
[Error] Error Loading Armor ID: 674
[Error] Error Loading Armor ID: 668
[Error] Error Loading Armor ID: 665
[Error] Error Loading Armor ID: 664
[Error] Error Loading Armor ID: 660
[Error] Error Loading Armor ID: 659
[Error] Error Loading Armor ID: 658
[Error] Error Loading Armor ID: 654
[Error] Error Loading Armor ID: 644
[Error] Error Loading Armor ID: 640
[Error] Error Loading Armor ID: 633
[Error] Error Loading Armor ID: 629
[Error] Error Loading Armor ID: 628
[Error] Error Loading Armor ID: 624
[Error] Error Loading Armor ID: 622
[Error] Error Loading Armor ID: 611
[Error] Error Loading Armor ID: 605
[Error] Error Loading Armor ID: 601
[Error] Error Loading Armor ID: 595
[Error] Error Loading Armor ID: 592
[Error] Error Loading Armor ID: 591
[Error] Error Loading Armor ID: 589
[Error] Error Loading Armor ID: 587
[Error] Error Loading Armor ID: 578
[Error] Error Loading Armor ID: 556
[Error] Error Loading Armor ID: 552
[Error] Error Loading Armor ID: 549
[Error] Error Loading Armor ID: 545
[Error] Error Loading Armor ID: 528
[Error] Error Loading Armor ID: 525
[Error] Error Loading Armor ID: 518
[Error] Error Loading Armor ID: 508
[Error] Error Loading Armor ID: 504
[Error] Error Loading Armor ID: 500
[Error] Error Loading Armor ID: 483
[Error] Error Loading Armor ID: 481
[Error] Error Loading Armor ID: 472
[Error] Error Loading Armor ID: 468
[Error] Error Loading Armor ID: 464
[Error] Error Loading Armor ID: 460
[Error] Error Loading Armor ID: 453
[Error] Error Loading Armor ID: 452
[Error] Error Loading Armor ID: 451
[Error] Error Loading Armor ID: 450
[Error] Error Loading Armor ID: 445
[Error] Error Loading Armor ID: 440
[Error] Error Loading Armor ID: 439
[Error] Error Loading Armor ID: 438
[Error] Error Loading Armor ID: 437
[Error] Error Loading Armor ID: 436
[Error] Error Loading Armor ID: 431
[Error] Error Loading Armor ID: 428
[Error] Error Loading Armor ID: 424
[Error] Error Loading Armor ID: 422
[Error] Error Loading Armor ID: 421
[Error] Error Loading Armor ID: 417
[Error] Error Loading Armor ID: 414
[Error] Error Loading Armor ID: 393
[Error] Error Loading Armor ID: 378
[Error] Error Loading Armor ID: 374
[Error] Error Loading Armor ID: 373
[Error] Error Loading Armor ID: 366
[Error] Error Loading Armor ID: 338
[Error] Error Loading Armor ID: 337
[Error] Error Loading Armor ID: 319
[Error] Error Loading Armor ID: 316
[Error] Error Loading Armor ID: 313
[Error] Error Loading Armor ID: 304
[Error] Error Loading Armor ID: 290
[Error] Error Loading Armor ID: 280
[Error] Error Loading Armor ID: 265
[Error] Error Loading Armor ID: 253
[Error] Error Loading Armor ID: 250
[Error] Error Loading Armor ID: 217
[Error] Error Loading Armor ID: 194
[Error] Error Loading Armor ID: 181
[Error] Error Loading Armor ID: 175
[Error] Error Loading Armor ID: 163
[Error] Error Loading Armor ID: 151
[Error] Error Loading Armor ID: 105
[Error] Error Loading Armor ID: 96
[Error] Error Loading Armor ID: 95
[Error] Error Loading Armor ID: 84
[Error] Error Loading Armor ID: 76
[Error] Error Loading Armor ID: 74
[Error] Error Loading Armor ID: 72
[Error] Error Loading Armor ID: 46
[Error] Error Loading Armor ID: 29
[Error] Error Loading Armor ID: 18
[Status] Loaded 0 Armor/Shield Piece(s)
[Status] Loaded 0 Skill Item(s)
[Status] Loaded 5590 Regular Items
[Error] Error in LoadNextUniqueItemID query 'SELECT max(id) from character_items': #1054: Unknown column 'id' in 'field list'
[Status] Loading spells..
Error Loading Spells, Query: select spells.id, name, description, type, class_skill, mastery_skill, tier, hp_req, power_req, cast_time, recast, radius, max_aoe_targets, req_concentration, range, duration1, dura tion2, resistibility, hp_upkeep, power_upkeep, duration_until_cancel, target_type, recovery, power_req_pe rcent, hp_req_percent, icon, icon2, icontype, success_message, fade_message, cast_type, lua_script, call_ frequency, interruptable, spell_visual, effect_message, min_range, can_effect_raid, affect_only_group_mem bers, hit_bonus, spell_text_color from spells, spell_tiers where spells.id = spell_tiers.spell_id order b y tier, Error: #1146: Table 'eq2emu.spell_tiers' doesn't exist
[Status] Loading LUA spells..
[Status] Loaded 2 LUA Spell(s)
[Status] Loading factions..
Error in LoadFactionAlliances, Query: SELECT faction_id, friend_faction, hostile_faction from faction_all iances, Error: #1146: Table 'eq2emu.faction_alliances' doesn't exist
[Status] Loaded 36 Factions
[Status] Loading skills..
[Status] Loaded 129 Skills
[Status] Loading loot data..
[Status] Loaded 0 loot tables.
[Status] Loaded 0 loot drops.
[Status] Loaded 0 spawn loot lists.
[Status] Loading Quests..
[Status] Loaded 0 Quest(s)
[Status] Loading Merchant Information..
[Status] Loaded 0 Merchant List(s)
[Status] Loaded 0 Merchant Multiplier(s)
[Status] Loading Spawn Script Information..
Error in LoadSpawnScriptData, Query: SELECT spawn_id, spawnentry_id, spawngroup_id, lua_script from spawn _scripts, Error: #1146: Table 'eq2emu.spawn_scripts' doesn't exist
[Status] Loading EQ time of day..
Please stand behind the yellow line before I start chopping off heads.
Starting factory Reader
Starting factory Writer
World server listening on: 76.245.104.16:9000
World server listening on: 192.168.15.167:9000
Starting static zones...
Connected to LoginServer: eq2emulator.net:9100The IRS, its not an agency, its a service. They do it because they love us.
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
-
bobbydole
- Posts: 32
- Joined: Mon Jul 28, 2008 1:10 pm
Re: Ubuntu Server 8.10 compile error (dbcore.cpp)
i got the same error, i'm using gcc 4.3.2. Is there any way we could get these includes included in the next svn revision? it's not that big of a deal, just annoying..
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
Re: Ubuntu Server 8.10 compile error (dbcore.cpp)
I don't have Ubuntu (I use fedora) so I can't test any fix. Could you supply a unified diff for the changes you made to get it to compile?
Who is online
Users browsing this forum: No registered users and 0 guests