Claus Regelmann wrote:
> 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?

> Yes -- it is a prototype declaration, but it shouldn't be one.
> The next character is '{'. This is what the compiler correctly complaines.

Yes.  I thought about this after I sent the last post.

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

I checked my logs and indeed, it is not compiled when using an LFS host.

I'm not sure what is wrong with KNOPPIX that it does not have putenv and 
check wants to build it.  configure runs:

ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"

in order to determine if it is present and it should be in libc-2.17.so.

Does KNOPPIX 6.7.1 meet all the requirements of the Host System 
Requirements?  Look especially for glibc.  For me, I did:

$ nm /lib/libc-2.17.so|grep putenv
0000000000037500 T putenv

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

Reply via email to