Subject: I am getting errors right at ./build CC=gcc sol only on one mach ine

From: Magdalena Hewryk <[email-masked]>
Date: Fri, 14 May 1999 19:28:02 -0400

Hi,

I have successfully  compiled and set up (with the help of this group) the
FTP-beta-18-vr15 on two test machines.
Tonight  I wanted to upgrade the production machine and put the new version
because beta-13 is old and insecure.

I am getting errors right at ./build CC=gcc sol
What should I do?  Why it is complaining?  How can I upgrade this machine?

# ./build CC=gcc sol
make args are : 
make opts are :  CC=gcc

Copying Makefiles.

Linking src/config.h

Making support library.
gcc -O -DSOLARIS2  -c fnmatch.c
gcc -O -DSOLARIS2  -c strcasestr.c
gcc -O -DSOLARIS2  -c strsep.c
gcc -O -DSOLARIS2  -c authuser.c
In file included from /usr/include/sys/turnstile.h:12,
                 from /usr/include/sys/t_lock.h:20,
                 from /usr/include/sys/vnode.h:37,
                 from /usr/include/sys/stream.h:21,
                 from /usr/include/netinet/in.h:38,
                 from /usr/include/netdb.h:96,
                 from authuser.c:20:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2.1/include/sys/param.h:187:
warning: `NBBY' redefined
/usr/include/sys/select.h:45: warning: this is the location of the previous
definition
In file included from /usr/include/sys/stream.h:26,
                 from /usr/include/netinet/in.h:38,
                 from /usr/include/netdb.h:96,
                 from authuser.c:20:
/usr/include/sys/model.h:32: #error "No DATAMODEL_NATIVE specified"
make: *** [authuser.o] Error 1

Making ftpd.
gcc -g -I.. -I../support -L../support   -c ftpd.c -o ftpd.o
In file included from ftpd.c:54:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2.1/include/sys/param.h:187:
warning: `NBBY' redefined
/usr/include/sys/select.h:45: warning: this is the location of the previous
definition
In file included from /usr/include/sys/stream.h:26,
                 from /usr/include/netinet/in.h:38,
                 from ftpd.c:72:
/usr/include/sys/model.h:32: #error "No DATAMODEL_NATIVE specified"
make: *** [ftpd.o] Error 1

Making ftpcount.
gcc -g -I.. -I../support -L../support   -c ftpcount.c -o ftpcount.o
In file included from /usr/include/sys/turnstile.h:12,
                 from /usr/include/sys/t_lock.h:20,
                 from /usr/include/sys/file.h:17,
                 from ftpcount.c:49:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2.1/include/sys/param.h:187:
warning: `NBBY' redefined
/usr/include/sys/select.h:45: warning: this is the location of the previous
definition
sh newvers.sh
gcc -g -I.. -I../support -L../support   -c vers.c -o vers.o
make: *** No rule to make target `../support/libsupport.a', needed by
`ftpcount'.  Stop.

Making ftpshut.
gcc -g -I.. -I../support -L../support   -c ftpshut.c -o ftpshut.o
In file included from /usr/include/sys/turnstile.h:12,
                 from /usr/include/sys/t_lock.h:20,
                 from /usr/include/sys/file.h:17,
                 from ftpshut.c:47:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2.1/include/sys/param.h:187:
warning: `NBBY' redefined
/usr/include/sys/select.h:45: warning: this is the location of the previous
definition
make: *** No rule to make target `../support/libsupport.a', needed by
`ftpshut'.  Stop.

Making ckconfig.
gcc -g -I.. -I../support -L../support   -c ckconfig.c -o ckconfig.o
gcc -L../support -o ckconfig ckconfig.o

Executables are in bin directory:
./build: size: not found
Done

On ohter machines the gcc was clean:

./build CC=gcc sol
DETAILS:
make args are : 
make opts are :  CC=gcc

Copying Makefiles.

Linking src/config.h

Making support library.
gcc -O -DSOLARIS2  -c fnmatch.c
gcc -O -DSOLARIS2  -c strcasestr.c
gcc -O -DSOLARIS2  -c strsep.c
gcc -O -DSOLARIS2  -c authuser.c
gcc -O -DSOLARIS2  -c snprintf.c
rm -f libsupport.a
ar cq libsupport.a fnmatch.o strcasestr.o strsep.o authuser.o snprintf.o
ranlib libsupport.a

Making ftpd.
gcc -g -I.. -I../support -L../support   -c ftpd.c -o ftpd.o
yacc  ftpcmd.y 
mv -f y.tab.c ftpcmd.c
gcc -g -I.. -I../support -L../support   -c ftpcmd.c -o ftpcmd.o
gcc -g -I.. -I../support -L../support   -c glob.c -o glob.o
gcc -g -I.. -I../support -L../support   -c logwtmp.c -o logwtmp.o
gcc -g -I.. -I../support -L../support   -c popen.c -o popen.o
sh newvers.sh
gcc -g -I.. -I../support -L../support   -c vers.c -o vers.o
gcc -g -I.. -I../support -L../support   -c access.c -o access.o
gcc -g -I.. -I../support -L../support   -c extensions.c -o extensions.o
gcc -g -I.. -I../support -L../support   -c realpath.c -o realpath.o
gcc -g -I.. -I../support -L../support   -c acl.c -o acl.o
gcc -g -I.. -I../support -L../support   -c private.c -o private.o
gcc -g -I.. -I../support -L../support   -c authenticate.c -o authenticate.o
gcc -g -I.. -I../support -L../support   -c conversions.c -o conversions.o
gcc -g -I.. -I../support -L../support   -c hostacc.c -o hostacc.o
gcc -g -I.. -I../support -L../support   -c sigfix.c -o sigfix.o
gcc -g -I.. -I../support -L../support   -c routevector.c -o routevector.o
gcc -g -I.. -I../support -L../support   -c restrict.c -o restrict.o
gcc -L../support -o ftpd ftpd.o ftpcmd.o glob.o logwtmp.o popen.o vers.o
access.o extensions.o realpath.o acl.o private.o authenticate.o
conversions.o hostacc.o sigfix.o routevector.o restrict.o  -lsupport
-lsocket -lnsl -lgen 

Making ftpcount.
gcc -g -I.. -I../support -L../support   -c ftpcount.c -o ftpcount.o
gcc -L../support -o ftpcount ftpcount.o vers.o

Making ftpshut.
gcc -g -I.. -I../support -L../support   -c ftpshut.c -o ftpshut.o
gcc -L../support -o ftpshut ftpshut.o vers.o

Making ckconfig.
gcc -g -I.. -I../support -L../support   -c ckconfig.c -o ckconfig.o
gcc -L../support -o ckconfig ckconfig.o

Executables are in bin directory:
bin/ftpd: 212635 + 6988 + 23080 = 242703
bin/ftpcount: 11779 + 1152 + 896 = 13827
bin/ftpshut: 10395 + 1016 + 376 = 11787
bin/ftpwho: 11779 + 1152 + 896 = 13827
bin/ckconfig: 7803 + 792 + 364 = 8959
Done

Regards,
...Magda

Magdalena Hewryk
FundSERV Inc.
416 362-2400 ext. 237