Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Feb 2000 22:23:21 -0600
From:      "Sean Heber" <sean@fifthace.com>
To:        freebsd-questions@freebsd.org
Subject:   Compiling ftpd with -DFTPD_INTERNAL_LS
Message-ID:  <949465401_PM_BeOS.sean@fifthace.com>

next in thread | raw e-mail | index | archive | help
Ok, I saw on the FreeBSD Diary that I could make ftpd so that it did not 
require a bin dir and ls in each user's root.

I have 3.3-RELEASE installed and I did not have the sources there.

So, I used the standard-supfile and cvsup to update my source tree.

Now I have all the sources (or so it seems).

Then I start following the instructions for making ftpd with no external 
ls requirements.

I go to /usr/src/libexec/ftpd/

Then make clean.

Then make -DFTPD_INTERNAL_LS

This happens:

Warning: Object directory not changed from original 
/usr/src/libexec/ftpd
cc -O -pipe -DSETPROCTITLE -DSKEY -DLOGIN_CAP -DVIRTUAL_HOSTING -Wall  
-I/usr/src/libexec/ftpd/../../contrib-crypto/telnet -DINET6 -g 
-DINTERNAL_LS -Dmain=ls_main -I/usr/src/libexec/ftpd/../../bin/ls   -c 
ftpd.c
In file included from ftpd.c:102:
extern.h:85: field `su_sin6' has incomplete type
ftpd.c:209: `INET6_ADDRSTRLEN' undeclared here (not in a function)
ftpd.c: In function `main':
ftpd.c:387: storage size of `hints' isn't known
ftpd.c:403: `AI_PASSIVE' undeclared (first use this function)
ftpd.c:403: (Each undeclared identifier is reported only once
ftpd.c:403: for each function it appears in.)
ftpd.c:404: warning: implicit declaration of function `getaddrinfo'
ftpd.c:411: dereferencing pointer to incomplete type
ftpd.c:412: dereferencing pointer to incomplete type
ftpd.c:415: warning: implicit declaration of function `gai_strerror'
ftpd.c:415: warning: passing arg 2 of `syslog' makes pointer from 
integer without a cast
ftpd.c:416: `EAI_SYSTEM' undeclared (first use this function)
ftpd.c:420: dereferencing pointer to incomplete type
ftpd.c:444: dereferencing pointer to incomplete type
ftpd.c:444: dereferencing pointer to incomplete type
ftpd.c:387: warning: unused variable `hints'
ftpd.c:506: warning: implicit declaration of function `getnameinfo'
ftpd.c:508: `NI_NUMERICHOST' undeclared (first use this function)
ftpd.c: In function `inithosts':
ftpd.c:621: storage size of `hints' isn't known
ftpd.c:634: `AI_CANONNAME' undeclared (first use this function)
ftpd.c:638: dereferencing pointer to incomplete type
ftpd.c:638: dereferencing pointer to incomplete type
ftpd.c:645: warning: implicit declaration of function `freeaddrinfo'
ftpd.c:669: `AI_PASSIVE' undeclared (first use this function)
ftpd.c:673: dereferencing pointer to incomplete type
ftpd.c:674: dereferencing pointer to incomplete type
ftpd.c:679: dereferencing pointer to incomplete type
ftpd.c:680: dereferencing pointer to incomplete type
ftpd.c:696: dereferencing pointer to incomplete type
ftpd.c:697: dereferencing pointer to incomplete type
ftpd.c:710: dereferencing pointer to incomplete type
ftpd.c:711: sizeof applied to an incomplete type
ftpd.c:719: warning: implicit declaration of function `getipnodebyaddr'
ftpd.c:721: warning: assignment makes pointer from integer without a 
cast
ftpd.c:736: warning: implicit declaration of function `freehostent'
ftpd.c:621: warning: unused variable `hints'
ftpd.c: In function `selecthost':
ftpd.c:782: warning: implicit declaration of function 
`IN6_IS_ADDR_V4MAPPED'
ftpd.c:797: dereferencing pointer to incomplete type
ftpd.c: In function `pass':
ftpd.c:1224: `NI_NUMERICHOST' undeclared (first use this function)
ftpd.c: In function `dataconn':
ftpd.c:1636: `NI_NUMERICHOST' undeclared (first use this function)
ftpd.c:1636: `NI_NUMERICSERV' undeclared (first use this function)
ftpd.c: In function `statcmd':
ftpd.c:1896: `INET6_ADDRSTRLEN' undeclared (first use this function)
ftpd.c:1904: `NI_NUMERICHOST' undeclared (first use this function)
ftpd.c:1896: warning: unused variable `hname'
ftpd.c:1895: warning: `a' might be used uninitialized in this function
ftpd.c:1895: warning: `p' might be used uninitialized in this function
ftpd.c: In function `dolog':
ftpd.c:2219: warning: implicit declaration of function `realhostname_sa'
ftpd.c:2246: `NI_NUMERICHOST' undeclared (first use this function)
ftpd.c: In function `passive':
ftpd.c:2316: warning: `a' might be used uninitialized in this function
ftpd.c: In function `long_passive':
ftpd.c:2388: warning: `a' might be used uninitialized in this function
ftpd.c: In function `send_file_list':
ftpd.c:2551: warning: variable `dout' might be clobbered by `longjmp' or 
`vfork'
ftpd.c:2552: warning: variable `dirlist' might be clobbered by `longjmp' 
or `vfork'
ftpd.c:2553: warning: variable `simple' might be clobbered by `longjmp' 
or `vfork'
ftpd.c:2554: warning: variable `freeglob' might be clobbered by 
`longjmp' or `vfork'
*** Error code 1

Stop.


What am I doing wrong here?  Does something else need to be made?

Thanks.

l8r
Sean



-----------------------------------
This message was sent with the demo version of Postmaster, a BeOS mail client.
For more information, please visit http://kennyc.com/postmaster



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?949465401_PM_BeOS.sean>