• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling TFS 0.4 r3884 sqlite problem

Wiw3K

New Member
Joined
Apr 16, 2008
Messages
371
Reaction score
3
Sup, i am trying to compile this rev but got alot errors with sqlite...

Code:
make[1]: Entering directory `/root/ots/trunk.r3884'
g++ -I/usr/include/libxml2  -O2 -fomit-frame-pointer  -D__USE_SQLITE__    -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -Wno-unused-parameter -pipe  -o theforgottenserver actions.o  allocator.o baseevents.o beds.o chat.o combat.o condition.o configmanager.o connection.o container.o creature.o creatureevent.o cylinder.o database.o databasemanager.o  databasesqlite.o  depot.o dispatcher.o exception.o fileloader.o game.o  globalevent.o group.o house.o housetile.o ioban.o ioguild.o iologindata.o iomap.o iomapserialize.o item.o itemattributes.o items.o luascript.o mailbox.o manager.o map.o monster.o monsters.o movement.o networkmessage.o npc.o otserv.o outfit.o outputmessage.o party.o player.o position.o protocol.o protocolgame.o protocolhttp.o protocollogin.o protocolold.o quests.o raids.o scheduler.o scriptmanager.o server.o spawn.o spells.o status.o talkaction.o teleport.o textlogger.o thing.o tile.o tools.o trashholder.o waitlist.o weapons.o vocation.o  -llua -lcrypto -lcryptopp -lboost_filesystem-mt -lboost_date_time-mt -lboost_system-mt -lboost_regex-mt -lboost_thread-mt -lz  -lxml2
database.o: In function `_Database::verifyResult(SQLiteResult*)':
database.cpp:(.text+0xef): undefined reference to `sqlite3_step'
databasemanager.o: In function `DatabaseManager::checkEncryption()':
databasemanager.cpp:(.text+0x2551): undefined reference to `sqlite3_step'
databasemanager.cpp:(.text+0x2909): undefined reference to `sqlite3_step'
databasemanager.cpp:(.text+0x2ca9): undefined reference to `sqlite3_step'
databasemanager.cpp:(.text+0x3049): undefined reference to `sqlite3_step'
databasemanager.o:databasemanager.cpp:(.text+0x33e9): more undefined references to `sqlite3_step' follow
databasesqlite.o: In function `DatabaseSQLite::DatabaseSQLite()':
databasesqlite.cpp:(.text+0x1d1): undefined reference to `sqlite3_open'
databasesqlite.cpp:(.text+0x20b): undefined reference to `sqlite3_close'
databasesqlite.o: In function `SQLiteResult::getDataStream(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long long&)':
databasesqlite.cpp:(.text+0x487): undefined reference to `sqlite3_column_blob'
databasesqlite.cpp:(.text+0x4a3): undefined reference to `sqlite3_column_bytes'
databasesqlite.o: In function `SQLiteResult::~SQLiteResult()':
databasesqlite.cpp:(.text+0x523): undefined reference to `sqlite3_finalize'
databasesqlite.o: In function `SQLiteResult::~SQLiteResult()':
databasesqlite.cpp:(.text+0x5b3): undefined reference to `sqlite3_finalize'
databasesqlite.o: In function `SQLiteResult::free()':
databasesqlite.cpp:(.text+0x643): undefined reference to `sqlite3_finalize'
databasesqlite.o: In function `SQLiteResult::getDataString(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
databasesqlite.cpp:(.text+0x78b): undefined reference to `sqlite3_column_text'
databasesqlite.o: In function `SQLiteResult::SQLiteResult(sqlite3_stmt*)':
databasesqlite.cpp:(.text+0xde3): undefined reference to `sqlite3_column_count'
databasesqlite.cpp:(.text+0xe13): undefined reference to `sqlite3_column_name'
databasesqlite.o: In function `SQLiteResult::SQLiteResult(sqlite3_stmt*)':
databasesqlite.cpp:(.text+0x1093): undefined reference to `sqlite3_column_count'
databasesqlite.cpp:(.text+0x10c3): undefined reference to `sqlite3_column_name'
databasesqlite.o: In function `DatabaseSQLite::storeQuery(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
databasesqlite.cpp:(.text+0x1317): undefined reference to `sqlite3_prepare_v2'
databasesqlite.cpp:(.text+0x132b): undefined reference to `sqlite3_finalize'
databasesqlite.cpp:(.text+0x1336): undefined reference to `sqlite3_errmsg'
databasesqlite.o: In function `DatabaseSQLite::query(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
databasesqlite.cpp:(.text+0x1587): undefined reference to `sqlite3_prepare_v2'
databasesqlite.cpp:(.text+0x159b): undefined reference to `sqlite3_finalize'
databasesqlite.cpp:(.text+0x15a6): undefined reference to `sqlite3_errmsg'
databasesqlite.cpp:(.text+0x1680): undefined reference to `sqlite3_step'
databasesqlite.cpp:(.text+0x169a): undefined reference to `sqlite3_finalize'
databasesqlite.cpp:(.text+0x16a5): undefined reference to `sqlite3_errmsg'
databasesqlite.cpp:(.text+0x1700): undefined reference to `sqlite3_finalize'
databasesqlite.o: In function `DatabaseSQLite::DatabaseSQLite()':
databasesqlite.cpp:(.text+0x1871): undefined reference to `sqlite3_open'
databasesqlite.cpp:(.text+0x18ab): undefined reference to `sqlite3_close'
databasesqlite.o: In function `DatabaseSQLite::escapeString(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
databasesqlite.cpp:(.text+0x277f): undefined reference to `sqlite3_snprintf'
databasesqlite.o: In function `SQLiteResult::getDataLong(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
databasesqlite.cpp:(.text+0x1a63): undefined reference to `sqlite3_column_int64'
databasesqlite.o: In function `SQLiteResult::getDataInt(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
databasesqlite.cpp:(.text+0x1be3): undefined reference to `sqlite3_column_int'
game.o: In function `Game::getHighscore(unsigned short)':
game.cpp:(.text+0x10b54): undefined reference to `sqlite3_step'
game.cpp:(.text+0x10e87): undefined reference to `sqlite3_step'
ioban.o: In function `IOBan::getList(Ban_t, unsigned int, unsigned int)':
ioban.cpp:(.text+0x2002): undefined reference to `sqlite3_step'
ioban.o: In function `IOBan::isIpBanished(unsigned int, unsigned int) const':
ioban.cpp:(.text+0x3d4f): undefined reference to `sqlite3_step'
iologindata.o: In function `IOLoginData::loadItems(std::map<int, std::pair<Item*, int>, std::less<int>, std::allocator<std::pair<int const, std::pair<Item*, int> > > >&, SQLiteResult*)':
iologindata.cpp:(.text+0xa53): undefined reference to `sqlite3_step'
iologindata.o:iologindata.cpp:(.text+0x48f7): more undefined references to `sqlite3_step' follow
iologindata.o: In function `IOLoginData::playerDeath(Player*, std::vector<DeathEntry, std::allocator<DeathEntry> > const&)':
iologindata.cpp:(.text+0x8749): undefined reference to `sqlite3_last_insert_rowid'
iologindata.cpp:(.text+0x8951): undefined reference to `sqlite3_last_insert_rowid'
iologindata.o: In function `IOLoginData::createAccount(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
iologindata.cpp:(.text+0x94cf): undefined reference to `sqlite3_last_insert_rowid'
iologindata.o: In function `IOLoginData::getPassword(unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
iologindata.cpp:(.text+0xa6d2): undefined reference to `sqlite3_step'
iologindata.o: In function `IOLoginData::loadAccount(unsigned int, bool)':
iologindata.cpp:(.text+0xaf6e): undefined reference to `sqlite3_step'
iologindata.o: In function `IOLoginData::updatePremiumDays()':
iologindata.cpp:(.text+0xb520): undefined reference to `sqlite3_step'
iologindata.o: In function `IOLoginData::loadPlayer(Player*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)':
iologindata.cpp:(.text+0xd54f): undefined reference to `sqlite3_step'
iologindata.cpp:(.text+0xd8f9): undefined reference to `sqlite3_step'
iologindata.o:iologindata.cpp:(.text+0xdade): more undefined references to `sqlite3_step' follow
luascript.o: In function `LuaInterface::luaDatabaseLastInsertId(lua_State*)':
luascript.cpp:(.text+0xbf54): undefined reference to `sqlite3_last_insert_rowid'
luascript.o: In function `ScriptEnviroment::loadGameState()':
luascript.cpp:(.text+0x14837): undefined reference to `sqlite3_step'
collect2: ld returned 1 exit status
make[1]: *** [theforgottenserver] Error 1
make[1]: Leaving directory `/root/ots/trunk.r3884'
make: *** [all] Error 2

Found something on the google about installing package:
Code:
apt-get install libsqlite3-dev

but i had it already installed...
Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libsqlite3-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.[/CODE
Any idea?
 
Back
Top