Hello, While installing chessd I saw in the INSTALL file a reference to lpthread as required package. I'm not where to find such package since I can't find it anyware... any help?
I found how to make it compile. It seems I have to do ./configure CPPFLAGS=-march=i686 where i686 is my server architecture which may be something else if you are needing this too...
Now I'm having a segmentation fault when running chessd :P but we are one step forward...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It seems it's not an issue with pthreads, but something else... here's what I get when I compile chessd:
Making all in src
make[1]: Entering directory `/root/chessd/src'
g++ -I. -g -O2 -o chessd chessd-AdminComponent.o chessd-Agreement.o chessd-ChessTourney.o chessd-ComponentBase.o chessd-DatabaseInterface.o chessd-DatabaseManager.o chessd-Game.o chessd-GameChess.o chessd-ServerCore.o chessd-GameRoom.o chessd-GlickoSystem.o chessd-HistoryProcess.o chessd-I18n.o chessd-Board.o chessd-ChessBasedGame.o chessd-Chess.o chessd-ChessMove.o chessd-History.o chessd-Piece.o chessd-State.o chessd-main.o chessd-MatchChess.o chessd-MatchDatabase.o chessd-MatchManager.o chessd-TourneyGame.o chessd-Player.o chessd-Tourney.o chessd-TourneyPlayers.o chessd-ProfileManager.o chessd-Dispatcher.o chessd-Pool.o chessd-Task.o chessd-Identifier.o chessd-IDSet.o chessd-Log.o chessd-Timer.o chessd-iksutil.o chessd-Xml.o chessd-Component.o chessd-Disco.o chessd-Jid.o chessd-Muc.o chessd-Node.o chessd-PartialJid.o chessd-RootNode.o chessd-Roster.o chessd-StanzaBase.o chessd-Stanza.o chessd-Stream.o chessd-MatchFactory.o chessd-Date.o chessd-Thread.o chessd-TourneyManager.o chessd-ServerModule.o chessd-ChessMatchAnnouncement.o chessd-MatchAnnouncementFactory.o chessd-AnnouncementManager.o -liksemel -lpqxx -lrt -lpthread -liksemel -lboost_date_time
chessd-ComponentBase.o: In function `ComponentBase::_close()':
/root/chessd/src/ComponentBase.cc:70: undefined reference to `__sync_val_compare_and_swap_1'
chessd-DatabaseManager.o: In function `DatabaseManager::getConnection()':
/root/chessd/src/DatabaseManager.cc:159: undefined reference to `__sync_fetch_and_sub_4'
chessd-ServerCore.o: In function `ServerCore::createGame(Game*, boost::function<void ()(int, std::vector<GamePlayerResult, std::allocator<GamePlayerResult> > const&), std::allocator<void> > const&)':
/root/chessd/src/ServerCore.cc:169: undefined reference to `__sync_fetch_and_add_4'
chessd-main.o: In function `handleError(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/root/chessd/src/main.cc:42: undefined reference to `__sync_val_compare_and_swap_1'
chessd-Dispatcher.o: In function `Threads::Dispatcher::_stop()':
/root/chessd/src/Threads/Dispatcher.cc:75: undefined reference to `__sync_val_compare_and_swap_1'
chessd-Dispatcher.o: In function `Threads::Dispatcher::start()':
/root/chessd/src/Threads/Dispatcher.cc:32: undefined reference to `__sync_val_compare_and_swap_1'
chessd-Dispatcher.o: In function `Threads::Dispatcher::stop()':
/root/chessd/src/Threads/Dispatcher.cc:62: undefined reference to `__sync_val_compare_and_swap_1'
collect2: ld returned 1 exit status
make[1]: *** [chessd] Error 1
make[1]: Leaving directory `/root/chessd/src'
make: *** [all-recursive] Error 1
Any ideas...?
Please see the comment on this post about compiling error... may be a miss titled post...
I found how to make it compile. It seems I have to do ./configure CPPFLAGS=-march=i686 where i686 is my server architecture which may be something else if you are needing this too...
Now I'm having a segmentation fault when running chessd :P but we are one step forward...