ATF-devel archive

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

Re: Building ATF on OpenBSD box



On Wed, Apr 14, 2010 at 10:38 AM, Sven Dehmlow 
<sven%kaffeechaoten.de@localhost> wrote:
> Hey Julio,
>
> Am Mi, 14.04.2010, 10:09, schrieb Julio Merino:
>> On Tue, Apr 13, 2010 at 11:12 PM, Sven Dehmlow 
>> <sven%kaffeechaoten.de@localhost>
>> wrote:
>
>>> The warnings we're talking about are thrown from ld. Perhaps -Werror
>>> doesn't affect ld at all? Or the gcc-4.2 from the ports system uses a
>>> different configuration than that one in OpenBSD base?
>>>
>>> I'm not sure why, but gcc/g++ 4.2 build atf with -Werror enabled.
>>
>> Ah, I see.  The warnings are coming from a library itself  I'm not
>> sure how these are bundled in there, but they are not related to
>> -Werror.
>
> There is a good paper about string functions in OpenBSD:
>
> http://www.gratisoft.us/todd/papers/strlcpy.html
>
> However, I think it's not important to figure out where the ld warnings
> exactly come from, but to fix them ... (at least in the OpenBSD port) :D

I have no problem with "fixing" some of the reported problems, but
others don't have an easy "fix".  strlcpy, for example, is
non-portable.  Not sure if OpenBSD complains about strncpy too?

-- 
Julio Merino


Home | Main Index | Thread Index | Old Index