[2.2.8-pre5] Compile error

Jochen Heuer (jogi@planetzork.ping.de)
Mon, 10 May 1999 13:51:34 +0200


--ikeVEW9yuYc//A+q
Content-Type: text/plain; charset=us-ascii

Hello,

I get the following error compiling 2.2.8-pre5:

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 -DUTS_MACHINE='"i386"' -c -o init/version.o init/version.c
make -C kernel
make[1]: Entering directory `/usr/src/linux/kernel'
make all_targets
make[2]: Entering directory `/usr/src/linux/kernel'
make[2]: Nothing to be done for `all_targets'.
make[2]: Leaving directory `/usr/src/linux/kernel'
make[1]: Leaving directory `/usr/src/linux/kernel'
make -C drivers
make[1]: Entering directory `/usr/src/linux/drivers'
make -C block
make[2]: Entering directory `/usr/src/linux/drivers/block'
make all_targets
make[3]: Entering directory `/usr/src/linux/drivers/block'
make[3]: Nothing to be done for `all_targets'.
make[3]: Leaving directory `/usr/src/linux/drivers/block'
make[2]: Leaving directory `/usr/src/linux/drivers/block'
make -C char
make[2]: Entering directory `/usr/src/linux/drivers/char'
make all_targets
make[3]: Entering directory `/usr/src/linux/drivers/char'
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 rtc.o rtc.c
rtc.c:57: linux/mc146818rtc.h: No such file or directory
rtc.c:86: warning: `struct rtc_time' declared inside parameter list
rtc.c:86: warning: its scope is only this definition or declaration,
rtc.c:86: warning: which is probably not what you want.
rtc.c:87: warning: `struct rtc_time' declared inside parameter list
rtc.c: In function `rtc_interrupt':
rtc.c:134: warning: implicit declaration of function `CMOS_READ'
rtc.c:134: `RTC_INTR_FLAGS' undeclared (first use this function)
rtc.c:134: (Each undeclared identifier is reported only once
rtc.c:134: for each function it appears in.)
rtc.c: In function `rtc_ioctl':
rtc.c:191: storage size of `wtime' isn't known
rtc.c:194: `RTC_AIE_OFF' undeclared (first use this function)
rtc.c:196: `RTC_AIE' undeclared (first use this function)
rtc.c:199: `RTC_AIE_ON' undeclared (first use this function)
rtc.c:204: `RTC_PIE_OFF' undeclared (first use this function)
rtc.c:206: `RTC_PIE' undeclared (first use this function)
rtc.c:213: `RTC_PIE_ON' undeclared (first use this function)
rtc.c:231: `RTC_UIE_OFF' undeclared (first use this function)
rtc.c:233: `RTC_UIE' undeclared (first use this function)
rtc.c:236: `RTC_UIE_ON' undeclared (first use this function)
rtc.c:241: `RTC_ALM_READ' undeclared (first use this function)
rtc.c:252: `RTC_ALM_SET' undeclared (first use this function)
rtc.c:260: storage size of `alm_tm' isn't known
rtc.c:263: sizeof applied to an incomplete type
rtc.c:263: sizeof applied to an incomplete type
rtc.c:263: sizeof applied to an incomplete type
rtc.c:281: `RTC_CONTROL' undeclared (first use this function)
rtc.c:281: `RTC_DM_BINARY' undeclared (first use this function)
rtc.c:282: `RTC_ALWAYS_BCD' undeclared (first use this function)
rtc.c:284: warning: implicit declaration of function `BIN_TO_BCD'
rtc.c:288: warning: implicit declaration of function `CMOS_WRITE'
rtc.c:288: `RTC_HOURS_ALARM' undeclared (first use this function)
rtc.c:289: `RTC_MINUTES_ALARM' undeclared (first use this function)
rtc.c:290: `RTC_SECONDS_ALARM' undeclared (first use this function)
rtc.c:260: warning: unused variable `alm_tm'
rtc.c:295: `RTC_RD_TIME' undeclared (first use this function)
rtc.c:300: `RTC_SET_TIME' undeclared (first use this function)
rtc.c:302: storage size of `rtc_tm' isn't known
rtc.c:312: sizeof applied to an incomplete type
rtc.c:312: sizeof applied to an incomplete type
rtc.c:312: sizeof applied to an incomplete type
rtc.c:359: `RTC_SET' undeclared (first use this function)
rtc.c:360: `RTC_FREQ_SELECT' undeclared (first use this function)
rtc.c:361: `RTC_DIV_RESET2' undeclared (first use this function)
rtc.c:363: `RTC_YEAR' undeclared (first use this function)
rtc.c:364: `RTC_MONTH' undeclared (first use this function)
rtc.c:365: `RTC_DAY_OF_MONTH' undeclared (first use this function)
rtc.c:366: `RTC_HOURS' undeclared (first use this function)
rtc.c:367: `RTC_MINUTES' undeclared (first use this function)
rtc.c:368: `RTC_SECONDS' undeclared (first use this function)
rtc.c:302: warning: unused variable `rtc_tm'
rtc.c:376: `RTC_IRQP_READ' undeclared (first use this function)
rtc.c:380: `RTC_IRQP_SET' undeclared (first use this function)
rtc.c:436: warning: unreachable code at beginning of switch statement
rtc.c:191: warning: unused variable `wtime'
rtc.c: In function `rtc_release':
rtc.c:470: `RTC_CONTROL' undeclared (first use this function)
rtc.c:471: `RTC_PIE' undeclared (first use this function)
rtc.c:472: `RTC_AIE' undeclared (first use this function)
rtc.c:473: `RTC_UIE' undeclared (first use this function)
rtc.c:475: `RTC_INTR_FLAGS' undeclared (first use this function)
rtc.c: In function `rtc_init':
rtc.c:537: warning: implicit declaration of function `RTC_PORT'
rtc.c:574: `RTC_FREQ_SELECT' undeclared (first use this function)
rtc.c: In function `rtc_dropped_irq':
rtc.c:603: `RTC_INTR_FLAGS' undeclared (first use this function)
rtc.c: In function `get_rtc_status':
rtc.c:614: storage size of `tm' isn't known
rtc.c:620: `RTC_VALID' undeclared (first use this function)
rtc.c:620: `RTC_VRT' undeclared (first use this function)
rtc.c:621: `RTC_CONTROL' undeclared (first use this function)
rtc.c:672: `RTC_DST_EN' undeclared (first use this function)
rtc.c:673: `RTC_DM_BINARY' undeclared (first use this function)
rtc.c:674: `RTC_24H' undeclared (first use this function)
rtc.c:675: `RTC_SQWE' undeclared (first use this function)
rtc.c:676: `RTC_AIE' undeclared (first use this function)
rtc.c:677: `RTC_UIE' undeclared (first use this function)
rtc.c:678: `RTC_PIE' undeclared (first use this function)
rtc.c:614: warning: unused variable `tm'
rtc.c:615: warning: `batt' might be used uninitialized in this function
rtc.c: In function `rtc_is_updating':
rtc.c:695: `RTC_FREQ_SELECT' undeclared (first use this function)
rtc.c:695: `RTC_UIP' undeclared (first use this function)
rtc.c: At top level:
rtc.c:700: warning: `struct rtc_time' declared inside parameter list
rtc.c:701: conflicting types for `get_rtc_time'
rtc.c:86: previous declaration of `get_rtc_time'
rtc.c: In function `get_rtc_time':
rtc.c:728: dereferencing pointer to incomplete type
rtc.c:728: `RTC_SECONDS' undeclared (first use this function)
rtc.c:729: dereferencing pointer to incomplete type
rtc.c:729: `RTC_MINUTES' undeclared (first use this function)
rtc.c:730: dereferencing pointer to incomplete type
rtc.c:730: `RTC_HOURS' undeclared (first use this function)
rtc.c:731: dereferencing pointer to incomplete type
rtc.c:731: `RTC_DAY_OF_MONTH' undeclared (first use this function)
rtc.c:732: dereferencing pointer to incomplete type
rtc.c:732: `RTC_MONTH' undeclared (first use this function)
rtc.c:733: dereferencing pointer to incomplete type
rtc.c:733: `RTC_YEAR' undeclared (first use this function)
rtc.c:734: `RTC_CONTROL' undeclared (first use this function)
rtc.c:737: `RTC_DM_BINARY' undeclared (first use this function)
rtc.c:737: `RTC_ALWAYS_BCD' undeclared (first use this function)
rtc.c:739: warning: implicit declaration of function `BCD_TO_BIN'
rtc.c:739: dereferencing pointer to incomplete type
rtc.c:740: dereferencing pointer to incomplete type
rtc.c:741: dereferencing pointer to incomplete type
rtc.c:742: dereferencing pointer to incomplete type
rtc.c:743: dereferencing pointer to incomplete type
rtc.c:744: dereferencing pointer to incomplete type
rtc.c:751: dereferencing pointer to incomplete type
rtc.c:752: dereferencing pointer to incomplete type
rtc.c:754: dereferencing pointer to incomplete type
rtc.c:691: warning: `uip' might be used uninitialized in this function
rtc.c: At top level:
rtc.c:757: warning: `struct rtc_time' declared inside parameter list
rtc.c:758: conflicting types for `get_rtc_alm_time'
rtc.c:87: previous declaration of `get_rtc_alm_time'
rtc.c: In function `get_rtc_alm_time':
rtc.c:768: dereferencing pointer to incomplete type
rtc.c:768: `RTC_SECONDS_ALARM' undeclared (first use this function)
rtc.c:769: dereferencing pointer to incomplete type
rtc.c:769: `RTC_MINUTES_ALARM' undeclared (first use this function)
rtc.c:770: dereferencing pointer to incomplete type
rtc.c:770: `RTC_HOURS_ALARM' undeclared (first use this function)
rtc.c:771: `RTC_CONTROL' undeclared (first use this function)
rtc.c:774: `RTC_DM_BINARY' undeclared (first use this function)
rtc.c:774: `RTC_ALWAYS_BCD' undeclared (first use this function)
rtc.c:776: dereferencing pointer to incomplete type
rtc.c:777: dereferencing pointer to incomplete type
rtc.c:778: dereferencing pointer to incomplete type
rtc.c: In function `mask_rtc_irq_bit':
rtc.c:799: `RTC_CONTROL' undeclared (first use this function)
rtc.c:802: `RTC_INTR_FLAGS' undeclared (first use this function)
rtc.c: In function `set_rtc_irq_bit':
rtc.c:814: `RTC_CONTROL' undeclared (first use this function)
rtc.c:817: `RTC_INTR_FLAGS' undeclared (first use this function)
make[3]: *** [rtc.o] Error 1
make[3]: Leaving directory `/usr/src/linux/drivers/char'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux/drivers/char'
make[1]: *** [_subdir_char] Error 2
make[1]: Leaving directory `/usr/src/linux/drivers'
make: *** [_dir_drivers] Error 2

I'll append my .config.

Regards,

Jogi

-- 

Well, yeah ... I suppose there's no point in getting greedy, is there?

<< Calvin & Hobbes >>

--ikeVEW9yuYc//A+q Content-Type: application/x-gunzip Content-Disposition: attachment; filename=".config.gz" Content-Transfer-Encoding: base64

H4sIANXFNjcAA3WUzX7bIAzA73uaJG0y59AD5sNlBkQRdpKTnqD37e1Hlt9qKXZv6C8hoQ+k ITk/kL1mW3y0qarw9ueHftB47E4V9QKu3YkumS5QRiQYpcKnOeRBsh4vKkuUISuzuizCRDBT sLiAsZFFSrYuQtZeCDSASjeJeg8oifHFaumFPibf0pIMgqFcgL0Nbzj7LIGurGi9Ty5WssGt WPQty88v/6pkKHUFWuCFqRwXN01o5bvYQuCcxKVq8khD5EmlLIR1xD6MZOxMzqyZN5YlsEDj cdxU6G0nVWW7qRCd4wGiWvhDJjVVWBsHgCzK16y3yqpHPjFT8lcWQEyTz6SCV2wKcOwpqDKw YqBGv84IN9LHssVotslAWRzq9/JQDYv5PQj1EwYYPJuH9tpm6TX/HWaK8SZMyNZ3W0Rm/6hH Vlqbvd7vdguYKz9TOyEEnndbEXw93At57ijXG27B5mBK9e1wPP3XtSFlU9ta6pAcu+tUvctf mUQ0gILMzyYe4Xw67QT7BcGLFdE+sIjTKpirDG2v9SCABqOE1/T02CazjuOUCt8KAfTIV1ZA Idzd26wGS68vP1kMrumOO6lpuXbd8Uz7b/CR1WlQ6/7N7XtA62IQq8/1T5O0vuj6NrJ8dL7z 1A6kXd9tsP1pAx5eN+DLgUFIlbrf3Ypwd1G1L3Lfw+Wjwb8vjCF10gYAAA==

--ikeVEW9yuYc//A+q--

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/