Levak / warfacebot

WarfaceBot, a headless XMPP client for Warface (FPS game)
GNU Affero General Public License v3.0
94 stars 73 forks source link

[solve]cant compile application #354

Closed Neo1102 closed 2 months ago

Neo1102 commented 5 years ago
OS Ubuntu 18.04.2 x64
gcc v7.4.0
make v4.1

error massege:

darkevil1102@VM:~$ make
echo   -DHAVE_STRNDUP > .opt
gcc   src/clanmate.o src/cmd/complete.o src/cmd/cmd_add.o src/cmd/cmd_change.o src/cmd/cmd_channel.o src/cmd/cmd_exec.o src/cmd/cmd_follow.o src/cmd/cmd_friends.o src/cmd/cmd_invite.o src/cmd/cmd_last.o src/cmd/cmd_leave.o src/cmd/cmd_master.o src/cmd/cmd_missions.o src/cmd/cmd_name.o src/cmd/cmd_open.o src/cmd/cmd_quit.o src/cmd/cmd_randombox.o src/cmd/cmd_ready.o src/cmd/cmd_remove.o src/cmd/cmd_safe.o src/cmd/cmd_say.o src/cmd/cmd_sleep.o src/cmd/cmd_sponsor.o src/cmd/cmd_start.o src/cmd/cmd_stats.o src/cmd/cmd_stay.o src/cmd/cmd_switch.o src/cmd/cmd_unready.o src/cmd/cmd_whisper.o src/cmd/cmd_whois.o src/cmd/cmd_quickplay.o src/cvar.o src/friend.o src/gameroom.o src/item.o src/lang.o src/offer.o src/option.o src/masterserver.o src/mission.o src/querycache.o src/querydump.o src/quickplay.o src/pvp_maps.o src/session.o src/status.o src/stream/connect.o src/stream/crypt.o src/stream/recv.o src/stream/send.o src/stream/tls.o src/threads/threads.o src/threads/thread_dispatch.o src/threads/thread_ping.o src/threads/thread_sendstream.o src/threads/thread_readstream.o src/threads/thread_readline.o third_party/rl_fprintf.o third_party/stub-getline.o third_party/stub-strcasestr.o third_party/stub-strndup.o third_party/stub-strtok_r.o third_party/wake.o src/tools/base64.o src/tools/geoip.o src/tools/get_info.o src/tools/list.o src/tools/uuid.o src/tools/zlibb64.o src/wb.o src/xml/serializer.o src/xmpp/get/xmpp_bind.o src/xmpp/get/xmpp_iq_ping.o src/xmpp/get/xmpp_iq_session.o src/xmpp/get/xmpp_presence.o src/xmpp/get/xmpp_room_message.o src/xmpp/get/xmpp_sasl.o src/xmpp/get/xmpp_starttls.o src/xmpp/get/xmpp_stream.o src/xmpp/id_handler.o src/xmpp/query_handler.o src/xmpp/result/xmpp_iq_ping.o src/xmpp/result/xmpp_presence.o src/xmpp/room.o src/xmpp/sasl.o src/xmpp/send.o src/xmpp/tools.o src/xmpp_wf/close.o src/xmpp_wf/connect.o src/xmpp_wf/get/xmpp_iq_account.o src/xmpp_wf/get/xmpp_iq_confirm_notification.o src/xmpp_wf/get/xmpp_iq_create_profile.o src/xmpp_wf/get/xmpp_iq_follow_send.o src/xmpp_wf/get/xmpp_iq_gameroom_askserver.o src/xmpp_wf/get/xmpp_iq_gameroom_get.o src/xmpp_wf/get/xmpp_iq_gameroom_join.o src/xmpp_wf/get/xmpp_iq_gameroom_kick.o src/xmpp_wf/get/xmpp_iq_gameroom_leave.o src/xmpp_wf/get/xmpp_iq_gameroom_open.o src/xmpp_wf/get/xmpp_iq_gameroom_quickplay.o src/xmpp_wf/get/xmpp_iq_gameroom_quickplay_cancel.o src/xmpp_wf/get/xmpp_iq_preinvite_cancel.o src/xmpp_wf/get/xmpp_iq_preinvite_invite.o src/xmpp_wf/get/xmpp_iq_gameroom_promote_to_host.o src/xmpp_wf/get/xmpp_iq_gameroom_setinfo.o src/xmpp_wf/get/xmpp_iq_gameroom_setname.o src/xmpp_wf/get/xmpp_iq_gameroom_setplayer.o src/xmpp_wf/get/xmpp_iq_gameroom_update_pvp.o src/xmpp_wf/get/xmpp_iq_get_account_profiles.o src/xmpp_wf/get/xmpp_iq_get_achievements.o src/xmpp_wf/get/xmpp_iq_get_configs.o src/xmpp_wf/get/xmpp_iq_get_last_seen_date.o src/xmpp_wf/get/xmpp_iq_get_master_servers.o src/xmpp_wf/get/xmpp_iq_get_master_server.o src/xmpp_wf/get/xmpp_iq_get_player_stats.o src/xmpp_wf/get/xmpp_iq_invitation_send.o src/xmpp_wf/get/xmpp_iq_items.o src/xmpp_wf/get/xmpp_iq_join_channel.o src/xmpp_wf/get/xmpp_iq_missions_get_list.o src/xmpp_wf/get/xmpp_iq_peer_clan_member_update.o src/xmpp_wf/get/xmpp_iq_peer_player_info.o src/xmpp_wf/get/xmpp_iq_peer_status_update.o src/xmpp_wf/get/xmpp_iq_player_status.o src/xmpp_wf/get/xmpp_iq_profile_info_get_status.o src/xmpp_wf/get/xmpp_iq_querycache.o src/xmpp_wf/get/xmpp_iq_quickplay_maplist.o src/xmpp_wf/get/xmpp_iq_remove_friend.o src/xmpp_wf/get/xmpp_iq_resync_profile.o src/xmpp_wf/get/xmpp_iq_shop_get_offers.o src/xmpp_wf/get/xmpp_iq_send_invitation.o src/xmpp_wf/get/xmpp_print_number_of_occupants.o src/xmpp_wf/get/xmpp_send_message.o src/xmpp_wf/result/xmpp_iq_autorotate.o src/xmpp_wf/result/xmpp_iq_broadcast_session_result.o src/xmpp_wf/result/xmpp_iq_clan_info.o src/xmpp_wf/result/xmpp_iq_clan_masterbanner_update.o src/xmpp_wf/result/xmpp_iq_clan_members_updated.o src/xmpp_wf/result/xmpp_iq_follow_send.o src/xmpp_wf/result/xmpp_iq_friend_list.o src/xmpp_wf/result/xmpp_iq_gameroom_loosemaster.o src/xmpp_wf/result/xmpp_iq_gameroom_offer.o src/xmpp_wf/result/xmpp_iq_gameroom_on_expired.o src/xmpp_wf/result/xmpp_iq_gameroom_on_kicked.o src/xmpp_wf/result/xmpp_iq_gameroom_quickplay_started.o src/xmpp_wf/result/xmpp_iq_gameroom_quickplay_succeeded.o src/xmpp_wf/result/xmpp_iq_gameroom_quickplay_canceled.o src/xmpp_wf/result/xmpp_iq_gameroom_sync.o src/xmpp_wf/result/xmpp_iq_invitation_request.o src/xmpp_wf/result/xmpp_iq_invitation_result.o src/xmpp_wf/result/xmpp_iq_notification_broadcast.o src/xmpp_wf/result/xmpp_iq_p2p_ping.o src/xmpp_wf/result/xmpp_iq_peer_clan_member_update.o src/xmpp_wf/result/xmpp_iq_peer_player_info.o src/xmpp_wf/result/xmpp_iq_peer_status_update.o src/xmpp_wf/result/xmpp_iq_preinvite_cancel.o src/xmpp_wf/result/xmpp_iq_preinvite_invite.o src/xmpp_wf/result/xmpp_iq_preinvite_response.o src/xmpp_wf/result/xmpp_iq_shop_sync_consummables.o src/xmpp_wf/result/xmpp_iq_sponsor_info_updated.o src/xmpp_wf/result/xmpp_iq_sync_notifications.o src/xmpp_wf/result/xmpp_iq_update_cry_money.o src/xmpp_wf/result/xmpp_message.o src/xmpp_wf/tools.o  -lz -lreadline -lssl -lcrypto -L= -pthread -o wb
/usr/bin/ld: src/clanmate.o: relocation R_X86_64_32 against `.text' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/cmd/complete.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/cmd/cmd_change.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/cmd/cmd_ready.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/friend.o: relocation R_X86_64_32 against `.text' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/gameroom.o: relocation R_X86_64_32 against `.text' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/item.o: relocation R_X86_64_32 against `.text' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/offer.o: relocation R_X86_64_32 against `.text' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/masterserver.o: relocation R_X86_64_32 against `.text' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/mission.o: relocation R_X86_64_32 against `.text' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/pvp_maps.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/session.o: relocation R_X86_64_32 against symbol `session' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/status.o: relocation R_X86_64_32 against symbol `xmpp_iq_peer_status_update_friend' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/threads/thread_sendstream.o: relocation R_X86_64_32 against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/threads/thread_readstream.o: relocation R_X86_64_32 against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: third_party/rl_fprintf.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: third_party/wake.o: relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/tools/base64.o: relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/tools/list.o: relocation R_X86_64_32 against `.text' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/tools/uuid.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xml/serializer.o: relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp/get/xmpp_bind.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp/get/xmpp_iq_ping.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp/get/xmpp_iq_session.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp/get/xmpp_room_message.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp/get/xmpp_starttls.o: relocation R_X86_64_32 against undefined symbol `_lock_readstream' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp/id_handler.o: relocation R_X86_64_32 against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp/query_handler.o: relocation R_X86_64_32 against symbol `query_handlers' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp/result/xmpp_iq_ping.o: relocation R_X86_64_32 against `.text' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp/result/xmpp_presence.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp/room.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp/send.o: relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp/tools.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/close.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/connect.o: relocation R_X86_64_32 against `.text' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/get/xmpp_iq_gameroom_join.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/get/xmpp_iq_gameroom_kick.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/get/xmpp_iq_gameroom_leave.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/get/xmpp_iq_gameroom_quickplay_cancel.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/get/xmpp_iq_preinvite_cancel.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/get/xmpp_iq_preinvite_invite.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/get/xmpp_iq_gameroom_promote_to_host.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/get/xmpp_iq_gameroom_setname.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/get/xmpp_iq_gameroom_setplayer.o: relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/get/xmpp_iq_get_achievements.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/get/xmpp_iq_get_last_seen_date.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/get/xmpp_iq_get_master_servers.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/get/xmpp_iq_get_player_stats.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/get/xmpp_iq_items.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/get/xmpp_iq_missions_get_list.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/get/xmpp_iq_peer_clan_member_update.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/get/xmpp_iq_peer_player_info.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/get/xmpp_iq_peer_status_update.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/get/xmpp_iq_player_status.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/get/xmpp_iq_profile_info_get_status.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/get/xmpp_iq_querycache.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/get/xmpp_iq_quickplay_maplist.o: relocation R_X86_64_32 against `.text' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/get/xmpp_iq_remove_friend.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/get/xmpp_iq_resync_profile.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/get/xmpp_iq_shop_get_offers.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/get/xmpp_iq_send_invitation.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/get/xmpp_print_number_of_occupants.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/get/xmpp_send_message.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_autorotate.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_broadcast_session_result.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_clan_info.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_clan_masterbanner_update.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_clan_members_updated.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_follow_send.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_friend_list.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_gameroom_loosemaster.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_gameroom_offer.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_gameroom_on_expired.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_gameroom_on_kicked.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_gameroom_quickplay_started.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_gameroom_quickplay_succeeded.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_gameroom_quickplay_canceled.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_gameroom_sync.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_invitation_request.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_invitation_result.o: relocation R_X86_64_32 against `.text' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_notification_broadcast.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_p2p_ping.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_peer_clan_member_update.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_peer_player_info.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_peer_status_update.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_preinvite_cancel.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_preinvite_invite.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_preinvite_response.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_shop_sync_consummables.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_sponsor_info_updated.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_sync_notifications.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_iq_update_cry_money.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/result/xmpp_message.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/xmpp_wf/tools.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
Makefile:220: recipe for target 'wb' failed
make: *** [wb] Error 1

how can i do? btw Ubuntu 16.04.6 doesn't have this issue

Levak commented 5 years ago

by the way Ubuntu 16.04.6 dont have this issue

Ye, I was about to ask - since I have never seen this problem. What version of GCC is there on ubuntu 16?

Neo1102 commented 5 years ago

on Ubuntu 16

darkevil1102@VM:~$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.11' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.11) 
Neo1102 commented 5 years ago

hey boss i know how 2 fix this issues now edit makefile CC=gcc ↓ CC=gcc -fno-pie -no-pie its working on ubuntu 19.04

Levak commented 5 years ago

Thanks for the update. Sadly, I wanted to add the target (Ubuntu 19.04) to the Travis CI job, but it seems they are still stuck on 18.04.... And my understanding of Docker is close to zero.

I'm a bit eager to add these 2 options blindly. I wanted to have it integrated in continuous integration to avoid future problems. :/

Levak commented 5 years ago

Wait:

OS Ubuntu 18.04.2 x64

So you had the problem on 18.04 after all? Because I added 18.04.3 x64 job and it didn't fail: https://travis-ci.org/Levak/warfacebot/jobs/596705294

Distributor ID: Ubuntu
Description:    Ubuntu 18.04.3 LTS
Release:    18.04
Codename:   bionic
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Neo1102 commented 5 years ago

yeah 18.04 19.04 19.10 all fail

Levak commented 4 years ago

I now confirm the issue on Ubuntu 18.04 x64 Bionic using GCC 8.

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.4 LTS
Release:    18.04
Codename:   bionic

# gcc-8 --version
gcc-8 (Ubuntu 8.4.0-1ubuntu1~18.04) 8.4.0

Using this allows me to compile:

make -B CC=gcc-8\ -fno-pie\ -no-pie

I will see if this change in compiler flags affects other non-affected platforms.