Source: epstool
Version: 3.08+repack-6
Severity: important
Tags: patch

https://buildd.debian.org/status/fetch.php?pkg=epstool&arch=ia64&ver=3.08+repack-6&stamp=1518522907&raw=0

...
In file included from /usr/include/ia64-linux-gnu/bits/siginfo-consts.h:184:0,
                 from /usr/include/signal.h:58,
                 from /usr/include/ia64-linux-gnu/sys/wait.h:36,
                 from ./src/epstool.c:42:
/usr/include/ia64-linux-gnu/bits/siginfo-consts-arch.h:39:17: error: 
'TRAP_TRACE' undeclared here (not in a function); did you mean '_SC_TRACE'?
   TRAP_BRANCH = TRAP_TRACE + 1,
                 ^~~~~~~~~~
                 _SC_TRACE
./src/epstool.c: In function 'calc_device_size':
./src/epstool.c:1716:9: warning: variable 'code' set but not used 
[-Wunused-but-set-variable]
     int code = 0;
         ^~~~
./src/epstool.c: In function 'epstool_dcs2_composite':
./src/epstool.c:1909:9: warning: variable 'hires_bbox_valid' set but not used 
[-Wunused-but-set-variable]
     int hires_bbox_valid = 0;
         ^~~~~~~~~~~~~~~~
src/common.mak:205: recipe for target 'epsobj/epstool.o' failed
make[1]: *** [epsobj/epstool.o] Error 1



Fix attached.
Description: src/cplat.h: Don't define __USE_GNU
 There were two things wrong with it:
 - __USE_GNU is glibc-internal, the external
   define is _GNU_SOURCE
 - defining such macros after the first include
   is wrong, in this case it caused FTBFS on ia64
 .
 An option would be to to pass -D_GNU_SOURCE
 when building, but as far as I can see the
 define was not (anymore?) needed at all.
Author: Adrian Bunk <b...@debian.org>

--- epstool-3.08+repack.orig/src/cplat.h
+++ epstool-3.08+repack/src/cplat.h
@@ -114,7 +114,6 @@ typedef struct POINT_s {
 typedef struct _GdkRgbCmap GdkRgbCmap;
 # endif
 # include <unistd.h>
-# define __USE_GNU     /* we might need recursive mutex */
 # include <semaphore.h>
 # include <pthread.h>
 # define ZLIBNAME "libz.so"

Reply via email to