View Issue Details

IDProjectCategoryView StatusLast Update
0005554GNUnetbuild processpublic2019-02-28 10:17
Reporternikita Assigned ToChristian Grothoff Due Date
PrioritynormalSeverityblockReproducibilityhave not tried
Status closedResolutionfixed 
Platformamd64OSNetBSDOS VersionCURRENT
Product VersionGit master 
Target Version0.11.0Fixed in Version0.11.0 
Summary0005554: conflicting types for hmac
DescriptionWhile building gnunet like this:
./boostrap
LDFLAGS=-L/usr/pkg/lib ./configure
gmake

I currently am stuck here:


gnunet-communicator-tcp.c:641:1: error: conflicting types for 'hmac'
 hmac (struct GNUNET_HashCode *hmac_secret,
 ^~~~
In file included from ../../src/include/platform.h:110:0,
                 from gnunet-communicator-tcp.c:36:
/usr/include/stdlib.h:305:10: note: previous declaration of 'hmac' was here
 ssize_t hmac(const char *, const void *, size_t, const void *, size_t, void *,
          ^~~~
gmake[3]: *** [Makefile:4186: gnunet-communicator-tcp.o] Error 1
gmake[3]: Leaving directory '/home/ng0/src/gnunet/gnunet/src/transport'
gmake[2]: *** [Makefile:554: all-recursive] Error 1
gmake[2]: Leaving directory '/home/ng0/src/gnunet/gnunet/src'
gmake[1]: *** [Makefile:608: all-recursive] Error 1
gmake[1]: Leaving directory '/home/ng0/src/gnunet/gnunet'
gmake: *** [Makefile:498: all] Error 2
TagsNo tags attached.
Attached Files
config.log (486,965 bytes)

Activities

nikita

2019-02-09 16:28

reporter   ~0013632

Note that my way of building might still be off, these are first attempts to document what's needed.

nikita

2019-02-09 21:52

reporter   ~0013634

someone in #pkgsrc says that NetBSD provides a hmac in a too visible header which was complained about too late.

my understanding after a short chat is that every time hmac appears, they patch it to something else. It doesn't occur too often, but it causes problems.

My proposal, since this part of gnunet is very recent, is to call it 'gnunet_hmac'.

nikita

2019-02-09 21:56

reporter   ~0013635

Rename to fix is the recommended solution here, because otherwise I have to patch-to-rename-to-fix in the pkgsrc package for gnunet I'm working on refreshing.
probably no other OS is bothered by this fix.

Christian Grothoff

2019-02-09 21:59

manager   ~0013636

Indeed. Will do.

Christian Grothoff

2019-02-09 22:00

manager   ~0013637

Fixed in 25c5d5e5a..a9a0d8fde

Issue History

Date ModifiedUsernameFieldChange
2019-02-09 16:26nikitaNew Issue
2019-02-09 16:28nikitaNote Added: 0013632
2019-02-09 17:01nikitaFile Added: config.log
2019-02-09 21:52nikitaNote Added: 0013634
2019-02-09 21:52nikitaAssigned To => Christian Grothoff
2019-02-09 21:52nikitaStatusnew => feedback
2019-02-09 21:56nikitaNote Added: 0013635
2019-02-09 21:56nikitaStatusfeedback => assigned
2019-02-09 21:59Christian GrothoffNote Added: 0013636
2019-02-09 22:00Christian GrothoffNote Added: 0013637
2019-02-09 22:00Christian GrothoffStatusassigned => resolved
2019-02-09 22:00Christian GrothoffResolutionopen => fixed
2019-02-09 22:00Christian GrothoffFixed in Version => 0.11.0
2019-02-09 22:01Christian GrothoffProduct Version => Git master
2019-02-09 22:01Christian GrothoffTarget Version => 0.11.0
2019-02-28 10:17Christian GrothoffStatusresolved => closed