compilation problem - ubuntu

Alexandre24
Posts: 175
Joined: Thu Mar 13, 2014 10:15 pm
Location: Hawkesbury, Ontario, CANADA

compilation problem - ubuntu

Post by Alexandre24 » Mon Apr 04, 2016 11:56 am

Hello!

I have a old server for testing a client who the language is french. However, when I want to build the server , an error appears . A problem librairy I think but I don't found this one... An idea?

Thank you.

server@vps74407:~/ffxiFR$ make
g++ -std=gnu++0x -g -O2 -o dsgame dsgame-blowfish.o dsgame-DetourAlloc.o d sgame-DetourCommon.o dsgame-DetourNavMesh.o dsgame-DetourNavMeshBuilder.o dsgame -DetourNavMeshQuery.o dsgame-DetourNode.o dsgame-dsprand.o dsgame-kernel.o dsgam e-malloc.o dsgame-md52.o dsgame-showmsg.o dsgame-socket.o dsgame-sql.o dsgame-st rlib.o dsgame-taskmgr.o dsgame-timer.o dsgame-utils.o dsgame-zlib.o dsgame-abili ty.o dsgame-ai_char_gm.o dsgame-ai_char_normal.o dsgame-ai_char_prisoner.o dsgam e-ai_general.o dsgame-ai_mob_dummy.o dsgame-ai_npc_dummy.o dsgame-ai_pet_dummy.o dsgame-ai_ultimate_summon.o dsgame-pathfind.o dsgame-targetfind.o dsgame-abilit y_state.o dsgame-attack_state.o dsgame-item_state.o dsgame-magic_state.o dsgame- mobskill_state.o dsgame-range_state.o dsgame-state.o dsgame-weaponskill_state.o dsgame-alliance.o dsgame-blue_spell.o dsgame-blue_trait.o dsgame-commandhandler. o dsgame-conquest_system.o dsgame-enmity_container.o dsgame-automatonentity.o ds game-baseentity.o dsgame-battleentity.o dsgame-charentity.o dsgame-mobentity.o d sgame-npcentity.o dsgame-petentity.o dsgame-grades.o dsgame-battlefield.o dsgame -battlefield_handler.o dsgame-instance.o dsgame-instance_loader.o dsgame-item.o dsgame-item_armor.o dsgame-item_currency.o dsgame-item_fish.o dsgame-item_furnis hing.o dsgame-item_general.o dsgame-item_linkshell.o dsgame-item_puppet.o dsgame -item_shop.o dsgame-item_usable.o dsgame-item_weapon.o dsgame-item_container.o d sgame-latent_effect.o dsgame-latent_effect_container.o dsgame-linkshell.o dsgame -luautils.o dsgame-lua_ability.o dsgame-lua_baseentity.o dsgame-lua_battlefield. o dsgame-lua_instance.o dsgame-lua_mobskill.o dsgame-lua_region.o dsgame-lua_spe ll.o dsgame-lua_statuseffect.o dsgame-lua_trade_container.o dsgame-lua_zone.o ds game-map.o dsgame-merit.o dsgame-mobskill.o dsgame-mob_spell_container.o dsgame- mob_spell_list.o dsgame-modifier.o dsgame-navmesh.o dsgame-action.o dsgame-aucti on_house.o dsgame-basic.o dsgame-bazaar_confirmation.o dsgame-bazaar_purchase.o dsgame-bazaar_check.o dsgame-bazaar_close.o dsgame-bazaar_item.o dsgame-bazaar_m essage.o dsgame-blacklist.o dsgame-campaing_map.o dsgame-caught_fish.o dsgame-ch ar.o dsgame-char_abilities.o dsgame-char_appearance.o dsgame-char_check.o dsgame -char_emotion.o dsgame-char_equip.o dsgame-char_health.o dsgame-char_job_extra.o dsgame-char_jobs.o dsgame-char_skills.o dsgame-char_spells.o dsgame-char_stats. o dsgame-char_sync.o dsgame-char_update.o dsgame-chat_message.o dsgame-chocobo_d igging.o dsgame-chocobo_music.o dsgame-conquest_map.o dsgame-cs_position.o dsgam e-currency.o dsgame-delivery_box.o dsgame-downloading_data.o dsgame-entity_updat e.o dsgame-event.o dsgame-event_string.o dsgame-event_update.o dsgame-entity_ani mation.o dsgame-fishing.o dsgame-guild_menu.o dsgame-guild_menu_buy.o dsgame-gui ld_menu_sell.o dsgame-guild_menu_buy_update.o dsgame-guild_menu_sell_update.o ds game-instance_entry.o dsgame-inventory_assign.o dsgame-inventory_finish.o dsgame -inventory_item.o dsgame-inventory_modify.o dsgame-inventory_size.o dsgame-key_i tems.o dsgame-linkshell_message.o dsgame-linkshell_equip.o dsgame-lock_on.o dsga me-menu_config.o dsgame-menu_merit.o dsgame-menu_mog.o dsgame-menu_raisetractor. o dsgame-merit_points_categories.o dsgame-message_basic.o dsgame-message_debug.o dsgame-message_special.o dsgame-message_standard.o dsgame-message_system.o dsga me-message_text.o dsgame-send_box.o dsgame-synth_result.o dsgame-synth_suggestio n.o dsgame-trade_action.o dsgame-trade_item.o dsgame-trade_request.o dsgame-trad e_update.o dsgame-world_pass.o dsgame-party_define.o dsgame-party_invite.o dsgam e-party_map.o dsgame-party_member_update.o dsgame-party_search.o dsgame-pet_sync .o dsgame-position.o dsgame-quest_mission_log.o dsgame-release.o dsgame-server_i p.o dsgame-server_message.o dsgame-shop_appraise.o dsgame-shop_buy.o dsgame-shop _items.o dsgame-shop_menu.o dsgame-stop_downloading.o dsgame-synth_animation.o d sgame-synth_message.o dsgame-treasure_find_item.o dsgame-treasure_lot_item.o dsg ame-entity_visual.o dsgame-weather.o dsgame-wide_scan.o dsgame-wide_scan_track.o dsgame-zone_in.o dsgame-zone_visited.o dsgame-packet_system.o dsgame-party.o ds game-recast_container.o dsgame-region.o dsgame-spell.o dsgame-status_effect.o ds game-status_effect_container.o dsgame-time_server.o dsgame-trade_container.o dsg ame-trait.o dsgame-transport.o dsgame-treasure_pool.o dsgame-universal_container .o dsgame-attackutils.o dsgame-battleutils.o dsgame-blacklistutils.o dsgame-blue utils.o dsgame-charutils.o dsgame-fishingutils.o dsgame-guildutils.o dsgame-batt lefieldutils.o dsgame-instanceutils.o dsgame-itemutils.o dsgame-jailutils.o dsga me-mobutils.o dsgame-petutils.o dsgame-puppetutils.o dsgame-synthutils.o dsgame- zoneutils.o dsgame-vana_time.o dsgame-weapon_skill.o dsgame-zone.o dsgame-attack .o dsgame-attackround.o dsgame-zone_entities.o dsgame-zone_instance.o -llua5.1 -lmysqlclient -ldl -lrt -lm
/usr/bin/ld: dsgame-instance_loader.o: undefined reference to symbol 'pthread_cr eate@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from c ommand line
collect2: error: ld returned 1 exit status
make: *** [dsgame] Error 1

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

Re: compilation problem - ubuntu

Post by whasf » Mon Apr 04, 2016 7:12 pm

You're missing a library that contains the definition of pthread_create
-- Whasf

Alexandre24
Posts: 175
Joined: Thu Mar 13, 2014 10:15 pm
Location: Hawkesbury, Ontario, CANADA

Re: compilation problem - ubuntu

Post by Alexandre24 » Tue Apr 05, 2016 1:59 am

yes but what ?

zillory
Posts: 7
Joined: Mon Apr 04, 2016 10:00 pm

Re: compilation problem - ubuntu

Post by zillory » Tue Apr 05, 2016 11:55 am

you followed the wiki guide(bellow)?

Install on Ubuntu
sudo apt-get install git mysql-server libmysqlclient-dev libluajit-5.1-dev libzmq3-dev autoconf pkg-config

Ubuntu 14.04 needs gcc 5.

sudo su -
apt-get install build-essential
add-apt-repository ppa:ubuntu-toolchain-r/test
apt-get update
apt-get install g++-5
cd /usr/bin
rm gcc g++ cpp
ln -s gcc-5 gcc
ln -s g++-5 g++
ln -s cpp-5 cpp

Alexandre24
Posts: 175
Joined: Thu Mar 13, 2014 10:15 pm
Location: Hawkesbury, Ontario, CANADA

Re: compilation problem - ubuntu

Post by Alexandre24 » Wed Apr 06, 2016 1:21 am

I followed the tutorial although this one was updated. However, I remade the topmost manipulations and the problem remains the same ..

zillory
Posts: 7
Joined: Mon Apr 04, 2016 10:00 pm

Re: compilation problem - ubuntu

Post by zillory » Wed Apr 06, 2016 5:12 pm

i run a server using ubuntu 14.04, followed the wiki and had no issues. wish i could offer more help.. sorry.

i would try google "undefined reference to symbol 'pthread_cr eate@@GLIBC_2.2.5" against whatever version of ubuntu your using.

Alexandre24
Posts: 175
Joined: Thu Mar 13, 2014 10:15 pm
Location: Hawkesbury, Ontario, CANADA

Re: compilation problem - ubuntu

Post by Alexandre24 » Wed Apr 06, 2016 11:31 pm

If you use the last update of the server, yes, that work with the tuto. But my server is very old (2014).The french language still existed. The new tuto is not compatible with this old server. My Ubuntu is ubuntu server 14.04, me too.

zillory
Posts: 7
Joined: Mon Apr 04, 2016 10:00 pm

Re: compilation problem - ubuntu

Post by zillory » Thu Apr 07, 2016 12:17 am

Not sure what to suggest... can always do a apt-get update and apt-get upgrade but not sure what you have running on that server which could possibly break.

Alexandre24
Posts: 175
Joined: Thu Mar 13, 2014 10:15 pm
Location: Hawkesbury, Ontario, CANADA

Re: compilation problem - ubuntu

Post by Alexandre24 » Thu Apr 07, 2016 12:48 am

Well, just know what library I have installed .

EDIT: Ok, I erase my old server and I have reinstalled. Now, I have a new strange error..

server@vps74407:~/trunk$ ./configure --enable-debug=gdb
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LUA... yes
yes
checking whether time.h and sys/time.h may both be included... yes
checking whether pointers can be stored in ints (old code)... no
configure: error: pointers cannot be stored in ints, required for old code... stopping

An idea?

zillory
Posts: 7
Joined: Mon Apr 04, 2016 10:00 pm

Re: compilation problem - ubuntu

Post by zillory » Thu Apr 07, 2016 9:03 am

not sure..

I just created a brand new ubuntu server from scratch, went without a hitch. Here are the steps i did.

install new server ubuntu 14.04.4 LTS http://www.ubuntu.com/download/server

** when prompted install just openssh server **

once install completes set static ip if you want - /etc/network/interfaces
auto eth0
iface eth0 inet static
address <the static ip>
netmask <netmask>
gateway <gateway ip>


edit /etc/resolv.conf add in the following
nameserver <your gateway ip>


run - apt-get update

run - apt-get install git mysql-server libmysqlclient-dev libluajit-5.1-dev libzmq3-dev autoconf pkg-config

run - apt-get install build-essential

run - add-apt-repository ppa:ubuntu-toolchain-r/test

run - apt-get update

run - apt-get install g++-5

run thr following:
cd /usr/bin
rm gcc g++ cpp
ln -s gcc-5 gcc
ln -s g++-5 g++
ln -s cpp-5 cpp

choose or create directory to install
clone git - git clone http://github.com/DarkstarProject/darkstar.git/

go into the darkstar directory- cd darkstar/

run - ./configure --enable-debug=gdb

run - make

Had no issues at all.

from here create db, db user and import .sql files etc... ( can be found in the wiki ) https://wiki.dspt.info/index.php/Building_the_Server

Post Reply