compile error in isapnp-tools

richard at reika.demon.co.uk richard at reika.demon.co.uk
Fri Nov 10 06:51:45 PST 2000


Misquoted from Lukas Mol on Fri, Nov 10, 2000 at 03:31:09PM +0100:
> I get the following error when trying to compile isapnp-tools (1.23)
> 
> gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -O3 -mcpu=i586
> -march=i586 -c pnpdump_main.c
> pnpdump_main.c:87: initializer element is not constant
> make[1]: *** [pnpdump_main.o] Error 1
> make[1]: Leaving directory `/usr/src/isapnptools-1.23/src'
> make: *** [all-recursive] Error 1
> 
> Line 87 of pnpdump_main.c is:
> static FILE* o_file = stdout;
> 
> Has anyone had similar trouble? Maybe even a solution ;-)
Try this:
Line 87 of pnpdump_main.c:
static FILE* o_file;

Look for something like:
int main (int argc, char** argv)
{
....

The names argc and argv may be different. After the { add:
o_file = stdout;

Richard

-- 
Unsubscribe: send email to lfs-apps-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message




More information about the blfs-support mailing list