Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <41BC7466.9010500@cwilson.fastmail.fm> Date: Sun, 12 Dec 2004 11:40:06 -0500 From: Charles Wilson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 MultiZilla/1.6.4.0b MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: curses.h / termcap.h: conflicting types of tparm References: <425828462 DOT 20041209231444 AT unexplaineds DOT org> <41BC4D2A DOT 7090702 AT familiehaase DOT de> <41BC51E1 DOT 5080301 AT familiehaase DOT de> In-Reply-To: <41BC51E1.5080301@familiehaase.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Note-from-DJ: This may be spam Gerrit P. Haase wrote: > > curses.h / termcap.h: conflicting types of tparm > > This error happens when compiling the MySQL client v4.1.7 term.c > because both headers are included. > > There are two locations to report this, the cygwin main list and > the mysql list, because it may be unusual to include both and so > the error is in MySQL in doing so, or if it turns out to be a > problem with termcap or ncurses the cygwin maintainer of these > packages needs to decide where the problem is and try to push > it upstreams or find a cygwin specific solution. (a) it IS unusual to #include both (b) both cygwin (the package, containing the dll) and ncurses (by default) provide a termcap.h file. I assume that curses.h -- which on cygwin is from ncurses -- and ncurses' termcap.h would both agree. However, cygwin's termcap.h and ncurses' termcap.h are different. Besides, any rational package management system allows each file to ONLY be provided by one package -- or the packages must be marked as conflicting. We can't very well have cygwin's 'ncurses' package conflict with cygwin's 'cygwin' package. So, when I put together the ncurses packages, I rename ncurses' termcap.h to avoid conflicts. Because (see (a), above) it is unusual to #include both. FWIW, "termcapn.h" lives in /usr/include/ncurses/, and unlike some of the other headers in that subdir, the postinstall script does NOT create a symlink to it from /usr/include/. I suppose one solution would be for me to stop renaming the header file, and then you could add -I/usr/include/ncurses/ to your CFLAGS. That way, you'd get the ncurses-derived termcap.h which would, presumably, not conflict with the ncurses-derived curses.h... -- Chuck -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/