[ale] compile error: strlcpy defined differently in 2 different files, huh ?

Courtney Thomas cc.thomas at earthlink.net
Mon Feb 6 16:36:59 EST 2006


Joe,

Three things.....

The last line of my previous post should have read "or" instead of "of".

I don't understand why the application would be using an externally 
defined strlcpy if it had an internal definition ?

If your nonpareil compiled and mine won't, then your 
/usr/include/string.h must have a different definition of strlcpy than mine.

What is yours, please ?

Thanks again,
Courtney



Joe Knapka wrote:
> I don't have any problem building it. What version of glibc are you
> using? Mine's 2.3.3.
> 
> -- JK
> 
> Courtney Thomas wrote:
> 
> 
>>In trying to compile the HP calculator simulator nonpareil-0.77, I get 
>>the error:
>>
>>	error: conflicting type for 'strlcpy'
>>
>>
>>
>>and strlcpy is defined in string.h & util.h......
>>
>>	/usr/include/string.h
>>	
>>	as -> size_t strlcpy(char *, const char *, size_t);
>>
>>whereas,
>>	
>>	util.h			; in the app source
>>	
>>	as -> char *strlcpy(char *dest, const char *src, size_t l);
>>
>>
>>
>>What is the resolution of this without either compromising the 
>>application of the /usr/include/string definition ?
>>
>>Appreciatively,
>>
>>Courtney
>>_______________________________________________
>>Ale mailing list
>>Ale at ale.org
>>http://www.ale.org/mailman/listinfo/ale
>>
>>
>> 
>>
> 
> 
> 
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
> 



More information about the Ale mailing list