Hi Rene,

Thanks for the reply and the workaround.

But it really strange that I built the source with other linux OS, This
error didn't happened. And they have the same stdio.h conflict
getline(). How the build process avoided the conflict?

Thanks again.

Best regards,
Lihua

在 2009-11-19四的 08:50 +0100,Rene Engelhard写道:
> Hi,
> 
> On Thu, Nov 19, 2009 at 11:24:55AM +0800, Zhu Lihua wrote:
> > In file mkdepend/def.h:157
> > char        *getline();
> > 
> > But in file /usr/include/stdio.h:651
> > extern _IO_ssize_t getline (char **__restrict __lineptr,
> >                             size_t *__restrict __n,
> >                             FILE *__restrict __stream) __wur;
> > 
> > Why this happened?
> 
> Becausse there is a copnflict with that getline and glibcs.
> As the error says:
> 
> [...]
> def.h:157: error: conflicting types for 'getline'                             
>   
> /usr/include/stdio.h:651: note: previous declaration of 'getline' was here 
> [...]
> 
> > And why this not happend before?
> 
> because you eithere upgraded your system or reinstalled a new version
> and it gets a new glibc. OOo 3.1.1 does not build with it because of
> the above.
> 
> Workaround: 
> http://cgit.freedesktop.org/ooo-build/ooo-build/tree/patches/dev300/soltools-mkdepend-getline.diff?h=ooo-build-3-1-1
> (afaik upstream too already, but of course not for 3.1.1 because it
> was dfound after the release...)
> 
> Grüße/Regards,
> 
> Rene
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to