bug-bash
[Top][All Lists]
Advanced

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

Porting problems with bash-3.0


From: Schmitz, Joachim (GCSC)
Subject: Porting problems with bash-3.0
Date: Mon, 13 Sep 2004 13:06:14 +0200

Configuration Information [Automatically generated, do not change]:
Machine: nsr
OS: nsk
Compiler: c89
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='nsr'
-DCONF_OSTYPE='nsk' -DCONF_MACHTYPE='nsr-tandem-nsk'
-DCONF_VENDOR='tandem' -DLOCALEDIR='/usr/local/share/locale'
-DPACKAGE='bash' -DSHELL  -DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib
-I./lib/intl -I/usr/local/Floss/mybash-3.0/lib/intl -I/usr/local/include
-D_XOPEN_SOURCE_EXTENDED=1 -Wallow_cplusplus_comments -Wextensions
-Wnowarn -Woptimize=2 -WIEEE_float -g
uname output: NONSTOP_KERNEL rat G06 00 NSR-Y
Machine Type: nsr-tandem-nsk

Bash Version: 3.0
Patch Level: 0
Release Status: release

Description:
        - 'config.guess' doesn't recognize this platform properly
        - Our compiler errors out when 'const <type> *' are used where
'<type *' are expected, here in .../lib/readline/complete.c, at or near
line 1153
        - (RFE) using getpwnam(getlogin()) instead of getpwuid(getuid())
adds support for systems where UIDs are shared by different logins
        - After having linked bash successfully, 'make' fails with an
error due to 'size' not being available.

Repeat-By:
        run configure and make on our plattform...

Fix:

diff -u ./support/config.guess.orig ./support/config.guess
--- ./support/config.guess.orig 2003-09-10 15:16:43.000000000 +0200
+++ ./support/config.guess      2004-09-13 08:59:40.000000000 +0200
@@ -1162,7 +1162,7 @@
     *:QNX:*:4*)
        echo i386-pc-qnx
        exit 0 ;;
-    NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
+    NSR-[DGKLNPTVWXY]:NONSTOP_KERNEL:*:*)
        echo nsr-tandem-nsk${UNAME_RELEASE}
        exit 0 ;;
     *:NonStop-UX:*:*)
diff -u ./lib/readline/complete.c.orig ./lib/readline/complete.c
--- ./lib/readline/complete.c.orig      2004-07-01 19:57:58.000000000
+0200
+++ ./lib/readline/complete.c   2004-09-13 10:14:35.000000000 +0200
@@ -1151,7 +1151,8 @@
              rl_completion_found_quote &&
              rl_filename_quoting_desired)
            {
+             /* some compilers need explicit cast */
+             dtext = (*rl_filename_dequoting_function) ((char *)text,
rl_completion_quote_character);
-             dtext = (*rl_filename_dequoting_function) (text,
rl_completion_quote_character);

              text = dtext;
            }

diff -u ./lib/readline/complete.c.orig ./lib/readline/complete.c
--- ./lib/readline/complete.c.orig      2004-07-01 19:57:58.000000000
+0200
+++ ./lib/readline/shell.c      2004-09-13 11:32:20.000000000 +0200
@@ -159,7 +159,7 @@
   struct passwd *entry;

   home_dir = (char *)NULL;
+  entry = getpwnam (getlogin());
-   entry = getpwuid (getuid ());
   if (entry)
     home_dir = entry->pw_dir;
   return (home_dir);
diff -u ./Makefile.in.orig ./Makefile.in
--- ./Makefile.in.orig  2004-03-17 14:34:39.000000000 +0100
+++ ./Makefile.in       2004-09-13 10:21:05.000000000 +0200
@@ -513,7 +513,7 @@
        $(RM) $@
        $(PURIFY) $(CC) $(BUILTINS_LDFLAGS) $(LIBRARY_LDFLAGS)
$(LDFLAGS) -o $(Program) $(OBJECTS) $(LIBS)
        ls -l $(Program)
-       size $(Program)
+       -size $(Program)

 .build:        $(SOURCES) config.h Makefile version.h $(VERSPROG)
        @echo
@@ -535,7 +535,7 @@
 strip: $(Program) .made
        strip $(Program)
        ls -l $(Program)
-       size $(Program)
+       -size $(Program)

 lint:
        ${MAKE} ${MFLAGS} CFLAGS='${GCC_LINT_FLAGS}' .made



Bye, Jojo
> Joachim Schmitz
   HP Services
   GCSC EMEA

                Electronic support is available to all HP NonStopTM
Server and HP S5000 Server service contract customers at no additional
charge and enables our customers to access vital support information
when they need it.
<http://support.nonstop.compaq.com/tools.html>






reply via email to

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