bug-bash
[Top][All Lists]
Advanced

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

Static linking errors on Solaris-2.5.1


From: wally . winzer
Subject: Static linking errors on Solaris-2.5.1
Date: Wed, 27 Jun 2001 02:07:28 -0700 (PDT)

Configuration Information [Automatically generated, do not change]:
Machine: sparc
OS: solaris2.5.1
Compiler: gcc
Compilation CFLAGS: -pg -DPROGRAM='bash' -DCONF_HOSTTYPE='sparc' 
-DCONF_OSTYPE='solaris2.5.1' -DCONF_MACHTYPE='sparc-sun-solaris2.5.1' 
-DCONF_VENDOR='sun' -DSHELL -DHAVE_CONFIG_H -DSunOS5   -I.  -I. -I./include 
-I./lib -I/usr/local/include -O6
uname output: SunOS Sun-E3000 5.5.1 Generic_111442-01 sun4u sparc 
SUNW,Ultra-Enterprise
Machine Type: sparc-sun-solaris2.5.1

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

Description:
During compilation the following error occured while compiling bash statically:

gcc -L./builtins -L./lib/readline -L./lib/readline -L./lib/glob -L./lib/tilde 
-L./lib/malloc -L./lib/sh -static   -pg -O6 -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 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 -lbuiltins -lsh -lreadline -lhistory -ltermcap -lglob -ltilde 
-lmalloc -Wl,-B,dynamic -Wl,-R/etc/lib -ldl -Wl,-B,static -lintl 
ld: fatal: option -dn and -Bdynamic are incompatible
ld: fatal: library -ldl: not found
ld: fatal: File processing errors. No output written to bash
collect2: ld returned 1 exit status
make: *** [bash] Error 1

Repeat-By:
        [Describe the sequence of events that causes the problem
        to occur.]
I followed the instructions to the letter from the NOTES file.  Number
11 explains in detail on compiling bash statically.  This is the make
command I used (GNU make):

make STATIC_LD= LOCAL_LIBS='-Wl,-B,dynamic -Wl,-R/etc/lib -ldl -Wl,-B,static'



reply via email to

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