Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uTox 0.17.0 fails to build #1205

Closed
eclipseo opened this issue Apr 19, 2018 · 2 comments
Closed

uTox 0.17.0 fails to build #1205

eclipseo opened this issue Apr 19, 2018 · 2 comments

Comments

@eclipseo
Copy link
Contributor

eclipseo commented Apr 19, 2018

I'm having trouble building 0.17.0 with toxcore 0.2.2 on Fedora Linux:

[100%] Linking C executable utox
/usr/bin/cmake -E cmake_link_script CMakeFiles/utox.dir/link.txt --verbose=1
/usr/bin/cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -mcet -fcf-protection -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -mcet -fcf-protection -Wall -Wextra -Wpointer-arith -Wimplicit-fallthrough=5 -Werror=implicit-function-declaration -Wno-misleading-indentation -fno-strict-aliasing -fPIC -flto -DAUDIO_FILTERING=1  -Wl,-z,relro  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,noexecstack -rdynamic CMakeFiles/utox.dir/src/avatar.c.o CMakeFiles/utox.dir/src/chatlog.c.o CMakeFiles/utox.dir/src/chrono.c.o CMakeFiles/utox.dir/src/command_funcs.c.o CMakeFiles/utox.dir/src/commands.c.o CMakeFiles/utox.dir/src/devices.c.o CMakeFiles/utox.dir/src/file_transfers.c.o CMakeFiles/utox.dir/src/filesys.c.o CMakeFiles/utox.dir/src/flist.c.o CMakeFiles/utox.dir/src/friend.c.o CMakeFiles/utox.dir/src/groups.c.o CMakeFiles/utox.dir/src/inline_video.c.o CMakeFiles/utox.dir/src/logging.c.o CMakeFiles/utox.dir/src/main.c.o CMakeFiles/utox.dir/src/messages.c.o CMakeFiles/utox.dir/src/notify.c.o CMakeFiles/utox.dir/src/qr.c.o CMakeFiles/utox.dir/src/screen_grab.c.o CMakeFiles/utox.dir/src/self.c.o CMakeFiles/utox.dir/src/settings.c.o CMakeFiles/utox.dir/src/stb.c.o CMakeFiles/utox.dir/src/text.c.o CMakeFiles/utox.dir/src/theme.c.o CMakeFiles/utox.dir/src/tox.c.o CMakeFiles/utox.dir/src/tox_callbacks.c.o CMakeFiles/utox.dir/src/ui.c.o CMakeFiles/utox.dir/src/ui_i18n.c.o CMakeFiles/utox.dir/src/updater.c.o CMakeFiles/utox.dir/src/utox.c.o CMakeFiles/utox.dir/src/window.c.o CMakeFiles/utox.dir/third-party/minini/dev/minIni.c.o CMakeFiles/utox.dir/third-party/qrcodegen/c/qrcodegen.c.o  -o utox src/av/libutoxAV.a src/xlib/libutoxNATIVE.a src/ui/libutoxUI.a -ltoxcore -lsodium -lrt -lvpx -lpthread -lm -lopus -lopenal -lfilteraudio src/xlib/libicon.a -lv4lconvert -lX11 -lXext -lXrender -lfontconfig -lfreetype -lresolv -ldl -ldbus-1 src/layout/libutoxLAYOUT.a 
make[2]: Leaving directory '/builddir/build/BUILD/uTox-0.17.0/build'
/usr/bin/ld: Dwarf Error: Offset (4012179504) greater than or equal to .debug_str size (790).
/usr/bin/ld: Dwarf Error: Offset (3711041536) greater than or equal to .debug_str size (790).
/usr/bin/ld: Dwarf Error: Could not find abbrev number 84.
/tmp/ccWpTyyj.ltrans2.ltrans.o: In function `callback_group_invite':
<artificial>:(.text+0xbce7): undefined reference to `toxav_join_av_groupchat'
/tmp/ccWpTyyj.ltrans2.ltrans.o: In function `tox_thread_message':
<artificial>:(.text+0xc7bf): undefined reference to `toxav_call'
<artificial>:(.text+0xc95b): undefined reference to `toxav_add_av_groupchat'
<artificial>:(.text+0xcc8b): undefined reference to `toxav_answer'
<artificial>:(.text+0xd430): undefined reference to `toxav_answer'
/tmp/ccWpTyyj.ltrans2.ltrans.o: In function `write_save':
<artificial>:(.text+0xd733): undefined reference to `tox_pass_encrypt'
/tmp/ccWpTyyj.ltrans2.ltrans.o: In function `toxcore_thread':
<artificial>:(.text+0xd9da): undefined reference to `tox_is_data_encrypted'
<artificial>:(.text+0xdb5b): undefined reference to `toxav_new'
<artificial>:(.text+0xe09d): undefined reference to `tox_pass_decrypt'
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (2416118100) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Offset (150994944) greater than or equal to .debug_str size (639).
/usr/bin/ld: Dwarf Error: Could not find abbrev number 89.
/tmp/ccWpTyyj.ltrans4.ltrans.o: In function `set_av_callbacks':
<artificial>:(.text+0x1b82): undefined reference to `toxav_callback_call'
<artificial>:(.text+0x1b93): undefined reference to `toxav_callback_call_state'
<artificial>:(.text+0x1ba4): undefined reference to `toxav_callback_audio_receive_frame'
<artificial>:(.text+0x1bb5): undefined reference to `toxav_callback_video_receive_frame'
<artificial>:(.text+0x1bc6): undefined reference to `toxav_callback_video_bit_rate'
/tmp/ccWpTyyj.ltrans4.ltrans.o: In function `utox_incoming_audio_rate_change':
<artificial>:(.text+0x4c81): undefined reference to `toxav_video_set_bit_rate'
/tmp/ccWpTyyj.ltrans4.ltrans.o: In function `utox_incoming_video_rate_change':
<artificial>:(.text+0x4d61): undefined reference to `toxav_video_set_bit_rate'
/tmp/ccWpTyyj.ltrans4.ltrans.o: In function `utox_av_local_call_control':
<artificial>:(.text+0x59a3): undefined reference to `toxav_call_control'
<artificial>:(.text+0x59ed): undefined reference to `toxav_video_set_bit_rate'
<artificial>:(.text+0x5aab): undefined reference to `toxav_video_set_bit_rate'
/tmp/ccWpTyyj.ltrans4.ltrans.o: In function `utox_av_local_disconnect':
<artificial>:(.text+0x6317): undefined reference to `toxav_call_control'
/tmp/ccWpTyyj.ltrans4.ltrans.o: In function `utox_video_thread':
<artificial>:(.text+0x96e5): undefined reference to `toxav_video_send_frame'
/tmp/ccWpTyyj.ltrans4.ltrans.o: In function `utox_audio_thread':
<artificial>:(.text+0xa40b): undefined reference to `toxav_audio_send_frame'
<artificial>:(.text+0xa445): undefined reference to `toxav_get_tox'
<artificial>:(.text+0xa4dc): undefined reference to `toxav_group_send_audio'
/tmp/ccWpTyyj.ltrans4.ltrans.o: In function `utox_av_ctrl_thread':
<artificial>:(.text+0xb160): undefined reference to `toxav_iterate'
<artificial>:(.text+0xb168): undefined reference to `toxav_iteration_interval'
<artificial>:(.text+0xb1ec): undefined reference to `toxav_kill'
<artificial>:(.text+0xb239): undefined reference to `toxav_kill'
<artificial>:(.text+0xb750): undefined reference to `toxav_video_set_bit_rate'
<artificial>:(.text+0xb780): undefined reference to `toxav_video_set_bit_rate'
/tmp/ccWpTyyj.ltrans4.ltrans.o: In function `set_av_callbacks':
<artificial>:(.text+0x1bd8): undefined reference to `toxav_callback_audio_bit_rate'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/utox.dir/build.make:566: utox] Error 1
make[1]: *** [CMakeFiles/Makefile2:75: CMakeFiles/utox.dir/all] Error 2

Full log: https://kojipkgs.fedoraproject.org//work/tasks/2911/26452911/build.log

@eclipseo
Copy link
Contributor Author

This dropped PR #1195 solved my issue.

@eclipseo
Copy link
Contributor Author

This is caused by toxcore being built with autotools instead of cmake. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant