Source: redeclipse Version: 1.4-4 Severity: important Tags: patch User: debian-h...@lists.debian.org Usertags: hurd Control: forwarded -1 https://sourceforge.net/apps/trac/redeclipse/ticket/546
Hi, redeclipse fails to compile on GNU/Hurd[1]. The problem is that, when libc provides the _POSIX_SHARED_MEMORY_OBJECTS define, shm_* is used, which is implemented in librt (currently linked only on Linux). Easy fix, which is also what I reported upstream[2], is to link to rt when the platform string contains "GNU" (i.e. on GNU-based OSes, which are using GNU libc). Patch attached here too. [1] https://buildd.debian.org/status/fetch.php?pkg=redeclipse&arch=hurd-i386&ver=1.4-4%2Bb1&stamp=1371254602 [2] https://sourceforge.net/apps/trac/redeclipse/ticket/546 Thanks, -- Pino
--- a/src/core.mk +++ b/src/core.mk @@ -71,6 +71,9 @@ endif ifeq ($(PLATFORM),Linux) CLIENT_LIBS+= -lrt endif +ifneq (,$(findstring GNU,$(PLATFORM))) +CLIENT_LIBS+= -lrt +endif CLIENT_OBJS= \ shared/crypto.o \ shared/geom.o \