This is the mail archive of the cygwin-talk 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: Cygwin but not really question


Vince Rice wrote:
> I'm a longtime cygwin user, and recently switched to a Mac (still
> using Cygwin in the Win/VM; does that count?). I would like use the
> conv.c program (u2d/d2u/etc.) on the OS X side. So, I dl'd the
> cygutils source, untarred it on the OS X side, and did a configure
> and make. The 'make' vomited all over the place (first four errors
> src/conv/conv.c:74: error: syntax error before âoptConâ, replacing
> the 74 with 74-77).
> 
> I'm not much of a C programmer, but I tried to look around and see if
> I saw anything obvious, i.e. line endings, etc., but I didn't see
> anything. I looked on the line in question (static void
> usage(pOptContext optCon...), but there's nothing obviously wrong
> syntactically there. I went back and looked at the config.log, and
> saw that although getopt.h is present, popt.h isn't. But, it was just
> a configure test, so I guessed that should be OK, although, given the
> error above, maybe not.

While the configury checks for popt, some of the applications in
cygutils *require* popt. I should probably change the configury to fail
when it isn't found.

Note that the dos2unix package from fink, as recommended by cgf, is not
the same program as the one in cygutils. But that's okay; it's a very
simply task and any package you download will work fine, provided you
get it to compile.

For that matter, some other package might actually suit your needs
*better* -- because the cygutils tools do /not/ handle converting
to/from *MAC* line-endings.

--
Chuck



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