bug-readline
[Top][All Lists]
Advanced

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

Fix to build readline on HPE NonStop platforms


From: Randall S. Becker
Subject: Fix to build readline on HPE NonStop platforms
Date: Fri, 15 Nov 2019 16:01:32 -0500

Hi Readline DL,

 

I have a set of fixes for building readline on all current HPE NonStop platforms. The fixes are presented in git order. If requested, I am happy to provide this in git patch format or push this change to an upstream repository.

 

The fixes apply to:

Readline 8.0-release (commit f585708e82)

HPE NONSTOP_KERNEL NSE (release J06.22), NSX (release L19.03), and NSV (release L19.03)

Configure flags: CC=c99 CFLAGS="-g -I/usr/local/include"

Configure options: --enable-shared

Description: These fixes permit the package to compile. The compile errors involve the following:

  1. Misidentifying lstat in sys/stat.h, requiring two defines in the patch.
  2. Wrong location for tcp u_* types, which are in sys/types.h

 

I hope this helps.

 

Kind Regards,

Randall S. Becker (address@hidden)

 

diff --git a/colors.c b/colors.c

index 53758e0..9025c68 100644

--- a/colors.c

+++ b/colors.c

@@ -26,6 +26,13 @@

 

#define READLINE_LIBRARY

 

+#if defined __TANDEM

+#  define _XOPEN_SOURCE_EXTENDED 1

+#  define _TANDEM_SOURCE 1

+#  include <sys/types.h>

+#  include <sys/stat.h>

+#endif

+

#if defined (HAVE_CONFIG_H)

#  include <config.h>

#endif

diff --git a/complete.c b/complete.c

index adce0d6..6c55e30 100644

--- a/complete.c

+++ b/complete.c

@@ -19,6 +19,10 @@

    along with Readline.  If not, see <http://www.gnu.org/licenses/>.

*/

 

+#if defined __TANDEM

+#define _XOPEN_SOURCE_EXTENDED 1

+#endif

+

#define READLINE_LIBRARY

 

#if defined (HAVE_CONFIG_H)

@@ -26,6 +30,9 @@

#endif

 

#include <sys/types.h>

+#if defined __TANDEM

+#include <sys/stat.h>

+#endif

#include <fcntl.h>

#if defined (HAVE_SYS_FILE_H)

#  include <sys/file.h>

diff --git a/histfile.c b/histfile.c

index a8a92aa..07e6b6e 100644

--- a/histfile.c

+++ b/histfile.c

@@ -26,6 +26,8 @@

#define READLINE_LIBRARY

 

#if defined (__TANDEM)

+#  define _XOPEN_SOURCE_EXTENDED 1

+#  include <unistd.h>

#  include <floss.h>

#endif

 

diff --git a/input.c b/input.c

index d4d57a8..e53ff06 100644

--- a/input.c

+++ b/input.c

@@ -19,6 +19,12 @@

    along with Readline.  If not, see <http://www.gnu.org/licenses/>.

*/

 

+#if defined __TANDEM

+#define _XOPEN_SOURCE_EXTENDED 1

+#define _TANDEM_SOURCE 1

+#include <sys/types.h>

+#endif

+

#define READLINE_LIBRARY

 

#if defined (__TANDEM)

diff --git a/support/shobj-conf b/support/shobj-conf

index 7920f1b..302e058 100644

--- a/support/shobj-conf

+++ b/support/shobj-conf

@@ -65,7 +65,7 @@ while [ $# -gt 0 ]; do

done

 

case "${host_os}-${SHOBJ_CC}-${host_vendor}" in

-nsk-cc-tandem)

+nsk-cc-tandem|nsk-c99-tandem)

        SHOBJ_CFLAGS=-Wglobalized

        case `uname -m` in

        NSR*)


reply via email to

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