Subject: Re: dir command

From: FTP_server Administrator <[email-masked]>
Date: Thu, 18 Jan 1996 21:34:10 +0300

> Nathan Shanelec Wrote:
> 
> > I was able to get the dir command to work when I followed these instructions
> > in the INSTALL file.
> > 
> > 6.  Under Solaris 2.1, you need to have the following in ~ftp/dev
> >       crw-rw-rw-  1 root      11,  42 Mar 24 17:00 tcp
> >       cr--r--r--  1 root      13,  12 Mar 24 16:23 zero
> > 
> 
> Yep, tried that, then I tried what was in the man page on my Solaris 2.4 system
> for setting up anon ftp.  That failed too.
> 
> Somebody must have this running under Solaris 2.4.  Could one of you kind souls
> please send me an ls -lR of ~ftp.  Maybe I can figure it out from there.
> 
> >>Ericw
> 
> (I hate taking up bandwidth like this...) 
> (BTW: Im using Wu-ftp version 2.4, Solaris 2.4, The Sun Sparcworks compiler.)
> 

I have wu-ftpd 2.4 running under Solaris 2.4 and as far as I remember there was
such problem until I created the ~ftp/dev directory and all necessary devices.
The gcc has been used to compile ftpd.
Anyway, here is ls -lR output of ~ftp (only system directories):

~ftp/bin:
total 1032
-r-x--x--x   1 ftpadm   root      118860 Jan  8 18:56 compress
-r-x--x--x   1 ftpadm   root      209080 Jan 16 15:20 gzip
-r-x--x--x   1 ftpadm   root       20040 Aug 17 17:54 ls
-r-x--x--x   1 ftpadm   root      144560 Jan  8 18:58 tar

~ftp/dev:
total 4
dr-x--x--x   2 ftpadm   root         512 Aug 18 21:28 .
drwxr-xr-x   8 ftpadm   root         512 Jan 18 02:03 ..
crwxr--r--   1 ftpadm   root      11, 42 Aug 18 21:28 tcp
crwxr--r--   1 ftpadm   root     105,  1 Aug 18 21:28 ticotsord
crwxr--r--   1 ftpadm   root      11, 41 Aug 18 21:28 udp
crwxr--r--   1 ftpadm   root      13, 12 Aug 18 21:27 zero

~ftp/etc:
total 12
dr-x--x--x   3 ftpadm   root         512 Jan 18 20:47 .
drwxr-xr-x   8 ftpadm   root         512 Jan 18 02:03 ..
-r--r--r--   1 ftpadm   root         110 Dec 12 18:03 group
drwxr-xr-x   2 ftpadm   root         512 Nov 21 17:25 msgs   <= contains message
								files. 
-r--r--r--   1 ftpadm   root        1515 Dec 12 18:00 passwd

~ftp/usr:
total 2
dr-x--x--x   2 ftpadm   root        1024 Jan  8 18:47 lib

./lib:
total 2990
-rwxr-xr-x   1 ftpadm   root       24576 Aug 18 20:46 ld.so
-rwxr-xr-x   1 ftpadm   root       97804 Aug 18 20:46 ld.so.1
lrwxrwxrwx   1 ftpadm   other          9 Sep 22 18:06 libc.so -> libc.so.1
-rwxr-xr-x   1 ftpadm   root      621540 Aug 18 17:58 libc.so.1
lrwxrwxrwx   1 ftpadm   other         10 Sep 22 18:06 libdl.so -> libdl.so.1
-rwxr-xr-x   1 ftpadm   root        3492 Aug 18 17:58 libdl.so.1
lrwxrwxrwx   1 ftpadm   other         12 Sep 22 18:06 libintl.so -> libintl.so.1
-rwxr-xr-x   1 ftpadm   root       13516 Aug 18 17:58 libintl.so.1
lrwxrwxrwx   1 ftpadm   other         11 Sep 22 18:06 libnsl.so -> libnsl.so.1
-rwxr-xr-x   1 ftpadm   root      508896 Aug 18 20:50 libnsl.so.1
lrwxrwxrwx   1 ftpadm   other         14 Sep 22 18:06 libsocket.so -> libsocket.so.1
-rwxr-xr-x   1 ftpadm   root       73048 Aug 18 20:51 libsocket.so.1
lrwxrwxrwx   1 ftpadm   other          9 Sep 22 18:06 libw.so -> libw.so.1
-rwxr-xr-x   1 ftpadm   root       41704 Aug 18 17:57 libw.so.1
lrwxrwxrwx   1 ftpadm   other         12 Sep 22 18:06 nss_dns.so -> nss_dns.so.1
-rwxr-xr-x   1 ftpadm   root       10796 Aug 18 20:54 nss_dns.so.1
lrwxrwxrwx   1 ftpadm   other         14 Sep 22 18:06 nss_files.so -> nss_files.so.1
-rwxr-xr-x   1 ftpadm   root       18496 Aug 18 20:55 nss_files.so.1
lrwxrwxrwx   1 ftpadm   other         12 Sep 22 18:06 nss_nis.so -> nss_nis.so.1
-rwxr-xr-x   1 ftpadm   root       25840 Aug 18 20:53 nss_nis.so.1
lrwxrwxrwx   1 ftpadm   other         16 Sep 22 18:06 nss_nisplus.so -> nss_nisplus.so.1
-rwxr-xr-x   1 ftpadm   root       30196 Aug 18 20:53 nss_nisplus.so.1
-rwxr-xr-x   1 ftpadm   root        9436 Aug 18 20:56 straddr.so
-rwxr-xr-x   1 ftpadm   root        9436 Aug 18 20:56 straddr.so.2

Perhaps some of these libraries are not actually necessary.
By the way, has anyone suceeded to compile the ls staticly under Solaris 2.4?

Cheers,
Serge Bezzubov <[email-masked]> <[email-masked]>
YTC, Yaroslavl, Russia

---

From: Michael Clarkson <[email-masked]>
Date: Fri, 19 Jan 1996 07:46:32 +0000 (GMT)

> By the way, has anyone suceeded to compile the ls staticly under Solaris 2.4?
As was suggested a while back at the beginning of this LS/DIR thread, the 
problem is solved if ls is compiled statically.

I have succesfully compiled ls statically using gcc -static  and also 
SUNWspro cc -dn -Bstatic

Michael Clarkson
 ______  __   __    __ _  _
|  ____|/  \  \ \  / /(_)| |      FAXiL,    
| |___ / /_ \  \ \/ /  _ | |      The Wellcome Wing,
|  ___| ____ \  >  <  | || |      The General Infirmary,
| |  / /    \ \/ /\ \ | || |____  Leeds LS1 3EX, UK.
|_| /_/      \_\/  \_\|_||______| Tel: 0113 292 2479 Fax: 0113 242 0926

---

From: Luc Desrosiers <[email-masked]>
Date: Sat, 20 Jan 1996 16:55:02 -0500

> I have succesfully compiled ls statically using gcc -static  and also 

Unless you have written your own libraries, you cannot be right.
Sun's static library libc.a contain a bug in which calls are made
to the dl library. Alas, there is no static version of this library
available on a sun. This problem is very well know by sun as you can
find heaps of description about it on sunsolve. Thus all static building
will fail with something like this:

gcc -static -o chgrp chgrp.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 chgrp
*** Error code 1
make: Fatal error: Command failed for target `chgrp'

This is what you will find on solaris 2.4 and 2.5. To my knowledge,
it's the case as well for sunos 4.x.

It should not be too much of a problem writing a custom made version
to get the thing right.

Luc Desrosiers
RISQ, CRIM