On 03/09/2013 12:01 AM, Bruce Dubbs wrote:
> Claus Regelmann wrote:
>> Hello,
>>
>> the following SED fixed a compile error when I used KNOPPIX 6.7.1 as
>> initial system to build the toolchain:
>>    >> sed -i '4s/;$//' lib/putenv.c' <<
>> This is simply a typo in the source.
>>
>> This error did not occur, when I used SuSE 12.2. as initial system !!! ???
>
> What is there is equivalent to declaring the function in a header file.
> A grep through the source shows that the function is not used.  What's
> the version of gcc in KNOPPIX 6.7.1?
>
>     -- Bruce
>
Yes -- it is a prototype declaration, but it shouldn't be one.
The next character is '{'. This is what the compiler correctly complaines.

There may be differences depending on the initial host environment. Under
SuSE and many other systems, this function is not even be compiled.
Look at the 1st line of putenv.c.
The function has something to deal with "compatability".

        -- Claus
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to