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]
