Re: 2.5.18 -- build failure -- suspend.c:1052: dereferencing pointer to incomplete type

A Guy Called Tyketto (tyketto@wizard.com)
Sat, 25 May 2002 01:08:58 -0700


On Fri, May 24, 2002 at 11:22:34PM -0700, Miles Lane wrote:
> I have included the error, the output of ver_linux and
> snippets of .config.
>
> gcc -D__KERNEL__ -I/usr/src/linux-2.5.18/include -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
> -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
> -march=athlon
> -DKBUILD_BASENAME=suspend -DEXPORT_SYMTAB -c -o suspend.o suspend.c
> suspend.c: In function `freeze_processes':
> suspend.c:240: warning: implicit declaration of function `signal_wake_up'
> suspend.c: In function `fill_suspend_header':
> suspend.c:292: warning: comparison between pointer and integer

[ snip ]

> I don't know what options might be involved in causing this build
> failure, so I will only include some of the higher level ones:

> CONFIG_SOFTWARE_SUSPEND=y
^^^^^^^^^^^^^^^^^^^^^^^^^

This, I believe is what is causing it. in looking through the 2.5.18
patch, this is new to the kernel, and is a newly configurable option to the
kernel. For testing, I could see you adding it in, but you need this?
especially if you have APM or ACPI? This doesn't rely on those, but if you're
using APM or ACPI for suspend, this really wouldn't be needed.

BL.

-- 
Brad Littlejohn                         | Email:        tyketto@wizard.com
Unix Systems Administrator,             |           tyketto@ozemail.com.au
Web + NewsMaster, BOFH.. Smeghead! :)   |   http://www.wizard.com/~tyketto
  PGP: 1024D/E319F0BF 6980 AAD6 7329 E9E6 D569  F620 C819 199A E319 F0BF

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