Discussion:
getline error with make
Br. Nirmalachaitanya
2006-04-20 02:25:21 UTC
Permalink
Dear Cygwin mailing list,

When trying to 'make' FontForge on Cygwin, we get the following error.

gimagereadxpm.c:128: error: conflicting types for 'getline'
/usr/include/sys/stdio.h.31: error: previous declaration of 'getline'
was here
gimagereadxpm.c:128: error: conflicting types for 'getline'
/usr/include/sys/stdio.h.31: error: previous declaration of 'getline'
was here
gimagereadxpm.c:84: warning: 'LookupXColorName' defined but not used
make[1]: *** [gimagereadxpm.o] Error 1
make[1]: Leaving directory '/home/User1/fontforge_cvs/gdraw'
make: *** [libgdraw] Error 2


Is this considered to be FontForge's problem by Cygwin people, because
of the addition of getline or something like that, recently added to
Cygwin? FontForge people consider it to be Cygwin's problem--they
believe there is a problem with stdio.h.

Hope there might be some solution to this problem, from one or both
sides. . .

Thanks and regards,
Br. Nirmalachaitanya
Eric Blake
2006-04-20 04:07:25 UTC
Permalink
Post by Br. Nirmalachaitanya
When trying to 'make' FontForge on Cygwin, we get the following error.
gimagereadxpm.c:128: error: conflicting types for 'getline'
/usr/include/sys/stdio.h.31: error: previous declaration of 'getline'
was here
This has already been brought up on this list:
http://www.cygwin.com/ml/cygwin/2006-01/msg01217.html
Post by Br. Nirmalachaitanya
Hope there might be some solution to this problem, from one or both
sides. . .
Both. Cygwin CVS has already guarded the declaration with
_GNU_SOURCE, so it is not exposed in a strict compilation
environment. And FontForge should realize that the Austin
group is considering including the GNU definition of readline
as a mandatory function in the next version of POSIX, so any
application that wants to use their own version needs to
be aware that a standardized version will likely also exist
soon.
--
Eric Blake
Continue reading on narkive:
Loading...