[uClinux-dev] FTPD compiling problems

Rene Gegusch rgegusch at mf.tu-berlin.de
Mon Mar 24 04:48:37 EST 2003


Hi guys,

does anyone of you successfully compiled the ftpd?
I once again hang on a problem with it.
Here is my little way of try to hack it :)

I am using an uC5272 board with the m68k-elf tools.

1) Try to compile it as it is given by the distribution(030305).
Error, because of redefinition of crypt in"crypt.h", which is included in 
auth.c. crypt is already defined in <unistd.h> in lib/libc/include
OK, because did not know anything really intelligent for this, I tried to kick 
the redefinition out and see what will happen.
2) Compilation stopped because of an error in logwtmp.c. In line 120 there is 
a strcpy command to ut.ut_name. ut is a struct of utmp. However, ut_name is 
not a member of this struct as the compiler told me.
Once again simply kicked out this line.
3) Again the compiler told me about an error in the same file line 126. This 
time it doesn't liked ut_tv, because this is not a member too.
My solution was once again: kick it out.
4) now there was a new error which I would like to paste you here:
ftpd.elf2flt: In function `auth_user':
/home/rgegusch/test/coldfire/uClinux-dist-patched/user/ftpd/auth.c:104: 
undefined reference to `setusershell'
/home/rgegusch/test/coldfire/uClinux-dist-patched/user/ftpd/auth.c:105: 
undefined reference to `getusershell'
/home/rgegusch/test/coldfire/uClinux-dist-patched/user/ftpd/auth.c:108: 
undefined reference to `endusershell'
ftpd.elf2flt: In function `sgetcred':
/home/rgegusch/test/coldfire/uClinux-dist-patched/user/ftpd/auth.c:188: 
undefined reference to `setspent'
/home/rgegusch/test/coldfire/uClinux-dist-patched/user/ftpd/auth.c:189: 
undefined reference to `getspnam'
/home/rgegusch/test/coldfire/uClinux-dist-patched/user/ftpd/auth.c:206: 
undefined reference to `endspent'
ftpd.elf2flt: In function `usage':
/home/rgegusch/test/coldfire/uClinux-dist-patched/user/ftpd/ftpd.c:285: 
undefined reference to `__progname'
/home/rgegusch/test/coldfire/uClinux-dist-patched/user/ftpd/ftpd.c:290: 
undefined reference to `__progname'
ftpd.elf2flt: In function `main':
/home/rgegusch/test/coldfire/uClinux-dist-patched/user/ftpd/ftpd.c:458: 
undefined reference to `__progname'
/home/rgegusch/test/coldfire/uClinux-dist-patched/user/ftpd/ftpd.c:478: 
undefined reference to `__progname'
ftpd.elf2flt: In function `sigquit':
/home/rgegusch/test/coldfire/uClinux-dist-patched/user/ftpd/ftpd.c:580: 
undefined reference to `strsignal'
ftpd.elf2flt: In function `reply':
/home/rgegusch/test/coldfire/uClinux-dist-patched/user/ftpd/ftpd.c:1505: 
undefined reference to `vsyslog'
ftpd.elf2flt: In function `lreply':
/home/rgegusch/test/coldfire/uClinux-dist-patched/user/ftpd/ftpd.c:1525: 
undefined reference to `vsyslog'
ftpd.elf2flt: In function `server_mode':
/home/rgegusch/test/coldfire/uClinux-dist-patched/user/ftpd/server_mode.c:87: 
undefined reference to `daemon'
/home/rgegusch/test/coldfire/uClinux-dist-patched/user/ftpd/server_mode.c:148: 
undefined reference to `fork_not_available_use_vfork'
ftpd.elf2flt: In function `fixup_null_alloc':
/home/rgegusch/test/coldfire/uClinux-dist-patched/user/ftpd/xmalloc.c:76: 
undefined reference to `err'
collect2: ld returned 1 exit status
make[2]: *** [ftpd] Fehler 1
make[2]: Leaving directory 
»/home/rgegusch/test/coldfire/uClinux-dist-patched/user/ftpd«

Isn't this great?
Does someone ever made it to compile the ftpd and/or does anyone has any help 
for me to solve this problem(s) easily.
NEED URGENT HELP

Regards
Rene




More information about the uClinux-dev mailing list