RE: BLODA FAQ entry.

2008-01-08 Thread Dave Korn
On 07 January 2008 13:09, Corinna Vinschen wrote:

 On Jan  2 19:46, Dave Korn wrote:
 On 02 January 2008 19:08, Christopher Faylor wrote:
 On Wed, Jan 02, 2008 at 06:59:03PM -, Dave Korn wrote:

  Hmm, I thought the website might update itself automagically when the
 sources are changed, but I guess not.  How do we get the online version
 of the FAQ to rebuild?
 
 It isn't automatic.  I usually wait for someone with dessent skills in
 creating the pages and transferring them to the right location to do this.
 
 cgf
 
   Ah.  Who, to judge from lack of posting, is still away on xmas/newyear
 break of some description. 

 Erm... are you talking about me, by any chance?  

  I don't think so... I think the clue is in the typo :)

 I have now updated the FAQ.

  But thanks nonetheless!

  Fortunately it's quite simple by using cvs.  I don't know
 of any hidden gotchas.  If there are any, I'd be as screwed up as
 anybody :)

  So as far as you know we just build winsup as normal and commit the
generated html files as new revisions over the existing ones in wwwdocs, yep?
That's kinda what I expected but I always like to hear from someone who's done
something before, because they might know about the unknown unknowns...

cheers,
  DaveK
-- 
Can't think of a witty .sigline today



typesetting

2008-01-08 Thread wynfield

Are there any typesetting programs out there like (the English/German focused 
Tex and Latex macros) that enables one to develop typesetting documents in 
Asian languages, such as Japanese, within the cygwin pacage group or could be 
made to work in the cyg
win environment.

I know cygwin once had tetex (maybe still does), but, TeTeX could not process 
Asian languages, and TeTex itself has been discontinued.

Thanks,
  Wynfield


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



Re: Observation: setting HOME to / can lead to slow cygwin

2008-01-08 Thread Pete Forman
George Wyner [EMAIL PROTECTED] writes:

  Running cygwin on my machine was quite slow, especially when
  starting bash and running man and info (2-5 seconds for each).
  I also noticed that nano complained it could not find the file
  //.nanorc

You could try setting HOME to /. if you do not want to go the
/home/gwyner route.
-- 
Pete Forman-./\.-  Disclaimer: This post is originated
WesternGeco  -./\.-   by myself and does not represent
[EMAIL PROTECTED]-./\.-   the opinion of Schlumberger or
http://petef.port5.com   -./\.-   WesternGeco.


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



Re: bash_completion for perl disabled

2008-01-08 Thread Eric Blake

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Reini Urban on 12/27/2007 10:26 AM:
| bash_completion failing to complete files for perl annoyed me too much,
| so I recommend to disable it completely. files are more important than
| options. options do work, but files not.
|
| apply the patch and source /etc/bash_completion and perl bash_completion
| for files work.

Thanks for the patch.  Unfortunately, the upstream maintainer for
bash_completion has announced that he no longer has time to maintain it;
he has asked for volunteers to take over, but I don't have time for it.
Are you recommending that I fold in this patch for a cygwin
bash-completion-20060301-3?

- --
Don't work too hard, make some time for fun as well!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHg3w684KuGfSFAYARAgmyAKCG4Znvb172HO2bBF47MioqTJqd5wCgxVy7
ZVzVQbKr0jgnlcTqwgFuj3Q=
=rC7t
-END PGP SIGNATURE-

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



Re: Trouble with cygwin git

2008-01-08 Thread Corinna Vinschen
On Jan  2 19:35, MP wrote:
 I dug into this, and found that the failure happens here:
 
 res = fh-link (newpath);
 
 in the link() function of file src/winsup/cygwin/syscalls.cc.  res is -1, and 
 errno == EEXIST at this point.
 
 In the call above, newpath is:
 /cygdrive/c/git/git/.git/objects/pack/pack-
 d629a7029e3a941884c4bea2b33cc27e32f55779.pack
 
 Digging further, this line fails:
 
 if (CreateHardLinkA (newpc, pc, NULL))
   goto success;
 
 in function fhandler_disk_file::link(), fhandler_disk_file.cc.  
 CreateHardLinkA
 () returns 0, and GetLastError() returns 183 (ERROR_ALREADY_EXISTS: Cannot 
 create a file when that file already exists).
 
 In the CreateHardLinkA() call above, newpc.get_win32() yields:
 c:\git\git\.git\objects\pack\pack-d629a7029e3a941884c4bea2b33cc27e32f55779.pack
 
 pc.get_win32() yields:
 c:\git\git\.git\objects\tmp_pack_btsO9s
 
 I know that the destination file (newpc) does not exist; so I am perplexed 
 why 
 CreateHardLinkA() is failing.  In the CreateHardLink() documentation on MSDN, 
 I see this comment:
 
 if you open a file that does not allow sharing, another application cannot 
 share the file by creating a new hard link to the file
 
 However, I see that all calls to CreateFile() in XP Cygwin happen with:
 
 FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE
 
 Any ideas why CreateHardLinkA() could still be failing?

Could you create a simple, self-contained testcase in plain C, which
allows to reproduce the problem?


Corinna


-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

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



Re: typesetting

2008-01-08 Thread Sylvain RICHARD

[EMAIL PROTECTED] wrote:

Are there any typesetting programs out there like (the English/German focused 
Tex and Latex macros) that enables one to develop typesetting documents in 
Asian languages, such as Japanese, within the cygwin pacage group or could be 
made to work in the cyg
win environment.

I know cygwin once had tetex (maybe still does), but, TeTeX could not process 
Asian languages, and TeTex itself has been discontinued.

Thanks,
  Wynfield
  
Take my answer with a grain of salt as I have never used them but Omega 
(for TeX) and Lambda (for LaTeX) should be the way to go.


   S. Richard

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



Re: Building Ruby (was Re: Ruby on Rails 2.0.2/Cygwin Bug)

2008-01-08 Thread Corinna Vinschen
On Jan  2 14:01, Dave Korn wrote:
 On 02 January 2008 10:25, melvins wrote:
  Mike Boone wrote:
  
  In reference to that /dev/urandom bug I encountered last week, I
  thought I might try to build Ruby from source on Cygwin and see how it
  works. 
  
  I downloaded Ruby 1.8.6-p111 off the ruby-lang.org website, unpacked
  it, then ./configure and make. This fails with:
  
  ./missing/strftime.c:193: error: 'timezone' redeclared as different kind
  of symbol /usr/include/cygwin/time.h:33: error: previous declaration of
  'timezone' was here make: *** [strftime.o] Error 1
  
 
  I had the same problem with you mike, what I did is I downloaded a
  stable-snapshot version of ruby, then I copy the missing/strftime.c file to
  hte 1.8.6 version,   run make again, then it now all works.
 
   For full explanation, see
 
 http://cygwin.com/ml/cygwin/2007-12/msg3.html

I've proposed a patch on comp.lang.ruby:
http://groups.google.com/group/comp.lang.ruby/msg/0e3f786c969bcd07


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

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



how to check email through cygwin

2008-01-08 Thread sun
hi everyone,

Can I check email of some acount like [EMAIL PROTECTED] in cygwin ?
if that is possible could someone please advise how to config and
reply the mail.

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



Does clock() work?

2008-01-08 Thread Norton Allen
I am trying to write a benchmark application, and figured I'd use 
clock() for sub-second resolution timing, but I got non-sensical 
results. I check the cygwin archives, but the only mention I saw was 
that clock() didn't work on Win98. Here's my test code, chktime.c:


   #include time.h
   #include unistd.h
   #include stdio.h

   int main( int argc, char **argv ) {
 clock_t cur_time, cps = CLOCKS_PER_SEC;
 int i;

 printf( CLOCKS_PER_SEC = %ld\n, cps );

 for ( i = 0; i  8; i++ ) {
   sleep(1);
   cur_time = clock();
   printf( clock() = %ld\n, cur_time );
 }
 return 0;
   }

and here's the output I get:

   Cygwin ./chktime
   CLOCKS_PER_SEC = 1000
   clock() = 171
   clock() = 171
   clock() = 171
   clock() = 171
   clock() = 171
   clock() = 171
   clock() = 171
   clock() = 171
   Cygwin

I would expect the clock() values to increase by approximately 1000 on 
each iteration. (Yes, the sleep() seems to be working, as the lines come 
out at about 1 Hz.)


Is this a known problem? Do others get this result, or do I have a 
corrupted library?


-Norton Allen


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



RE: Does clock() work?

2008-01-08 Thread Dave Korn
On 08 January 2008 17:57, Norton Allen wrote:


 Is this a known problem? Do others get this result, or do I have a
 corrupted library?

  Reproduces here.  I'll take a look into it later tonight if nobody beats me
to it.

cheers,
  DaveK
-- 
Can't think of a witty .sigline today


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



Re: Does clock() work?

2008-01-08 Thread Norton Allen

Mr Webber wrote:

CLOCKS_PER_SEC is a machine dependent macro, but not so machine dependent to
recognize that my 32-bit windows box has dual processors.  Not useful for
benchmarking, is it.
  
It's not quite clear to me why multiple processors would affect the 
interpretation of CLOCKS_PER_SEC, or why such a simple model would not 
work in a single-threaded app for basic benchmarking. I'm not talking 
about a utility to launch commercial apps (which might be multithreaded, 
etc.), just:


   * record the current time
   * do something single-threaded
   * record the current time and calculate elapsed time


clock is not the way to go. It is a crude estimation of processor time.  On
regular UNIX times(2) is the function to use -- cygwin does not seem to have
it.
  
Any other suggestions for timing resolution better than one second on 
cygwin?


-Norton


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



Re: Does clock() work?

2008-01-08 Thread Greg Chicares
On 2008-01-08 17:57Z, Norton Allen wrote:
[snip code that times this inner loop:]

   for ( i = 0; i  8; i++ ) {
 sleep(1);
 cur_time = clock();
 printf( clock() = %ld\n, cur_time );
 
 I would expect the clock() values to increase by approximately 1000 on 
 each iteration. (Yes, the sleep() seems to be working, as the lines come 
 out at about 1 Hz.)

I get similar results with the same program. According to
C99 7.23.2.1/2,
  The clock function determines the processor time used.
so I'd guess that sleep() is consuming only wall-clock time.
Here's your program with an inner loop that consumes cycles:

/tmp[0]$cat clock_test.c
#include time.h
#include unistd.h
#include stdio.h
#include limits.h

int main( int argc, char **argv ) {
  clock_t cur_time, cps = CLOCKS_PER_SEC;
  int i, j;
  volatile unsigned int v;

  printf( CLOCKS_PER_SEC = %ld\n, cps );
  for ( i = 0; i  8; i++ ) {
for ( j = 0; j  INT_MAX / 10; j++ ) {
  v++;
}
cur_time = clock();
printf( clock() = %ld\n, cur_time );
  }
  return 0;
}

/tmp[0]$gcc -o clock_test.exe clock_test.c
/tmp[0]$./clock_test
CLOCKS_PER_SEC = 1000
clock() = 437
clock() = 859
clock() = 1265
clock() = 1687
clock() = 2093
clock() = 2515
clock() = 2937
clock() = 3343

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



RE: Does clock() work?

2008-01-08 Thread Mr Webber
CLOCKS_PER_SEC is a machine dependent macro, but not so machine dependent to
recognize that my 32-bit windows box has dual processors.  Not useful for
benchmarking, is it.

clock is not the way to go. It is a crude estimation of processor time.  On
regular UNIX times(2) is the function to use -- cygwin does not seem to have
it.

 I don't know if this helps, but:

My cygwin reports
$ ./chktime
CLOCKS_PER_SEC = 1000
clock() = 31
clock() = 31
clock() = 31
clock() = 31
clock() = 31
clock() = 31
clock() = 31
clock() = 31

My 64-bit Fedora/Linux reports
# ./chktime
CLOCKS_PER_SEC = 100
clock() = 0
clock() = 0
clock() = 0
clock() = 0
clock() = 0
clock() = 0
clock() = 0
clock() = 0

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Norton Allen
Sent: Tuesday, January 08, 2008 12:57 PM
To: cygwin@cygwin.com
Subject: Does clock() work?

I am trying to write a benchmark application, and figured I'd use
clock() for sub-second resolution timing, but I got non-sensical results. I
check the cygwin archives, but the only mention I saw was that clock()
didn't work on Win98. Here's my test code, chktime.c:

#include time.h
#include unistd.h
#include stdio.h

int main( int argc, char **argv ) {
  clock_t cur_time, cps = CLOCKS_PER_SEC;
  int i;
 
  printf( CLOCKS_PER_SEC = %ld\n, cps );
  for ( i = 0; i  8; i++ ) {
sleep(1);
cur_time = clock();
printf( clock() = %ld\n, cur_time );
  }
  return 0;
}

and here's the output I get:

Cygwin ./chktime
CLOCKS_PER_SEC = 1000
clock() = 171
clock() = 171
clock() = 171
clock() = 171
clock() = 171
clock() = 171
clock() = 171
clock() = 171
Cygwin

I would expect the clock() values to increase by approximately 1000 on each
iteration. (Yes, the sleep() seems to be working, as the lines come out at
about 1 Hz.)

Is this a known problem? Do others get this result, or do I have a corrupted
library?

-Norton Allen


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



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



Re: Does clock() work?

2008-01-08 Thread Norton Allen

Greg Chicares wrote:

I get similar results with the same program. According to
C99 7.23.2.1/2,
  The clock function determines the processor time used.
so I'd guess that sleep() is consuming only wall-clock time.
  

Ah, good catch. Thank you.
Now, I am definitely interested in wall clock elapsed time. Is there 
anything available that will give me real time at resolution greater 
than one second?


-Norton



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



Re: Installation problem with Windows Server 2008

2008-01-08 Thread Nimish Pachapurkar
On Dec 22, 2007 1:59 AM, Corinna Vinschen wrote:
 On Dec 20 15:07, Nimish Pachapurkar wrote:
  I did some more testing.
 
  It seems that the hang problem is specific to python only.

 It's defintely not Python only on RC1.

  Windows Server 2008 with Hyper V RC1 version which is a later build
  than the enterprise RC1 version. The python hang persists. However,
  cygwin installation with or without python goes through without a
  problem. [...]

 I guess I should try the Hyper V version, too at one point.


It seems that Microsoft is not likely to fix anymore bugs before RTM
of Server 2008.
Is it possible to get a workaround for this issue? Or is it completely
OS-dependent?

Thanks,
- Nimish

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



Re: Does clock() work?

2008-01-08 Thread Greg Chicares
On 2008-01-08 19:15Z, Norton Allen wrote:

 Now, I am definitely interested in wall clock elapsed time. Is there 
 anything available that will give me real time at resolution greater 
 than one second?

/tmp[0]$cat clock_test.c
#include time.h
#include unistd.h
#include stdio.h
#include sys/time.h // gettimeofday()

int main( int argc, char **argv ) {
  clock_t cur_time, cps = CLOCKS_PER_SEC;
  int i;
  struct timeval x;

  printf( CLOCKS_PER_SEC = %ld\n, cps );
  for ( i = 0; i  8; i++ ) {
sleep(1);
cur_time = clock();
printf( clock() = %ld\n, cur_time );
gettimeofday(x, 0);
printf( gettimeofday() = %ld\n, 100 * x.tv_sec + x.tv_usec );
  }
  return 0;
}

/tmp[0]$gcc -o clock_test.exe clock_test.c
/tmp[0]$./clock_test
CLOCKS_PER_SEC = 1000
clock() = 30
gettimeofday() = 210033718
clock() = 30
gettimeofday() = 211033718
clock() = 30
gettimeofday() = 212033718
clock() = 30
gettimeofday() = 213033718
clock() = 30
gettimeofday() = 214033718
clock() = 30
gettimeofday() = 215033718
clock() = 30
gettimeofday() = 216033718
clock() = 30
gettimeofday() = 217033718

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



Re: Does clock() work?

2008-01-08 Thread Norton Allen

Norton Allen wrote:

Greg Chicares wrote:

I get similar results with the same program. According to
C99 7.23.2.1/2,
  The clock function determines the processor time used.
so I'd guess that sleep() is consuming only wall-clock time.
  

Ah, good catch. Thank you.
Now, I am definitely interested in wall clock elapsed time. Is there 
anything available that will give me real time at resolution greater 
than one second?



I found gettimeofday() that seems to do the trick.
-N


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



RE: Does clock() work?

2008-01-08 Thread Mr Webber

 
Took another look and found that times(2), though not documented, is
available in Cygwin (as a macro in sys/times.h). Try it.  You should be
able to get real granular time with it, since it also returns a clock_t,
without massaging the data returned with any magic CONSTANTS that vary from
mach to mach, skewing the results.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Norton Allen
Sent: Tuesday, January 08, 2008 1:40 PM
To: Mr Webber; cygwin@cygwin.com
Subject: Re: Does clock() work?

Mr Webber wrote:
 CLOCKS_PER_SEC is a machine dependent macro, but not so machine 
 dependent to recognize that my 32-bit windows box has dual processors.  
 Not useful for benchmarking, is it.
   
It's not quite clear to me why multiple processors would affect the
interpretation of CLOCKS_PER_SEC, or why such a simple model would not work
in a single-threaded app for basic benchmarking. I'm not talking about a
utility to launch commercial apps (which might be multithreaded, etc.),
just:

* record the current time
* do something single-threaded
* record the current time and calculate elapsed time

 clock is not the way to go. It is a crude estimation of processor 
 time.  On regular UNIX times(2) is the function to use -- cygwin does 
 not seem to have it.
   
Any other suggestions for timing resolution better than one second on
cygwin?

-Norton


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



RE: SFTP error 128

2008-01-08 Thread Neil Aggarwal
Igor:

 See if
 http://www.derkeiler.com/Newsgroups/comp.security.ssh/2003-06
 /0117.html
 is of any help.

I logged in as the Administrator, ran the cygwin shell,
and executed these commands:
chmod 755 /
chmod -R 755 /usr

But, I still get error 128 from a domain user account.
Is there a specific command you want me to run to try
to set the user permissions?

 Also, is the sftp subsystem enabled in /etc/sshd_config?

The /etc/sshd_config has this line:
Subsystem   sftp/usr/sbin/sftp-server

I am able to use sftp with the Administrator account,
just not with a domain user.

Any other ideas?

Thanks,
Neil
--
Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
Eliminate junk email and reclaim your inbox.
Visit http://www.spammilter.com for details. 


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



RE: Does clock() work?

2008-01-08 Thread Dave Korn
On 08 January 2008 19:35, Greg Chicares wrote:

   [ TEST CASE ]

 /tmp[0]$./clock_test
 CLOCKS_PER_SEC = 1000
 clock() = 30
 gettimeofday() = 210033718
 clock() = 30
 gettimeofday() = 211033718
 clock() = 30
 gettimeofday() = 212033718
 clock() = 30
 gettimeofday() = 213033718
 clock() = 30
 gettimeofday() = 214033718
 clock() = 30
 gettimeofday() = 215033718
 clock() = 30
 gettimeofday() = 216033718
 clock() = 30
 gettimeofday() = 217033718


  clock_setres might help with that.  (Disclaimer: Unverified statement).


cheers,
  DaveK
-- 
Can't think of a witty .sigline today


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



Re: typesetting

2008-01-08 Thread Gregg Reynolds
On 1/8/08, Sylvain RICHARD [EMAIL PROTECTED] wrote:
 [EMAIL PROTECTED] wrote:
  Are there any typesetting programs out there like (the English/German 
  focused Tex and Latex macros) that enables one to develop typesetting 
  documents in Asian languages, such as Japanese, within the cygwin pacage 
  group or could be made to work in the cyg
  win environment.
 
miktex is a superb tex package works fine from a cygwin shell.  the
most recent version contains xetex, which is what you're looking for.

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



Re: Cygwin install not setting paths

2008-01-08 Thread Daniel So
Hi Larry

As suggested, I tried re-running the setup.exe but the results were still the 
same. So I tried going to  and /etc/postinstall. All files there ended in 
.done. The files there were:
00ash.sh.done00bash.sh.donebase-files-mketc.sh.donebase-files-profile.sh.donebzip2.sh.donecoreutils.sh.donecygwin-doc.sh.donefindutils.sh.doneman.sh.donepasswd-grp.sh.donetar.sh.doneterminfo.sh.doneupdate-info-dir.sh.donewhich.sh.done
Do you know if there are suppose to be any others? I re-ran these scripts 
anyways but did not know what order to do so, so I ran them in the order shown. 
Opening a new cygwin session, I get the prompt that I think I should be getting 
and the path is recognized but I now get this message.

Your group name is currently mkgroup_l_d. This idicates that not
all domain users and groups are listed in the /etc/passwd and /etc/group files.
See the man pages for mkpasswd and mkgroup then, for example, run
mkpasswd -l -d  /etc/passwd
mkdroup -l -d  /etc/group
This message is only displayed once (unless you recreate /etc/group)
and can be safely ignored.
cp: cannot create regular file '/cygdrive/c/group.mkgroup_l_d': Permission 
denied

I did not do the mkpasswd and mkgroup commands as I did not know what they 
would do.
Should I open the permissions on any folders? I am suppose to have 
adminastrator rights on this system.
Any others suggestions here,
Thanks for your help,
Daniel

--

Sounds like at least some of your postinstall scripts didn't run.  Either
rerun 'setup.exe' and just page through without selecting anything to let
'setup.exe' run them for you or go to '/etc/postinstall' and run any
script there that doesn't end in '.done'.  If you do the latter, it's
best to append '.done' to the script names once you've run them, just
so it's obvious to everyone that they were run.


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746



- Original Message 
From: Daniel So [EMAIL PROTECTED]
To: cygwin@cygwin.com
Sent: Monday, January 7, 2008 5:16:28 PM
Subject: Cygwin install not setting paths

To whom it may concern

I have done several cygwin installs on both Windows XP and Vista systems. 
However this latest install on a Windows Vista 32-bit system, resulting cygwin 
windows is not giving me the same results. There are several differences, such 
as;
1. Path variable is not set to see /usr/local/bin, /usr/bin, 
/usr/X11R6/bin, or . 
2. Resulting window is set at /usr/bin not in my $HOME directory.

Has anybody seen this situation before? If so, what can be done to correct it?

Thank you
Daniel


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


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



RE: SFTP error 128

2008-01-08 Thread Neil Aggarwal
Igor:

 Well, that posting was referring to permissions on *Windows* 
 directories.
 Cygwin isn't standalone -- to work, it needs the standard Windows DLLs
 like kernel32.dll, winsock stuff, etc.  I'm guessing your C:\Windows
 directory is accessible to local users but not domain users.

I set Read, Read  Execute, and List Folder Contents permissions 
for Domain Users on C:\ and the entire tree under C:\Windows.

I am still getting SFTP Error 128.

Is there any way to get some more information on why it 
is failing?

Thanks,
Neil

--
Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
Eliminate junk email and reclaim your inbox.
Visit http://www.spammilter.com for details. 


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



RE: SFTP error 128

2008-01-08 Thread Igor Peshansky
On Tue, 8 Jan 2008, Neil Aggarwal wrote:

 Igor:

  See if
  http://www.derkeiler.com/Newsgroups/comp.security.ssh/2003-06
  /0117.html
  is of any help.

 I logged in as the Administrator, ran the cygwin shell,
 and executed these commands:
 chmod 755 /
 chmod -R 755 /usr

 But, I still get error 128 from a domain user account.
 Is there a specific command you want me to run to try
 to set the user permissions?

Well, that posting was referring to permissions on *Windows* directories.
Cygwin isn't standalone -- to work, it needs the standard Windows DLLs
like kernel32.dll, winsock stuff, etc.  I'm guessing your C:\Windows
directory is accessible to local users but not domain users.

  Also, is the sftp subsystem enabled in /etc/sshd_config?

 The /etc/sshd_config has this line:
 Subsystem   sftp/usr/sbin/sftp-server

 I am able to use sftp with the Administrator account,
 just not with a domain user.
 Any other ideas?

Try to follow through on the permission idea.  The ability to use sftp as
another local user (not Administrator) would support this guess.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

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



Re: [ANNOUNCEMENT] Updated: perl-5.10.0-1 [EXPERIMENTAL]

2008-01-08 Thread Reini Urban
 According to Reini Urban on 12/27/2007 10:31 AM:
 | A diff of the modules from 5.8 to 5.10 is below.
 | Module::Build is definitely now in CORE.

 So I should be prepared to mark perl-module-build as an obsolete package
 once perl is no longer experimental?

Obsolete it only when the perl 5.8 prev version will be deleted.

When perl-5.10 will go curr, then an empty perl-module-build
or even the same tar.gz will do.
I believe it will be in about two weeks or so.
One major performance bug was just found and fixed, which will require a
5.10.0-3 release, and the Win32::GUI::Scintilla crash fix (cygwin only) is
also outstanding.

Your old 5.8 build does no harm to the 5.10 perl.
We do not have vendor_perl/5.8 in the new @INC.
-- 
Reini



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



need help with bash -c command with cygpath

2008-01-08 Thread Jay
When i run
cygpath -a '\\uncpath\mydrive$'
//uncpath/mydrive$

Which is the expected behaivor.

When i run
bash -i -c cygpath -a '\\uncpath\mydrive$'
/C/uncpath/mydrive$

Which is not what i want.  I'm trying to pass in the unc path from windows, so
it needs converted.

Why do i get different results depending on how it is called? 

Thanks in advance.

Jay.


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



Re: need help with bash -c command with cygpath

2008-01-08 Thread Christopher Faylor
On Wed, Jan 09, 2008 at 01:52:31AM +, Jay wrote:
When i run
cygpath -a '\\uncpath\mydrive$'
//uncpath/mydrive$

Which is the expected behaivor.

When i run
bash -i -c cygpath -a '\\uncpath\mydrive$'
/C/uncpath/mydrive$

Which is not what i want.  I'm trying to pass in the unc path from windows, so
it needs converted.

Why do i get different results depending on how it is called? 

It's because of the way the backslash is handled within double quotes.

info bash may be of some help.

cgf

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



Re: need help with bash -c command with cygpath

2008-01-08 Thread Jay
 It's because of the way the backslash is handled within double quotes.
 
 info bash may be of some help.
 
 cgf
 
 

Thanks for the help.  I read the info.  Looks like i will have to pass the UNC
path into a script and do the work there.

Thanks again.



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



Re: how to check email through cygwin

2008-01-08 Thread Reid Thompson

sun wrote:

hi everyone,

Can I check email of some acount like [EMAIL PROTECTED] in cygwin ?
if that is possible could someone please advise how to config and
reply the mail.

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


run setup.exe again and install mutt, and configure it.

for configuration information see http://www.mutt.org/

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



Re: how to check email through cygwin

2008-01-08 Thread Reid Thompson

sun wrote:

hi everyone,

Can I check email of some acount like [EMAIL PROTECTED] in cygwin ?
if that is possible could someone please advise how to config and
reply the mail.

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

forgot to mention, since you note gmail -- via your gmail account settings you 
can enable imap access, then use mutt to connect to your gmail account via imap.


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



cygwin, g++ and boost? Do I need dll.a?

2008-01-08 Thread adam99

I downloaded boost packages under cygwin (both boost and boost-devel). My
first problem is unit test framework was not installed through this
installation. I have tried to create it through bjam and created a library
file at 

/usr/src/boost-1.33.1-3/boost_1_33_1/bin/boost/libs/test/build/libboost_unit_tes
 
t_framework.a/gcc/boost_unit_test_framework/libboost_unit_test_framework-gcc-1_3
 
3_1.a 

I copied it from there to my /lib directory. Then while trying to build
quantlib I figured out that quantlib was not able to find any of the boost
libraries. They are in my /lib directory as below. 

After several trials with an hello world code an trying to link library, I
realized that I can not link anything in /lib without dll.a extension 

g++ -o hello -L/lib hello.cpp -llibcrypt 
this works, since 
ls /lib/libcrypt* 
/lib/libcrypt.a  /lib/libcrypt.dll.a 

g++ -o hello -L/lib hello.cpp -llibbfd 
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot
find -llibbfd 
collect2: ld returned 1 exit status 

fails as libbfd.dll.a does not exist; 
 ls /lib/libbfd* 
/lib/libbfd.a  /lib/libbfd.la 

none of the libboost have dll.a file; 
ls libboost* 
libboost_date_time-gcc-mt-1_33_1.a 
libboost_program_options-gcc-mt-s.a   libboost_signals-gcc-mt-s.a 
libboost_date_time-gcc-mt-s-1_33_1.a   
libboost_program_options-gcc-mt.a libboost_signals-gcc-mt.a 
libboost_date_time-gcc-mt-s.a   libboost_python-gcc-mt-1_33_1.a 
 
libboost_thread-gcc-mt-1_33_1.a 
libboost_date_time-gcc-mt.a libboost_python-gcc-mt.a
 
libboost_thread-gcc-mt-s-1_33_1.a 
libboost_filesystem-gcc-mt-1_33_1.a libboost_regex-gcc-mt-1_33_1.a  
 
libboost_thread-gcc-mt-s.a 
libboost_filesystem-gcc-mt-s-1_33_1.a   libboost_regex-gcc-mt-s-1_33_1.a
 
libboost_thread-gcc-mt.a 
libboost_filesystem-gcc-mt-s.a  libboost_regex-gcc-mt-s.a   
 
libboost_unit_test_framework-gcc-1_33_1.a 
libboost_filesystem-gcc-mt.alibboost_regex-gcc-mt.a 
 
libboost_unit_test_framework-gcc-mt.a 
libboost_iostreams-gcc-mt-1_33_1.a 
libboost_serialization-gcc-mt-1_33_1.alibboost_wave-gcc-mt-1_33_1.a 
libboost_iostreams-gcc-mt-s-1_33_1.a   
libboost_serialization-gcc-mt-s-1_33_1.a  libboost_wave-gcc-mt-s-1_33_1.a 
libboost_iostreams-gcc-mt-s.a  
libboost_serialization-gcc-mt-s.a libboost_wave-gcc-mt-s.a 
libboost_iostreams-gcc-mt.a libboost_serialization-gcc-mt.a 
 
libboost_wave-gcc-mt.a 
libboost_program_options-gcc-mt-1_33_1.alibboost_signals-gcc-mt-1_33_1.a 
libboost_program_options-gcc-mt-s-1_33_1.a 
libboost_signals-gcc-mt-s-1_33_1.a 

Could you tell me why I need dll.a files? Also how can I generate them for
the boost installation under cygwin

Thanks
-- 
View this message in context: 
http://www.nabble.com/cygwin%2C-g%2B%2B-and-boost--Do-I-need-dll.a--tp14705301p14705301.html
Sent from the Cygwin list mailing list archive at Nabble.com.


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



Re: need help with bash -c command with cygpath

2008-01-08 Thread Eric Blake

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Jay on 1/8/2008 6:52 PM:
| When i run
| bash -i -c cygpath -a '\\uncpath\mydrive$'

Whoa - it seldom makes sense to use -i and -c simultaneously - what good
is an interactive shell, if all it is going to do is execute a single
command sequence that works just fine non-interactively?  Drop the -i.

For that matter, why do you need to invoke another instance of bash to
call cygpath, when you've already stated that cygpath works just fine on
its own?

| Why do i get different results depending on how it is called?

Because you are calling it differently.  Try:

echo bash -i -c cygpath -a '\\uncpath\mydrive$'

to see what you were calling, and note that it wasn't a UNC path.  In
bash,  and '' don't nest.  Therefore, the rules for  apply, since that
is your outer quoting, and \\ simplifies to \, \m happens to pass
unchanged, and $' happens to pass unchanged (but other sequences would
have led to other surprises).

This is one way to do what you seem to want:

bash -c cygpath -a ''\\uncpath\mydrive$'\'

By the way, none of this tutorial on shell quoting is cygwin specific.

- --
Don't work too hard, make some time for fun as well!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHhFWT84KuGfSFAYARApImAJsENqjN54AbhvIP1uX6CgYHO5gZgwCgtOV4
lKmUlY5zgUsZGjWBt/aOPbw=
=F3eB
-END PGP SIGNATURE-

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