View Issue Details

IDProjectCategoryView StatusLast Update
0007210Talerexchangepublic2022-11-04 20:53
Reporterttn Assigned ToChristian Grothoff  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
PlatformLinuxOSAlpineOS Version3.14.3
Product Versiongit (master) 
Target Version0.9Fixed in Version0.9 
Summary0007210: FTBFS: func 'encrypt' declared by <unistd.h>; conflict w/ local func by same name
DescriptionHEAD = a227ee6d1bd979ae87ab9afda27f180c840313bf.
Log attached.

Note that Alpine uses musl, not glibc.
TagsNo tags attached.
Attached Files
.ttn.exchange-make.log (3,597 bytes)   
contrib/gana-update.sh
make[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[1]: Entering directory '/home/ttn/build/GNU/T/exchange/contrib/gana/gnu-taler-error-codes'
recfix --check registry.rec
cd ../http-status-codes; make ; cd -
make[2]: Entering directory '/home/ttn/build/GNU/T/exchange/contrib/gana/http-status-codes'
recfix --check registry.rec
make[2]: Leaving directory '/home/ttn/build/GNU/T/exchange/contrib/gana/http-status-codes'
/home/ttn/build/GNU/T/exchange/contrib/gana/gnu-taler-error-codes
recsel -t TalerErrorCode -j HttpStatus -p Description,Name,Value,HttpStatus,HttpStatus.Value,HttpStatus.Identifier ../http-status-codes/registry.rec registry.rec > combined.xtmp
if ! diff combined.tmp combined.xtmp > /dev/null; then mv combined.xtmp combined.tmp; else rm combined.xtmp; fi
make[1]: Leaving directory '/home/ttn/build/GNU/T/exchange/contrib/gana/gnu-taler-error-codes'
make[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[1]: Entering directory '/home/ttn/build/GNU/T/exchange/contrib/gana/gnu-taler-db-events'
recfix --check registry.rec
make[1]: Leaving directory '/home/ttn/build/GNU/T/exchange/contrib/gana/gnu-taler-db-events'
make  all-recursive
make[1]: Entering directory '/home/ttn/build/GNU/T/exchange'
Making all in .
make[2]: Entering directory '/home/ttn/build/GNU/T/exchange'
make[2]: Leaving directory '/home/ttn/build/GNU/T/exchange'
Making all in contrib
make[2]: Entering directory '/home/ttn/build/GNU/T/exchange/contrib'
Making all in .
make[3]: Entering directory '/home/ttn/build/GNU/T/exchange/contrib'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/ttn/build/GNU/T/exchange/contrib'
make[2]: Leaving directory '/home/ttn/build/GNU/T/exchange/contrib'
Making all in src
make[2]: Entering directory '/home/ttn/build/GNU/T/exchange/src'
Making all in include
make[3]: Entering directory '/home/ttn/build/GNU/T/exchange/src/include'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/ttn/build/GNU/T/exchange/src/include'
Making all in util
make[3]: Entering directory '/home/ttn/build/GNU/T/exchange/src/util'
  CC       taler-exchange-secmod-eddsa.o
  CC       secmod_common.o
  CC       age_restriction.lo
  CC       amount.lo
  CC       auditor_signatures.lo
  CC       config.lo
  CC       crypto.lo
  CC       crypto_contract.lo
crypto_contract.c:93:1: error: conflicting types for 'encrypt'; have 'void(const struct NonceP *, const void *, size_t,  const void *, size_t,  const char *, void **, size_t *)' {aka 'void(const struct NonceP *, const void *, long unsigned int,  const void *, long unsigned int,  const char *, void **, long unsigned int *)'}
   93 | encrypt (const struct NonceP *nonce,
      | ^~~~~~~
In file included from /usr/include/fortify/unistd.h:22,
                 from /home/ttn/te/include/gnunet/platform.h:103,
                 from ../../src/include/platform.h:49,
                 from crypto_contract.c:21:
/usr/include/unistd.h:145:6: note: previous declaration of 'encrypt' with type 'void(char *, int)'
  145 | void encrypt(char *, int);
      |      ^~~~~~~
make[3]: *** [Makefile:1140: crypto_contract.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/home/ttn/build/GNU/T/exchange/src/util'
make[2]: *** [Makefile:523: all-recursive] Error 1
make[2]: Leaving directory '/home/ttn/build/GNU/T/exchange/src'
make[1]: *** [Makefile:508: all-recursive] Error 1
make[1]: Leaving directory '/home/ttn/build/GNU/T/exchange'
make: *** [Makefile:440: all] Error 2
.ttn.exchange-make.log (3,597 bytes)   

Activities

Christian Grothoff

2022-03-28 18:18

manager   ~0018845

Fixed now. Thanks!

Christian Grothoff

2022-03-28 18:19

manager   ~0018846

It would be good to have a CI setup via buildbot to do these kinds of tests automatically...

Issue History

Date Modified Username Field Change
2022-03-28 17:56 ttn New Issue
2022-03-28 17:56 ttn Status new => assigned
2022-03-28 17:56 ttn Assigned To => Christian Grothoff
2022-03-28 17:56 ttn File Added: .ttn.exchange-make.log
2022-03-28 18:18 Christian Grothoff Status assigned => resolved
2022-03-28 18:18 Christian Grothoff Resolution open => fixed
2022-03-28 18:18 Christian Grothoff Fixed in Version => 0.9
2022-03-28 18:18 Christian Grothoff Note Added: 0018845
2022-03-28 18:19 Christian Grothoff Target Version => 0.9
2022-03-28 18:19 Christian Grothoff Note Added: 0018846
2022-11-04 20:53 Christian Grothoff Status resolved => closed