Skip to content
This repository was archived by the owner on May 4, 2021. It is now read-only.

Build fails (Arch Linux, pacaur) #33

Closed
slester opened this issue Aug 11, 2015 · 5 comments
Closed

Build fails (Arch Linux, pacaur) #33

slester opened this issue Aug 11, 2015 · 5 comments

Comments

@slester
Copy link

slester commented Aug 11, 2015

==> Starting build()...
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /usr/bin/automake line 3936.
configure.ac:45: installing 'build-aux/ar-lib'
configure.ac:43: installing 'build-aux/compile'
configure.ac:49: installing 'build-aux/config.guess'
configure.ac:49: installing 'build-aux/config.sub'
configure.ac:41: installing 'build-aux/install-sh'
configure.ac:41: installing 'build-aux/missing'
Makefile.am: installing './INSTALL'
Makefile.am: installing 'build-aux/depcomp'
parallel-tests: installing 'build-aux/test-driver'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) 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 ar... ar
checking the archiver (ar) interface... ar
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking if LD -Wl,--version-script works... yes
checking for valgrind... no
checking whether self tests are run under valgrind... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBCURL... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ykclient_version.h
config.status: creating tests/Makefile
config.status: executing depfiles commands
config.status: executing libtool commands
configure: summary of build options:

  Version:          2.15
     Library:       current 9 revision 0 age 6
     Header:        major 2 minor 15 patch 0 number 0x020f00
  Host type:        x86_64-unknown-linux-gnu
  Install prefix:   /usr
  Compiler:         gcc
  Compiler CFLAGS:  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4
  Warning flags:    
  Library types:    Shared=yes, Static=yes
  Curl CFLAGS:      
      LDFLAGS:      -lcurl 
  Valgrind:         
  Version script:   yes

Making all in .
make[1]: Entering directory '/tmp/pacaurtmp-stephen/yubico-c-client-git/src/yubico-c-client'
  CC       ykclient_server_response.lo
  CC       ykclient.lo
  CC       ykclient_version.lo
  CC       hmac.lo
  CC       sha1.lo
  CC       usha.lo
  CC       sha224-256.lo
  CC       sha384-512.lo
  CC       cencode.lo
  CC       cdecode.lo
  CCLD     libykclient.la
  CC       tool.o
  CCLD     ykclient
/bin/sh /tmp/pacaurtmp-stephen/yubico-c-client-git/src/yubico-c-client/build-aux/missing help2man \
        --output=ykclient.1 ./ykclient \
        --name="YubiCloud One-Time-Password Validation Client" \
        --no-info
make[1]: Leaving directory '/tmp/pacaurtmp-stephen/yubico-c-client-git/src/yubico-c-client'
Making all in tests
make[1]: Entering directory '/tmp/pacaurtmp-stephen/yubico-c-client-git/src/yubico-c-client/tests'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/tmp/pacaurtmp-stephen/yubico-c-client-git/src/yubico-c-client/tests'
==> Starting check()...
Making check in .
make[1]: Entering directory '/tmp/pacaurtmp-stephen/yubico-c-client-git/src/yubico-c-client'
make[1]: Nothing to be done for 'check-am'.
make[1]: Leaving directory '/tmp/pacaurtmp-stephen/yubico-c-client-git/src/yubico-c-client'
Making check in tests
make[1]: Entering directory '/tmp/pacaurtmp-stephen/yubico-c-client-git/src/yubico-c-client/tests'
make  selftest
make[2]: Entering directory '/tmp/pacaurtmp-stephen/yubico-c-client-git/src/yubico-c-client/tests'
  CC       selftest.o
  CCLD     selftest
make[2]: Leaving directory '/tmp/pacaurtmp-stephen/yubico-c-client-git/src/yubico-c-client/tests'
make  check-TESTS
make[2]: Entering directory '/tmp/pacaurtmp-stephen/yubico-c-client-git/src/yubico-c-client/tests'
make[3]: Entering directory '/tmp/pacaurtmp-stephen/yubico-c-client-git/src/yubico-c-client/tests'
../build-aux/test-driver: line 107: 19013 Aborted                 (core dumped) "$@" > $log_file 2>&1
FAIL: selftest
============================================================================
Testsuite summary for ykclient 2.15
============================================================================
# TOTAL: 1
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See tests/test-suite.log
Please report to yubico-devel@googlegroups.com
============================================================================
Makefile:699: recipe for target 'test-suite.log' failed
make[3]: *** [test-suite.log] Error 1
make[3]: Leaving directory '/tmp/pacaurtmp-stephen/yubico-c-client-git/src/yubico-c-client/tests'
Makefile:805: recipe for target 'check-TESTS' failed
make[2]: *** [check-TESTS] Error 2
make[2]: Leaving directory '/tmp/pacaurtmp-stephen/yubico-c-client-git/src/yubico-c-client/tests'
Makefile:878: recipe for target 'check-am' failed
make[1]: *** [check-am] Error 2
make[1]: Leaving directory '/tmp/pacaurtmp-stephen/yubico-c-client-git/src/yubico-c-client/tests'
Makefile:736: recipe for target 'check-recursive' failed
make: *** [check-recursive] Error 1
==> ERROR: A failure occurred in check().
    Aborting...
:: yubico-c-client-git cleaning skipped
:: help2man is a new orphan package
:: failed to build yubico-c-client-git package(s)

and the test log:

=========================================
   ykclient 2.15: tests/test-suite.log
=========================================

# TOTAL: 1
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: selftest
==============

ykclient version: header 2.15 library 2.15

Test selftest.c:235 (main): init self
ykclient_init (0): Success

Test selftest.c:240 (main): null client_id, expect REPLAYED_OTP
ykclient_request (2): Yubikey OTP was replayed (REPLAYED_OTP)
used url: https://api2.yubico.com/wsapi/2.0/verify?id=1851&nonce=mqfwlmzpgbvzphtkcaqnlvooboxtqyse&otp=ccccccbchvthlivuitriujjifivbvtrjkjfirllluurj&timestamp=1

Test selftest.c:253 (main): client_id set(20), correct client_key, expect REPLAYED_OTP
ykclient_request (2): Yubikey OTP was replayed (REPLAYED_OTP)
used url: https://api2.yubico.com/wsapi/2.0/verify?id=1851&nonce=lbwdxcijqusuydybzggherltvwtydteq&otp=ccccccbchvthlivuitriujjifivbvtrjkjfirllluurj&timestamp=1&h=FESC0lyW8dNVVp5HLtgr%2B7zx6rs%3D

Test selftest.c:265 (main): wrong client_id set(10), correct client_key, expect BAD_SIGNATURE
ykclient_request (3): Request signature was invalid (BAD_SIGNATURE)
used url: https://api2.yubico.com/wsapi/2.0/verify?id=1851&nonce=wfrpgpttaeqayaphwormikleqvvuguee&otp=ccccccbchvthlivuitriujjifivbvtrjkjfirllluurj&timestamp=1&h=ziEz4zt5q5JU3fcnHzhBB2iw8RE%3D

Test selftest.c:277 (main): invalid client_id set(a), correct client_key, expect HEX_DECODE_ERROR
ykclient_set_client_hex (105): Error decoding hex string

Test selftest.c:282 (main): invalid client_id set(xx), correct client_key, expect HEX_DECODE_ERROR
ykclient_set_client_hex (105): Error decoding hex string

Test selftest.c:287 (main): hex client_id set, correct client_key, expect OK
ykclient_set_client_hex (0): Success

Test selftest.c:293 (main): validation request, expect REPLAYED_OTP
ykclient_request (2): Yubikey OTP was replayed (REPLAYED_OTP)
used url: https://api2.yubico.com/wsapi/2.0/verify?id=1851&nonce=vwtnjwoiawbxppcmbxedtnjzoklbhnae&otp=ccccccbchvthlivuitriujjifivbvtrjkjfirllluurj&timestamp=1&h=9vqKV%2BVkImr%2BsJzOpync%2BFS4WxU%3D

Test selftest.c:302 (main): set deadbeef client_id, expect OK
ykclient_set_client_hex (0): Success

Test selftest.c:308 (main): validation request, expect BAD_SIGNATURE
ykclient_request (3): Request signature was invalid (BAD_SIGNATURE)
used url: https://api2.yubico.com/wsapi/2.0/verify?id=1851&nonce=xhkkfjcbddsbdcnklwgsdfdekfdmghyg&otp=ccccccbchvthlivuitriujjifivbvtrjkjfirllluurj&timestamp=1&h=SrQCS%2FgOrAnMqyQuamxu0lzlvyY%3D

Test selftest.c:317 (main): b64 set deadbeef client_id, expect OK
ykclient_set_client_b64 (0): Success

Test selftest.c:327 (main): validation request, expect BAD_SERVER_SIGNATURE
ykclient_request (107): Server response signature was invalid (BAD_SERVER_SIGNATURE)
used url: https://api2.yubico.com/wsapi/2.0/verify?id=1851&nonce=batnztjanporxftvcsfemhapoamxybdb&otp=ccccccbchvthlivuitriujjifivbvtrjkjfirllluurj&timestamp=1&h=cCiAE1%2BZTGnstoU4KEbCzPv9ZvQ%3D

Test selftest.c:341 (main): validation request, expect BAD_SIGNATURE
ykclient_request (3): Request signature was invalid (BAD_SIGNATURE)
used url: https://api2.yubico.com/wsapi/2.0/verify?id=1851&nonce=gvaedhkhpkgmwtxzzpuekpklgpdbygge&otp=ccccccbchvthlivuitriujjifivbvtrjkjfirllluurj&timestamp=1&h=iM1mU8OXklEy%2FfO%2BtLquRwxhCl0%3D

Test selftest.c:351 (main): b64 set client_b64key, expect OK
ykclient_set_client_b64 (0): Success

Test selftest.c:357 (main): validation request, expect REPLAYED_OTP
ykclient_request (2): Yubikey OTP was replayed (REPLAYED_OTP)
used url: https://api2.yubico.com/wsapi/2.0/verify?id=1851&nonce=oelwguavxuommdtwwlkgopcpqakzbmjp&otp=ccccccbchvthlivuitriujjifivbvtrjkjfirllluurj&timestamp=1&h=Yrz%2FrZNUt0WCazIpkF%2Bf8SK6m2s%3D

Test selftest.c:366 (main): set WS 2.0 URL template

Test selftest.c:372 (main): validation request, expect REPLAYED_OTP
yubikey_request (2): Yubikey OTP was replayed (REPLAYED_OTP)
used url: http://api.yubico.com/wsapi/2.0/verify?id=1851&nonce=onsbdpbzfrubanedlbjaigfnbuokpnke&otp=ccccccbchvthlivuitriujjifivbvtrjkjfirllluurj&h=c54UldxfyNOPCvQ1WW7rnOWJDoI%3D

Test selftest.c:383 (main): validation request with valid signature, expect REPLAYED_OTP
ykclient_request (2): Yubikey OTP was replayed (REPLAYED_OTP)
used url: http://api.yubico.com/wsapi/2.0/verify?id=1851&nonce=rckyqjifmxtdkmenmselftest: selftest.c:459: main: Assertion `ret == YKCLIENT_REPLAYED_OTP' failed.
acnolzlmouutdrm&otp=ccccccbchvthlivuitriujjifivbvtrjkjfirllluurj&h=4%2Fjc8K0IgrWWU%2Bgg2C4xGyvK5ZQ%3D

Test selftest.c:395 (main): validation request with bad key, expect YKCLIENT_BAD_SERVER_SIGNATURE
ykclient_request (107): Server response signature was invalid (BAD_SERVER_SIGNATURE)
used url: http://api.yubico.com/wsapi/2.0/verify?id=1851&nonce=krafpdytxbcrompflobtqxndnwklkbgu&otp=ccccccbchvthlivuitriujjifivbvtrjkjfirllluurj&h=7xsMXkBOfb%2BADVll%2B9xHu80TNY0%3D

Test selftest.c:407 (main): Set and use several OLD V2.0 URLs
ykclient_request (2): Yubikey OTP was replayed (REPLAYED_OTP)
used url: http://api2.yubico.com/wsapi/2.0/verify?id=1851&nonce=kydbkzxsbrakyldemvaskuugbgsunyiz&otp=ccccccbchvthlivuitriujjifivbvtrjkjfirllluurj&h=O1LyC4Jfx3lsgTwZcCRB9PVffaQ%3D

Test selftest.c:426 (main): Set and use several NEW V2.0 URLs
ykclient_request (2): Yubikey OTP was replayed (REPLAYED_OTP)
used url: http://api2.yubico.com/wsapi/2.0/verify?id=1851&nonce=cjoevndclguwxzxdegopanldpctioejt&otp=ccccccbchvthlivuitriujjifivbvtrjkjfirllluurj&timestamp=1&h=bxp9iUcPMVKieDzTKpJ76p6JvsM%3D

Test selftest.c:445 (main): Set a mix of bad and good URLs
ykclient_request (101): Could not parse server response
used url: http://api4.example.com/wsapi/2.0/verify?id=1851&nonce=plxlxmhahcgoffxppwtoennowbuwfceu&otp=ccccccbchvthlivuitriujjifivbvtrjkjfirllluurj&timestamp=1&h=3wVQ51N4akOkb6bnhdAD3%2BgP3Kw%3D
FAIL selftest (exit status: 134)
@klali
Copy link
Member

klali commented Aug 12, 2015

The test that is failing is setting 4 urls that don't resolve (based in example.com) and one real yubicloud url and is supposed to walk through them and use the real one.
if you follow the link stated in url there on the machine you're building, what does your browser say?
does api4.example.com resolve to an A or AAAA record for you?

@slester
Copy link
Author

slester commented Aug 12, 2015

http://api4.example.com/wsapi/2.0/verify?id=1851&nonce=plxlxmhahcgoffxppwtoennowbuwfceu&otp=ccccccbchvthlivuitriujjifivbvtrjkjfirllluurj&timestamp=1&h=3wVQ51N4akOkb6bnhdAD3%2BgP3Kw%3D just shows a page from my ISP saying the webpage cannot be found.

Thanks for helping with this, @klali, I'm really trying to get Yubikey to work for me but I'm having a lot of trouble.

@slester
Copy link
Author

slester commented Aug 13, 2015

Update for @klali -- yep, my ISP serves a "server not found" page.

curl http://api4.example.com/wsapi/2.0/verify?id=1851&nonce=plxlxmhahcgoffxppwtoennowbuwfceu&otp=ccccccbchvthlivuitriujjifivbvtrjkjfirllluurj&timestamp=1&h=3wVQ51N4akOkb6bnhdAD3%2BgP3Kw%3D

5duf&FailedURI=http%3A%2F%2Fapi4.example.com%2Fwsapi%2F2.0%2Fverify%3Fnonce%3Dplxlxmhahcgoffxppwtoennowbuwfceu%26otp%3Dccccccbchvthlivuitriujjifivbvtrjkjfirllluurj%26id%3D1851%26timestamp%3D1%26h%3D3wVQ51N4akOkb6bnhdAD3%252BgP3Kw%253D&FailureMode=1&Implementation=&AddInType=4&Version=pywr1.0&ClientLocation=us"/><script type="text/javascript">url="http://finder.cox.net/main?ParticipantID=96e687opkbv4scrood8k84drs6gw5duf&FailedURI=http%3A%2F%2Fapi4.example.com%2Fwsapi%2F2.0%2Fverify%3Fnonce%3Dplxlxmhahcgoffxppwtoennowbuwfceu%26otp%3Dccccccbchvthlivuitriujjifivbvtrjkjfirllluurj%26id%3D1851%26timestamp%3D1%26h%3D3wVQ51N4akOkb6bnhdAD3%252BgP3Kw%253D&FailureMode=1&Implementation=&AddInType=4&Version=pywr1.0&ClientLocation=us";if(top.location!=location){var w=window,d=document,e=d.documentElement,b=d.body,x=w.innerWidth||e.clientWidth||b.clientWidth,y=w.innerHeight||e.clientHeight||b.clientHeight;url+="&w="+x+"&h="+y;}window.location.replace(url);</script></head><body></body></html>%

Using Google's DNS servers instead had the test pass & ultimately install. We can close this, or maybe put a reminder somewhere that this causes the test to fail.

@klali
Copy link
Member

klali commented Aug 13, 2015

Thank you.. I think there is a question whether the code should jump over any responses it fails to parse instead of bailing out on a bad answer.

@thorduri
Copy link

Closing this issue as it's not a build failure as suggested in its title.

See #39.

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

No branches or pull requests

3 participants