Subject: Compiling a static ls

From: [email-masked] (Robert Chea)
Date: Sat, 20 Apr 1996 19:17:19 -0700

Hi,

I'm trying to compile a static version of "ls" for Solaris 2.4  FTP server
and keep getting the same errors.  I've read
all of the FAQs and can't seem to figure out what's going on.  I've
downloaded file-utils-3.12 from the MIT
server and tried to compile "ls" using CFLAGS=-static and LDFLAGS=-static
options with gcc  2.6.1. The errors that I get are

make[1]: Entering directory `/export/tmp/fileutils-3.12/lib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/export/tmp/fileutils-3.12/lib'
making all in src
make[1]: Entering directory `/export/tmp/fileutils-3.12/src'
gcc -static -o ls ls.o ls-ls.o ../lib/libfu.a version.o
Undefined                       first referenced
 symbol                             in file
dlclose                             /usr/lib/libc.a(nss_deffinder.o)
dlsym                               /usr/lib/libc.a(nss_deffinder.o)
dlopen                              /usr/lib/libc.a(nss_deffinder.o)
ld: fatal: Symbol referencing errors. No output written to ls
make[1]: *** [ls] Error 1
make[1]: Leaving directory `/export/tmp/fileutils-3.12/src'
make: *** [all] Error 1

Does anyone know what to do?  Thanks for any help!

Robert S. Chea
Director of Information Systems
[email-masked]

Phone:  (408) 261-6222
Fax:  (408) 261-6226

---

From: The Doctor <[email-masked]>
Date: Sun, 21 Apr 1996 08:11:28 -0600 (MDT)

> Does anyone know what to do?  Thanks for any help!

Did you read the INSTALL file?