This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Errors compiling cdrtools under cygwin 1.5.19


"pobox@verysmall.org" wrote:

> I do not want to heat the discussion, but getline() in cygwin played
> very hard against me.

Like I said in the other thread, you can fix this in Apache (and
cdrtools for that matter -- see attached patch) with a couple of
#defines in the offending files.  It's really simple.

If you can't deal with simple patches then why are you building from
source?  In open source projects it's often the case that if you're
building things yourself there will sometimes have to actually get your
hands dirty and modify the source.  To expect every open source package
to compile on every platform out-of-the-box every time is absurd. 
That's why most people use binary packages, and most distributors of
binary packages have metric craploads of patches -- most just trivial
build fixes like this.

Brian
diff -upr cdrtools-2.01/cdrecord/cue.c /usr/src/cdrtools-2.01/cdrecord/cue.c
--- cdrtools-2.01/cdrecord/cue.c	2004-03-02 12:00:53.000000000 -0800
+++ /usr/src/cdrtools-2.01/cdrecord/cue.c	2005-12-17 16:22:53.796875000 -0800
@@ -44,6 +44,8 @@ static	char sccsid[] =
 #include "auheader.h"
 #include "libport.h"
 
+#define getdelim schily_getdelim
+
 typedef struct state {
 	char	*filename;
 	void	*xfp;
diff -upr cdrtools-2.01/include/schily.h /usr/src/cdrtools-2.01/include/schily.h
--- cdrtools-2.01/include/schily.h	2004-03-04 16:30:40.000000000 -0800
+++ /usr/src/cdrtools-2.01/include/schily.h	2005-12-17 16:19:09.015625000 -0800
@@ -39,6 +39,8 @@
 #ifndef _SCHILY_H
 #define	_SCHILY_H
 
+#define getline schily_getline
+
 #ifndef _STANDARD_H
 #include <standard.h>
 #endif

--
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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]