[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#35650: [PATCH] Improving HP-UX support

From: Osipov, Michael
Subject: bug#35650: [PATCH] Improving HP-UX support
Date: Thu, 9 May 2019 12:50:16 +0200
User-agent: 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:
export PREFIX=/opt/ports/coreutils
export LIBDIR=$PREFIX/lib/hpux32
export CONFIGURE="./configure --prefix=$PREFIX --libdir=$LIBDIR"
export CPPFLAGS="-I$PREFIX/include -D_INCLUDE_STDC__SOURCE_199901"
autoreconf -fi
FORCE_UNSAFE_CONFIGURE=1 gl_cv_have_include_next=no ac_cv_func_getacl=no 
ac_cv_func_aclsort=no ac_cv_header_sys_bitypes_h=no $CONFIGURE
gmake install

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.



Attachment: coreutils.patch
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]