compile error in isapnp-tools

Lukas Mol L.Mol at ITS.TUDelft.nl
Sun Nov 12 15:32:44 PST 2000


Nope... contrary to my earlier report, it does not work ;-(
It compiles ok, but running pnpdump results in a 'segmenation fault' (is
that a bad thing ?)
Anyone more ideas? TIA, Lukas.

ps.: Below a wrap up of the story:

>> 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;
>
> From: Lukas Mol <L.Mol at ITS.TUDelft.NL>
> Hmm thanks for the suggestion Richard,
> I tried it... make goes a little bit further, but not all the way ;-(
> I had to add FILE* before o_file = stdout in the main section. That
> worked... Thanks again ;-)))
-- 
Lukas Mol       tel: ++31-15-2613644
Gandhilaan 34   mob: ++31-6-24201416
2622 GE Delft   fax: ++31-20-8744659
The Netherlands UIN: 4421187


-- 
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