Blue gcc # emerge paxctl Calculating dependencies ...done! >>> emerge (1 of 1) sys-apps/paxctl-0.2 to / >>> md5 src_uri ;-) paxctl-0.2.tar.gz >>> Unpacking source... >>> Unpacking paxctl-0.2.tar.gz to /data/tmp/portage/paxctl-0.2/work >>> Source unpacked. gcc -c -march=athlon-xp -O2 -o paxctl.o paxctl.c paxctl.c: In function `report_flags': paxctl.c:36: error: `PF_RANDMMAP' undeclared (first use in this function) paxctl.c:36: error: (Each undeclared identifier is reported only once paxctl.c:36: error: for each function it appears in.) paxctl.c:37: error: `PF_NORANDMMAP' undeclared (first use in this function) paxctl.c: In function `pax_parse_args': paxctl.c:319: error: `PF_RANDMMAP' undeclared (first use in this function) paxctl.c:319: error: `PF_NORANDMMAP' undeclared (first use in this function) make: *** [paxctl.o] Error 1 >>> Install paxctl-0.2 into /data/tmp/portage/paxctl-0.2/image/ category sys-apps mkdir -p /data/tmp/portage/paxctl-0.2/image//sbin /data/tmp/portage/paxctl-0.2/image//usr/share/man/man1 cp paxctl /data/tmp/portage/paxctl-0.2/image//sbin cp: cannot stat `paxctl': No such file or directory make: *** [install] Error 1 !!! ERROR: sys-apps/paxctl-0.2 failed. !!! Function einstall, Line 388, Exitcode 2 !!! einstall failed I had this same thing happen a week ago straight from the original sources. Moving the #endif from below those definitions to here got it working for me: #ifndef PT_PAX_FLAGS #define PT_PAX_FLAGS 0x65041580 #endif
Created attachment 25839 [details, diff] paxctl.h changes just to clarify what makes it compile successfully here. without it, all of my 2.6 machines fail with the same error messages.
PF_RANDMMAP, PF_NORANDMMAP were not defined in the very first testing patch that your using. I spotted this and it was fixed before it ever went into gentoo's glibc. You can edit your system's elf.h for yourself and add entry 14,15 for yourself or recompile all of glibc from whats currently in the rsync tree. +#define PF_RANDMMAP (1 << 14) /* Enable RANDMMAP */ +#define PF_NORANDMMAP (1 << 15) /* Disable RANDMMAP */
ok, my bad. its things like this that make me not like putting patches in FILESDIR...