Anybody know of a fix for wu-ftp under NetBSD/i386?
(Assuming what I have don't is not totally wrong that is ;-))
Below is what I had to do to get it to compile, when I install
it it runs but keeps exiting.
When you do an mget it gives you one file and the exits,
syslog reports :-
Apr 23 19:50:11 kayless ftpd[1926]: exiting on signal 11
The first file requested is delivered no problem but the
server just shuts down afterwards.
I've been told there is a patch for NetBSD, if anyone has
it please post it or mail me.
Below is what I've done, if it's a useless bodge please
let me know (gently).
========================================================
Edited src/config/config.bsd
Added NO_MALLOC_PROTO
Removed SETPROCTITLE
Edited src/makefiles/Makefile.bsd
CC = gcc
Added -O2 -m486 -pipe -fno-strength-reduce to CFLAGS
Added -lcrypt to LIBES
Edited src/ftpd.c
Changed
*realpath(char *pathname, char *result);
to
*realpath(const char *pathname, char *result);
(so it would match my /usr/include files)
Edited src/realpath.c
Changed the declaration for realpath there as well as above
I have no clue about this !
cc -O -DDEBUG -c authuser.c
In file included from authuser.c:7:
/usr/include/arpa/inet.h:76: warning: `struct in_addr'
declared inside parameter list
/usr/include/arpa/inet.h:76: warning: its scope is only
this definition or declaration,
/usr/include/arpa/inet.h:76: warning: which is probably
not what you want.
/usr/include/arpa/inet.h:77: warning: `struct in_addr'
declared inside parameter list
/usr/include/arpa/inet.h:77: warning: parameter has incomplete type
/usr/include/arpa/inet.h:79: warning: parameter has incomplete type
/usr/include/arpa/inet.h:81: warning: parameter has incomplete type
cc -O -DDEBUG -c ftw.c
rm -f libsupport.a
ar cq libsupport.a fnmatch.o strcasestr.o authuser.o ftw.o
ranlib libsupport.a
(Edited for line length)
==========================================================
I am using gcc2.7.2, i386/current (few weeks old), PCI/P100/scsi/32MB,
if you need specs ask but I doubt it.
To my resident guru, I know you said you'd mail me but I thought I'd
try to help myself.
--
rlf