Subject: Compiling a static ls

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

>Mime-Version: 1.0
>Date: Sat, 20 Apr 1996 19:17:19 -0700
>To: wu-ftpd
>From: [email-masked] (Robert Chea)
>Subject: Compiling a static ls
>Cc: robertc
>
>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
>

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

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

---

From: [email-masked] (Robert Chea)
Date: Sun, 21 Apr 1996 15:45:28 -0700

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

YES, I HAVE READ THE INSTALL FILE, and it says to use the -static flags
when compiling with gcc.  Did I miss something?

>Did you read the INSTALL file?
>
>>
>> Robert S. Chea

Robert S. Chea

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