Netboot Mailing List (by thread)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re[2]: mknbi-mgl compile problem




>> I had got the same problem. Indeed, this problen is very strange !
>> My solution is:
>> 1. cd ./mknbi-mgl
>> 2. make
>> 3. after the errors signaled, edit y.tab.c
>>   and insert after the definitions #include, the function strcmp2:
>>   int strcmp2 (const char *s1, const char *s2)
>>   {
>>           return strcmp(s1, s2);
>>   }
>> 4. replace strcmp by strcmp2 within the source y.tab.c
>> 5. then make
>> it work fine !
>
>Thanks, now it compiles!
>Well, i've never seen anything more shamanic than that :)
>Maybe the netboot gurus will explain to us - what happened?
>
>now i start to suspect my gcc - it's egcs-2.91.66 ...

I don't use mknbi-mgl but if it comes from y.tab.c perhaps the prototype
for strcmp has changed in the standard include files and you are using
a y.tab.c generated by an old bison. You should be able to get the same
effect with a macro or maybe a couple of casts, I would guess.
===========================================================================
This Mail was sent to netboot mailing list by:
Ken Yap <ken@nlc.net.au>
To get help about this list, send a mail with 'help' as the only string in
it's body to majordomo@baghira.han.de. If you have problems with this list,
send a mail to netboot-owner@baghira.han.de.



For requests or suggestions regarding this mailing list archive please write to netboot@gkminix.han.de.