bug-bash
[Top][All Lists]
Advanced

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

Fix for building static bash (2.05) on Solaris 7.


From: Asif Haswarey
Subject: Fix for building static bash (2.05) on Solaris 7.
Date: Fri, 24 Aug 2001 17:31:55 -0700 (PDT)

From: asif.haswarey@sun.com
To: bug-bash@gnu.org
Subject: Fix for building static bash (2.05) on Solaris 7.

Configuration Information:
Machine: sparc
OS: solaris2.7
Compiler: gcc 2.95.1
Compilation CFLAGS: -pg -DPROGRAM='bash' -DCONF_HOSTTYPE='sparc' 
-DCONF_OSTYPE='solaris2.7' -DCONF_MACHTYPE='sparc-sun-solaris2.7' 
-DCONF_VENDOR='sun' -DSHELL  -DHAVE_CONFIG_H  -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I.  -I. -I./include -I./lib 
-I/usr/local/lang/bash-2.05/include -g -O2
uname output: SunOS coco 5.7 Generic_106541-03 sun4u sparc SUNW,Ultra-1
Machine Type: sparc-sun-solaris2.7

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

Description:
        I am not able to build the static bash on my system using the
        method described in the "NOTES" file:
        
        --- NOTES ---
        On Solaris 7 (and presumably Solaris 8, though I do not run that), the
        following recipe appears to work for gcc:

        configure --enable-static-link
        make STATIC_LD='-Wl,-Bstatic' LOCAL_LIBS='-Wl,-Bdynamic -Wl,-R/etc/lib
        -ldl -Wl,-Bstatic'
        --- NOTES ---

Repeat-By:
        I did:
        
        make STATIC_LD='-Wl,-Bstatic' LOCAL_LIBS='-Wl,-Bdynamic -Wl,-R/etc/lib
        -ldl -Wl,-Bstatic'
        
        and it failed to compile the final "bash" executable.

Fix:
        I did the following by hand to build the final static "bash" executable:
        
        gcc -pg -g -O2 -o bash -Wl,-Bstatic 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 
braces.o 
bracecomp.o bashhist.o bashline.o  siglist.o list.o stringlib.o locale.o 
findcmd.o redir.o  pcomplete.o pcomplib.o syntax.o xmalloc.o -L./builtins 
-lbuiltins -L./lib/sh -lsh -L./lib/readline -lreadline -lhistory -ltermcap 
-L./lib/glob -lglob -L./lib/tilde -ltilde -L./lib/malloc -lmalloc -L/usr/lib 
-lsocket -lnsl -Wl,-Bdynamic -Wl,-R/etc/lib -ldl

        As a result "bash" and "bashbug" were built.

Sincerely,

-Asif Haswarey
asif.haswarey@sun.com




reply via email to

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