View Issue Details

IDProjectCategoryView StatusLast Update
0005539GNUnetGNSpublic2019-02-28 10:17
Reporterschanzen Assigned Toschanzen Due Date
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
OSmacOSOS VersionMojave 
Product VersionGit master 
Target Version0.11.0Fixed in Version0.11.0 
Summary0005539: No memrchr in macOS, FTBFS
DescriptionFTBFS on macOS.
I thought this compiled before, but after some googling I saw a few issued where memrchr is implemented specifically for macOS.
See also: https://www.gnu.org/software/gnulib/manual/html_node/memrchr.html

Hence, we either need to implement our own like here https://github.com/opsengine/cpulimit/pull/11/files

or not use memrchr.
TagsNo tags attached.

Activities

schanzen

2019-02-04 13:40

administrator   ~0013589

Actually, we already have an implementation inside gns/gnunet-service-gns_resolver.c
This should be moved up into, I guess, platform.h?

Christian Grothoff

2019-02-04 21:04

manager   ~0013599

We have plibc.h and winproc.h for W32-stuff. Maybe create an osxproc.h, #include that from platform.h. In the osxproc.h, #define memrchr to GN_memrchr_ and declare a GN_memrchr_ prototype, then add implementation to util/osxproc.c. At least that would seem like the sanest approach to me right now...

schanzen

2019-02-05 05:50

administrator   ~0013600

Ok. But you also add a memrchr in case of Windows in gns_resolver.c:
---
#if (defined WINDOWS) || (defined DARWIN)
---

 So I guess it needs to go in someplace more generic?

schanzen

2019-02-05 07:53

administrator   ~0013601

Fixed in 395be9a8fb85d172dcbb06826aed8b5b29ceeac2

Issue History

Date ModifiedUsernameFieldChange
2019-02-04 10:57schanzenNew Issue
2019-02-04 13:40schanzenNote Added: 0013589
2019-02-04 15:11schanzenSeverityminor => major
2019-02-04 21:04Christian GrothoffNote Added: 0013599
2019-02-04 21:05Christian GrothoffProduct Version => Git master
2019-02-04 21:05Christian GrothoffTarget Version => 0.11.0
2019-02-05 05:50schanzenNote Added: 0013600
2019-02-05 07:53schanzenAssigned To => schanzen
2019-02-05 07:53schanzenStatusnew => resolved
2019-02-05 07:53schanzenResolutionopen => fixed
2019-02-05 07:53schanzenFixed in Version => Git master
2019-02-05 07:53schanzenNote Added: 0013601
2019-02-16 10:54Christian GrothoffFixed in VersionGit master => 0.11.0
2019-02-28 10:17Christian GrothoffStatusresolved => closed