On Sat, 2004-06-19 at 16:12 -0400, Kevin Flynn wrote: > I'd like to play with the kernel's suspend-to-disk feature, so I'm trying to > build a custom kernel using kernel-sourcecode-2.6.6-1.435. > > When I enable either the CONFIG_SOFTWARE_SUSPEND or CONFIG_PM_DISK > power management options, the kernel build fails with with the following > errors, respectively: > > arch/i386/power/built-in.o(.text+0x1b4): In function `pmdisk_arch_suspend': > : undefined reference to `swsusp_pg_dir' > arch/i386/power/built-in.o(.text+0x263): In function `do_magic': > : undefined reference to `swsusp_pg_dir' > make: *** [.tmp_vmlinux1] Error 1 > > Any ideas? Other people have been discussing suspend-related stuff on this > list, so I > imagine I'm doing something wrong. > > Thanks! > > p.s. Here are relevant lines from my kernel .config file: > > # > # Power management options (ACPI, APM) > # > CONFIG_PM=y > CONFIG_SOFTWARE_SUSPEND=y > CONFIG_PM_DISK=y > CONFIG_PM_DISK_PARTITION="/dev/hda5" Generic advice - haven't tried to replicate this problem... Back up modified .config, do "make mrproper", restore .config, do "make oldconfig", (optional - "make gconfig" or "make menuconfig" for any additional changes), answer any questions, "make all", "make install". Phil