bug-bash
[Top][All Lists]
Advanced

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

bash 2.05b build failed on solaris 2.6


From: paullew
Subject: bash 2.05b build failed on solaris 2.6
Date: Sun, 21 Jul 2002 22:53:08 -0700 (PDT)

Configuration Information [Automatically generated, do not change]:
Machine: sparc
OS: solaris2.6
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='sparc' 
-DCONF_OSTYPE='solaris2.6' -DCONF_MACHTYPE='sparc-sun-solaris2.6' 
-DCONF_VENDOR='sun' -DSHELL -DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib  -g 
-O2
uname output: SunOS cns-build3 5.6 Generic_105181-28 sun4u sparc SUNW,Ultra-250
Machine Type: sparc-sun-solaris2.6

Bash Version: 2.05b
Patch Level: 0
Release Status: release

Description:
        Bash failed to link because of:
        > ./configure --prefix=/auto/insbu-cnstools
        <snip>
        > make
        <snip>
        gcc -L./builtins -L./lib/readline -L./lib/readline -L./lib/glob
            -L./lib/tilde -L ./lib/malloc -L./lib/sh -g -O2 -o bash shell.o
            eval.o y.tab.o general.o make_cmd.o print_cmd.o dispose_cmd.o
            execute_cmd.o variables.o copy_cmd.o error.o expr.o flags.o jobs.o
            subst.o hashcmd.o hashlib.o mailcheck.o trap.o input.o
            unwind_prot.o pathexp.o sig.o test.o version.o alias.o array.o
            arrayfunc.o braces.o bracecomp.o bashhist.o bashline.o list.o
            stringlib.o locale.o findcmd.o redir.o pcomplete.o pcomplib.o
            syntax.o xmalloc.o -lbuiltins -lsh -lreadline -lhistory -ltermcap
            -lglob -ltilde -lmalloc -lsocket -lnsl -ldl
        Undefined                       first referenced
         symbol                             in file
        libintl_bindtextdomain              locale.o
        libintl_gettext                     locale.o
        libintl_textdomain                  locale.o
        ld: fatal: Symbol referencing errors. No output written to bash
        collect2: ld returned 1 exit status
        make: *** [bash] Error 1

Repeat-By:
        run configure then make on solaris 2.6 with gcc 3.1

Fix:
        I added the -lintl to the link line and seems to link ok.  Attached
        is a patch to configure, this is only fixing the solaris 2.6 build
        problem and might need to be extended to 2.7, 2.8, 2.9.

--- configure.old       2002-07-16 06:31:47.000000000 -0700
+++ configure   2002-07-21 18:10:36.624002000 -0700
@@ -15342,6 +15342,7 @@
 sco3.2*)       LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
 sunos4*)       LOCAL_CFLAGS=-DSunOS4 ;;
 solaris2.5*)   LOCAL_CFLAGS=-DSunOS5 ;;
+solaris2.6*)   LOCAL_LDFLAGS=-lintl ;;
 lynxos*)       LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
 linux*)                LOCAL_LDFLAGS=-rdynamic ;;       # allow dynamic loading
 *qnx*)         LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lun
ix -lncurses" ;;



reply via email to

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