Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Unable to build with gcc 7.1.1 #7

Open
lrvick opened this issue Sep 11, 2017 · 1 comment
Open

Unable to build with gcc 7.1.1 #7

lrvick opened this issue Sep 11, 2017 · 1 comment

Comments

@lrvick
Copy link

lrvick commented Sep 11, 2017

gcc -Wall -Os -DHAVE_HIDAPI -DEXTRA_DEBUG -DDEBUG_COMM -I. -I/usr/local/include  -o bitcoinAmount.o -c bitcoinAmount.c
bitcoinAmount.c: In function ‘formatAmount’:
bitcoinAmount.c:127:36: warning: ‘.’ directive output may be truncated writing 1 byte into a region of size between 0 and 18 [-Wformat-truncation=]
     snprintf(tmp, sizeof(tmp) - 1, "%"PRId64".%08"PRId64"", quotient, remainder);
                                    ^~~
bitcoinAmount.c:127:36: note: directive argument in the range [0, 99999999]
bitcoinAmount.c:127:5: note: ‘snprintf’ output between 11 and 29 bytes into a destination of size 19
     snprintf(tmp, sizeof(tmp) - 1, "%"PRId64".%08"PRId64"", quotient, remainder);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mkdir -p bin
gcc -Wall -Os -DHAVE_HIDAPI -DEXTRA_DEBUG -DDEBUG_COMM -I. -I/usr/local/include  -o btchipArgs.o -c btchipArgs.c
mkdir -p bin
gcc -Wall -Os -DHAVE_HIDAPI -DEXTRA_DEBUG -DDEBUG_COMM -I. -I/usr/local/include  -o dongleCommHidHidapi.o -c dongleCommHidHidapi.c
mkdir -p bin
gcc -Wall -Os -DHAVE_HIDAPI -DEXTRA_DEBUG -DDEBUG_COMM -I. -I/usr/local/include  -o dongleComm.o -c dongleComm.c
mkdir -p bin
gcc -Wall -Os -DHAVE_HIDAPI -DEXTRA_DEBUG -DDEBUG_COMM -I. -I/usr/local/include  -o ledgerLayer.o -c ledgerLayer.c
gcc commands/btchip_setup.o -L/usr/local/lib  hexUtils.o btchipUtils.o bitcoinVarint.o bitcoinTransaction.o bitcoinAmount.o btchipArgs.o dongleCommHidHidapi.o dongleComm.o ledgerLayer.o -o bin/btchip_setup -l hidapi-hidraw 
bitcoinAmount.o: In function `parseStringAmount':
bitcoinAmount.c:(.text+0xde): undefined reference to `atoi64'
collect2: error: ld returned 1 exit status
make: *** [Makefile.hidapi:26: btchip_setup] Error 1
@daurnimator
Copy link

20:08:24 | <~daurnimator> | lrvick: `bitcoinAmount.c:(.text+0xde): undefined reference to `atoi64'`
20:09:04 | <~daurnimator> | that's function is a windows-ism. you probably want atoll

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

No branches or pull requests

2 participants