Article View: comp.sys.next.sysadmin
Article #407Problems with ftpd....
From: Paul S. Sears
Date: Fri, 07 Aug 1992 15:43
Date: Fri, 07 Aug 1992 15:43
120 lines
6389 bytes
6389 bytes
We are trying to compile the new ftpd that is on the purdue archives and we
are running in the following when we compile. Can anyone explain these
function prototype problems? I can see that this daemon has been compiled for
the NeXT because a binary in included in the distribution, but we need to
customize it as many of the paths in pathnames.h are not suited for our
purposes. First, some comments:
1) The code is not very clean. Has anyone heard of lint or using
cc -Wall??
2) The documentation in severly lacking.
3) Has this ftpd been modified to support netinfo? What little
documentation there is (man page, a README) still claims that the
passwd file has to be in ~ftp/etc for the ftpd to work properly.
We are using gcc version 1.93 (68k, MIT syntax)
flower> make depend
support/mkdep -g -DSETPROCTITLE -DDEBUG ftpd.c ftpcmd.c glob.c logwtmp.c
popen.c vers.c access.c extensions.c realpath.c acl.c private.c
authenticate.c
flower> make all
cc -g -DSETPROCTITLE -DDEBUG -c ftpd.c
ftpd.c: In function `main':
ftpd.c:282: warning: incompatible pointer type for argument 2 of `signal'
ftpd.c:284: warning: incompatible pointer type for argument 2 of `signal'
ftpd.c: In function `pass':
ftpd.c:544: warning: assignment of integer from pointer lacks a cast
ftpd.c: In function `opt_string':
ftpd.c:666: warning: comparison between pointer and integer
ftpd.c:667: warning: comparison between pointer and integer
ftpd.c:668: warning: comparison between pointer and integer
conversions.h: In function `retrieve':
In file included from ftpd.c:685:
conversions.h:35: warning: initialization of integer from pointer lacks a cast
conversions.h:35: warning: initialization of integer from pointer lacks a cast
ftpd.c:705: warning: cast from pointer to integer of different size
ftpd.c:750: warning: comparison between pointer and integer
ftpd.c: In function `setproctitle':
ftpd.c:1785: warning: cast from pointer to integer of different size
cc -g -DSETPROCTITLE -DDEBUG -c ftpcmd.c
ftpcmd.y: In function `yylex':
ftpcmd.y:959: warning: incompatible pointer type for argument 2 of `signal'
ftpcmd.y: In function `yyparse':
ftpcmd.y:601: warning: assignment of pointer from integer lacks a cast
cc -g -DSETPROCTITLE -DDEBUG -c glob.c
glob.c: In function `letter':
glob.c:564: warning: suggest parentheses around && within ||
cc -g -DSETPROCTITLE -DDEBUG -c logwtmp.c
cc -g -DSETPROCTITLE -DDEBUG -c popen.c
popen.c: In function `ftpd_popen':
popen.c:52: warning: suggest parentheses around && within ||
sh newvers.sh
cc -g -DSETPROCTITLE -DDEBUG -c vers.c
cc -g -DSETPROCTITLE -DDEBUG -c access.c
access.c: In function `parsetime':
access.c:51: warning: comparison between pointer and integer
access.c:61: warning: comparison between pointer and integer
access.c: In function `acl_getclass':
access.c:327: warning: cast from pointer to integer of different size
access.c: In function `acl_getlimit':
access.c:347: warning: assignment of integer from pointer lacks a cast
access.c: In function `acl_deny':
access.c:376: warning: cast from pointer to integer of different size
cc -g -DSETPROCTITLE -DDEBUG -c extensions.c
extensions.c: In function `msg_massage':
extensions.c:84: warning: assignment of integer from pointer lacks a cast
extensions.c:108: warning: assignment of integer from pointer lacks a cast
extensions.c:113: warning: assignment of integer from pointer lacks a cast
extensions.c:118: warning: assignment of integer from pointer lacks a cast
extensions.c:136: warning: assignment of integer from pointer lacks a cast
extensions.c: In function `cwd_beenhere':
extensions.c:162: warning: comparison between pointer and integer
extensions.c: In function `show_message':
extensions.c:253: warning: suggest parentheses around && within ||
cc -g -DSETPROCTITLE -DDEBUG -c realpath.c
realpath.c: In function `realpath':
realpath.c:29: warning: assignment of integer from pointer lacks a cast
realpath.c:37: warning: comparison between pointer and integer
realpath.c:57: warning: assignment of integer from pointer lacks a cast
realpath.c:65: warning: assignment of integer from pointer lacks a cast
realpath.c:84: warning: assignment of integer from pointer lacks a cast
realpath.c:85: warning: assignment of integer from pointer lacks a cast
cc -g -DSETPROCTITLE -DDEBUG -c acl.c
acl.c: In function `parseacl':
acl.c:65: warning: comparison between pointer and integer
acl.c:68: warning: cast from pointer to integer of different size
acl.c:71: warning: assignment of integer from pointer lacks a cast
cc -g -DSETPROCTITLE -DDEBUG -c private.c
private.c: In function `priv_getent':
private.c:112: warning: comparison between pointer and integer
cc -g -DSETPROCTITLE -DDEBUG -c authenticate.c
( cd support; make getusershell.o fnmatch.o strcasestr.o strerror.o strsep.o
getgrent.o authuser.o ftw.o )
cc -c getusershell.c
getusershell.c:78: warning: static declaration for `initshells' follows
non-static
cp getusershell.o ..
cc -c fnmatch.c
fnmatch.c: In function `fnmatch':
fnmatch.c:86: warning: suggest parentheses around && within ||
fnmatch.c:118: warning: suggest parentheses around && within ||
cp fnmatch.o ..
cc -c strcasestr.c
strcasestr.c: In function `strstr':
strcasestr.c:35: argument `s' doesn't match function prototype
strcasestr.c:35: argument `find' doesn't match function prototype
*** Exit 1
Stop.
*** Exit 1
*** `getusershell.o' removed
Stop.
--
Paul S. Sears * sears@uh.edu (NeXT Mail OK)
The University of Houston * suggestions@tree.egr.uh.edu (NeXT
Engineering Computing Center * comments, complaints, questions)
NeXT System Administration * DoD#1967 '83 NightHawk 650SC
>>> SSI Diving Certification #755020059 <<<
"Programming is like sex: One mistake and you support it a lifetime."
Technical Details
Message-ID:
<1992Aug7.154327.8949@menudo.uh.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!gumby!wupost!zaphod.mps.ohio-state.edu!menudo.uh.edu!usenetShow Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.sysadmin Path: arc1-ca.pugleaf.net!sparky!uunet!gumby!wupost!zaphod.mps.ohio-state.edu!menudo.uh.edu!usenet From: sears@tree.egr.uh.edu (Paul S. Sears) Subject: Problems with ftpd.... Message-ID: <1992Aug7.154327.8949@menudo.uh.edu> Sender: usenet@menudo.uh.edu (USENET News System) Nntp-Posting-Host: flower.egr.uh.edu Reply-To: sears@tree.egr.uh.edu Organization: University of Houston Date: Fri, 7 Aug 1992 15:43:27 GMT Lines: 120