solokeys / solo1

Solo 1 firmware in C
https://solokeys.com/
Other
2.29k stars 274 forks source link

linker error: undefined reference to ... #572

Open sabriGit opened 3 years ago

sabriGit commented 3 years ago

Hello,

When trying to compile Solo (No Hardware Needed): https://github.com/solokeys/solo#developing-solo-no-hardware-needed OS: Windows 10 + cygwin64 I have the following output after running $ make all:

cc -O2 -fdata-sections -ffunction-sections -fcommon -g -I../ -I./fido2/ -I./pc -I../pc -I./tinycbor/src -DAES256=1 -DSOLO_EXPERIMENTAL=1 -DDEBUG_LEVEL=1 -c -o pc/device.o pc/device.c cc -O2 -fdata-sections -ffunction-sections -fcommon -g -I../ -I./fido2/ -I./pc -I../pc -I./tinycbor/src -DAES256=1 -DSOLO_EXPERIMENTAL=1 -DDEBUG_LEVEL=1 -c -o pc/main.o pc/main.c cd tinycbor/ && make LDFLAGS='' -j8 make[1]: Entering directory '/cygdrive/d/fido/New/solo/tinycbor' Makefile:104: warning: funopen and fopencookie unavailable, open_memstream can not be implemented and conversion to JSON will not work properly! make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/cygdrive/d/fido/New/solo/tinycbor' cd fido2/ && make CFLAGS="-O2 -fdata-sections -ffunction-sections -fcommon -g -I../ -I./fido2/ -I./pc -I../pc -I./tinycbor/src -DAES256=1 -DSOLO_EXPERIMENTAL=1 -DDEBUG_LEVEL=1" ECC_CFLAGS="-O2 -fdata-sections -ffunction-sections -DuECC_PLATFORM=2" APP_CONFIG=app.h -j8 make[1]: Entering directory '/cygdrive/d/fido/New/solo/fido2' cc apdu.c -DAPP_CONFIG=\"app.h\" -I./ -I./extensions -I../tinycbor/src -I../crypto/sha256 -I../crypto/micro-ecc -I../crypto/tiny-AES-c -I../crypto/cifra/src -I../crypto/cifra/src/ext -DSOLO_VERSION_MAJ=4 -DSOLO_VERSION_MIN=1 -DSOLO_VERSION_PATCH=2 -DSOLO_VERSION=\"4.1.2-2-g2884f95\" -O2 -fdata-sections -ffunction-sections -fcommon -g -I../ -I./fido2/ -I./pc -I../pc -I./tinycbor/src -DAES256=1 -DSOLO_EXPERIMENTAL=1 -DDEBUG_LEVEL=1 -c -o apdu.o cc util.c -DAPP_CONFIG=\"app.h\" -I./ -I./extensions -I../tinycbor/src -I../crypto/sha256 -I../crypto/micro-ecc -I../crypto/tiny-AES-c -I../crypto/cifra/src -I../crypto/cifra/src/ext -DSOLO_VERSION_MAJ=4 -DSOLO_VERSION_MIN=1 -DSOLO_VERSION_PATCH=2 -DSOLO_VERSION=\"4.1.2-2-g2884f95\" -O2 -fdata-sections -ffunction-sections -fcommon -g -I../ -I./fido2/ -I./pc -I../pc -I./tinycbor/src -DAES256=1 -DSOLO_EXPERIMENTAL=1 -DDEBUG_LEVEL=1 -c -o util.o cc u2f.c -DAPP_CONFIG=\"app.h\" -I./ -I./extensions -I../tinycbor/src -I../crypto/sha256 -I../crypto/micro-ecc -I../crypto/tiny-AES-c -I../crypto/cifra/src -I../crypto/cifra/src/ext -DSOLO_VERSION_MAJ=4 -DSOLO_VERSION_MIN=1 -DSOLO_VERSION_PATCH=2 -DSOLO_VERSION=\"4.1.2-2-g2884f95\" -O2 -fdata-sections -ffunction-sections -fcommon -g -I../ -I./fido2/ -I./pc -I../pc -I./tinycbor/src -DAES256=1 -DSOLO_EXPERIMENTAL=1 -DDEBUG_LEVEL=1 -c -o u2f.o cc test_power.c -DAPP_CONFIG=\"app.h\" -I./ -I./extensions -I../tinycbor/src -I../crypto/sha256 -I../crypto/micro-ecc -I../crypto/tiny-AES-c -I../crypto/cifra/src -I../crypto/cifra/src/ext -DSOLO_VERSION_MAJ=4 -DSOLO_VERSION_MIN=1 -DSOLO_VERSION_PATCH=2 -DSOLO_VERSION=\"4.1.2-2-g2884f95\" -O2 -fdata-sections -ffunction-sections -fcommon -g -I../ -I./fido2/ -I./pc -I../pc -I./tinycbor/src -DAES256=1 -DSOLO_EXPERIMENTAL=1 -DDEBUG_LEVEL=1 -c -o test_power.o cc stubs.c -DAPP_CONFIG=\"app.h\" -I./ -I./extensions -I../tinycbor/src -I../crypto/sha256 -I../crypto/micro-ecc -I../crypto/tiny-AES-c -I../crypto/cifra/src -I../crypto/cifra/src/ext -DSOLO_VERSION_MAJ=4 -DSOLO_VERSION_MIN=1 -DSOLO_VERSION_PATCH=2 -DSOLO_VERSION=\"4.1.2-2-g2884f95\" -O2 -fdata-sections -ffunction-sections -fcommon -g -I../ -I./fido2/ -I./pc -I../pc -I./tinycbor/src -DAES256=1 -DSOLO_EXPERIMENTAL=1 -DDEBUG_LEVEL=1 -c -o stubs.o cc log.c -DAPP_CONFIG=\"app.h\" -I./ -I./extensions -I../tinycbor/src -I../crypto/sha256 -I../crypto/micro-ecc -I../crypto/tiny-AES-c -I../crypto/cifra/src -I../crypto/cifra/src/ext -DSOLO_VERSION_MAJ=4 -DSOLO_VERSION_MIN=1 -DSOLO_VERSION_PATCH=2 -DSOLO_VERSION=\"4.1.2-2-g2884f95\" -O2 -fdata-sections -ffunction-sections -fcommon -g -I../ -I./fido2/ -I./pc -I../pc -I./tinycbor/src -DAES256=1 -DSOLO_EXPERIMENTAL=1 -DDEBUG_LEVEL=1 -c -o log.o cc ctaphid.c -DAPP_CONFIG=\"app.h\" -I./ -I./extensions -I../tinycbor/src -I../crypto/sha256 -I../crypto/micro-ecc -I../crypto/tiny-AES-c -I../crypto/cifra/src -I../crypto/cifra/src/ext -DSOLO_VERSION_MAJ=4 -DSOLO_VERSION_MIN=1 -DSOLO_VERSION_PATCH=2 -DSOLO_VERSION=\"4.1.2-2-g2884f95\" -O2 -fdata-sections -ffunction-sections -fcommon -g -I../ -I./fido2/ -I./pc -I../pc -I./tinycbor/src -DAES256=1 -DSOLO_EXPERIMENTAL=1 -DDEBUG_LEVEL=1 -c -o ctaphid.o cc ctap.c -DAPP_CONFIG=\"app.h\" -I./ -I./extensions -I../tinycbor/src -I../crypto/sha256 -I../crypto/micro-ecc -I../crypto/tiny-AES-c -I../crypto/cifra/src -I../crypto/cifra/src/ext -DSOLO_VERSION_MAJ=4 -DSOLO_VERSION_MIN=1 -DSOLO_VERSION_PATCH=2 -DSOLO_VERSION=\"4.1.2-2-g2884f95\" -O2 -fdata-sections -ffunction-sections -fcommon -g -I../ -I./fido2/ -I./pc -I../pc -I./tinycbor/src -DAES256=1 -DSOLO_EXPERIMENTAL=1 -DDEBUG_LEVEL=1 -c -o ctap.o cc ctap_parse.c -DAPP_CONFIG=\"app.h\" -I./ -I./extensions -I../tinycbor/src -I../crypto/sha256 -I../crypto/micro-ecc -I../crypto/tiny-AES-c -I../crypto/cifra/src -I../crypto/cifra/src/ext -DSOLO_VERSION_MAJ=4 -DSOLO_VERSION_MIN=1 -DSOLO_VERSION_PATCH=2 -DSOLO_VERSION=\"4.1.2-2-g2884f95\" -O2 -fdata-sections -ffunction-sections -fcommon -g -I../ -I./fido2/ -I./pc -I../pc -I./tinycbor/src -DAES256=1 -DSOLO_EXPERIMENTAL=1 -DDEBUG_LEVEL=1 -c -o ctap_parse.o cc crypto.c -DAPP_CONFIG=\"app.h\" -I./ -I./extensions -I../tinycbor/src -I../crypto/sha256 -I../crypto/micro-ecc -I../crypto/tiny-AES-c -I../crypto/cifra/src -I../crypto/cifra/src/ext -DSOLO_VERSION_MAJ=4 -DSOLO_VERSION_MIN=1 -DSOLO_VERSION_PATCH=2 -DSOLO_VERSION=\"4.1.2-2-g2884f95\" -O2 -fdata-sections -ffunction-sections -fcommon -g -I../ -I./fido2/ -I./pc -I../pc -I./tinycbor/src -DAES256=1 -DSOLO_EXPERIMENTAL=1 -DDEBUG_LEVEL=1 -c -o crypto.o cc device.c -DAPP_CONFIG=\"app.h\" -I./ -I./extensions -I../tinycbor/src -I../crypto/sha256 -I../crypto/micro-ecc -I../crypto/tiny-AES-c -I../crypto/cifra/src -I../crypto/cifra/src/ext -DSOLO_VERSION_MAJ=4 -DSOLO_VERSION_MIN=1 -DSOLO_VERSION_PATCH=2 -DSOLO_VERSION=\"4.1.2-2-g2884f95\" -O2 -fdata-sections -ffunction-sections -fcommon -g -I../ -I./fido2/ -I./pc -I../pc -I./tinycbor/src -DAES256=1 -DSOLO_EXPERIMENTAL=1 -DDEBUG_LEVEL=1 -c -o device.o cc version.c -DAPP_CONFIG=\"app.h\" -I./ -I./extensions -I../tinycbor/src -I../crypto/sha256 -I../crypto/micro-ecc -I../crypto/tiny-AES-c -I../crypto/cifra/src -I../crypto/cifra/src/ext -DSOLO_VERSION_MAJ=4 -DSOLO_VERSION_MIN=1 -DSOLO_VERSION_PATCH=2 -DSOLO_VERSION=\"4.1.2-2-g2884f95\" -O2 -fdata-sections -ffunction-sections -fcommon -g -I../ -I./fido2/ -I./pc -I../pc -I./tinycbor/src -DAES256=1 -DSOLO_EXPERIMENTAL=1 -DDEBUG_LEVEL=1 -c -o version.o cc data_migration.c -DAPP_CONFIG=\"app.h\" -I./ -I./extensions -I../tinycbor/src -I../crypto/sha256 -I../crypto/micro-ecc -I../crypto/tiny-AES-c -I../crypto/cifra/src -I../crypto/cifra/src/ext -DSOLO_VERSION_MAJ=4 -DSOLO_VERSION_MIN=1 -DSOLO_VERSION_PATCH=2 -DSOLO_VERSION=\"4.1.2-2-g2884f95\" -O2 -fdata-sections -ffunction-sections -fcommon -g -I../ -I./fido2/ -I./pc -I../pc -I./tinycbor/src -DAES256=1 -DSOLO_EXPERIMENTAL=1 -DDEBUG_LEVEL=1 -c -o data_migration.o cc extensions/extensions.c -DAPP_CONFIG=\"app.h\" -I./ -I./extensions -I../tinycbor/src -I../crypto/sha256 -I../crypto/micro-ecc -I../crypto/tiny-AES-c -I../crypto/cifra/src -I../crypto/cifra/src/ext -DSOLO_VERSION_MAJ=4 -DSOLO_VERSION_MIN=1 -DSOLO_VERSION_PATCH=2 -DSOLO_VERSION=\"4.1.2-2-g2884f95\" -O2 -fdata-sections -ffunction-sections -fcommon -g -I../ -I./fido2/ -I./pc -I../pc -I./tinycbor/src -DAES256=1 -DSOLO_EXPERIMENTAL=1 -DDEBUG_LEVEL=1 -c -o extensions/extensions.o cc extensions/solo.c -DAPP_CONFIG=\"app.h\" -I./ -I./extensions -I../tinycbor/src -I../crypto/sha256 -I../crypto/micro-ecc -I../crypto/tiny-AES-c -I../crypto/cifra/src -I../crypto/cifra/src/ext -DSOLO_VERSION_MAJ=4 -DSOLO_VERSION_MIN=1 -DSOLO_VERSION_PATCH=2 -DSOLO_VERSION=\"4.1.2-2-g2884f95\" -O2 -fdata-sections -ffunction-sections -fcommon -g -I../ -I./fido2/ -I./pc -I../pc -I./tinycbor/src -DAES256=1 -DSOLO_EXPERIMENTAL=1 -DDEBUG_LEVEL=1 -c -o extensions/solo.o cc extensions/wallet.c -DAPP_CONFIG=\"app.h\" -I./ -I./extensions -I../tinycbor/src -I../crypto/sha256 -I../crypto/micro-ecc -I../crypto/tiny-AES-c -I../crypto/cifra/src -I../crypto/cifra/src/ext -DSOLO_VERSION_MAJ=4 -DSOLO_VERSION_MIN=1 -DSOLO_VERSION_PATCH=2 -DSOLO_VERSION=\"4.1.2-2-g2884f95\" -O2 -fdata-sections -ffunction-sections -fcommon -g -I../ -I./fido2/ -I./pc -I../pc -I./tinycbor/src -DAES256=1 -DSOLO_EXPERIMENTAL=1 -DDEBUG_LEVEL=1 -c -o extensions/wallet.o cc ../crypto/sha256/sha256.c -DAPP_CONFIG=\"app.h\" -I./ -I./extensions -I../tinycbor/src -I../crypto/sha256 -I../crypto/micro-ecc -I../crypto/tiny-AES-c -I../crypto/cifra/src -I../crypto/cifra/src/ext -DSOLO_VERSION_MAJ=4 -DSOLO_VERSION_MIN=1 -DSOLO_VERSION_PATCH=2 -DSOLO_VERSION=\"4.1.2-2-g2884f95\" -O2 -fdata-sections -ffunction-sections -fcommon -g -I../ -I./fido2/ -I./pc -I../pc -I./tinycbor/src -DAES256=1 -DSOLO_EXPERIMENTAL=1 -DDEBUG_LEVEL=1 -c -o ../crypto/sha256/sha256.o cc ../crypto/micro-ecc/uECC.c -DAPP_CONFIG=\"app.h\" -I./ -I./extensions -I../tinycbor/src -I../crypto/sha256 -I../crypto/micro-ecc -I../crypto/tiny-AES-c -I../crypto/cifra/src -I../crypto/cifra/src/ext -DSOLO_VERSION_MAJ=4 -DSOLO_VERSION_MIN=1 -DSOLO_VERSION_PATCH=2 -DSOLO_VERSION=\"4.1.2-2-g2884f95\" -O2 -fdata-sections -ffunction-sections -DuECC_PLATFORM=2 -c -o ../crypto/micro-ecc/uECC.o cc ../crypto/tiny-AES-c/aes.c -DAPP_CONFIG=\"app.h\" -I./ -I./extensions -I../tinycbor/src -I../crypto/sha256 -I../crypto/micro-ecc -I../crypto/tiny-AES-c -I../crypto/cifra/src -I../crypto/cifra/src/ext -DSOLO_VERSION_MAJ=4 -DSOLO_VERSION_MIN=1 -DSOLO_VERSION_PATCH=2 -DSOLO_VERSION=\"4.1.2-2-g2884f95\" -O2 -fdata-sections -ffunction-sections -fcommon -g -I../ -I./fido2/ -I./pc -I../pc -I./tinycbor/src -DAES256=1 -DSOLO_EXPERIMENTAL=1 -DDEBUG_LEVEL=1 -c -o ../crypto/tiny-AES-c/aes.o cc ../crypto/cifra/src/sha512.c -DAPP_CONFIG=\"app.h\" -I./ -I./extensions -I../tinycbor/src -I../crypto/sha256 -I../crypto/micro-ecc -I../crypto/tiny-AES-c -I../crypto/cifra/src -I../crypto/cifra/src/ext -DSOLO_VERSION_MAJ=4 -DSOLO_VERSION_MIN=1 -DSOLO_VERSION_PATCH=2 -DSOLO_VERSION=\"4.1.2-2-g2884f95\" -O2 -fdata-sections -ffunction-sections -fcommon -g -I../ -I./fido2/ -I./pc -I../pc -I./tinycbor/src -DAES256=1 -DSOLO_EXPERIMENTAL=1 -DDEBUG_LEVEL=1 -c -o ../crypto/cifra/src/sha512.o cc ../crypto/cifra/src/blockwise.c -DAPP_CONFIG=\"app.h\" -I./ -I./extensions -I../tinycbor/src -I../crypto/sha256 -I../crypto/micro-ecc -I../crypto/tiny-AES-c -I../crypto/cifra/src -I../crypto/cifra/src/ext -DSOLO_VERSION_MAJ=4 -DSOLO_VERSION_MIN=1 -DSOLO_VERSION_PATCH=2 -DSOLO_VERSION=\"4.1.2-2-g2884f95\" -O2 -fdata-sections -ffunction-sections -fcommon -g -I../ -I./fido2/ -I./pc -I../pc -I./tinycbor/src -DAES256=1 -DSOLO_EXPERIMENTAL=1 -DDEBUG_LEVEL=1 -c -o ../crypto/cifra/src/blockwise.o ar cqs libsolo.a apdu.o util.o u2f.o test_power.o stubs.o log.o ctaphid.o ctap.o ctap_parse.o crypto.o device.o version.o data_migration.o extensions/extensions.o extensions/solo.o extensions/wallet.o ../crypto/sha256/sha256.o ../crypto/micro-ecc/uECC.o ../crypto/tiny-AES-c/aes.o ../crypto/cifra/src/sha512.o ../crypto/cifra/src/blockwise.o make[1]: Leaving directory '/cygdrive/d/fido/New/solo/fido2' cc -Wl,--gc-sections fido2/libsolo.a tinycbor/lib/libtinycbor.a -lsodium -o main pc/device.o pc/main.o -Wl,--gc-sections fido2/libsolo.a tinycbor/lib/libtinycbor.a -lsodium /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: fido2/libsolo.a(extensions.o): in function bridge_u2f_to_extensions': /cygdrive/d/fido/New/solo/fido2/extensions/extensions.c:68: undefined reference toctap_atomic_count' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/extensions/extensions.c:68: undefined reference to ctap_atomic_count' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/extensions/extensions.c:68: undefined reference toctap_atomic_count' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/extensions/extensions.c:68: undefined reference to ctap_atomic_count' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: fido2/libsolo.a(ctap.o): in functionctap_generate_cose_key': /cygdrive/d/fido/New/solo/fido2/ctap.c:351: undefined reference to device_is_nfc' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctap.c:353: undefined reference todevice_is_nfc' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctap.c:356: undefined reference to device_is_nfc' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctap.c:358: undefined reference todevice_is_nfc' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctap.c:353: undefined reference to device_set_clock_rate' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctap.c:351: undefined reference todevice_set_clock_rate' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctap.c:356: undefined reference to device_set_clock_rate' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: fido2/libsolo.a(ctap.o): in functionctap_get_info': /cygdrive/d/fido/New/solo/fido2/ctap.c:139: undefined reference to device_read_aaguid' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: fido2/libsolo.a(ctap.o): in functionauth_data_update_count': /cygdrive/d/fido/New/solo/fido2/ctap.c:389: undefined reference to ctap_atomic_count' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: fido2/libsolo.a(ctap.o): in functionctap2_user_presence_test': /cygdrive/d/fido/New/solo/fido2/ctap.c:602: undefined reference to device_set_status' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctap.c:603: undefined reference toctap_user_presence_test' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: fido2/libsolo.a(ctap.o): in function auth_data_update_count': /cygdrive/d/fido/New/solo/fido2/ctap.c:392: undefined reference toctap_atomic_count' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: fido2/libsolo.a(ctap.o): in function ctap_make_auth_data': /cygdrive/d/fido/New/solo/fido2/ctap.c:663: undefined reference todevice_set_status' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctap.c:675: undefined reference to device_read_aaguid' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: fido2/libsolo.a(ctap.o): in functionctap_add_attest_statement': /cygdrive/d/fido/New/solo/fido2/ctap.c:837: undefined reference to device_attestation_cert_der_get_size' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctap.c:842: undefined reference todevice_attestation_read_cert_der' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctap.c:869: undefined reference to device_attestation_cert_der_get_size' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: fido2/libsolo.a(ctap.o): in functionctap2_user_presence_test': /cygdrive/d/fido/New/solo/fido2/ctap.c:602: undefined reference to device_set_status' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctap.c:603: undefined reference toctap_user_presence_test' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctap.c:602: undefined reference to device_set_status' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctap.c:603: undefined reference toctap_user_presence_test' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: fido2/libsolo.a(ctap.o): in function auth_data_update_count': /cygdrive/d/fido/New/solo/fido2/ctap.c:389: undefined reference toctap_atomic_count' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctap.c:392: undefined reference to ctap_atomic_count' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: fido2/libsolo.a(ctap.o): in functionctap2_user_presence_test': /cygdrive/d/fido/New/solo/fido2/ctap.c:602: undefined reference to device_set_status' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctap.c:603: undefined reference toctap_user_presence_test' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: fido2/libsolo.a(ctap.o): in function ctap_get_assertion': /cygdrive/d/fido/New/solo/fido2/ctap.c:1906: undefined reference todevice_disable_up' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctap.c:1908: undefined reference to device_disable_up' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: fido2/libsolo.a(ctap.o): in functionctap_init': /cygdrive/d/fido/New/solo/fido2/ctap.c:2458: undefined reference to device_set_status' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: fido2/libsolo.a(ctap.o): in functionctap_client_pin': /cygdrive/d/fido/New/solo/fido2/ctap.c:2181: undefined reference to device_is_nfc' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctap.c:2183: undefined reference todevice_is_nfc' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctap.c:2183: undefined reference to device_set_clock_rate' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctap.c:2181: undefined reference todevice_set_clock_rate' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: fido2/libsolo.a(ctap.o): in function ctap_request': /cygdrive/d/fido/New/solo/fido2/ctap.c:2396: undefined reference todevice_set_status' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctap.c:2396: undefined reference to device_set_status' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctap.c:2396: undefined reference todevice_set_status' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctap.c:2396: undefined reference to device_set_status' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctap.c:2396: undefined reference todevice_set_status' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: fido2/libsolo.a(ctap.o):/cygdrive/d/fido/New/solo/fido2/ctap.c:602: more undefined references to device_set_status' follow /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: fido2/libsolo.a(ctap.o): in functionctap2_user_presence_test': /cygdrive/d/fido/New/solo/fido2/ctap.c:603: undefined reference to ctap_user_presence_test' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: fido2/libsolo.a(ctap.o): in functionctap_request': /cygdrive/d/fido/New/solo/fido2/ctap.c:2396: undefined reference to device_set_status' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctap.c:2396: undefined reference todevice_set_status' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctap.c:2396: undefined reference to device_set_status' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctap.c:2396: undefined reference todevice_set_status' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: fido2/libsolo.a(crypto.o): in function crypto_ecc256_load_attestation_key': /cygdrive/d/fido/New/solo/fido2/crypto.c:202: undefined reference todevice_get_attestation_key' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: fido2/libsolo.a(ctaphid.o): in function ctaphid_custom_command': /cygdrive/d/fido/New/solo/fido2/ctaphid.c:809: undefined reference toctap_user_presence_test' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctaphid.c:810: undefined reference to ctap_user_presence_test' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctaphid.c:811: undefined reference toctap_user_presence_test' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/ctaphid.c:818: undefined reference to ctap_atomic_count' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: fido2/libsolo.a(ctaphid.o): in functionctaphid_handle_packet': /cygdrive/d/fido/New/solo/fido2/ctaphid.c:614: undefined reference to device_wink' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: fido2/libsolo.a(u2f.o): in functionu2f_register': /cygdrive/d/fido/New/solo/fido2/u2f.c:309: undefined reference to device_attestation_cert_der_get_size' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/u2f.c:316: undefined reference toctap_user_presence_test' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/u2f.c:349: undefined reference to device_attestation_read_cert_der' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: fido2/libsolo.a(u2f.o): in functionu2f_request_ex': /cygdrive/d/fido/New/solo/fido2/u2f.c:100: undefined reference to device_set_status' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/u2f.c:100: undefined reference todevice_set_status' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/u2f.c:100: undefined reference to device_set_status' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/u2f.c:100: undefined reference todevice_set_status' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/u2f.c:100: undefined reference to device_set_status' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: fido2/libsolo.a(u2f.o): in functionu2f_authenticate': /cygdrive/d/fido/New/solo/fido2/u2f.c:265: undefined reference to ctap_user_presence_test' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/u2f.c:271: undefined reference toctap_atomic_count' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: fido2/libsolo.a(u2f.o): in function u2f_request_nfc': /cygdrive/d/fido/New/solo/fido2/u2f.c:122: undefined reference todevice_disable_up' /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/d/fido/New/solo/fido2/u2f.c:124: undefined reference to `device_disable_up' collect2: error: ld returned 1 exit status make: *** [Makefile:69: main] Error 1

can you help me to resolve this issue? Thanks in advance!

harhitosw commented 9 months ago

@sabriGit did you solve this issue as I am also getting same issue ?