MidnightBSD Magus

devel/chrpath

Tool to modify DT_RPATH in existing ELF binaries

Flavor Version Run OSVersion Arch License Restricted Status
0.18 639 4.0 amd64 gpl2 0 fail Reset Port

License Permissions: dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

Events

Machine Type Time Message
m4064b info 2026-05-21 13:21:04.94994 Test Started
m4064b warn 2026-05-21 13:21:24.805235 MASTER_SITES contains non-HTTPS URLs: http://deb.debian.org/debian/pool/main/c/chrpath/, http://ftp.am.debian.org/debian/pool/main/c/chrpath/, http://ftp.au.debian.org/debian/pool/main/c/chrpath/, http://ftp.at.debian.org/debian/pool/main/c/chrpath/, http://ftp.by.debian.org/debian/pool/main/c/chrpath/ and 35 more
m4064b fail 2026-05-21 13:21:24.813559 make build returned non-zero: 1
m4064b fail 2026-05-21 13:21:24.866166 Test complete.

Log

===>  Building for chrpath-0.18
/usr/local/bin/gmake  all-recursive
gmake[1]: Entering directory '/magus/work/usr/mports/devel/chrpath/work/chrpath'
Making all in testsuite
gmake[2]: Entering directory '/magus/work/usr/mports/devel/chrpath/work/chrpath/testsuite'
cc -Wl,-R /usr/local/lib -o prog prog.c
gmake[2]: Leaving directory '/magus/work/usr/mports/devel/chrpath/work/chrpath/testsuite'
Making all in deb
gmake[2]: Entering directory '/magus/work/usr/mports/devel/chrpath/work/chrpath/deb'
gmake[2]: Nothing to be done for 'all'.
gmake[2]: Leaving directory '/magus/work/usr/mports/devel/chrpath/work/chrpath/deb'
gmake[2]: Entering directory '/magus/work/usr/mports/devel/chrpath/work/chrpath'
cc -DHAVE_CONFIG_H -I.     -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -W -Wall -Wcast-align -Wcast-qual -Wcomments -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -MT chrpath.o -MD -MP -MF .deps/chrpath.Tpo -c -o chrpath.o chrpath.c
cc -DHAVE_CONFIG_H -I.     -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -W -Wall -Wcast-align -Wcast-qual -Wcomments -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -MT killrpath.o -MD -MP -MF .deps/killrpath.Tpo -c -o killrpath.o killrpath.c
cc -DHAVE_CONFIG_H -I.     -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -W -Wall -Wcast-align -Wcast-qual -Wcomments -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
cc -DHAVE_CONFIG_H -I.     -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -W -Wall -Wcast-align -Wcast-qual -Wcomments -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -MT elf.o -MD -MP -MF .deps/elf.Tpo -c -o elf.o elf.c
In file included from main.c:26:
./protos.h:36:3: error: typedef redefinition with different types ('union Elf_Ehdr' vs 'Elf64_Ehdr')
   36 | } Elf_Ehdr;
      |   ^
/usr/include/sys/elf_generic.h:66:1: note: previous definition is here
   66 | __ElfTyIn file included from killrpath.c:31:
./protos.hpe(Ehdr);
      | ^
:36:3: error: typedef redefinition with different types ('union Elf_Ehdr' vs 'Elf64_Ehdr')
/usr/include/sys/elf_generic.h:56:40: note: expanded from macro '__ElfType'
      56 | #d36 | } Elf_efine __ElfType(x)    typedef __EEhdr;
      |   ^
lfN(x) __CONCAT(Elf_,x)
      |                                           ^
/usr/include/sys/elf_generic.h:66:1: note: previous definition is here
   66 | __ElfType(/usr/include/sys/cdefs.h:150:23: note: expanded from macro '__CONCAT'
Ehdr);
      | ^
  150 | #define __CONCAT(x,y)   __CONCAT1(x,y)
      |                         ^
/usr/include/sys/cdefs.h:149:24: note: /usr/include/sys/elf_generic.h:56:40: note: expanded from macro '__ElfType'
expanded from macro '__CONCAT1'   56 | 
#define  149 | # __ElfType(x)    define __CONCAT1(x,y)  x ## y
      |                         ^
typedef __ElfN(x) __CONCAT(Elf_,x)
:52:1: note:       |                                           ^
expanded from here
   52/usr/include/sys/cdefs.h:150:23: note:  | Elf_Ehdrexpanded from macro '__CONCAT'

      | ^
  150 | #define __CONCAT(x,y)   __CONCAT1(x,y)
      |                         ^
In file included from main.c:/usr/include/sys/cdefs.h:149:24: note: 26:
./protos.h:41:3: error: expanded from macro '__CONCAT1'
typedef redefinition with different types ('union Elf_Shdr' vs 'Elf64_Shdr')
  149 | #define __CONCAT1(x,y)  x ## y
         41 | |                         ^
} El:46:1: note: f_Shdr;
expanded from here
   46 | Elf_EhdrIn file included from elf.c:      |   ^

      | ^/usr/include/sys/elf_generic.h:67
25:
./protos.h:36:3: error: typedef redefinition with different types ('union Elf_Ehdr' vs 'Elf64_Ehdr')
In file included from killrpath.c:1::   36 note: previous definition is here
31:
./protos.h:41:3: error: typedef redefinition with different types ('union Elf_Shdr' vs 'Elf64_Shdr')
   41 | } Elf_Shdr;
      |   ^
 | } Elf_Ehdr;
      |   ^
/usr/include/sys/elf_generic.h:/usr/include/sys/elf_generic.h:66:1: note: previous definition is here
   66 | _67:1: note:    67 | __ElfTy_ElfType(Ehdr);
      | ^
previous definition is here/usr/include/sys/elf_generic.h:56:40: note: expanded from macro '__ElfType'

pe(Sh   56dr);
      | ^
 | #define/usr/include/sys/elf_generic.h :__ElfType(x)    typede   67 | f_ In file included from __Echrpath.c_56ElfType(Shdr);
      | ^
l/usr/include/sys/elf_generic.h:56:40::fN(x)  __CONnote: CAT(Eexpanded from macro '__ElfType'lf_,
x   )
      |                                           ^
56 | #de56fine __ElfTy:
pe./protos.h:36:3: error: typedef redefinition with different types ('union Elf_Ehdr' vs 'Elf64_Ehdr')
(x)   36 | } Elf_Ehdr/usr/include/sys/cdefs.h:150:23: note: expanded from macro '__CONCAT'
  150 | #define __CONC;
      |   ^
AT(x,y)   __/usr/include/sys/elf_generic.h:66CONCA:1: T1(x,note: previous definition is here
y    typedef __ElfN):40: note: expanded from macro '__ElfType'

      |                         ^
   66 | /usr/include/sys/cdefs.h:149:24: (x)_ __CONCAT(Elf_,   56x)
      |                                           ^
_note: /usr/include/sys/cdefs.h:150:23: note: expanded from macro '__CONCAT'
E | lfTexpanded from macro '__CONCAT1'
yp  150 | #define __CONCAT(x,y)   __CONCAT1(x,y)
      |                         ^
  /usr/include/sys/cdefs.h:149:24: note: expanded from macro '__CONCAT1'e(Eh149 | #defind
re __CONCAT1(x,y)  x ## y
      |                         ^
  :40:1: note: expanded from here#define __ElfType(x)    ty149 | #define __
C   40 | OElf_E)hdr
      | ;^

      | ^
p/usr/include/sys/elf_generic.h:56:40: enote: expanded from macro '__ElfType'
NIn file included from delf.c:25:
./protos.h:41:   CAT13: 56 | #deferror: typedef redefinition with different types ('union Elf_Shdr' vs 'Elf64_Shdr')
(   x,y)  x 41ine __ElfType(x)    typ# | e# y
      |                         ^
e} Elf_Shdr;
      |   ^
f/usr/include/sys/elf_generic.h:67:1: note:  previous definition is here
   67 | __:__ElfN(x) __CONCATElfT50ype(Shdr);
      | ^
:1: note: expanded from here
/usr/include/sys/elf_generic.h:   def __ElfN5056:40: note: expanded from macro '__ElfType'
(x)    56 | #define ___Elf_CONCAT(ETlf_,x)
      |                                           ^
(Elf_,x)
      | /usr/include/sys/cdefs.hype(:x150)    typed | :                                          ^
23: note: eE/usr/include/sys/cdefs.hl:f __ElfN(fx) _150_:_expanded from macro '__CONCAT'CONCAT(Elf_,x)
      |                                           ^
S23: hnote: dr
      | ^
expanded from macro '__CONCAT'

/usr/include/sys/cdefs.h:150:23: note: expanded from macro '__CONCAT'
    In file included from 150 | #  150 | #defikillrpath.c150 | #:dene __dCf31:
./protos.h:46eONCAT(x,y)   _ifine __CONCAT(x_,y)   __CONCAT1(x,y)
      |                         ^
ne __CONCATCONCAT1(x,/usr/include/sys/cdefs.hy)
      :|                         ^
(:x,y)   __CO/usr/include/sys/cdefs.h:149:3N:C14924: note: expanded from macro '__CONCAT1'
:24: note: expanded from macro '__CONCAT1'
 error: typedef redefinition with different types ('union Elf_Phdr' vs 'Elf64_Phdr')
AT1(x,y)
      |                         ^
   /usr/include/sys/cdefs.h:46  149  :149 | #define __C | } Elf_O149Phdr;
 | #defi24ne: note: expanded from macro '__CONCAT1'
      |     ^149 | #define __CONCAT1(
x/usr/include/sys/elf_generic.h: __CONCAT1(NCAT1(x,y)x  ,y)  x,68y)  x ## y
      |                         ^
 x ## y
:1: note: previous definition is here
   68 | _:_      E56:1: note: expanded from here
|                         ^
l## y
      |                         ^
:44fType:46:1: note: expanded from here
      46:56(1: note:  |  | Elf_Eexpanded from herePhdr);
      
| ^
/usr/include/sys/elf_generic.h:Elf_Shdr
      | ^
56:40: note: expanded from macro '__ElfType'
hdr
      | ^
   44 | Elf_   56 | #defSihdr
      | nIn file included from eIn file included from main.c^:
26:
./protos.hchrpath.c:In file included from elf.c:25:
./protos.h:46:3: error: typedef redefinition with different types ('union Elf_Phdr' vs 'Elf64_Phdr')
56:
./protos.h:41:3: error: typedef redefinition with different types ('union Elf_Shdr' vs 'Elf64_Shdr')
:46:3:    __ElfType(x)     error: typetypedef redefinition with different types ('union Elf_Phdr' vs 'Elf64_Phdr')d
ef __E   l   4146 | 46 | } | } E} Elff_Phdr;N
      |   ^
 El/usr/include/sys/elf_generic.h:68:1: note: flf(previous definition is here
   _68Phdr; | x)__ _ElfType
      |   ^(_Phdr)
_CO;
      | ^
/usr/include/sys/elf_generic.h:56:40: note: expanded from macro '__ElfType'
   56 | #deSfNCAine h_d_ElfType(x)r    Ttypedef __E(lE/usr/include/sys/elf_generic.h:lf68_;f,x
)
      |                                           ^
:N1(x)       : note: previous definition is here
_/usr/include/sys/cdefs.h:150:23: note: expanded from macro '__CONCAT'
|   ^
   68 |   150 | _CONCAT(Elf_,x)
      |                                           ^
_/usr/include/sys/elf_generic.h_ElfT/usr/include/sys/cdefs.hype(#:dP:hdr);
      | ^
67:1: note: previous definition is here
   67 | _150_ElfType(Shdr);
      | ^
/usr/include/sys/elf_generic.h:56:40: efi:ne __CONCAT(x23: note: expanded from macro '__CONCAT'
,y)   __CO  N150 | #de/usr/include/sys/elf_generic.h:56:40: note: expanded from macro '__ElfType'
fin   note: expanded from macro '__ElfType'Ce __CONCAT(x,y)   __CONCAT1(x,y)
      |                         ^
56
 | #definAT1(x,y)
      |                         ^
/usr/include/sys/cdefs.h:149:24: note: expanded from macro '__CONCAT1'
e/usr/include/sys/cdefs.h __ElfType(x)    typede   f56 |  __ElfN(x)   __CON#define __ElCAT(149 | f#Tdype(e:fine __CONCAT1(x,y)  x149 :x24: note: expanded from macro '__CONCAT1'
)    typeElf_def __ElfN(x) __CONCAT(Elf_,x)
      |                                           ^
#,x)
#         |                                           ^
/usr/include/sys/cdefs.h:150:23: note: expanded from macro '__CONCAT'
  y149
 | #define __CO      NCA150/usr/include/sys/cdefs.h | #|                         ^T1(d:ef
150:23: note: expanded from macro '__CONCAT'
x,y)  ine __CONCAT  (x,y)   __CONCAT1(x,150y)
      |                         ^
 | #define :54:1:x note: expanded from here
 _#_CONCAT(x,y)   __CONCAT1(x,y)
      | /usr/include/sys/cdefs.h:149:24:                         ^
   54 | # y
      |                         ^
note: Eexpanded from macro '__CONCAT1'lf_Phdr
      | ^
:60:1: note: expanded from here

   60 | El  149 | #define __CON/usr/include/sys/cdefs.hCAT1(x,y):149:24: note: expanded from macro '__CONCAT1'
f    x ## 149y
 | #define __CO      |                         ^
_:48:1: note: expanded from here
   48 | Elf_Phdr
N      CAT1Phdr
      | | (^
x,y)  x ## y
      ^
|                         ^
:50:1: note: expanded from here
   50 | Elf_Shdr
      | ^
In file included from chrpath.c:56:
./protos.h:46:3: error: typedef redefinition with different types ('union Elf_Phdr' vs 'Elf64_Phdr')
   46 | } Elf_Phdr;
      |   ^
/usr/include/sys/elf_generic.h:68:1: note: previous definition is here
   68 | __ElfType(Phdr);
      | ^
/usr/include/sys/elf_generic.h:56:40: note: expanded from macro '__ElfType'
   56 | #define __ElfType(x)    typedef __ElfN(x) __CONCAT(Elf_,x)
      |                                           ^
/usr/include/sys/cdefs.h:150:23: note: expanded from macro '__CONCAT'
  150 | #define __CONCAT(x,y)   __CONCAT1(x,y)
      |                         ^
/usr/include/sys/cdefs.h:149:24: note: expanded from macro '__CONCAT1'
  149 | #define __CONCAT1(x,y)  x ## y
      |                         ^
:54:1: note: expanded from here
   54 | Elf_Phdr
      | ^
elf.c:97:16: error: no member named 'e32' in 'Elf64_Ehdr'
chrpath.c   :68:2597 |    i: error: no member named 'e32' in 'Elf64_Ehdr'
f ((size_t)EHDR   _PHS(e_p68 |   cohentsize) nst size_t sh_off = !EHDRWU(e_shoff);
      |                         ^~~~~~~~~~~~~~~
killrpath.c= :61:18: error: 3no member named 'e32' in 'Elf64_Phdr'
 errors generated.
   61 |    dyns = malloc(PHsDR(p_memsz));
      |                  ^~~~~~~~~~~~~
z./protos.h:62:./protos.h_phdr)
      |                ^~~~~~~~~~~~~~~~~~~~~
:45elf.c: :note: expanded from macro 'PHDR'
28   62:50: note: 60:47: note: expanded from macro 'EHDRWU'
 | #def   expanded from macro 'EHDR_PHS'
60 | #define Eine PHDR(xHDRWU(x) (is_e32()) ? DO_SWAPU32(phdr.e32.x) : DO_SWAP    (is_e328 | U64(phdr.e64.x))
      |                                        ~~~~ ^2
#def() ? DO_Sine EHD./protos.h:52:41: note: expanded from macro 'DO_SWAPU32'
R_PHS(x) (is_   52 | #WdefinAe DO_SWAPU32(Pe32(x) (U !swap_bytes() ? x : (uint32_t))32(eh b? DO_SWAPS16(ehdr->e32.x) swap_32(x) dr.e32.x) : DO_SWAPU64(ehdr.e: DO64.x))
      |                                          ~~~~ ^
gmake[2]: *** [Makefile:504: main.o] Error 1
./protos.h:52:41: note: expanded from macro 'DO_SWAPU32'
gmake[2]: *** Waiting for unfinished jobs....
_SWAPS16(ehdr->   52 | #dee64.x))
      |                                            ~~~~  ^
f./protos.h:54:41: note: expanded from macro 'DO_SWAPS16'
ine DO_SWAPU3   2(x)54 | #d ( !swaefine Dp_bytes() ? x :O_S )
(      |                                         ^
uint32_t)bswap_32(x) )
WAPS16      |                                         ^
killrpath.c(x) ( !swap_bytes() ? x : :chrpath.c:68:25: error: no member named 'e32' in 'Elf64_Ehdr'
61:   68 |   const size_t sh_off = EHDRWU18: error: (e_sno member named 'e32' in 'Elf64_Phdr'
(int16_t)b   61 |    dyns =swap_1hoff);
      |                         ^~~~~~~~~~~~~~~
6./protos.h: ma(xlloc(60:47: note: expanded from macro 'EHDRWU'
PHDR(p_memsz));
      |                  ^~~~~~~~~~~~~
)./protos.h:62:45: note: expanded from macro 'PHDR'
   60 | #define EHDRWU(x )
      |                                         ^
) (is_e32() ? D   62 | #definO_SWAPU32(ehdr.e32.x) : DO_SWAPU64(ehdr.e64.x))
      e PHDR(x) (is_eelf.c:97:16: error: no member named 'e32' in 'Elf64_Ehdr'
3   97 |    if ((s2ize_t)EHDR_PHS(e_| phentsize) != sz_                                         ~~~~ ^
./protos.h:52:64: note: expanded from macro 'DO_SWAPU32'
() ? Dphdr   )
      |                ^~~~~~~~~~~~~~~~~~~~~
Oelf.c:28:50: note: expanded from macro 'EHDR_PHS'52 | #d
e   28 | #define EHDfRine DO_PHS(x) (is_e3_SWA_SWAPU23P2U(3ph2dr(.x() ? DO_SWAPS16(ehdr->e32.x) : DO_)S ( !swap_bytes() ? x :e 32W.x) : DO_SWAPS16A(ehd(uint32_t)bswap_32(PU64(phdr.r->e64e64.x))
      |                                        ~~~~ ^
.x))
      |                                            ~~~~  ^
./protos.h:54:63./protos.h:52:64: note: expanded from macro 'DO_SWAPU32'
x):    52 | #define DO_ note: expanded from macro 'DO_SWAPS16'
)
      SWAPU32(x) ( !swa   | 54 | #depf_ine DO_S                                                               ^W
A/usr/include/byteswap.h:38:31: note: expanded from macro 'bswap_32'
b   38 | #defiytesn(e bswap_32(x) __b)s w? x : P(uinta3p2_t)bswa3pS_16(x)32(x)2 )
      |                                                                ^
 (x)
      | ( !swap_                              ^
b/usr/include/sys/_endian.h:84:40:/usr/include/byteswap.hy:38:31: note: expanded from macro 'bswap_32' tes() ? x : (int16_t)bswanote: expanded from macro '__bswap32'
p_16
   (x) )
84 | #define       __bswap32(   |                                                               ^
38 | #definex b)s    wap_32/usr/include/byteswap.h_:37:31: _builtin_note: b(xswap3) __bswapexpanded from macro 'bswap_16'
32(x)
      |                               ^
   37 | #define bswap_/usr/include/sys/_endian.h:84:40: note: expanded from macro '__bswap32'
162(x)
      |                                           ^
   84 | #define _(x) ___chrpath.c:bswap16(x)68b
s:25: error: no member named 'e64' in 'Elf64_Ehdr'
         68 | w |  conap32(x)    __busit size_                              ^
lt/usr/include/sys/_endian.h:83:40:t inote: expanded from macro '__bswap16'
 shn_bswap32   (x83 | #define )
      |                                           ^
___bswap16(off = EHDRWU(e_shoff);
      | x)    __builtin_bswap16(x)
      |                                           ^killrpath.c                        ^~~~~~~~~~~~~~~

:61:18:./protos.h :60:72: note: expanded from macro 'EHDRWU'error: no member named 'e64' in 'Elf64_Phdr'

   61 |    dyns   60elf.c:97:16: error: no member named 'e64' in 'Elf64_Ehdr'
 |     = malloc(P97 |    if ((s#define EHiDRWU(x) (is_e32() ?ze_t)EHDR _PHDR(p_memDsOz_HS(e)_);phentsizSe) != sz_phdr)
      |                  ^~~~~~~~~~~~~
WAPU32(eh
      |                ^~~~~~~~~~~~~~~~~~~~~
dr.elf.c./protos.he:62:70: note: expanded from macro 'PHDR'
:328:76:    262note: expanded from macro 'EHDR_PHS'
.   28 | #define E | H#DRx) : DO_SWAPU64defin(_PHS(x) (is_e32()e PHDR(x) (is_e32() ? DO_SW APU32(?p DO_hdr.e32.x) : DO_SWAPeSWAPS16U64(phhddrr.e64.x.)e64.x))
      )|                                                                   ~~~~ ^

      |                                                                 ~~~~ ^
./protos.h:53:41: note: ./protos.h:53:41: note: expanded from macro 'DO_SWAPU64'
expanded from macro 'DO_SWAPU64'(
e   53 | #   53 | #define dDeO_SWAPU64(x) hdr->e32.x) : DO( !sfiwap_bynt_eeSWAPS16(ehdr->e64.x))
      |                                                                      ~~~~  ^
s ./protos.hDO():54 ? x_ : (uiSnWtA64_t)PbU64(sxw:a)p41: note: expanded from macro 'DO_SWAPS16'
_64(x) )
      |                                         ^   54 ( !swap_bytes() ? x : (ui
 | #nt64_t)bsdefine killrpath.cDO_SWAPSw16(x) ( !:61:18: error: no member named 'e64' in 'Elf64_Phdr'
swap_bap_64(x)   61 |    dyns = mal l)
      |                                         ^
ytes() o?cchrpath.c:68:25: error: no member named 'e64' in 'Elf64_Ehdr'
(PHDR(p_mem   68 |   csz));
      |                  ^~~~~~~~~~~~~
onst size_t sh_off = EHDR./protos.h:62:70: note: expanded from macro 'PHDR'
WU(e_shoff) ;
      |                         ^~~~~~~~~~~~~~~
x ./protos.h:60:72: note: expanded from macro 'EHDRWU'
: (int16_t   62 | #def   i60)bswap_16( | #define EHDnRWU(xx)e (is_e32() PHDR(x) (is_e32() ? DO _? DO_)SWAPU3 )
      |                                         ^
S2(eelf.c:WAPU9732(phdr.e32.x) : DO_SWAPU64(phdr.hedr.e64.x))
      |                                                                 ~~~~ ^
:16: error: no member named 'e64' in 'Elf64_Ehdr'
./protos.h32.x) : DO_SWAP   97 |    if ((siUze_t64(ehdr).e64.E:53:64: note: expanded from macro 'DO_SWAPU64'
x)HD)
      |                                                                   ~~~~ ^
R_PHS(e_phe   ./protos.h53: | 53:64: note: expanded from macro 'DO_SWAPU64'
n   53 | #dt#sizee) define DO_SWAPU64(x) ( !swap_bytes() ? fx != sz_phdine DO:r_S)
      |                ^~~~~~~~~~~~~~~~~~~~~
Welf.c:28:76: note: expanded from macro 'EHDR_PHS'
   28APU64(x) ( ! ( | u#define EHDR_PHS(x)swap_bytes() ? ixn t: (uint64_t)bs (iwap_64(s_e32()x) )
      |  ? DO                                                               ^
/usr/include/byteswap.h:39:31: note: expanded from macro 'bswap_64'
64_t)bswap_64(x) )
      |                                                                ^   39
 | /usr/include/byteswap.h:39:31: #note: expanded from macro 'bswap_64'
_   39 | #define bswap_64(x) __bswap64(x)
      |                               ^
SWAPS16(/usr/include/sys/_endian.h:d85:e40h:dr->eefine bswa pnote: _expanded from macro '__bswap64'6
32.x) : DO_SWAP4(x) _S16(ehdr->e   85 | #define ___bbs6wap64(x)
      |                               ^
sw4ap64(x)    __builtin_bswap64(x/usr/include/sys/_endian.h.x))
      |                                                                      ~~~~  ^:85:40
: note: expanded from macro '__bswap64'
./protos.h:54:63: note: expanded from macro 'DO_SWAPS16'
)   54 | #define DO_S   WAPS16(x) ( !
s      |                                           ^
85wap_bytes()  | #defi? x : (int16_t)bswne __bswap64(xap_16(x) )
      |                                                               ^
killrpath.c:68:20: error: no member named 'e32' in 'Elf64_Phdr'
/usr/include/byteswap.h:37:31)    __builtin_bswap64(x)
      |                                           ^
:    68 |    memset(dyns, 0, PHDRnote: expanded from macro 'bswap_16'
chrpath.c:69:31: error: no member named 'e32' in 'Elf64_Ehdr'
   37 | #define (p_m   69 |   ceomnbsz));
      |                    ^~~~~~~~~~~~~s
w./protos.h:ap_16(x) __bsswap1t size6(x)_t s62:e
      |                               ^
45c/usr/include/sys/_endian.htion:s83:40: note: expanded from macro '__bswap16': note: expanded from macro 'PHDR'
_   62 | #define PHDR(x) (isoff = _e32() E?H DDO_SWAPRU32(ph
dr.eW3U2.x) : D(e_shstr   ndx) * sz_shO_dSrW;APU6483( | #defin
e __bswap16(x)    __builtin_bswap16(x)phdr.e64.      x))
      |                                        ~~~~ ^

      |                                           ^
./protos.h| :                              ^~~~~~~~~~~~~~~~~~
52:41: note: expanded from macro 'DO_SWAPU32'
./protos.h:60:47elf.c:100:21: error: no member named 'e32' in 'Elf64_Ehdr'
:  100 |     note: expanded from macro 'EHDRWU'
            60 | #define EHDRW52  |  U(x) (is_e32() ? D (size_t)EH#DOR_PHS(e_p_hentsizdefine DO_SWAPSWeAPU32(), sz_phdr);ehdr.e3
U      32(x) (|                     ^~~~~~~~~~~~~~~~~~~~~
 !swap_bytes() ? x : (uint322._x) : DO_St)bswWap_32elf.c:28:50: note: expanded from macro 'EHDR_PHS'
(xA) )
P      U64(ehdr.e64|                                         ^.
x))
      |                                          ~~~~ ^
   28killrpath.c:68:20./protos.h:52 | #define EH:41: note: expanded from macro 'DO_SWAPU32'
:   52 | #deDR_PHS(x) (fis_e32() ? DO_Si error: no member named 'e32' in 'Elf64_Phdr'
W   68 |    memset(Ane DO_SWAPU3dyns, 0, PHDR(p_memsz2)(x));
      |                    ^~~~~~~~~~~~~
 ( !swap_bytes() ? PS16(ehdr-./protos.h:62:45:x>e32.x) :  : (uint32DO_SWA note: expanded from macro 'PHDR'
_PS16(et)bswap_   62 | #define PHDR(x) (ish_e32() dr->e64.x))
      ?|  DO_SWAPU32(phdr.e32.x) : DO_SWAPU64(phdr.                                           ~~~~  ^
./protos.h:54:41: note: expanded from macro 'DO_SWAPS16'
   54 | #define DO_SWAPe64.x))
      |                                        ~~~~ ^
S16(x) ./protos.h:52:64( !swap_b:y note: expanded from macro 'DO_SWAPU32'
tes() ? x : (int16_t)bswap_16(x) )
      |                                         ^
   52 | #define DO_SWAPU32(x) ( !swelf.c:100:21: error: no member named 'e32' in 'Elf64_Ehdr'
a  100 |             (size_t)EHpD_bytes() ? x R_PHS(e_phen:t size), sz_phdr);
      |                     ^~~~~~~~~~~~~~~~~~~~~
(elf.c:28:50: uint32_note: texpanded from macro 'EHDR_PHS'
)bswap_32(x) )
      |    28 | #define EHDR_PHS                                                               ^(
x) (is_e32() ? DO_S/usr/include/byteswap.h:38:31: note: WAPS16(ehdrexpanded from macro 'bswap_32'-
   38>e32.x) : | #define bswap_32(x) __bswap 3DO_SW2(x)
      |                               ^
APS1/usr/include/sys/_endian.h6(ehdr-:84:40: note: >e64.x))
      expanded from macro '__bswap32'| 
                                           ~~~~  ^
   84 | #define ./protos.h__bswap:54:633: note: expanded from macro 'DO_SWAPS16'
2(x)    __builtin_bswa   p54 | #define DO_SWAPS16(x) (3 2!swa(p_bytes(x)
      ) ? x : (int16_t)bswap_16(x) )
      |                                                               ^
3/usr/include/byteswap.h:37:|                                           ^
231: note: expanded from macro 'bswap_16'
(x) )   
      |                                         ^
killrpath.c:68:37 | #dechrpath.c:69:31: error: no member named 'e32' in 'Elf64_Ehdr'
20: error: no member named 'e64' in 'Elf64_Phdr'
   fine b69 |   coswap_16   n68s | (x) __b swt  ap16( x)
      |                               ^
memset(dysnize_t ssections_o,ff = EHDRWU(e_shstrndx) * sz_s/usr/include/sys/_endian.hhd r;
      |                               ^~~~~~~~~~~~~~~~~~
:./protos.h0:83:40: note: expanded from macro '__bswap16'
   83 | 60:47:#define __bswap16(x)    __bui, PH Dnote: R(p_memsz));
      |                    ^~~~~~~~~~~~~
l./protos.h:62:70expanded from macro 'EHDRWU':
 note: texpanded from macro 'PHDR'i
   60 | #den_bfine   62 | #defiswap16(x)
n      |                                           ^
 EHDe PHDR(x)elf.c:100:21: error: no member named 'e64' in 'Elf64_Ehdr'RW
   100 |             (size_t)EHU(x) ((is_e32()D ? DO_SWAPU32(ehdr.e32.x) : DO_SWAPU64(R_PHS(ei_phesnetsize)h, sz_phdr);
      |                     ^~~~~~~~~~~~~~~~~~~~~
_e32() ? elf.c:28:76:dr.e64.x)) note: expanded from macro 'EHDR_PHS'
DO_SWAPU32(   p28 | #define EHDR
      |                                          ~~~~ ^hdr.e32.x)
_./protos.h:52:64: note: expanded from macro 'DO_SWAPU32'
 P: DO_S   52 | #defineW ADPO_SWAPU3U2(6x4) ( !swapHS(x)(phdr.e (is_e32() ? DO6_4SWAPS16.x_(ehdr->e32.x) :byte))
      s|                                                                 ~~~~ ^
 DO_SWAPS./protos.h:(53:) ? x16(e41h:  :note:  expanded from macro 'DO_SWAPU64'
(uint32_t)bsw   d53r->e64.x))
      |                                                                      ~~~~  ^
./protos.h:54:41: note:  | expanded from macro 'DO_SWAPS16'#
de   fine54 | #defap_32(ix) )
      ne DO_SWAPS16( | D                                                               ^
O_SWAPU/usr/include/byteswap.h64:(38xx:31:) ()  !swap_bytes() ? x  ( !s:w note: (int1expanded from macro 'bswap_32'
ap_bytes() ? x : (ui   38nt6_t)bswap_16(x | #define bswa) )
64_t)b      s|                                         ^
wap_64(x) )
      |                                         ^
elf.c:100:21: error: no member named 'e64' in 'Elf64_Ehdr'
pkillrpath.c_32(x) __bswap32(x)
      :68:20|                               ^
:/usr/include/sys/_endian.h   :84error: no member named 'e64' in 'Elf64_Phdr':40: note: expanded from macro '__bswap32'

100   68 |    memset(dyns, 0, PH   DR(p_me | m     84       (sisz | #defie_t)EHDR_PHS(ez)n_phentsize), sz_phd);r
      |                    ^~~~~~~~~~~~~
e __bswap32./protos.h:62:70: note: expanded from macro 'PHDR');
      |                     ^~~~~~~~~~~~~~~~~~~~~

elf.c:28:76: note: expanded from macro 'EHDR_PHS'(
x)    __bu   ilti28 | #define EHDR_PHS(x) (is_e32() ? DO_S   62 | #define nP_Wbswap32(x)
      APS16(ehdr->He3|                                           ^
2.x) D: DO_SWAPSR16(ehdr->e(6x) (is_e32chrpath.c:69:31: error: no member named 'e64' in 'Elf64_Ehdr'
()   69 |   const size_t sections_off = EHDRWU(e_s4.x))
h      |                                                                      ~~~~  ^
 ? DO_./protos.hSWAPU32(phdr.estrndx32:54:63: .note: xexpanded from macro 'DO_SWAPS16'
))     54 | #d: DO_SWAP*U 6efine DO_SWAPS16(x) ( !4s(spwap_byhdr.e64z_shdr;
      |                               ^~~~~~~~~~~~~~~~~~
.x))
./protos.h:60:72:tes() ? x : note: expanded from macro 'EHDRWU'
      |                                                                 ~~~~ ^
./protos.h:53:64 :    60note:  | #defin(int16_t)bswap_16e(x) )expanded from macro 'DO_SWAPU64'
      |                                                               ^

/usr/include/byteswap.h:37:31: note: expanded from macro 'bswap_16'
   53 | #   d37  | #edeEHDRWU(x) (is_e3fine2() ? fine DO_SWAPU64(x) ( !swap_bytes () ? x : (uintDbswap_1O_SWAPU32(ehdr.e32.x) : DO_SWAPU64(ehdr.e64.x))
      |                                                                   ~~~~ ^
64_t)bswap_64(x) )
      | 6                                                               ^
(x) __bswap./protos.h16(x)
      |                               ^:53:41: 
note: /usr/include/byteswap.h:39:31/usr/include/sys/_endian.h:: 83:40:expanded from macro 'DO_SWAPU64' note: note: expanded from macro 'bswap_64'

   expanded from macro '__bswap16'
39   83 | #define bswa | #definp_64e(x) _   _bswap16(53 | #define DO_SxWAPU64(x) (  __b)s    wap64(x)
      |                               ^
__builtin_bswap16(x)
      |                                           ^
/usr/include/sys/_endian.h:85:40: note: expanded from macro '__bswap64'
!swa   p85_ | #define __bsbwytes() a? x : (uint64_telf.cp64(x)    :__builtin_bswap64(x)
111)bswap_6      4| (                                          ^x
):17: error: no member named 'e32' in 'Elf64_Ehdr'
 )
      |                                         ^
  111 |   if (lschrpath.c:69:31: error: no member named 'e64' in 'Elf64_Ehdr'
e   69 |   const size_t killrpath.csek:69:18: error: ections(_off = Eno member named 'e32' in 'Elf64_Phdr'H
D   69 |    if (lsefed, EHDkR(_PWU(e_phoff), SfEEK_SET) == d-, PHDRR(p_o1WU(fefset), SEEK_SET)_ sh)
      |                 ^~~~~~~~~~~~~~~~~
== -1
      |                  ^~~~~~~~~~~~~~elf.c
s:30./protos.h::50: note: expanded from macro 'EHDR_PWU'
t   30 | #define rndx) * sz_shdr;
      |                               ^~~~~~~~~~~~~~~~~~
62:45: note: expanded from macro 'PHDR'
./protos.hEHDR   62 | #defi_nePWU(x) :(is_60:72: note: expanded from macro 'EHDRWU'
 PHDR(x) (is_e32() ? DeO3_SWAPU322(() ? DO_SW   AP60 | #deUp32(ehdr->e32.x) :h dDr.e32fine EO_SWAPU64H(e.hdr->e64.x))
      |                                            ~~~~  ^
DRWU./protos.h(x) (is_e3x2): :52:41: note: expanded from macro 'DO_SWAPU32'
() ?  DO_SWAPU32(ehdr   .e32.x) :52 | #define DO_SDW DO_SWAPU32(x) ( !sAPU64(ehdrO_SWAPU64.(phdr.e64.x))
      | w                                       ~~~~ ^ae6p
_byte./protos.h:52:41: note: sexpanded from macro 'DO_SWAPU32'(
4.x))
   52) ? x |  : (uint32_t)bswap      |                                                                   ~~~~ ^
#defin_e3./protos.h2( x) )DO_S
W      A|                                         ^
P:53:64: note: expanded from macro 'DO_SWAPU64'
Uelf.c:111:17: error: no member named 'e32' in 'Elf64_Ehdr'
3  111 |   if (lseek(fd, EHDR_PWU(e_phoff), SEEK_SET) == -1)
      |                 ^~~~~~~~~~~~~~~~~
2(x) ( !swap_bytes() ? x : (uint32_t)bswapelf.c:30:50_32(x) ): note: expanded from macro 'EHDR_PWU'
   
   53 |       #| 30                                        ^ | define 
D#defineO_SWAPU64(x)  Ekillrpath.cHDR_PWU(x) (is(_ e32(): ?!69:18:s werror: no member named 'e32' in 'Elf64_Phdr'
    69 |  DO_SWAPU3  if (lseek2(fd,a pPHDR(p_o(fehdr_->e32.x) : DO_Sbytesf() ? x :set), SEWAPU64(ehdr-> e64.x(uEK)_)
      |                                            ~~~~  ^
SET) == -1
i      ./protos.h:52:64: note: nt64_t)bsexpanded from macro 'DO_SWAPU32'
wap_64(x)   52 | #define DO_SWA| PU32                 ^~~~~~~~~~~~~~
 ./protos.h:62:45: note: (x) )( !swaexpanded from macro 'PHDR'

         62 | #define PHDR| (                                                               ^
p/usr/include/byteswap.hx) (is_e32()_ b?y tes() ? x D: :(uint339:31: note: expanded from macro 'bswap_64'
   39 | #defin2_t)bswap_32(x) )O
      |                                                                ^
_SWAe bs/usr/include/byteswap.h:38:31: wap_64(x) __bswPU32(pahpdnote: r64(x)
      .|                               ^expanded from macro 'bswap_32'
   38 | #defe32.x) : DO_SWA
i/usr/include/sys/_endian.hne bswap_32(x):85:40PU64(phd:r.e64.x))
      |                                        ~~~~ ^
 __bswap32(x)
      |                               ^
./protos.h /usr/include/sys/_endian.h:52note: :64: note: expanded from macro 'DO_SWAPU32'
expanded from macro '__bswap64'
   52 | #de   85:84:40: note: expanded from macro '__bswap32' | #defifinen e __bswap64(x)    __bDuO_SWAPU32(x) ( !s
wap_bytes() ? x    :84 | #def ine i__bswap32(x)    __bltin_bswapu64(x)
      |                                           ^
(uiltin_bswap32(x)
      |                                           ^
int32_t)bswap_32(x) )
      |                                                                ^
elf.c/usr/include/byteswap.h::38111::3117: note: expanded from macro 'bswap_32': error: no member named 'e64' in 'Elf64_Ehdr'

   38 | #  111 |   diefchrpath.c:84:36:fine  ( lseek(fd,error:  EHDR_no member named 'e32' in 'Elf64_Shdr'
P   WU84 | (e  char* stbrstwa_bphoff), Sap_32(x) __bswap32(x)
      |                               ^
EEK_SET) ==  -1)
      =|                 ^~~~~~~~~~~~~~~~~
 /usr/include/sys/_endian.h:84:40: note: expanded from macro '__bswap32'
(c   84 | #deelf.cfine __bswhaapr *)calloc(1,:30:76: note: expanded from macro 'EHDR_PWU'
    30 | SHDR_O(sh_size)+312#define EHDR_PWU(x) (is_e32(x)    __(builtin_bswap32(x)
      |                                           ^
) ? );
      |                                    ^~~~~~~~~~~~~~~
DO_SWAPkillrpath.c./protos.hU32(ehdr->e32.x) : DO_SW:69:18: APU64(ehdr->:e64.64error: no member named 'e64' in 'Elf64_Phdr'x))
      |                                                                      ~~~~  ^

:   69 |    if (lseek(fd, PHDR(p_offset), SE47EK_SET) == -1
      |                  ^~~~~~~~~~~~~~
: note: expanded from macro 'SHDR_O'./protos.h
:   64 | #define SH62DR_O(x./protos.h) (is_e32() ?:53:41 : note: expanded from macro 'DO_SWAPU64'
:   7053: |  #note: dexpanded from macro 'PHDR'
D   62O | _#SWAPU32(shdr.e32.x) : efine DO_SWADPU64(definOe_ PSWAPUxHDR(x) (is_e32() ? D6O4_(shdr.e64S.Wx))
A      PU| 32(phdr.e32.x) ( !sw                                         ~~~~ ^
./protos.h:52:41: note: expanded from macro 'DO_SWAPU32'
ap_bytes()) ? x : (u int6   4_t)52 | #bswap_64(xdefine DO_) )
      |                                         ^
S: DOW_SWAAPPU32U(6xelf.c) ( !swap_bytes()4(phdr ? x : (uint:32_t)bswap_32(x) )
      | .                                        ^111:17: error: no member named 'e64' in 'Elf64_Ehdr'
e6
4  111 |   if (ls.eek(fd, Echrpath.c:84:36: error: no member named 'e32' in 'Elf64_Shdr'
x))
      |                                                                 ~~~~ ^
H./protos.hD   84 |   char* sR_PWtU:(e_phoff), SrEEK_SET)53:41: note: expanded from macro 'DO_SWAPU64'
 =   53 | #define=t - DO_SWaAPU64(b = (char *)1)
      |                 ^~~~~~~~~~~~~~~~~
xelf.c:30:76: note: expanded from macro 'EHDR_PWU'
) ( !swap_bytes() ? x : c(a   uint64_t)bswalpl30 | #o_64(x) )
      |                                         ^
define EcH(1, SHDR_O(sh_size)killrpath.cD+1);
      R_PWU(x) (is_e32(:69): ? DO_SW|                                    ^~~~~~~~~~~~~~~
18./protos.h:64:47:: error: no member named 'e64' in 'Elf64_Phdr'
A   69 |  PU32(ehdr- >e32.x)   if :(note: expanded from macro 'SHDR_O'
    lseek(fd,64 | #dD O_ePfine SHDHDR(p_offset), SEESKRWAPU64(ehdr->e64.x)_)
      | S                                                                     ~~~~  ^
ET) _=O=./protos.h :(x-153:64: note: expanded from macro 'DO_SWAPU64'

) (is_e32() ? DO      _| S                 ^~~~~~~~~~~~~~
W./protos.h:62:70: note: expanded from macro 'PHDR'
AP   U32(shdr.e32.x) : DO_53 | #de   62fine DO | S#_SWAPU64(x) ( !swap_bytesd(W) ? x APU64(sh: (uint64_tefine PHDR(x) (is_edr.e64.x)32)() ? 
      |                                          ~~~~ ^
DO_SWAPU32)(bswap_64(x) phdr)
      |                                                                ^
.e/usr/include/byteswap.h:39:./protos.h:52:64: note: expanded from macro 'DO_SWAPU32'
31: note: expanded from macro 'bswap_64'
   523   392.x) : DO_ | #def | SWAPU64(phdr.e64.ine x))
      |                                                                 ~~~~ ^
#defbswap./protos.hine :53:64: note: expanded from macro 'DO_SWAPU64'
_64(x) __bswapD64(x)   53 | #define DO_SWAPU64(x) 
( !sOw      |                               ^
_a/usr/include/sys/_endian.hp:S85:40: note: WAPU_bytes() ? x : (uinexpanded from macro '__bswap64'
32(x) ( !swap_byt   85 | #define __bses()t6wap64(x)4     __buil? x : tin_bswap64(x)(uint3
2_t)b_      |                                           ^
swap_32t)bswap_64((xx))  ))

      |                                                                ^elf.c      |                                                                ^

:117:19: error: no member named 'e32' in 'Elf64_Ehdr'
/usr/include/byteswap.h/usr/include/byteswap.h  117 | : 39:31: note: expanded from macro 'bswap_64'
 :38:31:    39 | #for d(i = 0; i < EHDR_PHS(e_phenfuine bswap_64(x) __mbs)w; i+a+note: )
p6expanded from macro 'bswap_32'
   438      |                   ^~~~~~~~~~~~~~~~~
(x)
      elf.c|                               ^
 | :28:50: note: expanded from macro 'EHDR_PHS'
/usr/include/sys/_endian.h   28 | #def#ine EHDR:_PHS(x) (is_e32() 85? DO_Sde:40: fnote: expanded from macro '__bswap64'
WAPS16(ehdr-   85>e32.x)i  | #definn: DO_SWeA _P_S16(ehdr->e64.x))
b      |                                            ~~~~  ^
swap64(x)    __bui./protos.hltin_bswap64(x):54:41: enote: expanded from macro 'DO_SWAPS16'
 b   54 | #de
fine DO_s      |                                           ^
wap_SWAPS132(x) 6_killrpath.c_(x) ( bswap32(x!:swap_b)
70:      |                               ^
ytes() ? /usr/include/sys/_endian.hx : (i:84:40: note: expanded from macro '__bswap32'
n   84 | #define __bswap32(x)    __builtin_bswap32(x)
      |                                           ^
26: error: no member named 'e32' in 'Elf64_Phdr'
t16_t)bswap_16(x) )
      |                                         ^chrpath.c   :7084 |  : 36
: error: no member named 'e64' in 'Elf64_Shdr'
     || read(elf.c:117:19: error:    no member named 'e32' in 'Elf64_Ehdr'
84  117 |   fofr (id = 0; i < | , dyns, PHDR(p_file EHDRs_PHS(e_phnum); i++)
      |                   ^~~~~~~~~~~~~~~~~  char* sz)) t!rtab = (c
har *)calloc(1, SHDR_O= (self.cs:ize_28:50:t note: expanded from macro 'EHDR_PHS'
)   P28 | #dHefine EHDRD_PHSR(p_(fx) (iis_e32()( ? DOsh_sizele_SWAPS16(ehdr->sz)))
+e32.x) : D1O_SWAP);
      |                                    ^~~~~~~~~~~~~~~      
|                          ^~~~~~~~~~~~~~
S./protos.h:62:4516(ehdr->e:64.x))
      |                                            ~~~~  ^
 note: expanded from macro 'PHDR'
./protos.h./protos.h:54:63: note: expanded from macro 'DO_SWAPS16'   :62 | #de64:72: note: 
expanded from macro 'SHDR_O'fi   54ne PHDR(x) (is_e32
 |    64 | #define D() ? DO_SWAPU32(phdr.e32.x) O:_SWAPS#de1 6fine S(x) ( H!swap_byDO_SWADPtUesR64(phdr.e64.x))
      _|                                        ~~~~ ^
() ? ./protos.h:52:41: note: expanded from macro 'DO_SWAPU32'
Ox : (int16_t)bswap_16(x)    (52x | )# )
define DO_SW(APU32i(x) ( !swaps_      b_ye32() ? DO_S|                                                               ^
WAPU32/usr/include/byteswap.h(shdr.e32.x) : DO_SWAPU64(shdr.e64.x))
      |                                                                   ~~~~ ^
t:37:31: note: ./protos.hexpanded from macro 'bswap_16'
   37 | #des() :? x 53:41: note: expanded from macro 'DO_SWAPU64':efine bswap_1 6(u
(   i53nt32_ | #define DO_tSWAP)U64(x) x) __bswabp16(x)
(swap _!swap_bytes() ? x : (uint      |                               ^
3/usr/include/sys/_endian.h2(x) )
      | 6                                        ^
4_t)bswap_64:83:40: note: expanded from macro '__bswap16'
killrpath.c(x) :)
      |                                         ^   
83 | #defin70e __chrpath.c:84:36: :error: no member named 'e64' in 'Elf64_Shdr'
26: error: no member named 'e32' in 'Elf64_Phdr'
b   70 |        || read(swapfd, dyns, P16(x)    __   builtin_bswap1684 |   charH*D R((x)
      |                                           ^
strtpa_bf ilesz)) elf.c!:= =117:19: error: no member named 'e64' in 'Elf64_Ehdr'
(ssiz e(_t)PHDR(  117 |  c forhp_files ar *)(i = 0;z i <))c
      |                          ^~~~~~~~~~~~~~
 ./protos.h:62:45: note: expanded from macro 'PHDR'
EHDR_PHS(e_phnu   a62llocm); i++)
      |  | #defi(                  ^~~~~~~~~~~~~~~~~
1, Self.cHDR_:28:76: note: expanded from macro 'EHDR_PHS'
ne PHDR(Ox()s   h_size)+1);
      |                                    ^~~~~~~~~~~~~~~
 (28i | #des_e32()f ine EH./protos.hDR_PHS? DO_SWAPU:364:72: note: expanded from macro 'SHDR_O'
(   64 | #define SHDR_O(2x()phdr.e32.x)  : DO_(Sis_ex32() ?) (is_e32() WAPU6 ? 4DO_SWAP(S16(ehdr->eD32.x) ph: DO_SWO_SWAPUdArPS163(e.hdr->e64.x))
e      |                                                                      ~~~~  ^
64.x))2
./protos.h      :(54:41: note: sh|                                        ~~~~ ^
expanded from macro 'DO_SWAPS16'
dr.e32.x) : DO_   54 | #de./protos.hSfineWAPU64(shdr.e64.x:52:64: note: expanded from macro 'DO_SWAPU32'
 DO_)SWAPS16(x) ( !swap_bytes() ? x : (int16_t)   52 | #)
      |                                                                   ~~~~ ^
defi./protos.hn:e53:64: note: expanded from macro 'DO_SWAPU64'
b swap_16D(Ox) )_
      |                                         ^
SWAP   U5332 | (x) ( !elf.c:117:19: error: no member named 'e64' in 'Elf64_Ehdr'
s#wap_bytes() d? x : (uint32_t)bswap_32(x)e )
      |                                                                ^
  117 |   /usr/include/byteswap.hf:i38ne DO_SWAPU64(xf)or (i =:31:  0note: expanded from macro 'bswap_32'
; i < EHD ( !swa   R_PHS(e38_phn | u#m); id++)
      |                   ^~~~~~~~~~~~~~~~~
epf_ielf.cbytes() ? x : (uint64_tne bswap_3)bswap:2(28:76: note: expanded from macro 'EHDR_PHS'
x   28 | #de_64(x) )
f      ine EHDR_PHS(x) (is)|                                                                ^
 __/usr/include/byteswap.h:39:31:e32()  note: expanded from macro 'bswap_64'
   39 | #define ? DO_SWAPSb16(eswap__hbswapdr->e32.x) : DO_SW326AP(S16(xehdr->e64.x))
      | )                                                                     ~~~~  ^

      |                               ^
4(x) __/usr/include/sys/_endian.h:84:40:./protos.h :note: 54:63:expanded from macro '__bswap32' note: expanded from macro 'DO_SWAPS16'

   bs   84 | #54d | #defewifne DO_SWAPS16(x)ap64(x)
      |                               ^
 ( !sw/usr/include/sys/_endian.hap_b:85:40: note: expanded from macro '__bswap64'
ine __bs   ytes() ? x 85 | #define __b:swap6w (int16_t)bswaap_164(x) (x)    __bupi3l)
tin_bswa2p(x)    __builtin_bswap32      6|                                                               ^(x)
      |                                           ^
4(x)
      |                                           ^

killrpath.c:70/usr/include/byteswap.h::26: error: no member named 'e64' in 'Elf64_Phdr'
37:31: note: expanded from macro 'bswap_16'
      70 |        || chrpath.c:91:17: error: no member named 'e32' in 'Elf64_Shdr'
read(fd, dyns, PHDR(p_filesz37 | #define bswap_16(x) __bswap16   91 | (x)
      |                               ^
 )) != (ssize_t)PHDR(p/usr/include/sys/_endian.h:83:40: note: expanded from macro '__bswap16'
    83 | #defi_filesz))
      | i                         ^~~~~~~~~~~~~~
f./protos.h:62:70: note: expanded from macro 'PHDR'
 (lsne __bsw   62 | #daep16(x)    __builtifni_nbe eek(fd, SHDR_O(sh_offset),sPH wap1SEDR(x) (is6EK_e32(x()
      |                                           ^
) ? DO_SWAPU32_SET) == -1)
      |                 ^~~~~~~~~~~~~~~~~
(phdr./protos.h:64:47: note: expanded from macro 'SHDR_O'
fatal error: too many errors emitted, stopping now [-ferror-limit=]
   .64e | 3#2d.efine SHDR_O(x)x )( : DO_iSWAPU64s(_pehdr.e64.x))
      |                                                                 ~~~~ ^
./protos.h:53:41: note: expanded from macro 'DO_SWAPU64'
32()    53 | #define DO_SWAPU64(x) ( !s?w DO_SWAPU32(sahp_bytes() d?r x : (uint64_t)b.swap_64(x) )
      |                                         ^
e32.x) : DO_killrpath.c:7020 errorsSWAPU64(shd:26: error: no member named 'e64' in 'Elf64_Phdr'
r   70 |        || read(fd, dyns, PHDR(p.e64.x))
      |                                          ~~~~ ^
_files./protos.hz)) != (:s generated.
52size_t)PHDR(p:41: note: expanded from macro 'DO_SWAPU32'
   52 | #d_efine DO_filesz))
      |                          ^~~~~~~~~~~~~~
SWAPU32(x) ( !swap_bytes./protos.h:62:70(: note: expanded from macro 'PHDR'
) ? x :    (uint32_t62)bswap_32(x | ) #)
      |                                         ^
define PHDR(x) (is_e3chrpath.c:91:17: error: no member named 'e32' in 'Elf64_Shdr'
2   91 |   if (() ? DO_SWAPU32(plseehkd(r.e32.xf)d ,: DO_S WAPU64(phdr.e64S.HxDR_O(sh_off)s)e
      |                                                                 ~~~~ ^
./protos.h:53:64: note: expanded from macro 'DO_SWAPU64'
t), S   53 | #defEiEnKe_ SDEO_SWAPU64T()x )= ( !swap_byte=s -1)
      | (                ^~~~~~~~~~~~~~~~~)
 ./protos.h:? x : (64uint64_:47: note: expanded from macro 'SHDR_O'
t)bswap_64(x   ) )
      |                                                                ^
64 | #define SHDR_O(x) (is_e32() ? DO/usr/include/byteswap.h:39:31: note: expanded from macro 'bswap_64'
   39 | #define b_sSWAPgmake[2]: *** [Makefile:504: elf.o] Error 1
U32(shdr.ewap_64(x) __bswap643(2x.x) : DO_S)W
APU64(shdr.      |                               ^
e64.x))
      |                                          ~~~~ ^
/usr/include/sys/_endian.h:./protos.h:52:6485:40: : note: expanded from macro 'DO_SWAPU32'
note: expanded from macro '__bswap64'
   85 | #define __bswap64(x)    __   built52i | n#_bswap64defi(ne DO_SWAPU32(x)x )(
      |                                           ^
 !swap_bytes() ? x : (uint32_t)bswap_32(fatal error: too many errors emitted, stopping now [-ferror-limit=]
x) )
      |                                                                ^
/usr/include/byteswap.h:38:31: note: expanded from macro 'bswap_32'
   38 | #define bswap_32(x) __bswap32(x)
      |                               ^
/usr/include/sys/_endian.h:84:40: note: expanded from macro '__bswap32'
   84 | #define __bswap32(x)    __builtin_bswap32(x)
      |                                           ^
chrpath.c:91:17: error: no member named 'e64' in 'Elf64_Shdr'
   91 |   if (lseek(fd, SHDR_O(sh_offset), SEEK_SET) == -1)
      |                 ^~~~~~~~~~~~~~~~~
./protos.h:64:72: note: expanded from macro 'SHDR_O'
   64 | #define SHDR_O(x) (is_e32() ? DO_SWAPU32(shdr.e32.x) : DO_SWAPU64(shdr.e64.x))
      |                                                                   ~~~~ ^
./protos.h:53:41: note: expanded from macro 'DO_SWAPU64'
   53 | #define DO_SWAPU64(x) ( !swap_bytes() ? x : (uint64_t)bswap_64(x) )
      |                                         ^
chrpath.c:91:17: error: no member named 'e64' in 'Elf64_Shdr'
   91 |   if (lseek(fd, SHDR_O(sh_offset), SEEK_SET) == -1)
      |                 ^~~~~~~~~~~~~~~~~
./protos.h:64:72: note: expanded from macro 'SHDR_O'
   64 | #define SHDR_O(x) 20 errors generated.
(is_e32() ? DO_SWAPU32(shdr.e32.x) : DO_SWAPU64(shdr.e64.x))
      |                                                                   ~~~~ ^
./protos.h:53:64: note: expanded from macro 'DO_SWAPU64'
   53 | #define DO_SWAPU64(x) ( !swap_bytes() ? x : (uint64_t)bswap_64(x) )
      |                                                                ^
/usr/include/byteswap.h:39:31: note: expanded from macro 'bswap_64'
   39 | #define bswap_64(x) __bswap64(x)
      |                               ^
/usr/include/sys/_endian.h:85:40: note: expanded from macro '__bswap64'
   85 | #define __bswap64(x)    __builtin_bswap64(x)
      |                                           ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
gmake[2]: *** [Makefile:504: killrpath.o] Error 1
20 errors generated.
gmake[2]: *** [Makefile:504: chrpath.o] Error 1
gmake[2]: Leaving directory '/magus/work/usr/mports/devel/chrpath/work/chrpath'
gmake[1]: *** [Makefile:588: all-recursive] Error 1
gmake[1]: Leaving directory '/magus/work/usr/mports/devel/chrpath/work/chrpath'
gmake: *** [Makefile:387: all] Error 2
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/mports/devel/chrpath

Links

Depends On

Depend Of

Nothing

Categories

CVEs

  • Loading CVE information...

LLM Analysis