Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
Hi folks,
please find a patch attached to properly compile and link GNU coreutils
8.31 on HP-UX IA64. As of now, it does not compile out of the box.
The patch includes these changes:
* basenc.c: HP aCC does not allow anonymous unions inside structs, I
have named it otherwise the compilation fails
* blake2/blake2.h: __attribute__((packed)) does not exist in HP aCC, use
#pragma pack
* copy.c, mkfifo.c: disable SELinux code if it is not available
* system.h: use __attribute(x) on a GNU-style compiler only
* configure.ac, local.mk: use HP aCC-style linker options for libstdbuf
Compile instructions:
The patch isn't perfect, some issues need to be discussion because I
don't know yet how to solve them:
* copy.c, mkfifo.c: for some reason the code compiles w/o changes
although SELinux is not available
* I have disabled the compilation of b2sum completely because gmake
repeatedly quits with:
gmake[2]: *** No rule to make target '/var/tmp/AAA000546.i', needed by
'src/b2sum-md5sum.o'. Stop.
gmake[2]: Leaving directory '/tmp/system-compile/gnu/coreutils-8.31'
gmake[1]: *** [Makefile:12647: all-recursive] Error 1
gmake[1]: Leaving directory '/tmp/system-compile/gnu/coreutils-8.31'
gmake: *** [Makefile:6827: all] Error 2
* The configuration of PIC and shared library is for HP-UX now. At best
autotools would determine that with some default m4 file.
Note: I am not subscribed to this list.
Regards,
Michael