• 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 Errors with Avesta 7.6

Peacy

Member
Joined
Mar 20, 2008
Messages
488
Reaction score
10
Location
The Netherlands
Hey Guys,

I get an error while compiling Avesta 7.6 (latest rev. https://code.google.com/p/divinity-ots/) but I can't seem to find the problem. Hope someone could help me out here.

Error:

Code:
root@1967-5538-2575:~/avesta# make
make  all-am
make[1]: Entering directory `/root/avesta'
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O2 -MT container.o -MD -MP -MF .deps/container.Tpo -c -o container.o container.cpp
In file included from house.h:33,
                from iomap.h:30,
                from iomapotbm.h:24,
                from container.cpp:23:
player.h: In member function 'void Player::disconnect()':
player.h:157: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendCreatureSkull(const Creature*) const':
player.h:374: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendAddTileItem(const Tile*, const Position&, const Item*)':
player.h:388: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendUpdateTileItem(const Tile*, const Position&, uint32_t, const Item*, const Item*)':
player.h:391: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendRemoveTileItem(const Tile*, const Position&, uint32_t, const Item*)':
player.h: In member function 'void Player::sendAddInventoryItem(slots_t, const Item*)':
player.h:438: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendUpdateInventoryItem(slots_t, const Item*, const Item*)':
player.h:440: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendRemoveInventoryItem(slots_t, const Item*)':
player.h:442: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendAnimatedText(const Position&, unsigned char, std::string) const':
player.h:482: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendCancel(const char*) const':
player.h:484: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendCancelTarget() const':
player.h:487: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendCancelWalk() const':
player.h:489: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendChangeSpeed(const Creature*, uint32_t) const':
player.h:491: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendCreatureHealth(const Creature*) const':
player.h:493: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendDistanceShoot(const Position&, const Position&, unsigned char) const':
player.h:495: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendCreatePrivateChannel(uint16_t, const std::string&)':
player.h:499: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendClosePrivate(uint16_t) const':
player.h:501: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendMagicEffect(const Position&, unsigned char) const':
player.h:504: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendSkills() const':
player.h:508: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendTextMessage(MessageClasses, const std::string&) const':
player.h:510: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendTextWindow(Item*, uint16_t, bool) const':
player.h:512: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendTextWindow(uint32_t, const std::string&) const':
player.h:514: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
In file included from house.h:33,
                from iomap.h:30,
                from iomapotbm.h:24,
                from container.cpp:23:
player.h: In member function 'void Player::sendToChannel(Creature*, SpeakClasses, const std::string&, uint16_t, uint32_t) const':
player.h:516: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendTradeItemRequest(const Player*, const Item*, bool) const':
player.h:520: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendTradeClose() const':
player.h:522: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendWorldLight(LightInfo&)':
player.h:524: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendChannelsDialog()':
player.h:526: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendOpenPrivateChannel(const std::string&)':
player.h:528: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendOutfitWindow(const Player*)':
player.h:530: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendCloseContainer(uint32_t)':
player.h:532: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendChannel(uint16_t, const std::string&)':
player.h:534: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendRuleViolationsChannel(uint16_t)':
player.h:536: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendRemoveReport(const std::string&)':
player.h:538: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendLockRuleViolation()':
player.h:540: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
player.h: In member function 'void Player::sendRuleViolationCancel(const std::string&)':
player.h:542: error: invalid use of incomplete type 'struct Protocol76'
player.h:40: error: forward declaration of 'struct Protocol76'
make[1]: *** [container.o] Error 1
make[1]: Leaving directory `/root/avesta'
make: *** [all] Error 2
 
Oke so I downloaded this Avesta assuming it's the latest rev / the official one.

I have the following libraries installed:

libboost-dev libboost-system-dev libboost-filesystem-dev libboost-date-time-dev libboost-regex-dev libboost-thread-dev libgmp3-dev liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 lua5.1 libsqlite0-dev libsqlite3-dev sqlite3 libmysql++-dev libmysqlclient-dev mysql-client-5.1 mysql-server-5.1 mysql-common libxml2-dev libxml++2.6-dev cpp gcc g++ make automake autoconf pkg-config subversion liblua5.1-sql-mysql-dev liblua5.1-sql-sqlite3-dev zlib1g-dev zlib1g libcrypto++-dev libcrypto++8

But get a new error:
Code:
root@1967-5538-2575
:~/avesta-ot# make
make  all-am
make[1]: Entering directory `/root/avesta-ot'
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__    -D__PROTOCOL_76__ -D_THREAD_SAFE -D_REENTRANT -Wall -g -O2 -MT container.o -MD -MP -MF .deps/container.Tpo -c -o container.o container.cpp
In file included from cylinder.h:25,
                from container.h:25,
                from container.cpp:22:
thing.h: In member function 'virtual std::string Thing::getXRayDescription() const':
thing.h:121: error: aggregate 'std::stringstream ret' has incomplete type and cannot be defined
make[1]: *** [container.o] Error 1
make[1]: Leaving directory `/root/avesta-ot'
make: *** [all] Error 2
 
Last edited:
Back
Top