public inbox for cygwin-talk@cygwin.com
 help / color / mirror / Atom feed
* Cygwin but not really question
@ 2009-01-08 19:18 Vince Rice
  2009-01-08 19:37 ` Warren Young
  2009-01-09  5:25 ` Charles Wilson
  0 siblings, 2 replies; 4+ messages in thread
From: Vince Rice @ 2009-01-08 19:18 UTC (permalink / raw)
  To: cygwin-talk

This is a "do I even need to go further" question, but since it's related to a Cygwin source file but not on Cygwin, I thought I'd ask here rather than the main list (which doesn't deal with non-Cygwin questions), on the off chance someone might have pity on me and answer, all the while avoiding the hippos.

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.

I have XCode installed, so I have gcc (4.0.1) and all of the other unix-y tools.

So, before I spend any more time on this, is there a reason this WON'T install? I.e., does it depend on anything in the cygwin DLL or anything else that doesn't exist in a normal Unix-y environment? If so, then I'll give up and go find other tools to do the same thing (I just really like having everything in one program).

If not, I'll try to read up enough to see if I can figure out what's going on.

Thanks, and loose the hippos!



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Cygwin but not really question
  2009-01-08 19:18 Cygwin but not really question Vince Rice
@ 2009-01-08 19:37 ` Warren Young
  2009-01-08 19:42   ` Christopher Faylor
  2009-01-09  5:25 ` Charles Wilson
  1 sibling, 1 reply; 4+ messages in thread
From: Warren Young @ 2009-01-08 19:37 UTC (permalink / raw)
  To: The Vulgar and Unprofessional Cygwin-Talk List

Vince Rice wrote:
> 
> ...recently switched to a Mac...I would like use the
> conv.c program (u2d/d2u/etc.) on the OS X side. 

To extend the OS X's base Unix environment to be more Linux-like -- or 
Cygwin-like, if you prefer -- install Fink: http://fink.sf.net/  This is 
an APT-based packaging project which pulls in a lot of stuff that you 
find Linux and Cygwin, which was left out of OS X.  There is a dos2unix 
package:

	http://pdb.finkproject.org/pdb/package.php/dos2unix

So, after Fink is installed and configured for the first time, you just 
say "fink install dos2unix", and there you are.  You can use Bash 
aliases to get 'd2u' and 'u2d' if you don't want to retrain your 
fingers.  I find 'dos2unix' and 'unix2dos' a little more common.

Some people prefer MacPorts (http://www.macports.org/) which does much 
the same thing.  I happen to have started with Fink and have been happy 
with it, so haven't bothered to even try MacPorts.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Cygwin but not really question
  2009-01-08 19:37 ` Warren Young
@ 2009-01-08 19:42   ` Christopher Faylor
  0 siblings, 0 replies; 4+ messages in thread
From: Christopher Faylor @ 2009-01-08 19:42 UTC (permalink / raw)
  To: The Vulgar and Unprofessional Cygwin-Talk List

On Thu, Jan 08, 2009 at 12:36:44PM -0700, Warren Young wrote:
> Vince Rice wrote:
>> ...recently switched to a Mac...I would like use the
>> conv.c program (u2d/d2u/etc.) on the OS X side. 
>
> To extend the OS X's base Unix environment to be more Linux-like -- or 
> Cygwin-like, if you prefer -- install Fink: http://fink.sf.net/  This is an 
> APT-based packaging project which pulls in a lot of stuff that you find 
> Linux and Cygwin, which was left out of OS X.  There is a dos2unix package:
>
> 	http://pdb.finkproject.org/pdb/package.php/dos2unix
>
> So, after Fink is installed and configured for the first time, you just say 
> "fink install dos2unix", and there you are.  You can use Bash aliases to 
> get 'd2u' and 'u2d' if you don't want to retrain your fingers.  I find 
> 'dos2unix' and 'unix2dos' a little more common.
>
> Some people prefer MacPorts (http://www.macports.org/) which does much the 
> same thing.  I happen to have started with Fink and have been happy with 
> it, so haven't bothered to even try MacPorts.

And, in case it isn't obvious, this stretches the "vaguely Cygwin
related" to an atom thick thread.

This really is the kind of thing best discussed in a Mac OS/X forum not
a Cygwin forum.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Cygwin but not really question
  2009-01-08 19:18 Cygwin but not really question Vince Rice
  2009-01-08 19:37 ` Warren Young
@ 2009-01-09  5:25 ` Charles Wilson
  1 sibling, 0 replies; 4+ messages in thread
From: Charles Wilson @ 2009-01-09  5:25 UTC (permalink / raw)
  To: The Vulgar and Unprofessional Cygwin-Talk List

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-01-09  5:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-08 19:18 Cygwin but not really question Vince Rice
2009-01-08 19:37 ` Warren Young
2009-01-08 19:42   ` Christopher Faylor
2009-01-09  5:25 ` Charles Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).