Subject: Failing to build on AIX and SOLARIS

From: "Amin S. Kassem" <[email-masked]>
Date: Thu, 20 Jun 1996 12:58:34 -0500 (CDT)

Hello,

I am trying to build WU-FTPD-2.4 on SOALRIS 2.5 and on RS6000 AIX 4.1.4.
I tried using CC and GCC (bison and flex), without any luck.  Any help is
greatly appreciated.  Following is the results of both CC anf GCC

Many thanks!

USING CC:
I copied the ftp.h to the usr/include/arp/ftp.h

# ./build aix
make args are :
make opts are :
 
Linking Makefiles.
 
Making support library.
        cc -O -DDEBUG   -c getusershell.c
        cc -O -DDEBUG   -c fnmatch.c
        cc -O -DDEBUG   -c strcasestr.c
        cc -O -DDEBUG   -c strsep.c
        cc -O -DDEBUG   -c authuser.c
        cc -O -DDEBUG   -c strdup.c
        rm -f libsupport.a
        ar cq libsupport.a getusershell.o fnmatch.o strcasestr.o strsep.o  authu
ser.o strdup.o
        ranlib libsupport.a
 
Making ftpd.
        cc -O -DDEBUG -I.. -I../support -L../support -c ftpd.c
     554  1500-010: (W) WARNING in main: Infinite loop.  Program may not stop.
        yacc  ftpcmd.y
        mv y.tab.c ftpcmd.c
        cc -O -DDEBUG -I.. -I../support -L../support -c ftpcmd.c
"ftpcmd.y", line 371.18: 1506-045 (S) Undeclared identifier cmdtab.
"ftpcmd.y", line 383.26: 1506-045 (S) Undeclared identifier sitetab.
"ftpcmd.y", line 1057.36: 1506-280 (W) Function argument assignment between type
s "void(*)(int)" and "void(*)()" is not allowed.
"ftpcmd.y", line 1519.1: 1506-343 (S) Redeclaration of print_groups differs from
 previous declaration on line 683 of "ftpcmd.y".
"ftpcmd.y", line 1519.1: 1506-050 (I) Return type "void" in redeclaration is not
 compatible with the previous return type "int".
make: 1254-004 The error code from the last command is 1.

Stop.
 
Making ftpcount.
        cc -O -DDEBUG -I.. -I../support -L../support -o ftpcount ftpcount.c vers
.o -lsupport
cc: 1501-228 input file vers.o not found
make: 1254-004 The error code from the last command is 252.

Stop.
 
Making ftpshut.
        cc -O -DDEBUG -I.. -I../support -L../support -o ftpshut ftpshut.c vers.o
 -lsupport
cc: 1501-228 input file vers.o not found
make: 1254-004 The error code from the last command is 252.

Stop.
 
Making ckconfig.
        cc -O -DDEBUG -I.. -I../support -L../support -o ckconfig ckconfig.c
 
Links to executables are in bin directory:
size: 0654-304 Cannot open bin/ftpd.
size: 0654-304 Cannot open bin/ftpcount.
size: 0654-304 Cannot open bin/ftpshut.
size: 0654-304 Cannot open bin/ftpwho.
bin/ckconfig: 1452 + 1480 + 16 + 505 = 3453
Done
-- 

USING GCC

# ./build aix
make args are :
make opts are :
 
Linking Makefiles.
 
Making support library.
        cc -O -DDEBUG   -c getusershell.c
        cc -O -DDEBUG   -c fnmatch.c
        cc -O -DDEBUG   -c strcasestr.c
        cc -O -DDEBUG   -c strsep.c
        cc -O -DDEBUG   -c authuser.c
        cc -O -DDEBUG   -c strdup.c
        rm -f libsupport.a
        ar cq libsupport.a getusershell.o fnmatch.o strcasestr.o strsep.o  authu
ser.o strdup.o
        ranlib libsupport.a
 
Making ftpd.
        gcc -O -DDEBUG -I.. -I../support -L../support -c ftpd.c
ftpd.c:143: conflicting types for `realpath'
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.1.4.0/2.7.2/include/stdlib.h:428: previou
s declaration of `realpath'
ftpd.c: In function `pass':
ftpd.c:1002: warning: assignment makes integer from pointer without a cast
ftpd.c:1153: warning: passing arg 1 of `setgroups' makes integer from pointer wi
thout a cast
ftpd.c: In function `opt_string':
ftpd.c:1226: warning: comparison between pointer and integer
ftpd.c:1228: warning: comparison between pointer and integer
ftpd.c:1230: warning: comparison between pointer and integer
ftpd.c: In function `retrieve':
ftpd.c:1342: warning: comparison between pointer and integer
make: 1254-004 The error code from the last command is 1.

Stop.
 
Making ftpcount.
        gcc -O -DDEBUG -I.. -I../support -L../support -o ftpcount ftpcount.c ver
s.o -lsupport
gcc: vers.o: No such file or directory
ftpcount.c: In function `parsetime':
ftpcount.c:98: warning: comparison between pointer and integer
ftpcount.c:107: warning: comparison between pointer and integer
ftpcount.c: In function `acl_getlimit':
ftpcount.c:159: warning: comparison between pointer and integer
ftpcount.c:162: warning: assignment makes integer from pointer without a cast
ftpcount.c: In function `main':
ftpcount.c:307: warning: comparison between pointer and integer
ftpcount.c:310: warning: assignment makes integer from pointer without a cast
make: 1254-004 The error code from the last command is 1.

Stop.
 
Making ftpshut.
        gcc -O -DDEBUG -I.. -I../support -L../support -o ftpshut ftpshut.c vers.
o -lsupport
gcc: vers.o: No such file or directory
ftpshut.c: In function `main':
ftpshut.c:188: warning: comparison between pointer and integer
ftpshut.c:191: warning: assignment makes integer from pointer without a cast
make: 1254-004 The error code from the last command is 1.

Stop.
 
Making ckconfig.
        gcc -O -DDEBUG -I.. -I../support -L../support -o ckconfig ckconfig.c
 
Links to executables are in bin directory:
size: 0654-304 Cannot open bin/ftpd.
size: 0654-304 Cannot open bin/ftpcount.
size: 0654-304 Cannot open bin/ftpshut.
size: 0654-304 Cannot open bin/ftpwho.
bin/ckconfig: 2981 + 544 + 23 + 1591 + 2172 = 7311
Done
--
				 \|||/
 				 (0^0)
==============================oOO=(_)=OOo========+=========================
| Amin Kassem - Network/Systems Administrator    | e-mail: [email-masked]  | 
| Exchange Data, Inc. - Minneapolis, MN.         |         [email-masked] |
| voice: (612)332-2101 - Fax: (612)334-5997      | I would give up an arm | 
| http://www.tccn.com ; A legend in my spare time| to be ambidextrous!    |
=================================================+=========================