2.1.67: Compile error and some warnings.

Daniel Ryde (ryde@tripnet.se)
Sun, 30 Nov 1997 21:11:37 +0100 (CET)


I get a compilation error when undefining SMP in Makefile.

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2
-malign-jumps=2 -malign-functions=2 -DCPU=586 -c -o delay.o delay.c
delay.c: In function `__const_udelay':
delay.c:37: `loops_per_sec' undeclared (first use this function)
delay.c:37: (Each undeclared identifier is reported only once
delay.c:37: for each function it appears in.)
make[2]: *** [delay.o] Error 1
make[2]: Leaving directory `/usr/src/linux/arch/i386/lib'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux/arch/i386/lib'
make: *** [linuxsubdirs] Error 2

I also get some warnings when using SMP:

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-f rame-pointer -D__SMP__ -pipe -fno-strength-reduce -m486
-malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -D__SMP__
-c -o floppy.o floppy.c
floppy.c: In function `floppy_grab_irq_and_dma':
floppy.c:4068: warning: unsigned int format, long unsigned int arg (arg 3)

make[3]: Entering directory `/usr/src/linux/drivers/net'
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -D__SMP__ -pipe -fno-strength-reduce -m486
-malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -D__SMP__
-c -o ppp.o ppp.c
ppp.c:121: warning: `ppp_register_compressor' declared `static' but never
defined
ppp.c:122: warning: `ppp_unregister_compressor' declared `static' but
never defined
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -D__SMP__ -pipe -fno-strength-reduce -m486
-malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -D__SMP__
-c -o slhc.o slhc.c
slhc.c: In function `slhc_i_status':
slhc.c:713: warning: int format, long int arg (arg 2)
slhc.c:713: warning: int format, long int arg (arg 3)
slhc.c:713: warning: int format, long int arg (arg 4)
slhc.c:713: warning: int format, long int arg (arg 5)
slhc.c: In function `slhc_o_status':
slhc.c:725: warning: int format, long int arg (arg 2)
slhc.c:725: warning: int format, long int arg (arg 3)
slhc.c:725: warning: int format, long int arg (arg 4)
slhc.c:725: warning: int format, long int arg (arg 5)
slhc.c:728: warning: int format, long int arg (arg 2)
slhc.c:728: warning: int format, long int arg (arg 3)

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -D__SMP__ -pipe -fno-strength-reduce -m486
-malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -D__SMP__
-c -o dev_table.o dev_table.c
dev_table.c: In function `start_services':
dev_table.c:40: warning: unused variable `soundcards_installed'

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -D__SMP__ -pipe -fno-strength-reduce -m486
-malign-loops=2 -malign- jumps=2 -malign-functions=2 -DCPU=586 -D__SMP__
-c -o sb_mixer.o sb_mixer.c
sb_mixer.h:137: warning: `sgnxpro_mix' defined but not used

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -D__SMP__ -pipe -fno-strength-reduce -m486
-malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -D__SMP__
-c -o nls_base.o nls_base.c
nls_base.c: In function `load_nls':
nls_base.c:209: warning: unused variable `ret'
nls_base.c:208: warning: unused variable `buf'
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -D__SMP__ -pipe -fno-strength-reduce -m486
-malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -D__SMP__
-c -o nls_cp437.o nls_cp437.c
nls_cp437.c:358: warning: `charset2upper' defined but not used
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -D__SMP__ -pipe -fno-strength-reduce -m486
-malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -D__SMP__
-c -o nls_cp850.o nls_cp850.c
nls_cp850.c:250: warning: `charset2upper' defined but not used
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -D__SMP__ -pipe -fno-strength-reduce -m486
-malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -D__SMP__
-c -o nls_iso8859-1.o nls_iso8859-1.c
nls_iso8859-1.c:138: warning: `charset2upper' defined but not used

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -D__SMP__ -pipe -fno-strength-reduce -m486
-malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -D__SMP__
-c -o filesystems.o filesystems.c
filesystems.c: In function `do_sys_setup':
filesystems.c:89: warning: implicit declaration of function `init_smb_fs'

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -D__SMP__ -pipe -fno-strength-reduce -m486
-malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -D__SMP__
-c -o smp.o smp.c
smp.c: In function `do_boot_cpu':
smp.c:829: warning: integer overflow in expression

Here is my .config:
CONFIG_NET=y
CONFIG_PCI=y
CONFIG_PCI_BIOS=y
CONFIG_SYSVIPC=y
CONFIG_SYSCTL=y
CONFIG_BINFMT_ELF=y
CONFIG_M586=y
CONFIG_BLK_DEV_FD=y
CONFIG_BLK_DEV_IDE=y
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_BLK_DEV_IDECD=y
CONFIG_BLK_DEV_TRITON=y
CONFIG_INET=y
CONFIG_SYN_COOKIES=y
CONFIG_PATH_MTU_DISCOVERY=y
CONFIG_IP_NOSR=y
CONFIG_SKB_LARGE=y
CONFIG_NETDEVICES=y
CONFIG_DUMMY=y
CONFIG_NET_ETHERNET=y
CONFIG_NET_EISA=y
CONFIG_DEC_ELCP=y
CONFIG_PPP=y
CONFIG_SLIP=y
CONFIG_SLIP_COMPRESSED=y
CONFIG_EXT2_FS=y
CONFIG_ISO9660_FS=y
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
CONFIG_VFAT_FS=y
CONFIG_PROC_FS=y
CONFIG_SMB_FS=y
CONFIG_SMB_WIN95=y
CONFIG_NLS=y
CONFIG_NLS_CODEPAGE_437=y
CONFIG_NLS_CODEPAGE_850=y
CONFIG_NLS_ISO8859_1=y
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_SOUND=y
CONFIG_SB=y

Best Regards

Daniel Ryde, System Administrator
__________________________________________________________________________
Tripnet AB Visit Address: Telephone: +46 31 7252500
Box 5071 Avagen 42 Facsimile: +46 31 7252501
S-402 22 GOTEBORG GOTEBORG Email: ryde@tripnet.se
Sweden Sweden