Subject: Dec02 make errors/warnings
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: Thomas M. Crockett <tmc@netcom.com>
List: current-users
Date: 12/03/1993 01:00:28
The following are errors and warnings I received during the make of source with 
the dec 02 cvs output files applied... for what it's worth.  
I can program some in C, but I wouldn't call myself a C programmer, so hopefully
just id'ing some problem areas is a help.  If it's not, let me know and I'll save
bandwidth and irritation.

BTW I commented out the mod* entries in the relevent Makefiles in order to complete
the make.

===> modload
cc  -static -O -DKERNEL -I/usr/src/sbin/modload/../../sys  -o modload /usr/src/sbin/modload/modload.c 
In file included from /usr/src/sbin/modload/modload.c:53:
/usr/include/stdio.h:274: unrecognized format specifier for `snprintf'
/usr/include/stdio.h:276: unrecognized format specifier for `vsnprintf'
*** Error code 1
Stop.

# Same Result with modunload
===> modstat
cc   -O -DKERNEL  -o modstat /usr/src/usr.bin/modstat/modstat.c 
In file included from /usr/src/usr.bin/modstat/modstat.c:50:
/usr/include/stdio.h:274: unrecognized format specifier for `snprintf'
/usr/include/stdio.h:276: unrecognized format specifier for `vsnprintf'
*** Error code 1
Stop.

===> portmap
cc   -O  -o portmap /usr/src/usr.sbin/portmap/portmap.c -lutil
/usr/src/usr.sbin/portmap/portmap.c: In function `xdr_encap_parms':
/usr/src/usr.sbin/portmap/portmap.c:398: warning: passing arg 3 of `xdr_bytes' from incompatible pointer type
===> bad144
cc   -O  -o bad144 /usr/src/usr.sbin/bad144/bad144.c 
/usr/src/usr.sbin/bad144/bad144.c: In function `main':
/usr/src/usr.sbin/bad144/bad144.c:165: warning: assignment from incompatible pointer type
cc   -O  -o worm /usr/src/games/worm/worm.c -lcurses -ltermcap
/usr/src/games/worm/worm.c: In function `process':
/usr/src/games/worm/worm.c:214: warning: unreachable code at beginning of switch statement
===> sort
cc   -O  -o sort /usr/src/gnu/usr.bin/sort/sort.c -lgnumalloc
/usr/src/gnu/usr.bin/sort/sort.c: In function `error':
/usr/src/gnu/usr.bin/sort/sort.c:1737: warning: passing arg 2 of `fprintf' makes pointer from integer without a cast
This is the make script (Thanks, Mark) I've been using with success.
-Tom

#!/bin/csh -f
#cd /usr/src;                 make cleandir
cd /usr/src/share/mk;         make install
cd /usr/src/include;          make && make install
cd /usr/src/gnu/usr.bin/ld;   make && make install
cd /usr/src/lib/csu/i386;     make && make install
cd /usr/src/usr.bin/ar;       make cleandir && make && make install
cd /usr/src/usr.bin/ranlib;   make cleandir && make && make install
cd /usr/src/usr.bin/nm;       make cleandir && make && make install
cd /usr/src/usr.bin/tsort;    make cleandir && make && make install
setenv LDSTATIC -static
setenv NOPIC
cd /usr/src/gnu/usr.bin/gcc2; make && make install
cd /usr/src/gnu/usr.bin/gas;  make && make install
unsetenv NOPIC LDSTATIC
cd /usr/src/lib;              make && make install
cd /usr/src/gnu/lib;          make && make install
cd /usr/src/gnu/libexec;      make && make install
cd /usr/src;                  make && make install

------------------------------------------------------------------------------