Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42008 - paxctl-0.2 wont compile
Summary: paxctl-0.2 wont compile
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-18 01:12 UTC by Scott Taylor (RETIRED)
Modified: 2004-02-18 13:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
paxctl.h changes (paxctl-h.patch,546 bytes, patch)
2004-02-18 01:42 UTC, Scott Taylor (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Taylor (RETIRED) gentoo-dev 2004-02-18 01:12:18 UTC
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
Comment 1 Scott Taylor (RETIRED) gentoo-dev 2004-02-18 01:42:57 UTC
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.
Comment 2 solar (RETIRED) gentoo-dev 2004-02-18 08:56:26 UTC
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 */
Comment 3 Scott Taylor (RETIRED) gentoo-dev 2004-02-18 13:14:59 UTC
ok, my bad.

its things like this that make me not like putting patches in FILESDIR...