You are not logged in.

#1 2014-10-12 03:10:25

ThePacman
Member
From: Classified
Registered: 2013-09-19
Posts: 127

tox-git and toxic-git not compiling

The latest versions of tox-git and toxic-git from the AUR are not compiling. Tox gives this:

[…]
make[3]: Leaving directory '/tmp/tox-git/src/tox-git/build'
make  check-TESTS
make[3]: Entering directory '/tmp/tox-git/src/tox-git/build'
make[4]: Entering directory '/tmp/tox-git/src/tox-git/build'
PASS: messenger_autotest
PASS: crypto_test
PASS: network_test
PASS: assoc_test
PASS: encryptsave_test
PASS: onion_test
PASS: TCP_test
PASS: dht_autotest
PASS: toxav_basic_test
FAIL: tox_test
make[5]: Entering directory '/tmp/tox-git/src/tox-git/build'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/tmp/tox-git/src/tox-git/build'
============================================================================
Testsuite summary for tox 0.0.0
============================================================================
# TOTAL: 11
# PASS:  10
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See build/test-suite.log
Please report to https://tox.im
============================================================================
Makefile:2438: recipe for target 'test-suite.log' failed
make[4]: *** [test-suite.log] Error 1
make[4]: Leaving directory '/tmp/tox-git/src/tox-git/build'
Makefile:2544: recipe for target 'check-TESTS' failed
make[3]: *** [check-TESTS] Error 2
make[3]: Leaving directory '/tmp/tox-git/src/tox-git/build'
Makefile:2687: recipe for target 'check-am' failed
make[2]: *** [check-am] Error 2
make[2]: Leaving directory '/tmp/tox-git/src/tox-git/build'
Makefile:501: recipe for target 'check-recursive' failed
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory '/tmp/tox-git/src/tox-git'
Makefile:790: recipe for target 'check' failed
make: *** [check] Error 2
==> ERROR: A failure occurred in check().
    Aborting...

Compiling the latest version of Toxic gives me this:

==> Making package: toxic-git 0.5.2.r34.g4e9f125-1 (Sat Oct 11 22:05:52 CDT 2014)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating toxic git repo...
Fetching origin
==> Validating source files with md5sums...
    toxic ... Skipped
==> Extracting sources...
  -> Creating working copy of toxic git repo...
Cloning into 'toxic'...
done.
==> Starting pkgver()...
==> Removing existing pkg/ directory...
==> Starting build()...
  CC    chat.o
  CC    chat_commands.o
  CC    configdir.o
  CC    dns.o
  CC    execute.o
  CC    file_senders.o
  CC    notify.o
  CC    friendlist.o
  CC    global_commands.o
  CC    groupchat.o
  CC    line_info.o
  CC    input.o
  CC    help.o
  CC    autocomplete.o
  CC    log.o
  CC    misc_tools.o
  CC    prompt.o
  CC    settings.o
  CC    toxic.o
  CC    toxic_strings.o
/tmp/toxic-git/src/toxic/src/toxic.c: In function ‘load_data’:
/tmp/toxic-git/src/toxic/src/toxic.c:651:9: warning: implicit declaration of function ‘tox_is_save_encrypted’ [-Wimplicit-function-declaration]
         bool is_encrypted = tox_is_save_encrypted((uint8_t *) buf);
         ^
  CC    windows.o
  CC    message_queue.o
  CC    audio_call.o
  CC    device.o
  LD    toxic
toxic.o: In function `load_data':
/tmp/toxic-git/src/toxic/src/toxic.c:651: undefined reference to `tox_is_save_encrypted'
collect2: error: ld returned 1 exit status
Makefile:52: recipe for target 'toxic' failed
make: *** [toxic] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

My system is freshly -Syu'ed, and the same errors are occurring. What now?
Just incase the error is a fluke (which sometimes happens with the Tox tests,) I've set it to continuously retry the command until success. This has been running for 20 minutes with no success.


Fedora believes in "software freedom" - that is, restricting user software choices to those deemed appropriately licensed by The Powers That Be.
Arch believes in "freedom", as well - the user has control over his or her system and can do what he wants with it.
https://fedoraproject.org/wiki/Forbidden_items | https://wiki.archlinux.org/index.php/The_Arch_Way

Offline

#2 2014-10-12 03:41:50

cargoan
Member
Registered: 2013-07-13
Posts: 20

Re: tox-git and toxic-git not compiling

Change libsodium dependency to libsodium-git in tox-git PKGBUILD.

$: LANG=C pacman -Qi tox-git
Name           : tox-git
Version        : r2842.g0444ca1-1
Description    : A FOSS instant messaging application aimed to replace Skype (git version)
Architecture   : x86_64
URL            : https://tox.im/
Licenses       : GPL3
Groups         : None
Provides       : tox
Depends On     : libconfig  libsodium-git  libvpx  opus
Optional Deps  : None
Required By    : None
Optional For   : None
Conflicts With : tox
Replaces       : None
Installed Size : 372.00 KiB
Packager       : Unknown Packager
Build Date     : Sun Oct 12 05:35:42 2014
Install Date   : Sun Oct 12 05:35:50 2014
Install Reason : Explicitly installed
Install Script : No
Validated By   : None

Last edited by cargoan (2014-10-12 03:50:44)

Offline

#3 2014-10-12 04:20:24

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: tox-git and toxic-git not compiling

cargoan wrote:

Change libsodium dependency to libsodium-git in tox-git PKGBUILD.

The comments on https://aur.archlinux.org/packages/tox-git/ suggested something opposite.

Offline

#4 2014-10-12 04:53:12

cargoan
Member
Registered: 2013-07-13
Posts: 20

Re: tox-git and toxic-git not compiling

I compiled tox-git and toxic-git with libsodium-git.

It's a development version, aur PKGBUILD is for r2806.ge6fcef4-1 and git version is r2842.g0444ca1-1

$: pacman -Qs libsodium && pacman -Qs tox
local/libsodium-git 1212.84972cb-1
    P(ortable|ackageable) NaCl-based crypto library (git version)
local/tox-git r2842.g0444ca1-1
    A FOSS instant messaging application aimed to replace Skype (git version)
local/toxic-git 0.5.2.r34.g4e9f125-1
    CLI client for tox, a Skype replacement that respects your privacy

Last edited by cargoan (2014-10-12 05:08:36)

Offline

#5 2014-10-12 15:04:16

ThePacman
Member
From: Classified
Registered: 2013-09-19
Posts: 127

Re: tox-git and toxic-git not compiling

Nope. Even with libsodium-git installed, I still get "FAIL: tox_test".


Fedora believes in "software freedom" - that is, restricting user software choices to those deemed appropriately licensed by The Powers That Be.
Arch believes in "freedom", as well - the user has control over his or her system and can do what he wants with it.
https://fedoraproject.org/wiki/Forbidden_items | https://wiki.archlinux.org/index.php/The_Arch_Way

Offline

#6 2014-10-12 15:55:53

ThePacman
Member
From: Classified
Registered: 2013-09-19
Posts: 127

Re: tox-git and toxic-git not compiling

Well, I found out that commenting out the verification section of the PKGBUILD allowed it to compile, but I'm not sure what long-term effects this will have. So this is just a temporary fix.


Fedora believes in "software freedom" - that is, restricting user software choices to those deemed appropriately licensed by The Powers That Be.
Arch believes in "freedom", as well - the user has control over his or her system and can do what he wants with it.
https://fedoraproject.org/wiki/Forbidden_items | https://wiki.archlinux.org/index.php/The_Arch_Way

Offline

Board footer

Powered by FluxBB