[Top][All Lists]

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

Static link problem on Solaris

From: miroslaw . d . suliba
Subject: Static link problem on Solaris
Date: Fri, 2 Nov 2001 12:05:26 -0600

Configuration Information [Automatically generated, do not change]:
Machine: sparc
OS: solaris2.8
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='sparc' 
-DCONF_OSTYPE='solaris2.8' -DCONF_MACHTYPE='sparc-sun-solaris
. -I./include -I./lib -I/usr/local/include -g -O2
uname output: SunOS lakota 5.8 Generic_108528-09 sun4u sparc SUNW,Ultra-5_10
Machine Type: sparc-sun-solaris2.8

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


I was tyring to link bash statically and I got such message:


gcc -L./builtins -L./lib/readline -L./lib/readline -L./lib/glob  -L./lib/tilde 
-L./lib/malloc -L./lib/sh -static -static
-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 braces.o bracecomp.o bashhist.o bashline.o  
siglist.o list.o stringlib.o locale.o findcmd.o re
dir.o  pcomplete.o pcomplib.o syntax.o xmalloc.o -lbuiltins -lsh -lreadline 
-lhistory -ltermcap -lglob  -ltilde -lmalloc  -
lsocket -lnsl
Undefined                       first referenced
 symbol                             in file
dlclose                             /usr/lib/libnsl.a(netdir.o)
_dlopen                             /usr/lib/libc.a(nss_deffinder.o)
_dlclose                            /usr/lib/libc.a(nss_deffinder.o)
dlsym                               /usr/lib/libnsl.a(netdir.o)
dlopen                              /usr/lib/libnsl.a(netdir.o)
dlerror                             /usr/lib/libnsl.a(netdir.o)
_dlsym                              /usr/lib/libc.a(nss_deffinder.o)
ld: fatal: Symbol referencing errors. No output written to bash
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `bash'


What is missed?

Thank You,
Miroslaw Suliba

reply via email to

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