All - I have downloaded the latest 2.4.21-0 kernel source from ftp://ftp.suse.com/pub/people/mantel/next/RPM/, and can not get the module compile to go. I did a "make cloneconfig" to get all the options I had for 2.4.20-62, and gave answers for all the new config items. The "make dep", "make bzImage" and "make install" went well. The "make modules" fails every time, in /usr/src/linux-2.4.21-0/drivers/hotplug, with the following errors: gcc -D__KERNEL__ -I/usr/src/linux-2.4.21-0/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE -nostdinc -iwithprefix include -DKBUILD_BASENAME=acpiphp_glue -c -o acpiphp_glue.o acpiphp_glue.c acpiphp_glue.c: In function `find_host_bridge': acpiphp_glue.c:815: warning: passing arg 2 of `acpi_get_object_info' from incompatible pointer type acpiphp_glue.c:821: error: request for member `hardware_id' in something not a structure or union acpiphp_glue.c:821: error: request for member `hardware_id' in something not a structure or union acpiphp_glue.c:824: error: request for member `current_status' in something not a structure or union acpiphp_glue.c:825: error: request for member `valid' in something not a structure or union acpiphp_glue.c:826: error: request for member `hardware_id' in something not a structure or union acpiphp_glue.c: In function `get_slot_from_id': acpiphp_glue.c:1325: warning: comparison between signed and unsigned make[2]: *** [acpiphp_glue.o] Error 1 make[2]: Leaving directory `/usr/src/linux-2.4.21-0/drivers/hotplug' make[1]: *** [_modsubdir_hotplug] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4.21-0/drivers' make: *** [_mod_drivers] Error 2 Here is the code which fails: /* callback routine to enumerate all the bridges in ACPI namespace */ static acpi_status find_host_bridge (acpi_handle handle, u32 lvl, void *context, void **rv) { acpi_status status; struct acpi_device_info info; char objname[5]; struct acpi_buffer buffer = { .length = sizeof(objname), .pointer = objname }; status = acpi_get_object_info(handle, info); if (ACPI_FAILURE(status)) { dbg("%s: failed to get bridge information\n", __FUNCTION__); return AE_OK; /* continue */ } info.hardware_id[sizeof(info.hardware_id)-1] = '\0'; /* TBD use acpi_get_devices() API */ if (info.current_status && (info.valid & ACPI_VALID_HID) && strcmp(info.hardware_id, ACPI_PCI_HOST_HID) == 0) { acpi_get_name(handle, ACPI_SINGLE_NAME, &buffer); dbg("checking PCI-hotplug capable bridges under [%s]\n", objname); add_bridges(handle); } return AE_OK; } I can't see anything immediately wrong with it, but I am no kernel hacker either. Anyone got any suggestions/patches? Mark Almeida -- Powered by SuSE Linux 8.2/Kmail 1.5.2
On Tuesday 01 July 2003 05:21 pm, The Wizard wrote: Try make clean make menuconfig (Save and exit) make dep make modules make bzImage If that doesn't help...just don't compile that module (unless you need it). If you do then write back if it still doesn't compile. ---------------------- Eric Bambach Eric (at) CISU (dot) net ----------------------
On Tuesday 01 July 2003 16:41, Eric wrote:
On Tuesday 01 July 2003 05:21 pm, The Wizard wrote: Try make clean make menuconfig (Save and exit) make dep make modules make bzImage
If that doesn't help...just don't compile that module (unless you need it). If you do then write back if it still doesn't compile.
Eric - As I noted, the problem is the "make modules", I have tried "make clean" and "make mrproper" first, no joy. The "make bzImage" goes fine, I get a new kernel, but the "make modules" fails on hotplug, which I do need. It appears that there may be a patch missing? Mark Almeida -- Powered by SuSE Linux 8.2/Kmail 1.5.2
participants (2)
-
Eric
-
The Wizard