Christoph Tavan writes: > On Friday 10 June 2005 20:49, Frank Siegert wrote: >> 2. I tried to add the patch manually (and can't see where I missed >> something -- the "extern void machine_real_restart(...)" line exists), but >> kernel compilation then fails. >> >> |   CC      init/version.o >> |   LD      init/built-in.o >> |   LD      .tmp_vmlinux1 >> | ld: BFD 2.15 assertion fail ../../bfd/linker.c:619 >> | >> | drivers/built-in.o(.text+0x203ef): In function `acpi_enter_sleep_state': >> | : undefined reference to `machine_real_restart' >> | >> | make[1]: *** [.tmp_vmlinux1] Fehler 1 >> | make[1]: Verlasse Verzeichnis »/usr/src/linux-2.6.12-rc6« >> | make: *** [stamp-build] Fehler 2 > > I get exactly the same error. I also would like to test that patch, but I > cannot compile the sources with that patch applied. What is your version of gcc? I just got around to trying this patch out today using 2.6.12-rc6 and everything worked great. In fact, the patch even does the suspend/resume correctly. Now, it doesn't actually go to sleep so it's not useful, but it was just for testing/debugging right? I'm using gcc 3.3.5 (Debian 1:3.3.5-13). > >> Would you mind posting the patch as attachment and the exact >> command I have to issue in my kernel directory? > > That would be great!!! the command I used from linux-2.6.12-rc6/ was: patch drivers/acpi/hardware/hwsleep.c patch-s3.diff that assumes patch-s3.diff is in the linux-2.6.12-rc6 directory. I'm also attaching the patch file again as you requested. HTH, Jason