Subject: Compile Error Linux 1.2.13 & Shadow

From: Yasushi Arai <[email-masked]>
Date: Sat, 16 Aug 1997 13:58:24 +0900

Hi,

I setup wu-ftpd 2.4.2-beta 14. Target for Linux 1.2.13 & Shadow Password.
Compile error ftpd.
--------------------
nediath:/usr/src/wu-ftpd-2.4.2-beta-14# build lnx
make args are :
make opts are :

Linking Makefiles.

Making support library.
gcc  -O6 -fomit-frame-pointer -fno-strength-reduce -pipe   -c strcasestr.c
gcc  -O6 -fomit-frame-pointer -fno-strength-reduce -pipe   -c authuser.c
gcc  -O6 -fomit-frame-pointer -fno-strength-reduce -pipe   -c snprintf.c
rm -f libsupport.a
ar cq libsupport.a strcasestr.o authuser.o snprintf.o
ranlib libsupport.a

Making ftpd.
gcc -O6 -fomit-frame-pointer -fno-strength-reduce -pipe -I.. -I../support  
-L../support -s   -c ftpd
.c -o ftpd.o
bison -y  ftpcmd.y
mv -f y.tab.c ftpcmd.c
gcc -O6 -fomit-frame-pointer -fno-strength-reduce -pipe -I.. -I../support  
-L../support -s   -c ftpc
md.c -o ftpcmd.o
gcc -O6 -fomit-frame-pointer -fno-strength-reduce -pipe -I.. -I../support  
-L../support -s   -c glob
.c -o glob.o
gcc -O6 -fomit-frame-pointer -fno-strength-reduce -pipe -I.. -I../support  
-L../support -s   -c logw
tmp.c -o logwtmp.o
gcc -O6 -fomit-frame-pointer -fno-strength-reduce -pipe -I.. -I../support  
-L../support -s   -c pope
n.c -o popen.o
sh newvers.sh
gcc -O6 -fomit-frame-pointer -fno-strength-reduce -pipe -I.. -I../support  
-L../support -s -c vers.c
gcc -O6 -fomit-frame-pointer -fno-strength-reduce -pipe -I.. -I../support  
-L../support -s   -c acce
ss.c -o access.o
gcc -O6 -fomit-frame-pointer -fno-strength-reduce -pipe -I.. -I../support  
-L../support -s   -c exte
nsions.c -o extensions.o
gcc -O6 -fomit-frame-pointer -fno-strength-reduce -pipe -I.. -I../support  
-L../support -s   -c real
path.c -o realpath.o
gcc -O6 -fomit-frame-pointer -fno-strength-reduce -pipe -I.. -I../support  
-L../support -s   -c acl.
c -o acl.o
gcc -O6 -fomit-frame-pointer -fno-strength-reduce -pipe -I.. -I../support  
-L../support -s   -c priv
ate.c -o private.o
gcc -O6 -fomit-frame-pointer -fno-strength-reduce -pipe -I.. -I../support  
-L../support -s   -c auth
enticate.c -o authenticate.o
gcc -O6 -fomit-frame-pointer -fno-strength-reduce -pipe -I.. -I../support  
-L../support -s   -c conv
ersions.c -o conversions.o
gcc -O6 -fomit-frame-pointer -fno-strength-reduce -pipe -I.. -I../support  
-L../support -s   -c host
acc.c -o hostacc.o
gcc -O6 -fomit-frame-pointer -fno-strength-reduce -pipe -I.. -I../support  
-L../support -s   -c sigf
ix.c -o sigfix.o
gcc -O6 -fomit-frame-pointer -fno-strength-reduce -pipe -I.. -I../support  
-L../support -s -o ftpd f
tpd.o ftpcmd.o glob.o logwtmp.o popen.o vers.o access.o extensions.o realpath.o 
acl.o private.o auth
enticate.o conversions.o hostacc.o sigfix.o -lsupport -lbsd -lshadow
glob.o(.text+0x482): undefined reference to `dirfd'
make: *** [ftpd] Error 1

Making ftpcount.
gcc -O6 -fomit-frame-pointer -fno-strength-reduce -pipe -I.. -I../support  
-L../support -s -o ftpcou
nt ftpcount.c vers.o -lsupport -lbsd -lshadow

Making ftpshut.
gcc -O6 -fomit-frame-pointer -fno-strength-reduce -pipe -I.. -I../support  
-L../support -s -o ftpshu
t ftpshut.c vers.o -lsupport -lbsd -lshadow

Making ckconfig.
gcc -O6 -fomit-frame-pointer -fno-strength-reduce -pipe -I.. -I../support  
-L../support -s -o ckconf
ig ckconfig.c

Links to executables are in bin directory:
size: bin/ftpd: No such file or directory
text    data    bss     dec     hex     filename
2820    2644    112     5576    15c8    bin/ftpcount
3108    2301    112     5521    1591    bin/ftpshut
2820    2644    112     5576    15c8    bin/ftpwho
1108    1913    100     3121    c31     bin/ckconfig
Done 
------------------------

--
Yasushi Arai <[email-masked]>
Tokyo,Japan