RE: how to build GNU make from scratch ?

2003-10-24 Thread Jörg Schaible
Heiko Nardmann wrote on Friday, October 24, 2003 8:24 AM:
> On Freitag, 24. Oktober 2003 08:07, Bobby McNulty Junior wrote:
>> I just configured Make 3.80 in a seperate directory.
>> I made on called "o" in the root of the source code and configured.
>> Looks promising, as long as you are using the latest tools. Cygwin
>> B20 won't configure this way, if that is what you are using.
>> 
> 
> What is Cygwin B20 in difference to what I normally get by setup.exe
> ??? 


B20 was the unbelievable, awesome and complete Cygwin release, that could have anwered 
any questions, including the question for 42. But they nuked it just before it was 
ready to give *that* answer ...

--
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 build GNU make from scratch ?

2003-10-24 Thread Cliff Hones

Heiko Nardmann wrote:
> ... 
> What is Cygwin B20 in difference to what I normally get by setup.exe ???

[Joerg was of course joking...]

B20 is a *very* old version of Cygwin, which is completely
unsupported.  If you are using setup.exe to install, you will
not have B20.  I've no idea why Bobby M brought the subject up.

Returning to your original problem, it sounds as though you
have a broken installation.  make, configure et al should
run 'out of the box', and you should not need to rebuild
make.  If you do wish to rebuild make, you should use
the Cygwin version of the source tarball (which you can
get using setup.exe) as there are in all likelihood
Cygwin-specific patches which are not present in the
mainline GNU sources.

So, take a look at http://cygwin.com/problems.html
and send in the required details so we can help track
down your problem.

-- Cliff




--
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: Binaries for bootstrap GNAT/GCC-Cygwin Build

2003-10-24 Thread Gerrit P. Haase
David schrieb:

> First, a general apology if I seem to be going over stuff I've gone over
> before.  I had a computer outage that cost me most of my memory of the
> last 4 years. 

> Around 25 September, David, Gerrit, and Jason had a discussion on the 
> list about making David's build of GNAT available.  David's server 
> couldn't bear much traffic but there were some offers of other sites.
> Are the binaries available on-line at this time?

I have a mirror where also Davids binaries are asvailable, though it is
realy outdated, I even couldn't use it to bootstrap a newer gcc on top
of Cygwin 1.5.5.  I'm just about finishing a GCC release for Cygwin
including GNAT.

Do you have a reasonable amount of time and Ada code to test run the Ada
compiler? 

Gerrit
-- 
=^..^=


--
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: Wildcard problem with recursion

2003-10-24 Thread Andy Rushton
Corinna Vinschen wrote:

On Thu, Oct 23, 2003 at 03:05:53PM +0530, Ajith Kumar wrote:
 

Cygwin utilities like grep or ls with -R options doesn't seem to be working.
egs when I say
   

grep -r FLD_DCT_STRING  *.h??
 

I get
grep: *.hpp: No such file or directory
However there are many .h, .hxx and .hpp files in the subdirectories

ls also gives the same err.

Any solutons?
   

Yes, read the shell man pages to learn how file completion works.
What you want is a job for `find | xargs grep'.
 

Thanks for the xargs tip Corinna - thats a new one on me.

an alternative (talking to original poster here) is:

grep FLD_DCT_STRING `find . -name '*.h??'`

Or you can search *directories* recursively with grep, but this doesn't 
allow you to filter the file type. e.g.:

grep -r FLD_DCT_STRING .

where '.' is the current directory - this will search all files in 
subdirectories too. See 'info grep'.

Andy
--
Andy Rushton, Research Fellow, School of ECS, Southampton University
address: rm 3053, Mountbatten Building (53)
phone: 023 8059 6665
http://www.ecs.soton.ac.uk/~ajr1


--
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 build GNU make from scratch ?

2003-10-24 Thread Hannu E K Nevalainen
> From: Heiko Nardmann
> Sent: Friday, October 24, 2003 8:24 AM

> What is Cygwin B20 in difference to what I normally get by setup.exe ???

 Very O L D 

  [Acronym geeks take heed! Only Limited Delivery ;-) ]

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- printf("Timezone: %s\n", (DST)?"UTC+02":"UTC+01"); --
--END OF MESSAGE--


--
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: rsync local dir copy hang - solved for me

2003-10-24 Thread Hannu E K Nevalainen
> From: Bakken, Luke
> Sent: Friday, October 24, 2003 4:19 AM

> Hi all,
>
> I was attempting to use rsync (v 2.5.6) to copy one local directory to
> another on my machine (Windows XP) today when I experienced the dreaded
> hang. It copied the files, and hung waiting for a child process to exit.
> When I killed that process using taskmgr, the parent exited OK.
>
> The following fixed my particular hang situation:
>
> --- orig_main.c 2003-10-23 19:16:22.5 -0700
> +++ main.c  2003-10-23 19:16:35.828125000 -0700
> @@ -47,7 +47,7 @@
> int cnt;
>
> while ((waited_pid = waitpid(pid, status, WNOHANG)) == 0) {
> -   msleep(20);
> +   /* msleep(20); */
> io_flush();
> }
>
>
> I hope this can be of help to someone!
> Luke

Now the following text isn't meant to be rude or some such, so please don't
take offence. This is just yet another of those itchy little points of
mine...


$ man waitpid
No manual entry for waitpid
$ man msleep
No manual entry for msleep

Hmm? Is waitpid() a blocking call or not? WRT "WNOHANG" it looks like an
unblocking one...

 Thus I'm assuming it doesn't block and that msleep() is something internal
to rsync, using usleep() or some such.
 If msleep() does more than so, I would guess the problem to be inside
msleep().

 A general comment: Given what I've written above the result of the patch is
called "busy waiting" and is a *hard* blow against all other software that
is running at the same time.
 If the loop exit condition appears "late" the machine running the above
code will experience jerkyness and other ill effects - at the extreme but
still likely level there might even be disturbances of *vital* system
functions (e.g. related to time critical tasks).

The bottom point: *don't do that* ;-)
 i.e. leave the msleep() call there. This is a simple - yet effective - way
to avoid ill effects of a tight loop.

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- printf("Timezone: %s\n", (DST)?"UTC+02":"UTC+01"); --


Example:
 I have a cheap SCSI-interface in my PC, this is connected to my scanner;
now can you guess what happens when I start scanning?
 Not very hard, ehh? Yes indeed, the entire computer stops, waiting for SCSI
I/O; i.e. 10-20 seconds for a preview, 30-60 seconds for scanning the bus at
boot time, anything from a minute and up for scanning an image.
 Guess what? I *do* disable this piece of hardware when I'm not going to use
it explicitly. (Monetary reasons leaves me in this situation) :-7

--END OF MESSAGE--


--
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: Strange Cygwin issue

2003-10-24 Thread Hannu E K Nevalainen
> From: Dylan Cuthbert
> Sent: Friday, October 24, 2003 8:10 AM

> Did you sort this problem out eventually?  We're having the same problem.
> 
> We pass a DOS command that we've compiled in Vis.C a parameter 
> from within a
> bash shell and all our quotes are "played" with.
> 
> ie.   #> ourcommand   'my oh my "this is a string" that is played with'
> 
> and we get"my oh my \"this is a string\" that is played with"
> (including the surrounding double quotes) in our DOS program.
> 
> Not what we want really.

 I'd say; play with temporary files.

e.g:
$ echo >/tmp/tmp_$$ "command arg1 \"arg2.1 arg2.2\" arg.3"
$ cmd /c $(cygpath -WA /tmp/tmp_$$)
$ rm /tmp/tmp_$$

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- printf("Timezone: %s\n", (DST)?"UTC+02":"UTC+01"); --
--END OF MESSAGE--

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



Ecurrency Card, FRE_EE prmeedz

2003-10-24 Thread Calvin Landry
http://www.global-goldcard.com";>www.global-goldcard.com

Re: how to build GNU make from scratch ?

2003-10-24 Thread Gerrit P. Haase
Heiko wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1

> On Freitag, 24. Oktober 2003 08:07, Bobby McNulty Junior wrote:
>> I just configured Make 3.80 in a seperate directory.
>> I made on called "o" in the root of the source code and configured.
>> Looks promising, as long as you are using the latest tools.
>> Cygwin B20 won't configure this way, if that is what you are using.

> What is Cygwin B20 in difference to what I normally get by setup.exe ???

Please search the archives.

Gerrit
-- 
=^..^= http://nyckelpiga.de/donate.html


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



1.5.1: can't open files beginning with "..."

2003-10-24 Thread Chris Moore
I have a file on my PC called "...foo.txt".

cygwin has a problem with this file:

  $ ls -a
  .  ..  ...foo.txt  cygcheck.out
  $ ls -al > /dev/null
  ls: ...foo.txt: No such file or directory
  $ 

cygwin also has a problem making similarly named files:

  $ touch ...foo2.txt
  touch: creating `...foo2.txt': No such file or directory

Windows Explorer also doesn't like to make files whose names begin
with 3 dots, but Windows itself is fine with them.  The following
Perl one-liner makes the file if you run it in the (native Windows)
ActiveState Perl:

  open(FP, ">...foo3.txt") or die "$!";

But the cygwin perl complains:

  "No such file or directory at 3dots.pl line 1.".

I can also create these '3 dot' files in a native Win32 Emacs, but
not in the cygwin Emacs.  Even a Windows 'DOS prompt' (cmd.exe) is
able to make it:

  C:\>echo foo > ...foo3.txt
  C:\>

I'm not sure how to tell you what version of cygwin this is, but the
'DLL version' is 1.5.5 if that's what you need to know.

I've attached the output of "cygcheck -s -v -r".

Chris.


Cygwin Win95/NT Configuration Diagnostics
Current System Time: Fri Oct 24 13:56:27 2003

Windows XP Home Edition Ver 5.1 Build 2600 Service Pack 1

Path:   C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
.
C:\cygwin\usr\X11R6\bin

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 1006(Chris) GID: 513(None)
513(None)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 1006(Chris) GID: 513(None)
513(None)544(Administrators)  
545(Users)

SysDir: C:\WINDOWS\System32
WinDir: C:\WINDOWS

HOME = `c:\Chris'
MAKE_MODE = `unix'
PWD = `/cygdrive/c/Chris/cygwin'
USER = `Chris'

ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\Chris\Application Data'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `CHRISLAP'
COMSPEC = `C:\WINDOWS\system32\cmd.exe'
CVS_RSH = `/bin/ssh'
DJGPP = `c:\djgpp\djgpp.env'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\Chris'
HOSTNAME = `CHRISLAP'
LOGONSERVER = `\\CHRISLAP'
MANPATH = `:/usr/X11R6/man:/usr/ssl/man'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/cygdrive/c/Chris'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 15 Model 2 Stepping 4, GenuineIntel'
PROCESSOR_LEVEL = `15'
PROCESSOR_REVISION = `0204'
PROGRAMFILES = `C:\Program Files'
PROMPT = `$P$G'
PS1 = `\W $ '
SESSIONNAME = `Console'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINDOWS'
TEMP = `c:\DOCUME~1\Chris\LOCALS~1\Temp'
TERM = `cygwin'
TMP = `c:\DOCUME~1\Chris\LOCALS~1\Temp'
TZ = `GMT-2'
USERDOMAIN = `CHRISLAP'
USERNAME = `Chris'
USERPROFILE = `C:\Documents and Settings\Chris'
WINDIR = `C:\WINDOWS'
_ = `/usr/bin/cygcheck'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00
  (default) = `C:'
  unix = `/'
  fbinary = 0x
  fsilent = 0x
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x0022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:\cygwin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:\cygwin/bin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:\cygwin/lib'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/X11R6/lib/X11/fonts
  (default) = `C:\cygwin\usr\X11R6\lib\X11\fonts'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\01
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\02
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\03
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\04
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\05
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\06
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\07
HKE

Re: Q: how to build GNU make from scratch ?

2003-10-24 Thread Heiko Nardmann
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Freitag, 24. Oktober 2003 08:21, Heiko Nardmann wrote:
> On Freitag, 24. Oktober 2003 07:45, Heiko Nardmann wrote:
> > Hi!
> >
> > I just unpacked the original GNU make sources and now am unsure about how
> > to build this thing. Calling './configure' does not give any output on
> > the shell. Is there any other way for GNU make?
>
> I traced my problem with configure further down to the basename call in
> line 58. It does not come back. I am not sure whether /bin/sh has a builtin
> basename or it is using the external /usr/bin/basename. The later is
> working fine at my bash prompt.
>

After having no luck with my local machine having XP and some patches 
installed locally I switched to our VmWare server and grabbed a copy of the 
pure XP master without any patches. Then I installed current CygWin from 
scratch and what a wonder - it works now.

So now I am not sure whether my CygWin setup is broken (less probabilistic) or 
whether my Win XP setup is broken (more probabilistic).

> Changing /bin/sh to /bin/bash at the start of the configure script gets me
> slightly further. I now get the following output:
>
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> checking whether make sets ${MAKE}... ./configure: fork: Resource
> temporarily unavailable
>
> and here again make seems to hang ...
>
> I am going to try it without configure and make ... :-(
>

- -- 
Heiko Nardmann (Dipl.-Ing. Technische Informatik)
secunet Security Networks AG - Sicherheit in Netzwerken (www.secunet.de),
Weidenauer Str. 223-225, D-57076 Siegen
Tel. : +49 271 48950-13, Fax  : +49 271 48950-50

Besuchen Sie uns
vom 20. - 24.10.2003 auf der Systems in München, Halle B2, Stand 315 und
vom 06. - 08.11.2003 auf der Comtec in Dresden, Halle 4, Stand B5.
Wir freuen uns auf das Gespräch mit Ihnen.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iEYEARECAAYFAj+ZD8UACgkQpm53PRScYygZDQCgmKh3Yw80TfCwHhgGKmxt1A0u
VdkAoNXB61pv/Sx7Y5cIzksR9iE0fPCH
=IM5r
-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: Cannot Start Cron

2003-10-24 Thread Buck Turgidson

"Harig, Mark" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Here is a new version of the cron
diagnostic script.  It contains another
test suggested and provided by Pierre
Humblet.

The new test checks to see if there
is a password entry that corresponds
to the values in the environment
variables $USERNAME and $USERDOMAIN







Thanks, Mark.  Ran the updated script, and reported everything ok.  Attached
is cygcheck.txt.   I appreciate any time you have to glance at it for
problems.






begin 666 cygcheck.txt
M#0I#>6=W:[EMAIL PROTECTED]@0V]N9FEG=7)A=&EO;B!$:6%G;F]S=&EC6=W:6Y<[EMAIL PROTECTED],5(V
M7&)I;@T*"66=C:&5C:R<-"@T*2$M%
M65]#55)214Y47U5315)<4V]F='=A6=W
M:6X-"DA+15E?0U524D5.5%]54T527%-O9G1W87)E7$-Y9VYU6=W:6Y<4')O9W)A;2!/<'1I;VYS#0I(
M2T597TQ/0T%,7TU!0TA)3D5<4T]&5%=!4D5<0WEG;G5S(%-O;'5T:6]N6=W:6Y<;6]U;G1S('8R#0H@("AD969A=6QT*2 ](& O8WEG
M9')I=F4G#0H@(&-Y9V1R:79E(&9L86=S(#T@,'@P,# P,# R,@T*2$M%65],
M3T-!3%]-04-(24Y%7%-/1E1705)%7$-Y9VYU6=W:6XG#0H@(&9L
M86=S(#T@,'@P,# P,# P80T*2$M%65],3T-!3%]-04-(24Y%7%-/1E1705)%
M7$-Y9VYU# P
M,# P,#!A#0I(2T597TQ/0T%,7TU!0TA)3D5<4T]&5%=!4D5<0WEG;G5S(%-O
M;'5T:6]N6=W:6Y<;6]U;G1S('8R7"]U6=W:6XO;&EB)PT*("!F;&%G6=N=7,@4V]L=71I;VYS7$-Y
M9W=I;EQM;W5N=',@=C)<+W5S6=W:6Y<[EMAIL PROTECTED],5(V7&QI8EQ8,3%<9F]N=',G
M#0H@(&9L86=S(#T@,'@P,# P,# P80T*2$M%65],3T-!3%]-04-(24Y%7%-/
M1E1705)%7$-Y9VYUC)R97-T#0IG
M.B @;F5T($Y41E,@(" Q,#0R,#%-8B @[EMAIL PROTECTED]($-0($-3(%5.(%!!($9#(" @
M("!B:7HRC%R97-T#0IJ.B @;F5T
M($Y41E,@(" Q,#(W-4UB(" W,[EMAIL PROTECTED] @0U,@[EMAIL PROTECTED]@1D,@(" @(&1A=&$-
M"FLZ("[EMAIL PROTECTED]&4R @(" T,##H@(&YE="!.5$93(" @,3 R-S5-8B @
M-S(E($-0($-3(%5.(%!!($9#(" @("!D871A#0H-"F0Z7&-Y9W=I;B @(" @
M(" @(" @(" @(" @(" @(" @(" @+R @(" @(" @(" @(" @(" @(" @(" @
M("!S>7-T96T@(&)I;FUO9&4-"F0Z7&-Y9W=I;B]B:6X@(" @(" @(" @(" @
M(" @(" @(" @+W5S7-T96T@(&)I
M;FUO9&4-"F0Z7&-Y9W=I;B]L:6(@(" @(" @(" @(" @(" @(" @(" @+W5S
M7-T96T@(&)I;FUO9&4-"F0Z7&-Y
M9W=I;EQU7-T96T@(&)I;FUO9&4-"BX@(" @(" @(" @(" @(" @
M(" @(" @(" @(" @(" @(" @+V-Y9V1R:79E(" @(" @(" @(" @(" @("!S
M>7-T96T@(&)I;FUO9&4L8WEG9')I=F4-"@T*1F]U;F0Z(&0Z7&-Y9W=I;EQB
M:6Y<87=K+F5X90T*1F]U;F0Z(&0Z7&-Y9W=I;EQB:6Y<8F%S:"YE>&4-"D9O
M=6YD.B!D.EQC>6=W:6Y<8FEN7&-A="YE>&4-"D9O=6YD.B!D.EQC>6=W:6Y<
M8FEN7&-P+F5X90T*1F]U;F0Z(&0Z7&-Y9W=I;EQB:6Y<8W!P+F5X90T*1F]U
M;F0Z(&0Z7&-Y9W=I;EQB:6Y<9FEN9"YE>&4-"D9O=6YD.B!D.EQC>6=W:6Y<
M8FEN7&=C8RYE>&4-"DYO="!&;[EMAIL PROTECTED]&;[EMAIL PROTECTED]<5TE.3E0T
M,%QG&4-"E=A
M&4@:&ED97,@9#I<8WEG=VEN7&)I
M;EQG&4-"D9O
M=6YD.B!D.EQC>6=W:6Y<8FEN7&QS+F5X90T*3F]T($9O=6YD.B!M86ME#0I&
M;[EMAIL PROTECTED]<8WEG=VEN7&)I;EQM=BYE>&4-"D9O=6YD.B!D.EQC>6=W:6Y<
M8FEN7')M+F5X90T*1F]U;F0Z(&0Z7&-Y9W=I;EQB:6Y<6=C6=C7!T;RYD;&PB('8P+C @=',]
M,C P,R\T+S$Q(#8Z,S<-"B @(#(R:R R,# S+S$P+S$W(&0Z7&-Y9W=I;EQB
M:6Y<8WEG8WEG:7!C+3(N9&QL("T@;W,]-"XP(&EM9STQ+C @6=D8BTS+C$N9&QL(B!V,"XP('1S/3(P,#(O
M-R\R-" Q,CHR- T*(" T.#=K(#(P,#(O,#6=D8E]C>'@M,RXQ+F1L;" M(&]S/30N,"!I;6<],2XP('-Y6=D8E]C>'@M,RXQ+F1L;"(@=C N,"!T7,]-"XP#0H@
M(" @(" @(" @(" @(" @(" B8WEG97AP870M,"YD;&PB('8P+C @=',],C P
M,R\W+S$R(#6=F;W)M
M-BYD;&[EMAIL PROTECTED]7,]-"XP#0H@(" @(" @(" @(" @
M(" @(" B8WEG9F]R;38N9&QL(B!V,"XP('1S/3(P,#(O,2\Y(#$Z,#,-"B @
M(#0X:R R,# S+S X+S Y(&0Z7&-Y9W=I;EQB:6Y<8WEG9F]R;36=W:6Y<8FEN7&-Y9V=D8FTM,RYD;&[EMAIL PROTECTED]7,]-"XP#0H@(" @(" @(" @(" @(" @(" B8WEG9V1B;2TS
M+F1L;"(@=C N,"!T6=G9&)M+30N9&QL("T@;W,]-"XP(&EM9STQ
M+C @6=G9&)M7V-O;7!A="TS+F1L;" M(&]S/30N,"!I;6<],2XP('-Y
M6=G9&)M7V-O;7!A="TS+F1L
M;"(@=C N,"!T6=G9&)M7V-O;7!A="TT+F1L;" M(&]S/30N,"!I
M;6<],2XP('-Y6=G9&)M7V-O
M;7!A="TT+F1L;"(@=C N,"!T'1L:6(M,"TQ,BTQ+F1L;"(@=C N,"!T'1P;RTP+F1L;"(@=C N,"!T'1S30N9&QL("T@;W,]-"XP
M(&EM9STQ+C @6=H:7-T;W)Y-2YD;&[EMAIL PROTECTED]7,]-"XP#0H@(" @(" @(" @(" @(" @(" B8WEG:&ES=&]R
M>34N9&QL(B!V,"XP('1S/3(P,#,O."\Q," [EMAIL PROTECTED](" Y-3AK(#(P,#,O
M,[EMAIL PROTECTED],3 @9#I<8WEG=VEN7&)I;EQC>6=I8V]N=BTR+F1L;" M(&]S/30N,"!I
M;6<],2XP('-Y6=I8V]N=BTR
M+F1L;"(@=C N,"!T6=I;G1L+3$N9&QL
M(B!V,"XP('1S/3(P,#$O,3(O,3,@-#HR. T*(" @,S=K(#(P,#,O,[EMAIL PROTECTED],3 @
M9#I<8WEG=VEN7&)I;EQC>6=I;G1L+3(N9&QL("T@;W,]-"XP(&EM9STQ+C @
M6=J<&5G-F(N9&QL("T@;W,]-"XP(&EM9STQ+C @6=W:6Y<8FEN7&-Y9VUE;G4V+F1L
M;" M(&]S/30N,"!I;6<],2XP('-Y6=M96YU-BYD;&PB('8P+C @=',],C P,B\Q+SD@,3HP,PT*(" @,CEK
M(#(P,#,O,[EMAIL PROTECTED],[EMAIL PROTECTED]<8WEG=VEN7&)I;EQC>6=M96YU-RYD;&[EMAIL 
PROTECTED]7,]-"XP#0H@(" @(" @(" @(" @(" @(" B8WEG;65N
M=37,]-"XP#0H@(" @(" @(" @(" @(" @(" B8WEG;F-U6=W:6Y<8FEN7&-Y9VYC=7)S97,V+F1L;" M(&]S/30N
M,"!I;6<],2XP('-Y6=N8W5R
M6=P86YE;#4N9&QL
M(B!V,"XP('1S/3(P,#$O-"\R-2 Q.C(W#0H@(" Q,FL@,C P,B\P,2\P.2!D
M.EQC>6=W:6Y<8FEN7&-Y9W!A;F5L-BYD;&[EMAIL PROTECTED]7,]-"XP#0H@(" @(" @(" @(" @(" @(" B8WEG<&%N96PV+F1L;"(@=C N
M,"!T6=W
M:6Y<8FEN7&-Y9W!A;F5L-RYD;&[EMAIL PROTECTED]7,]-"XP
M#0H@(" @(" @(" @(" @(" @(" B8WEG<&%N96PW+F1L;"(@=C N,"!T6=W:6Y<8FEN
M7&-Y9W!C7,]-"XP#0H@(" @
M(" @(" @(" @(" @(" B8WEG<&-R92TP+F1L;"(@=C N,"!T7,]-"XP#0H@(" @(" @(" @
M(" @(" @(" B8WEG<&-R92YD;&PB('8P+C @=',],C 

Re: Compiling errors with '-mno-cygin' option on Cygwin

2003-10-24 Thread Paul Bezzam

Hello everyone,

Is there any way I can call an application(a C application using embedded
Perl) created on Cygwin from Windows(C++, APIs) environment?

Any pointers would be appreciated.

Thank you.

Paul

On Thu, 23 Oct 2003, Igor Pechtchanski wrote:

> Any DLL that comes with the Cygwin perl is going to depend on cygwin1.dll.
> Same goes for any DLL you build without -mno-cygwin.  However, if you call
> these DLLs from Visual Basic, or use -mno-cygwin when compiling, you'll
> end up with the dependence on both msvcrt.dll (because of VB/-mno-cygwin)
> *and* cygwin1.dll (because of the perl DLLs), and that's an explosive
> combination.
>
> If you really need to use Perl with Visual Basic, you might consider a
> Windows-only version of Perl, e.g. ActiveState, and use the DLLs and
> headers from that distribution in your -mno-cygwin build.  However, be
> aware that this puts you completely outside of the realm of Cygwin, and
> any support you get for this will have to come from some other forum.
>   Igor
>
> On Thu, 23 Oct 2003, Paul Bezzam wrote:
>
> > Thank you for your replies.  But here is my problem:
> >
> > I am trying to make a DLL from a C program that has embedded Perl in it.
> > I successfully created the DLL, and also created a test C client.  The
> > client successfully calls the DLL.  All this is done in Cygwin and without
> > the "-mno-cygwin" option.
> >
> > But, when I try to invoke this DLL from Visual Basic, the application
> > crashes with the error message, "An unhandled Win32 Exception has
> > occurred in VB6.EXE."
> >
> > Thanks.
> >
> > Paul
> >
> > On Thu, 23 Oct 2003, Igor Pechtchanski wrote:
> >
> > > On Thu, 23 Oct 2003, Paul Bezzam wrote:
> > >
> > > > Hello everyone,
> > > >
> > > > I have this issue: I have a C program that uses embedded perl to call a
> > > > Perl subroutine.  This runs successfully when compiled with gcc with
> > > > default options.  But, when I use the -mno-cygwin option, I get errors
> > > > indicating that some include files are not available. (The error messages
> > > > are shown below my signature)
> > > >
> > > > All of this is on Cygwin.  Can anyone please point my mistakes?
> > > >
> > > > Thank you.
> > > > Paul
> > > >
> > > > Below is part of the error message:
> > > >
> > > > $ gcc -c -mno-cygwin mpdll2.c `perl -MExtUtils::Embed -e ccopts -e ldopts`
> > > > Note (probably harmless): No library found for -lcrypt
> > > > Note (probably harmless): No library found for -lutil
> > > > In file included from mpdll2.c:2:
> > > > /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/perl.h:613:27: netinet/in.h:
> > > > No such file or directory
> > > > /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/perl.h:617:26: arpa/inet.h:
> > > > No such file or directory
> > > > /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/perl.h:663:27: sys/times.h:
> > > > No such file or directory
> > > > /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/perl.h:782:30: sys/ioctl.h:
> > > > No such file or directory
> > > > /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/perl.h:1193:23: ieeefp.h: No
> > > > such file or directory
> > > > /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/perl.h:1984:21: win32.h: No
> > > > such file or directory
> > > > In file included from
> > > > /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/perl.h:2215,
> > > >  from mpdll2.c:2:
> > >
> > > Paul,
> > >
> > > When you give the -mno-cygwin flag to gcc, you're invoking the MinGW
> > > runtime/environment.  MinGW stands for "Minimalist GNU for Windows" (the
> > > keyword here is "Minimalist").  It doesn't supply all of POSIX emulation,
> > > and it's very likely that some of the headers (and system calls) aren't
> > > available in it.
> > >
> > > You will most likely have to implement a lot of the functionality using
> > > Windows native calls (e.g. winsock, etc).  It also looks like you're
> > > pulling in the Cygwin versions of perl headers - while not an error in
> > > itself, this might be a warning flag, since Cygwin and MinGW runtimes
> > > usually don't mix well.
> > >   Igor
>
> --
>   http://cs.nyu.edu/~pechtcha/
>   |\  _,,,---,,_  [EMAIL PROTECTED]
> ZZZzz /,`.-'`'-.  ;-;;,_  [EMAIL PROTECTED]
>  |,4-  ) )-,_. ,\ (  `'-' Igor Pechtchanski, Ph.D.
> '---''(_/--'  `-'\_) fL   a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
>
> "I have since come to realize that being between your mentor and his route
> to the bathroom is a major career booster."  -- Patrick Naughton
>
> --
> 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: tcsetattr ()

2003-10-24 Thread Martin Farnik
Hello
>
>Incidentally, I am working on a trivial cleanup patch to fix:

>http://www.cygwin.com/ml/cygwin/2003-10/msg00708.html

>I just haven't had time to test it thoroughly yet.  I have no idea about
>this person's second "random hang" problem.  It wasn't very eloquently
>described.

It is a good news that you are working on patch to fix it. 
It is very easy to test it.
I try to connect 2 PC thru serial line and run on first PC program that permanently 
send data thru 
serial line to second PC.. When I try to call function tcflush at Windows98 on second 
PC program hangs.

I think that this random hangs problem is closely connected to problem above (with 
full serial buffer).

Martin Farnik






--
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: rsync local dir copy hang - solved for me

2003-10-24 Thread Hannu E K Nevalainen
> From: Mark Thornton
> Sent: Friday, October 24, 2003 12:13 PM

 Mark, please - even if your repliy might seem a bit personal - do keep
replies on the list.
 There might be some little spark, that makes others have a fire lit (i.e.
get a bright idea).

> >The bottom point: *don't do that* ;-)
> > i.e. leave the msleep() call there. This is a simple - yet
> effective - way
> >to avoid ill effects of a tight loop.
> >
> >
>
> However it remains true that there is some sort of bug in rsync's thread
> handling (or perhaps in cygwin's thread library).

 Hmmm... I think I read something about a similiar thing, having the word
"pthreads" in the subject. Might this be related?

> For some a cure for
> this, even using busy waiting, may be preferable to the bug.
>
> Mark Thornton

 For the time beeing, yes it might be preferable - but not as a long time
solution. And one has to be aware of the possible ill effects.

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- printf("Timezone: %s\n", (DST)?"UTC+02":"UTC+01"); --
--END OF MESSAGE--


--
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: rsync local dir copy hang - solved for me

2003-10-24 Thread Bakken, Luke
> Hmm? Is waitpid() a blocking call or not? WRT "WNOHANG" it 
> looks like an
> unblocking one...

Yep.
 
>  Thus I'm assuming it doesn't block and that msleep() is 
> something internal
> to rsync, using usleep() or some such.

It uses select(). When I used strace on a non-modified version of rsync
to watch where it hung, here's the last bit of output I saw:

   18 9449430 [main] rsync 3260 stopped_or_terminated: considering pid
3276
   18 9449448 [main] rsync 3260 checkstate: returning -1
   18 9449466 [main] rsync 3260 proc_subproc: waiting thread found no
children
   20 9449486 [main] rsync 3260 proc_subproc: finished processing
terminated/stopped child
   18 9449504 [main] rsync 3260 proc_subproc: returning 1
   21 9449525 [main] rsync 3260 wait4: 0 = WaitForSingleObject (...)
   19 9449544 [main] rsync 3260 wait4: intpid 3276, status 0x22FE28,
w->status 0, options 1, res 0
   20 9449564 [main] rsync 3260 cygwin_select: 0, 0x0, 0x0, 0x0,
0x22FDC0
   19 9449583 [main] rsync 3260 cygwin_select: to->tv_sec 0, to->tv_usec
2, ms 20
   18 9449601 [main] rsync 3260 cygwin_select: sel.always_ready 0

It never got past cygwin_select().

> of the patch is
> called "busy waiting" and is a *hard* blow against all other 
> software that
> is running at the same time.

But, it's OK for me because a) It fixes the problem b) It doesn't wait
long at all c) It doesn't appear to tie up resources.

> If the loop exit condition appears "late" the machine 
> running the above
> code will experience jerkyness and other ill effects - at the 
> extreme but
> still likely level there might even be disturbances of *vital* system
> functions (e.g. related to time critical tasks).

Nope, I haven't seen any of this. It could happen, I'm sure.

> The bottom point: *don't do that* ;-)
>  i.e. leave the msleep() call there.

If I leave msleep there, it hangs every time. So I'm taking it out. Now,
this fixes one hang at one time, but not others. For instance, if there
is nothing to do since the sources and targets are in sync, it'll hang.
If the source dir doesn't exist, it still hangs. I'm now going to see if
I can isolate the heart of the problem with a simple program that forks
and sleeps in the same fashion as with rsync.

Luke

--
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: DDD under cygwin

2003-10-24 Thread Igor Pechtchanski
Jozef,

Please don't send personal e-mail with Cygwin questions unless
specifically requested.  All Cygwin-related discussion should take place
on one of the Cygwin mailing lists (see ).
This will give your question access to a much wider area of expertise than
any one person can provide.

Also, do you Google?  
Igor

On Fri, 24 Oct 2003 [EMAIL PROTECTED] wrote:

> Hello Igor,
>
> i found the bellow thread on the net. I have the same problem during linking
> ddd under cygwin. Can you please advice, which libraries need to be
> recompiled, that include the "__static_initialization_and_destruction_0(int,
> int)" and the other functions?
>
> Thank you in advance.
> Jozef Molnar
>
>
> On Tue, 23 Sep 2003, Ayamico Hamasaki wrote:
>
> > Hi,
> >
> > I have problem compiling DDD 3.3.7 using gcc 3.3.1.
> > But if I revert to gcc.3.2.3, the compilation is
> > successful.
> >
> > Anyone has seen the same problem ? I wonder if this is
> > a gcc or ddd problem.
> >
> > ["cygcheck -c" output snipped]
>
> Please, please, please do not include cygcheck output inline.  It really
> does screw up the web search.
>
> > The error happens during the linking stage.
> >
> > 
> > g++ -DNDEBUG -O2 -g -W -Wall -trigraphs -o ddd.exe
> > [snip]
> > -L/usr/X11R6/lib /usr/X11R6/lib/libXm.a -lXaw -lXmu
> > -lXt -lXpm -lXp -lXext -lX11 -lSM -lICE -ltermcap -ly
> > -liberty
> > AgentM.o(.text+0x296): In function `GLOBAL(int10_t, long double, char, short, int, 
> > double)':
> > /usr/include/c++/3.3.1/iostream:87: undefined reference to 
> > `__static_initialization_and_destruction_0(int, int)'
>
> Make sure *all* your objects and libraries are compiled by gcc 3.3.1.
> Some of the above libraries are distributed with Cygwin, and thus are most
> likely compiled with gcc 3.2.
> Igor

-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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: Q: how to build GNU make from scratch ?

2003-10-24 Thread Brian Ford
On Fri, 24 Oct 2003, Heiko Nardmann wrote:

> Changing /bin/sh to /bin/bash at the start of the configure script gets
> me slightly further. I now get the following output:
>
> checking whether make sets ${MAKE}... ./configure: fork: Resource
> temporarily unavailable
>
> and here again make seems to hang ...
>
and then,

> After having no luck with my local machine having XP and some patches
> installed locally I switched to our VmWare server and grabbed a copy of the
> pure XP master without any patches. Then I installed current CygWin from
> scratch and what a wonder - it works now.
>
> So now I am not sure whether my CygWin setup is broken (less
> probabilistic) or whether my Win XP setup is broken (more
> probabilistic).
>
My WAG: Are you running Agnitum Outpost on your local machine?  If so,
please see this thread:

http://sources.redhat.com/ml/cygwin/2003-08/msg00521.html

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

--
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: tcsetattr ()

2003-10-24 Thread Brian Ford
On Fri, 24 Oct 2003, Martin Farnik wrote:

> Brian Ford wrote:
> >Incidentally, I am working on a trivial cleanup patch to fix:
> >
> >http://www.cygwin.com/ml/cygwin/2003-10/msg00708.html
> >
> >I just haven't had time to test it thoroughly yet.  I have no idea about
> >this person's second "random hang" problem.  It wasn't very eloquently
> >described.
>
> It is a good news that you are working on patch to fix it.
> It is very easy to test it.
>
Want to test it for me?

Do you know how to compile and test the cygwin1.dll if I send you the
patch, or would you prefer a binary?

Can you test it on multiple OSes?

> I try to connect 2 PC thru serial line and run on first PC program that
> permanently send data thru serial line to second PC.. When I try to
> call function tcflush at Windows98 on second PC program hangs.
>
Sure.  I understand the problem.  It just takes a good deal of effort to
get a setup like this if you don't already have one.

> I think that this random hangs problem is closely connected to problem
> above (with full serial buffer).
>
I haven't seen anything like this myself, but the devices I talk to don't
just stream continually that often.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

--
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: Strange Cygwin issue

2003-10-24 Thread Igor Pechtchanski
Dylan,

If you followed that thread to the end, it was suggested that the program
itself was buggy and treated the "-" as a parameter separator, IIRC.

As for your case, that's the expected behavior.  Windows programs get the
quotes surrounding quoted arguments -- try it from cmd.exe with this
simple program:

#include 

#ifdef WIN
#include 
int APIENTRY WinMain(HINSTANCE inst, HINSTANCE pinst, LPSTR cmdline, int show) {
  printf ("%s\n", cmdline);
}
#else
int main(int ac, char *av[]) {
  int i;
  for (i = 0; i < ac; i++)
printf ("%s|", av[i]);
  printf ("\n");
  return 0;
}
#endif

At a guess, the only way you can get around it is by writing your own
command line parsing routines...  Sorry.
Igor

On Fri, 24 Oct 2003, Dylan Cuthbert wrote:

> Did you sort this problem out eventually?  We're having the same problem.
>
> We pass a DOS command that we've compiled in Vis.C a parameter from within a
> bash shell and all our quotes are "played" with.
>
> ie.   #> ourcommand   'my oh my "this is a string" that is played with'
>
> and we get"my oh my \"this is a string\" that is played with"
> (including the surrounding double quotes) in our DOS program.
>
> Not what we want really.
>
> -
> Q-Games, Dylan Cuthbert.
> http://www.q-games.com
>
>
> "David Abrahams"  wrote in message
> news:[EMAIL PROTECTED]
> > Igor Pechtchanski  writes:
> >
> > > Dave,
> > >
> > > Actually, upon re-reading the above, it looks like it's a bash quoting
> > > issue.  You might try the fix that worked for "cygstart": single quote the
> > > double quotes, e.g.
> > >
> > > tlib '"c:\foo-bar\baz"'
> >
> > I exhausted all obvious possibilites, including that one, before
> > posting here.
> >
> > > or, if you want to be more generic,
> > >
> > > FILENAME=/cygdrive/c/foo-bar/baz
> > > tlib '"'"`cygpath -w "$FILENAME"`"'"'
> > >
> > > Make sure you copy the above *exactly* (better yet, cut/paste).
> > > Hope this helps,
> >
> > No dice:
> >
> > [EMAIL PROTECTED] /cygdrive/c/boost/tools/build/test
> > $ foo=/cygdrive/c/foo-bar/baz
> >
> > [EMAIL PROTECTED] /cygdrive/c/boost/tools/build/test
> > $ /cygdrive/c/tools/Borland/BCC55/Bin/tlib.exe  '"'"`cygpath -w "$foo"`"'"'
> > TLIB 4.5 Copyright (c) 1987, 1999 Inprise Corporation
> >
> > Error: opening '\c:\foo.LIB'
> >
> > The response should look like:
> >
> > C:\boost\tools\build\jam_src>c:\tools\Borland\BCC55\Bin\tlib.exe 
> > "c:\foo-bar\baz"
> > TLIB 4.5 Copyright (c) 1987, 1999 Inprise Corporation
> >
> > Error: opening 'c:\foo-bar\baz.LIB'
> >
> > --
> > Dave Abrahams
> > Boost Consulting
> > www.boost-consulting.com

-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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: OpenGL and Cygwin

2003-10-24 Thread Brian Ford
On Fri, 24 Oct 2003 [EMAIL PROTECTED] wrote:

> thanks Andre ! the fix worked. I can now compile helloglut and many of
> the red book opengl demos.
>
I went back to review this thread, but I am unsure exactly what fix you
actually used.  It would help greatly to see your exact compile line, and
to know what headers/libs you are, or think you are, using.  Did you move
/usr/include/GL/[gl.h glu.h] out of the way like I suggested?

BTW,

Andre Bleau wrote:
>Forget about LD_LIBRARY_PATH; it is not used by cygwin.

Plain old PATH is sort of the equivalent here to find DLLs.

> I noticed that glGetMinmax and some histogram related functions are not
> supported. It is possible that this is because these are opengl 1.2
> functions.
>
I short, yes.  But I really need to know what headers/libs you are using
to give you the correct advice on how to obtain them.

> By setting appropriate flags I got the appropriate GL_flags
> set correctly:
>
You mean defining GL_VERSION_1_2?  So, you are using the headers from the
opengl package in /usr/include/GL.  That is ok as long as you don't want
1.3 functionality.  Otherwise, I suggest following my "move out of the
way" suggestion.

>  however it appears that the libopengl32.a supplied with
> cygwin is only opengl1.1 compliant, which appears to be consistent with
> the README.
>
That is because Microsoft only supplies 1.1 functionality.  If you want
greater, you must load those functions as extensions.

> I have more recent nvidia drivers (I think :)): Is there any way to
> convert them to to a linkable form ? (i.e using dlltool or something like
> that). I
>
You do.  Most nvidia drivers are 1.3 or 1.4.  You don't need to convert
them, they are linkable as is via the normal described methods.

I think I can probably be of great help to you here, but you need to
describe you problems/goals in much greater detail.  I promise to try my
best to help if you do.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

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



starting emacs in X-window mode without a console

2003-10-24 Thread Rob S.i.k.l.o.s.
Hello,

I've searched the archives a bit, but can't find anything recent and/or
pertinent (although I'm sure this has been answered before).

I want to know if there is a way to start an emacs X-window without an
accompanying cygwin console.

I tried using nohup, but that didn't seem to make any difference - the
console won't exit until all background processes have finished.

Any help would be greatly appreciated.

Thanks,

Rob.



--
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: Compiling errors with '-mno-cygin' option on Cygwin

2003-10-24 Thread Igor Pechtchanski
The best and the most foolproof way I can think of is something like a
system() (CreateProcess) call and data exchange through temporary files.
Igor

On Fri, 24 Oct 2003, Paul Bezzam wrote:

> Hello everyone,
>
> Is there any way I can call an application(a C application using embedded
> Perl) created on Cygwin from Windows(C++, APIs) environment?
>
> Any pointers would be appreciated.
>
> Thank you.
> Paul
>
> On Thu, 23 Oct 2003, Igor Pechtchanski wrote:
>
> > Any DLL that comes with the Cygwin perl is going to depend on cygwin1.dll.
> > Same goes for any DLL you build without -mno-cygwin.  However, if you call
> > these DLLs from Visual Basic, or use -mno-cygwin when compiling, you'll
> > end up with the dependence on both msvcrt.dll (because of VB/-mno-cygwin)
> > *and* cygwin1.dll (because of the perl DLLs), and that's an explosive
> > combination.
> >
> > If you really need to use Perl with Visual Basic, you might consider a
> > Windows-only version of Perl, e.g. ActiveState, and use the DLLs and
> > headers from that distribution in your -mno-cygwin build.  However, be
> > aware that this puts you completely outside of the realm of Cygwin, and
> > any support you get for this will have to come from some other forum.
> >   Igor
> >
> > On Thu, 23 Oct 2003, Paul Bezzam wrote:
> >
> > > Thank you for your replies.  But here is my problem:
> > >
> > > I am trying to make a DLL from a C program that has embedded Perl in it.
> > > I successfully created the DLL, and also created a test C client.  The
> > > client successfully calls the DLL.  All this is done in Cygwin and without
> > > the "-mno-cygwin" option.
> > >
> > > But, when I try to invoke this DLL from Visual Basic, the application
> > > crashes with the error message, "An unhandled Win32 Exception has
> > > occurred in VB6.EXE."
> > >
> > > Thanks.
> > >
> > > Paul
> > >
> > > On Thu, 23 Oct 2003, Igor Pechtchanski wrote:
> > >
> > > > On Thu, 23 Oct 2003, Paul Bezzam wrote:
> > > >
> > > > > Hello everyone,
> > > > >
> > > > > I have this issue: I have a C program that uses embedded perl to call a
> > > > > Perl subroutine.  This runs successfully when compiled with gcc with
> > > > > default options.  But, when I use the -mno-cygwin option, I get errors
> > > > > indicating that some include files are not available. (The error messages
> > > > > are shown below my signature)
> > > > >
> > > > > All of this is on Cygwin.  Can anyone please point my mistakes?
> > > > >
> > > > > Thank you.
> > > > > Paul
> > > > >
> > > > > Below is part of the error message:
> > > > >
> > > > > $ gcc -c -mno-cygwin mpdll2.c `perl -MExtUtils::Embed -e ccopts -e ldopts`
> > > > > Note (probably harmless): No library found for -lcrypt
> > > > > Note (probably harmless): No library found for -lutil
> > > > > In file included from mpdll2.c:2:
> > > > > /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/perl.h:613:27: netinet/in.h:
> > > > > No such file or directory
> > > > > /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/perl.h:617:26: arpa/inet.h:
> > > > > No such file or directory
> > > > > /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/perl.h:663:27: sys/times.h:
> > > > > No such file or directory
> > > > > /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/perl.h:782:30: sys/ioctl.h:
> > > > > No such file or directory
> > > > > /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/perl.h:1193:23: ieeefp.h: No
> > > > > such file or directory
> > > > > /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/perl.h:1984:21: win32.h: No
> > > > > such file or directory
> > > > > In file included from
> > > > > /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/perl.h:2215,
> > > > >  from mpdll2.c:2:
> > > >
> > > > Paul,
> > > >
> > > > When you give the -mno-cygwin flag to gcc, you're invoking the MinGW
> > > > runtime/environment.  MinGW stands for "Minimalist GNU for Windows" (the
> > > > keyword here is "Minimalist").  It doesn't supply all of POSIX emulation,
> > > > and it's very likely that some of the headers (and system calls) aren't
> > > > available in it.
> > > >
> > > > You will most likely have to implement a lot of the functionality using
> > > > Windows native calls (e.g. winsock, etc).  It also looks like you're
> > > > pulling in the Cygwin versions of perl headers - while not an error in
> > > > itself, this might be a warning flag, since Cygwin and MinGW runtimes
> > > > usually don't mix well.
> > > >   Igor

-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   htt

Strange characters

2003-10-24 Thread Marcus Vinicius Ferreira
Hello,


I was studying man pages more deeply in Cygwin and I can not solve a problem
involving strange (format ?) characters. As an example, here is a part of "man
zip".

__

   zipnote [â^'hwL] [â^'b path] zipfile
   zipsplit [â^'hiLpst] [â^'n size] [â^'b path] zipfile

DESCRIPTION
   zip  is  a compression and file packaging utility for Unix, VMS, MSDOS,
   OS/2, Windows NT, Minix, Atari and Macintosh, Amiga and Acorn RISC  OS.

   It  is  analogous to a combination of the UNIX commands tar(1) and
comâ??
   press(1) and is compatible with PKZIP (Phil Katzâ?Ts ZIP for  MSDOS 
sysâ??   tems).

__


Although some colors appear in the text description (white, grey and navy
blue), a set of "â", "^", "'" makes impossible to understand some parts.

I tried to change enviroment variables such as $LANG, $TERM, $CYGWIN with no
results. I made a fresh new installation and the problem re-appears.

What's wrong?


My cygwin dll is 1.5.5, Windows XP Pro, bash 2.05b.



Marcus


--
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: starting emacs in X-window mode without a console

2003-10-24 Thread Brian Ford
On Fri, 24 Oct 2003, Rob S.i.k.l.o.s. wrote:

> I've searched the archives a bit, but can't find anything recent and/or
> pertinent (although I'm sure this has been answered before).
>
> I want to know if there is a way to start an emacs X-window without an
> accompanying cygwin console.
>
Try digging through this thread, then post again if you don't find the
answer.

http://www.cygwin.com/ml/cygwin/2003-10/msg00287.html

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

--
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: Cannot Start Cron

2003-10-24 Thread Harig, Mark
1. From your cygcheck.txt:

>...
>  Found: C:\WINNT40\grep.exe
>  Found: d:\cygwin\bin\grep.exe
>  Warning: C:\WINNT40\grep.exe hides d:\cygwin\bin\grep.exe
>...

Please check your C:\WINNT40 for other utilities,
such as 'cron.exe'.  Consider deleting these 
programs, or moving them to another directory
in your PATH.

3. Please examine your /var/log/cron.log to see
if it provides any useful messages.

4. Please provide a copy of your crontab:

$ crontab -l > crontab.txt

5. Run the following command to check your
   cygwin packages:

$ cygcheck -c | fgrep Incomplete

   If any packages are listed, then consider
   running 'setup.exe' and selecting the
   'Reinstall' option.

Also, at some point, consider the possibility of
converting your C drive's file system from FAT
to NTFS, if doing that conversion won't cause
other problems.  Windows provides the 'convert'
command for this purpose.

--
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: Strange characters

2003-10-24 Thread Igor Pechtchanski
On Fri, 24 Oct 2003, Marcus Vinicius Ferreira wrote:

> Hello,
>
> I was studying man pages more deeply in Cygwin and I can not solve a problem
> involving strange (format ?) characters. As an example, here is a part of "man
> zip".
>
> __
>
>zipnote [a^'hwL] [a^'b path] zipfile
>zipsplit [a^'hiLpst] [a^'n size] [a^'b path] zipfile
>
> DESCRIPTION
>zip  is  a compression and file packaging utility for Unix, VMS, MSDOS,
>OS/2, Windows NT, Minix, Atari and Macintosh, Amiga and Acorn RISC  OS.
>
>It  is  analogous to a combination of the UNIX commands tar(1) and coma??
>press(1) and is compatible with PKZIP (Phil Katza?Ts ZIP for  MSDOS  sysa??   
> tems).
>
> __
>
>
> Although some colors appear in the text description (white, grey and navy
> blue), a set of "a", "^", "'" makes impossible to understand some parts.
>
> I tried to change enviroment variables such as $LANG, $TERM, $CYGWIN with no
> results. I made a fresh new installation and the problem re-appears.
>
> What's wrong?
>
>
> My cygwin dll is 1.5.5, Windows XP Pro, bash 2.05b.
>
> Marcus

alias less='/bin/less -r'
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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



GNUPLOT compilation limitation (?) : howto enable x11 terminal support when compiling gnuplot for CYGWIN

2003-10-24 Thread Emmanuel Favre-Nicolin
Hi,

I'm willing to use x11 terminal of gnuplot in a cygwin environment.

So, I tryed to compile gnuplot (3.7.3) and it worked well.

The only problem is that with this version, I don't have any x11 
terminal so that gnuplot is not easy to use!

I haerd that I had to build it setuid in order to get the x11 driver.
I don't know how it is done?
(Rem : with cygwin, I don't have the user root)
(cygwin is version 1.5.5, I think)

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


Cannot log on as user - admin okay

2003-10-24 Thread Uwe Dippel
Tried archives, google, erdelynet; but no answer or unrelated.
Newbie on XP.
Install okay, can log on locally (XP) as admin and users. Remote logon
(Linux - ssh) works for admin of XP box only; not for any of the users
on that XP box. I tried some of those posts suggesting mkpasswd and
mkgroup; no success. In all cases I get 
Permission denied, please try again.
when entering the password (keyboard).

Any help appreciated !

Uwe







--
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: Cannot log on as user - admin okay

2003-10-24 Thread Igor Pechtchanski
On Fri, 25 Oct 2003, Uwe Dippel wrote:

> Tried archives, google, erdelynet; but no answer or unrelated.
> Newbie on XP.
> Install okay, can log on locally (XP) as admin and users. Remote logon
> (Linux - ssh) works for admin of XP box only; not for any of the users
> on that XP box. I tried some of those posts suggesting mkpasswd and
> mkgroup; no success. In all cases I get
> Permission denied, please try again.
> when entering the password (keyboard).
>
> Any help appreciated !
>
> Uwe
>
> --
> Problem reports:   http://cygwin.com/problems.html
 ^^^
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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: Cannot Start Cron

2003-10-24 Thread Buck Turgidson
Please check your C:\WINNT40 for other utilities,
such as 'cron.exe'.  Consider deleting these
programs, or moving them to another directory
in your PATH.

3. Please examine your /var/log/cron.log to see
if it provides any useful messages.

4. Please provide a copy of your crontab:

$ crontab -l > crontab.txt

5. Run the following command to check your
   cygwin packages:

$ cygcheck -c | fgrep Incomplete

   If any packages are listed, then consider
   running 'setup.exe' and selecting the
   'Reinstall' option.

Also, at some point, consider the possibility of
converting your C drive's file system from FAT
to NTFS, if doing that conversion won't cause
other problems.  Windows provides the 'convert'
command for this purpose.

--
No dups on cron.  I do have it as an NT startup service, and I get an error
upon booting saying that it couldn't be started.  I wonder if that means
something.  Maybe it is being started as the wrong user?

Nothing return for the Incomplete stuff.

My cron is very simple, so here is the text, rather than an attachment.

Thanks again for looking.

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.341 installed on Fri Oct 24 12:57:58 2003)
# (Cron version -- $Id: crontab.c,v 1.7 2003/04/15 15:13:41 corinna Exp $)
*/1 * * * * /home/buckg/monsql





--
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: GNUPLOT compilation limitation (?)

2003-10-24 Thread fergus
>> So, I tryed to compile gnuplot (3.7.3) and it worked well.
>> The only problem is that with this version, I don't have any
>> x11 terminal so that gnuplot is not easy to use!

I just do (i) start XWin -multiwindow [if OS is 98 -- omit "start" if OS is
XP]; then (ii) run rxvt -display localhost:0.0 -e bash; and then (iii) I
find that I can use gnuplot (3.7.3, like you) with no difficulty at all.
Without XWin, I wouldn't expect it to work. (I am not clear from what you
are saying whether you do.) Fergus



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



Can't link to winsock2 library

2003-10-24 Thread Takeshi Honda
Hi,
(B
(BI made ruby extension module which uses winsock2.
(BAnd I tried to compile it.
(BBut the following error appeared.
(B
(BWhat can I do for this problem?
(BPlease let me know.
(B
(Bext>>gcc -Os -I /usr/local/lib/ruby/1.6/i386-cygwin   -I.
(B-I/usr/local/lib/ruby/1.8/i386-cygwin
(B-I/usr/local/lib/ruby/1.8/i386-cygwin -I. 
(B-I/usr/local/cygwin-local/include  -c Sniff.cpp -lws2_32
(B-lm -lstdc++
(Bgcc: -lws2_32: linker input file unused because linking
(Bnot done
(Bgcc: -lm: linker input file unused because linking not
(Bdone
(Bgcc: -lstdc++: linker input file unused because linking
(Bnot done
(B
(B
(B__
(BDo You Yahoo!?
(BYahoo! BB is Broadband by Yahoo!  http://bb.yahoo.co.jp/
(B
(B
(B--
(BUnsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
(BProblem reports:   http://cygwin.com/problems.html
(BDocumentation: http://cygwin.com/docs.html
(BFAQ:   http://cygwin.com/faq/

Re: Can't link to winsock2 library

2003-10-24 Thread Brian Ford
On Sat, 25 Oct 2003, Takeshi Honda wrote:

> What can I do for this problem?
> Please let me know.
>
> ext>>gcc -Os -I /usr/local/lib/ruby/1.6/i386-cygwin   -I.
> -I/usr/local/lib/ruby/1.8/i386-cygwin
> -I/usr/local/lib/ruby/1.8/i386-cygwin -I.
> -I/usr/local/cygwin-local/include  -c Sniff.cpp -lws2_32
> -lm -lstdc++
> gcc: -lws2_32: linker input file unused because linking
> not done
> gcc: -lm: linker input file unused because linking not
> done
> gcc: -lstdc++: linker input file unused because linking
> not done
>
The -c option means compile just a .o file.  Libraries are only used
during the final link.  Remove the -c, and you'll probably want a -o to
specify the output file name.

Your include path looks weird.  Two versions of ruby?

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

--
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: Thread.start()

2003-10-24 Thread Igor Pechtchanski
Eros,

Please don't send personal mail with Cygwin questions unless specifically
requested.  All Cygwin-related questions should be addressed to one of the
Cygwin lists (see ).  Also, please make sure
your mailer respects the Reply-To: header.

On Fri, 24 Oct 2003, [iso-8859-1] Eros Sebastião Pagnano Júnior wrote:

> Hi Igor,
> 
> I'm using rmiregistry under cygwin. My development environment is the jdk
> 1.4.1_01.
> My problem is when I try to start rmiregistry.
> When I type : rmiregistry 
> I get :
> 
> Exception in thread "main" java.lang.InternalError: Thread.start called but
> threads not available.
> 
> I don't know what's this message.
> The J2sdk does work well under cygwin ? and Threads ?
> I think that's something in the cygwin .
> 
> Can you help me 
> 
> thanks ...
> Eros Sebastião Pagnano Júnior

Again, there is *no* Java Development Kit under Cygwin.  The Sun and IBM
JDKs are Windows applications, completely independent of Cygwin.  Unless
you're by some chance calling the gcj version of Java (which is
unsupported in any case), you're not likely to get any support from the
Cygwin community.  You may want to try invoking your scripts via the
cmd.exe shell, to determine whether your problem is related to Cygwin at
all.

Check which java is called by the rmiregistry script.  Then try your luck
with some Java forum.
Igor
-- 
Igor Pechtchanski   "I love deadlines.  I love the whooshing noise
IBM T.J.Watson Research Center  they make as they go past."
[EMAIL PROTECTED]-- Douglas Adams
(914)784-6162


--
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: Can't link to winsock2 library

2003-10-24 Thread Takeshi Honda
Thank you for your help.
(B
(B> The -c option means compile just a .o file. 
(B> Libraries are only used
(B> during the final link.  Remove the -c, and you'll
(B> probably want a -o to
(B> specify the output file name.
(B
(BI could compile and link. Thanks!
(B
(B> Your include path looks weird.  Two versions of
(B> ruby?
(B
(BThat's right.
(BRecently I updated ruby.
(B
(B__
(BDo You Yahoo!?
(BYahoo! BB is Broadband by Yahoo!  http://bb.yahoo.co.jp/
(B
(B
(B--
(BUnsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
(BProblem reports:   http://cygwin.com/problems.html
(BDocumentation: http://cygwin.com/docs.html
(BFAQ:   http://cygwin.com/faq/

Re: Strange characters

2003-10-24 Thread Marcus Vinicius Ferreira
Hi Igor,


Using alias to less did not work.

I can see the difference what you suggested using color ls:

$ /bin/ls -l --color | /bin/less -r

compared to

$ /bin/ls -l --color | /bin/less


Defining $PAGER to less aliased or explicitly to "/bin/less -r" does not
resolve either. I still can see the funny sequence of "â^'" in each man page.



Marcus






--- Igor Pechtchanski <[EMAIL PROTECTED]> wrote:
> On Fri, 24 Oct 2003, Marcus Vinicius Ferreira wrote:
> 
> > Hello,
> >
> > I was studying man pages more deeply in Cygwin and I can not solve a
> problem
> > involving strange (format ?) characters. As an example, here is a part of
> "man
> > zip".
> >
> > __
> >
> >zipnote [a^'hwL] [a^'b path] zipfile
> >zipsplit [a^'hiLpst] [a^'n size] [a^'b path] zipfile
> >
> > DESCRIPTION
> >zip  is  a compression and file packaging utility for Unix, VMS,
> MSDOS,
> >OS/2, Windows NT, Minix, Atari and Macintosh, Amiga and Acorn RISC 
> OS.
> >
> >It  is  analogous to a combination of the UNIX commands tar(1) and
> coma??
> >press(1) and is compatible with PKZIP (Phil Katza?Ts ZIP for  MSDOS 
> sysa??   tems).
> >
> > __
> >
> >
> > Although some colors appear in the text description (white, grey and navy
> > blue), a set of "a", "^", "'" makes impossible to understand some parts.
> >
> > I tried to change enviroment variables such as $LANG, $TERM, $CYGWIN with
> no
> > results. I made a fresh new installation and the problem re-appears.
> >
> > What's wrong?
> >
> >
> > My cygwin dll is 1.5.5, Windows XP Pro, bash 2.05b.
> >
> > Marcus
> 
> alias less='/bin/less -r'
>   Igor
> -- 
>   http://cs.nyu.edu/~pechtcha/
>   |\  _,,,---,,_  [EMAIL PROTECTED]
> ZZZzz /,`.-'`'-.  ;-;;,_  [EMAIL PROTECTED]
>  |,4-  ) )-,_. ,\ (  `'-' Igor Pechtchanski, Ph.D.
> '---''(_/--'  `-'\_) fL   a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
> 
> "I have since come to realize that being between your mentor and his route
> to the bathroom is a major career booster."  -- Patrick Naughton


--
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: 1.5.1: can't open files beginning with "..."

2003-10-24 Thread Rolf Campbell
To make things even more interesting, it thinks that anything starting 
with '...' is a character device?

/home/rcampbell> ll ..
crw-rw-rw-1 rcampbel   0,   0 Oct 24 14:28 ..
/home/rcampbell> touch ...
touch: creating `...': No such device or address
Chris Moore wrote:
I have a file on my PC called "...foo.txt".

cygwin has a problem with this file:

  $ ls -a
  .  ..  ...foo.txt  cygcheck.out
  $ ls -al > /dev/null
  ls: ...foo.txt: No such file or directory
  $ 

cygwin also has a problem making similarly named files:

  $ touch ...foo2.txt
  touch: creating `...foo2.txt': No such file or directory
Windows Explorer also doesn't like to make files whose names begin
with 3 dots, but Windows itself is fine with them.  The following
Perl one-liner makes the file if you run it in the (native Windows)
ActiveState Perl:
  open(FP, ">...foo3.txt") or die "$!";

But the cygwin perl complains:

  "No such file or directory at 3dots.pl line 1.".

I can also create these '3 dot' files in a native Win32 Emacs, but
not in the cygwin Emacs.  Even a Windows 'DOS prompt' (cmd.exe) is
able to make it:
  C:\>echo foo > ...foo3.txt
  C:\>
I'm not sure how to tell you what version of cygwin this is, but the
'DLL version' is 1.5.5 if that's what you need to know.
I've attached the output of "cygcheck -s -v -r".

Chris.





Cygwin Win95/NT Configuration Diagnostics
Current System Time: Fri Oct 24 13:56:27 2003
Windows XP Home Edition Ver 5.1 Build 2600 Service Pack 1

Path:   C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
.
C:\cygwin\usr\X11R6\bin
Output from C:\cygwin\bin\id.exe (nontsec)
UID: 1006(Chris) GID: 513(None)
513(None)
Output from C:\cygwin\bin\id.exe (ntsec)
UID: 1006(Chris) GID: 513(None)
513(None)544(Administrators)  
545(Users)

SysDir: C:\WINDOWS\System32
WinDir: C:\WINDOWS
HOME = `c:\Chris'
MAKE_MODE = `unix'
PWD = `/cygdrive/c/Chris/cygwin'
USER = `Chris'
ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\Chris\Application Data'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `CHRISLAP'
COMSPEC = `C:\WINDOWS\system32\cmd.exe'
CVS_RSH = `/bin/ssh'
DJGPP = `c:\djgpp\djgpp.env'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\Chris'
HOSTNAME = `CHRISLAP'
LOGONSERVER = `\\CHRISLAP'
MANPATH = `:/usr/X11R6/man:/usr/ssl/man'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/cygdrive/c/Chris'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 15 Model 2 Stepping 4, GenuineIntel'
PROCESSOR_LEVEL = `15'
PROCESSOR_REVISION = `0204'
PROGRAMFILES = `C:\Program Files'
PROMPT = `$P$G'
PS1 = `\W $ '
SESSIONNAME = `Console'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINDOWS'
TEMP = `c:\DOCUME~1\Chris\LOCALS~1\Temp'
TERM = `cygwin'
TMP = `c:\DOCUME~1\Chris\LOCALS~1\Temp'
TZ = `GMT-2'
USERDOMAIN = `CHRISLAP'
USERNAME = `Chris'
USERPROFILE = `C:\Documents and Settings\Chris'
WINDIR = `C:\WINDOWS'
_ = `/usr/bin/cygcheck'
HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00
  (default) = `C:'
  unix = `/'
  fbinary = 0x
  fsilent = 0x
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x0022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:\cygwin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:\cygwin/bin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:\cygwin/lib'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/X11R6/lib/X11/fonts
  (default) = `C:\cygwin\usr\X11R6\lib\X11\fonts'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\01
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\02
HKEY_LOCAL_MACHINE\SOFTWARE\Cy

ssh-host-config: "mkpasswd -l -u sshd"; should it be "-d" on domain controller?

2003-10-24 Thread Tom Rodman
consider:

  bash-2.05b$ uname -r; grep mkpasswd /bin/ssh-host-config
  1.5.5(0.94/3/2)
mkpasswd -l -u sshd | sed -e 's/bash$/false/' >> ${SYSCONFDIR}/passwd

Does "mkpasswd -l" make any sense on a domain controller?

On an NT domain controller I tested 

  mkpasswd -d -u sshd | sed -e 's/bash$/false/' >> /etc/passwd

and "ssh localhost" worked fine after stopping and starting sshd.  The '-d"
option creates a user entry that apparently has the same SID, but
different uid offset.

Using only the "-d" switch on a domain controller would simplify
the cron script I use to automatically rebuild /etc/passwd.

--
thank/regards,
Tom Rodman
pls run for my address:  
  perl -e 'print unpack("u", "1\:6UP\,\$\!T\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: undefined reference to `_getline'

2003-10-24 Thread Christopher Faylor
On Fri, Oct 24, 2003 at 01:05:02AM -0400, Robb, Sam wrote:
>>I suppose that in all of your searching you never came across the
>>concept that cygwin uses newlib and that cygwin does not export every
>>single thing from newlib?  That means that there are some things
>>defined in headers which are not actually available in cygwin.
>
>No, I understand that - I was wondering if the missing export is
>becuase of a lack of interest, or if there is some problem with the
>newlib version of getline() that keeps it from being exported.

As a good net citizen if I was aware of a problem with getline in a
package that I was associated with, I'd be attempting to get it fixed.

Let me use another tried and true aphorism: patches thoughtf..., er,
patches gr...

Just submit a #(&*! patch, ok?  Cheesh.

cgf

***Note: The above was an attempt at humor.  Please be advised.

--
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 build GNU make from scratch ?

2003-10-24 Thread Christopher Faylor
On Fri, Oct 24, 2003 at 10:10:00AM +0200, J?rg Schaible wrote:
>Heiko Nardmann wrote on Friday, October 24, 2003 8:24 AM:
>> On Freitag, 24. Oktober 2003 08:07, Bobby McNulty Junior wrote:
>>> I just configured Make 3.80 in a seperate directory.
>>> I made on called "o" in the root of the source code and configured.
>>> Looks promising, as long as you are using the latest tools. Cygwin
>>> B20 won't configure this way, if that is what you are using.
>>> 
>> 
>> What is Cygwin B20 in difference to what I normally get by setup.exe
>> ??? 
>
>
>B20 was the unbelievable, awesome and complete Cygwin release, that
>could have anwered any questions, including the question for 42.  But
>they nuked it just before it was ready to give *that* answer ...

That was when I joined as project manager, or rather was replaced by a
shady government organization that ousted poor Geoff Noer.  Nowadays, I
just send out release after substandard release of cygwin, chuckling
evily and stroking the stuffed remains of my dead cat "Bitsy".

As far as 42 is concer

--
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: proftpd

2003-10-24 Thread Jason Tishler
Mark,

Please post instead of sending private email.

On Fri, Oct 24, 2003 at 11:03:51AM -0700, Mark Rissman wrote:
> Any thoughts as to why proftpd service won't start on WinXP.  I
> followed your article about making it a service.

See the following:

http://www.catb.org/~esr/faqs/smart-questions.html

> If I try to run manually I get.
> 
> $ /usr/sbin/proftpd
> 255.255.255.255 - unable to set uid to 18, current uid: 11025

The above wont work.  Use the "at trick" if you want to run proftpd
manually:


http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=cygwin+at+trick+localsystem

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

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



Weird Naim.exe network usage?

2003-10-24 Thread darkacorn
I hope this is the right mailing list to address this issue in. 

I recently installed cygwin on my window xp home edition computer. I started naim. I 
then proceeded to enter my username, and password. It logged into TOC just fine, and I 
was typing away with friends. I noticed that for some reason naim.exe was listening on 
tcp sockets, and not only that but it changes quite frequently while naim.exe is 
running. So let me just state this again, it is listening on TCP sockets. They are 
also real because I have confirmed by telneting to them. Nothing is printed or 
anything, it just sits there. Has anyone experienced naim.exe listening on TCP 
sockets? I have no modules loaded I confirmed with /modlist.



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



Key-based authentication fails when keys are in Samba directory

2003-10-24 Thread Hugh Brown
I have Cygwin and OpenSSH set up on a number of Win2K machines.
Home directories for users are mounted via a FreeBSD-based Samba
server named Whistler.  SSH to the Win2K machines works without any
problems *except* for key-based authentication where the
~/.ssh/authorized_keys file is in a Samba-mounted home directory.

I found email from Brian Hayward
(http://sources.redhat.com/ml/cygwin/2003-10/msg00479.html) from a
couple of weeks ago, which seems pretty similar.  However, when I
try the solution (running "setfacl -m u:system:r-- ~ ~/.ssh
~/.ssh/authorized_keys", where ~ is a Samba-mounted home directory),
I get an error message that says "Function not implemented."  I
don't get this error message when I try it on a local home directoy,
like /home/administrator.  (I've also tried appending keys in
authorized_keys2 to authorized_keys, without any more success.)

I *have* been able to get key-based authentication to work if I set
up a home directory for the user on the Win2K machine.  In other
words, I change the home directory listed in /etc/passwd from
"//sambaserver/username" to "/home/username", create the directory,
and copy over the user's .ssh directory.  However, at this point
they no longer have access to their home directory, so it's less
than ideal.  And for the record, password-based authentication works
without any problem at all.

On the Samba server, some home directories are mounted via NFS from
other FreeBSD machines via amd, and some are on the machine itself;
this doesn't seem to make any difference -- key-based authentication
keeps failing.  

I thought it might be a problem with symlinks
(http://www.cygwin.com/faq/faq_4.html#SEC69).  To test, I tried
setting my home directory in Cygwin's /etc/passwd to a temporary
directory on Whistler (one that was not mounted via AMD, and had
no symbolic links at all) and copying the
.ssh directory in there; it still didn't work.

Here's the debug log from the ssh daemon when I try to log in:

debug1: userauth-request for user hbrown service ssh-connection method publickey
debug1: attempt 1 failures 1
debug2: input_userauth_request: try method publickey
debug1: test whether pkalg/pkblob are acceptable
debug3: mm_key_allowed entering
debug3: mm_request_send entering: type 20
debug3: monitor_read: checking request 20
debug3: mm_answer_keyallowed entering
debug3: mm_answer_keyallowed: key_from_blob: 0x100f4888
debug1: temporarily_use_uid: 13044/545 (e=18/18)
debug1: trying public key file //whistler/hbrown/.ssh/authorized_keys
debug3: mm_key_allowed: waiting for MONITOR_ANS_KEYALLOWED
debug3: mm_request_receive_expect entering: type 21
debug3: mm_request_receive entering
debug1: restore_uid: (unprivileged)
debug1: temporarily_use_uid: 13044/545 (e=18/18)
debug1: trying public key file //whistler/hbrown/.ssh/authorized_keys2
debug1: restore_uid: (unprivileged)
debug3: mm_answer_keyallowed: key 0x100f4888 is disallowed
debug3: mm_request_send entering: type 21
debug2: userauth_pubkey: authenticated 0 pkalg ssh-rsa
Failed publickey for hbrown from 192.168.0.80 port 2621 ssh2
 
Directory permissions for ~hbrown, listed in Cygwin:

 $ ls -ld .ssh
 drwxr-xr-x2 hbrown   Users   0 Oct 23 13:31 .ssh

 $ ls -ld .ssh/authorized_keys*
  -rw-r--r--1 hbrown   Users3894 Oct 23 16:08 .ssh/authorized_keys
  -rw-r--r--1 hbrown   Users1221 Oct 23 15:55 .ssh/authorized_keys2

And the options in sshd_config that are not commented out:

Port 22
StrictModes no
UsePrivilegeSeparation yes
Subsystem  sftp/usr/sbin/sftp-server

Finally, I've attached the output of cygcheck -s -v -r.  

Thanks in advance for any help you can give me, and please let me
know if I've left anything out.

-- 
Hugh Brown
[EMAIL PROTECTED]

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Fri Oct 24 13:25:49 2003

Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 3

Path:   C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
C:\cygwin\bin
c:\PROGRA~1\Borland\Delphi5\Projects\Bpl
c:\PROGRA~1\Borland\Delphi5\Bin
c:\WINNT\system32
c:\WINNT
c:\WINNT\System32\Wbem
c:\matlabr12\bin\win32
c:\SYNAPT~1
.
c:\Program Files\VISA\winnt\bin
c:\Program Files\VISA\winnt\agvisa

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 500(Administrator) GID: 513(None)
513(None)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 500(Administrator) GID: 513(None)
513(None)   544(Administrators)
545(Users)

SysDir: C:\WINNT\system32
WinDir: C:\WINNT

CYGWIN = `ntsec tty'
HOME = `C:\cygwin\home\Administrator'
MAKE_MODE = `unix'
PWD = `/home/Administrator'
USER = `Administrator'

ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\Administrator\Application Data'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `SKYPILOT'
COMSPEC = `C:\WINNT\system32\cmd.exe'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and

Re: Key-based authentication fails when keys are in Samba directory

2003-10-24 Thread Brian Ford
On Fri, 24 Oct 2003, Hugh Brown wrote:

> I have Cygwin and OpenSSH set up on a number of Win2K machines.
> Home directories for users are mounted via a FreeBSD-based Samba
> server named Whistler.  SSH to the Win2K machines works without any
> problems *except* for key-based authentication where the
> ~/.ssh/authorized_keys file is in a Samba-mounted home directory.
>
I'm not an ssh expert, but how do you expect this to work, at least if the
Samba mount requires authentication?  Seems like a "chicken and the egg"
problem to me.

Did you look at this thread?

http://www.cygwin.com/ml/cygwin/2003-10/msg01506.html

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

--
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: Key-based authentication fails when keys are in Samba directory

2003-10-24 Thread Larry Hall
Can an unauthenticated user access //sambaserver/username via Windows?
If not, that's the real problem.  You'll have to use password authentication
unless you change the access.  I'd be surprised if your problem is driven by
directory/file permission issues anyway, since you have StrictModes turned 
off.  Fiddling with permissions when they aren't being checked isn't going
to do much AFAICS.

Larry


At 04:25 PM 10/24/2003, Hugh Brown you wrote:
>I have Cygwin and OpenSSH set up on a number of Win2K machines.
>Home directories for users are mounted via a FreeBSD-based Samba
>server named Whistler.  SSH to the Win2K machines works without any
>problems *except* for key-based authentication where the
>~/.ssh/authorized_keys file is in a Samba-mounted home directory.
>
>I found email from Brian Hayward
>(http://sources.redhat.com/ml/cygwin/2003-10/msg00479.html) from a
>couple of weeks ago, which seems pretty similar.  However, when I
>try the solution (running "setfacl -m u:system:r-- ~ ~/.ssh
>~/.ssh/authorized_keys", where ~ is a Samba-mounted home directory),
>I get an error message that says "Function not implemented."  I
>don't get this error message when I try it on a local home directoy,
>like /home/administrator.  (I've also tried appending keys in
>authorized_keys2 to authorized_keys, without any more success.)
>
>I *have* been able to get key-based authentication to work if I set
>up a home directory for the user on the Win2K machine.  In other
>words, I change the home directory listed in /etc/passwd from
>"//sambaserver/username" to "/home/username", create the directory,
>and copy over the user's .ssh directory.  However, at this point
>they no longer have access to their home directory, so it's less
>than ideal.  And for the record, password-based authentication works
>without any problem at all.
>
>On the Samba server, some home directories are mounted via NFS from
>other FreeBSD machines via amd, and some are on the machine itself;
>this doesn't seem to make any difference -- key-based authentication
>keeps failing.  
>
>I thought it might be a problem with symlinks
>(http://www.cygwin.com/faq/faq_4.html#SEC69).  To test, I tried
>setting my home directory in Cygwin's /etc/passwd to a temporary
>directory on Whistler (one that was not mounted via AMD, and had
>no symbolic links at all) and copying the
>.ssh directory in there; it still didn't work.
>
>Here's the debug log from the ssh daemon when I try to log in:
>
>debug1: userauth-request for user hbrown service ssh-connection method publickey
>debug1: attempt 1 failures 1
>debug2: input_userauth_request: try method publickey
>debug1: test whether pkalg/pkblob are acceptable
>debug3: mm_key_allowed entering
>debug3: mm_request_send entering: type 20
>debug3: monitor_read: checking request 20
>debug3: mm_answer_keyallowed entering
>debug3: mm_answer_keyallowed: key_from_blob: 0x100f4888
>debug1: temporarily_use_uid: 13044/545 (e=18/18)
>debug1: trying public key file //whistler/hbrown/.ssh/authorized_keys
>debug3: mm_key_allowed: waiting for MONITOR_ANS_KEYALLOWED
>debug3: mm_request_receive_expect entering: type 21
>debug3: mm_request_receive entering
>debug1: restore_uid: (unprivileged)
>debug1: temporarily_use_uid: 13044/545 (e=18/18)
>debug1: trying public key file //whistler/hbrown/.ssh/authorized_keys2
>debug1: restore_uid: (unprivileged)
>debug3: mm_answer_keyallowed: key 0x100f4888 is disallowed
>debug3: mm_request_send entering: type 21
>debug2: userauth_pubkey: authenticated 0 pkalg ssh-rsa
>Failed publickey for hbrown from 192.168.0.80 port 2621 ssh2
> 
>Directory permissions for ~hbrown, listed in Cygwin:
>
> $ ls -ld .ssh
> drwxr-xr-x2 hbrown   Users   0 Oct 23 13:31 .ssh
>
> $ ls -ld .ssh/authorized_keys*
>  -rw-r--r--1 hbrown   Users3894 Oct 23 16:08 .ssh/authorized_keys
>  -rw-r--r--1 hbrown   Users1221 Oct 23 15:55 .ssh/authorized_keys2
>
>And the options in sshd_config that are not commented out:
>
>Port 22
>StrictModes no
>UsePrivilegeSeparation yes
>Subsystem  sftp/usr/sbin/sftp-server
>
>Finally, I've attached the output of cygcheck -s -v -r.  
>
>Thanks in advance for any help you can give me, and please let me
>know if I've left anything out.
>
>-- 
>Hugh Brown
>[EMAIL PROTECTED]
>
>--
>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: Limit to length of command line arguments? (was Cygwin/bash: need environment variables >32K)

2003-10-24 Thread Buchbinder, Barry (NIH/NIAID)
There are no unusual file names.  Everything starts with a consonant.

As an example, in bash

$ echo N* | wc
  13332   73218
$ ls N* | wc
bash: /bin/ls.exe: Invalid argument
  0   0   0
$ echo i* | wc
  1   4  41
$ ls i* | wc
  4   4  45

sh behaves the same except for the error message

$ ls N* | wc
ls: error 22
  0   0   0

If I give ls an argument that is 32730 characters long, I get the following:

$ ls `gawk 'BEGIN {for (N = 1; N < 32730; N++) {printf "X"}; print
"";exit}'`
bash: /bin/ls.exe: Invalid argument

While if I give it an argument 32729 characters long

$ ls `gawk 'BEGIN {for (N = 1; N < 32729; N++) {printf "X"}; print
"";exit}'`
[snip]: File or path name too long

So something changes when the command line arguments get too long.

- Barry

-Original Message-
From: Jörg Schaible [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 23, 2003 2:53 AM
To: [EMAIL PROTECTED]
Subject: RE: Limit to length of command line arguments? (was Cygwin/bash:
need environment variables >32K)


Hi Barry,

Buchbinder, Barry (NIH/NIAID) wrote on Thursday, October 23, 2003 12:43 AM:
> While doing some other work, I've come to the impression that
> this is not a fileutils problem.  In a directory with ~1700
> htm files whose names take 37k,


 
> $ ls *
> bash: /bin/ls.exe: Invalid argument
> 
> There has been a big change my cygwin installation since last
> week.  I got a new box, upgrading from Win98SE to XP Pro.  So
> this is a new installation of cygwin, but other than this
> line-length problem, everything seems to be working OK
> (ignoring minor glitches probably due to various
> configuration files getting lost in the transition).
> 
> Although I could re-do my scripts to work around this problem
> I'd appreciate any help in figuring out what is wrong with my cygwin
> installation. 

You might have an unusual filename (e.g. starting with a dash) that is
interpreted as argument. Try

$ ls -- *

This tells ls to interpret anything after the double dash as file argument
and not as possible option!

Regards,
Jörg

--
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: how to build GNU make from scratch ?

2003-10-24 Thread Igor Pechtchanski
On Fri, 24 Oct 2003, Christopher Faylor wrote:

> On Fri, Oct 24, 2003 at 10:10:00AM +0200, J?rg Schaible wrote:
> >Heiko Nardmann wrote on Friday, October 24, 2003 8:24 AM:
> >> On Freitag, 24. Oktober 2003 08:07, Bobby McNulty Junior wrote:
> >>> I just configured Make 3.80 in a seperate directory.
> >>> I made on called "o" in the root of the source code and configured.
> >>> Looks promising, as long as you are using the latest tools. Cygwin
> >>> B20 won't configure this way, if that is what you are using.
> >>>
> >>
> >> What is Cygwin B20 in difference to what I normally get by setup.exe
> >> ???
> >
> >B20 was the unbelievable, awesome and complete Cygwin release, that
> >could have anwered any questions, including the question for 42.  But
> >they nuked it just before it was ready to give *that* answer ...
>
> That was when I joined as project manager, or rather was replaced by a
> shady government organization that ousted poor Geoff Noer.  Nowadays, I
> just send out release after substandard release of cygwin, chuckling
> evily and stroking the stuffed remains of my dead cat "Bitsy".
>
> As far as 42 is concer

My Windows crashed while reading your message, and I blame you!  How do
you DO that?!  I bet it wouldn't have happened had I been running B20!
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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 build GNU make from scratch ?

2003-10-24 Thread Christopher Faylor
On Fri, Oct 24, 2003 at 04:58:21PM -0400, Igor Pechtchanski wrote:
>On Fri, 24 Oct 2003, Christopher Faylor wrote:
>
>> On Fri, Oct 24, 2003 at 10:10:00AM +0200, J?rg Schaible wrote:
>> >Heiko Nardmann wrote on Friday, October 24, 2003 8:24 AM:
>> >> On Freitag, 24. Oktober 2003 08:07, Bobby McNulty Junior wrote:
>> >>> I just configured Make 3.80 in a seperate directory.
>> >>> I made on called "o" in the root of the source code and configured.
>> >>> Looks promising, as long as you are using the latest tools. Cygwin
>> >>> B20 won't configure this way, if that is what you are using.
>> >>>
>> >>
>> >> What is Cygwin B20 in difference to what I normally get by setup.exe
>> >> ???
>> >
>> >B20 was the unbelievable, awesome and complete Cygwin release, that
>> >could have anwered any questions, including the question for 42.  But
>> >they nuked it just before it was ready to give *that* answer ...
>>
>> That was when I joined as project manager, or rather was replaced by a
 rather was put into office by the
>> shady government organization that ousted poor Geoff Noer.  Nowadays, I
>> just send out release after substandard release of cygwin, chuckling
>> evily and stroking the stuffed remains of my dead cat "Bitsy".
>>
>> As far as 42 is concer
>
>My Windows crashed while reading your message, and I blame you!  How do
>you DO that?!  I bet it wouldn't have happened had I been running B20!

There is no B20!  I have eliminated all copies of it.  You *must* use
1.5.5!  There will be no discussion on this.  It is all off-topic.

In fact, I think I don't like the name "Igor", so that is off-topic,
too.  You are no longer allowed to use your name in this mailing list.

Shush!  Aht!  No.  Sssh!

Don't make me make the term "Please do not send private email" off-topic,
too.  I will if you keep provoking me!

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: how to build GNU make from scratch ?

2003-10-24 Thread Igor Pechtchanski
On Fri, 24 Oct 2003, Christopher Faylor wrote:

> On Fri, Oct 24, 2003 at 04:58:21PM -0400, Igor Pechtchanski wrote:
> >On Fri, 24 Oct 2003, Christopher Faylor wrote:
> >
> >> On Fri, Oct 24, 2003 at 10:10:00AM +0200, J?rg Schaible wrote:
> >> >Heiko Nardmann wrote on Friday, October 24, 2003 8:24 AM:
> >> >> On Freitag, 24. Oktober 2003 08:07, Bobby McNulty Junior wrote:
> >> >>> I just configured Make 3.80 in a seperate directory.
> >> >>> I made on called "o" in the root of the source code and configured.
> >> >>> Looks promising, as long as you are using the latest tools. Cygwin
> >> >>> B20 won't configure this way, if that is what you are using.
> >> >>>
> >> >>
> >> >> What is Cygwin B20 in difference to what I normally get by setup.exe
> >> >> ???
> >> >
> >> >B20 was the unbelievable, awesome and complete Cygwin release, that
> >> >could have anwered any questions, including the question for 42.  But
> >> >they nuked it just before it was ready to give *that* answer ...
> >>
> >> That was when I joined as project manager, or rather was replaced by a
>  rather was put into office by the
> >> shady government organization that ousted poor Geoff Noer.  Nowadays, I
> >> just send out release after substandard release of cygwin, chuckling
> >> evily and stroking the stuffed remains of my dead cat "Bitsy".
> >>
> >> As far as 42 is concer
> >
> >My Windows crashed while reading your message, and I blame you!  How do
> >you DO that?!  I bet it wouldn't have happened had I been running B20!
>
> There is no B20!  I have eliminated all copies of it.  You *must* use
> 1.5.5!  There will be no discussion on this.  It is all off-topic.
>
> In fact, I think I don't like the name "Igor", so that is off-topic,
> too.  You are no longer allowed to use your name in this mailing list.
>
> Shush!  Aht!  No.  Sssh!
>
> Don't make me make the term "Please do not send private email" off-topic,
> too.  I will if you keep provoking me!
>
> cgf

Down with the tyranny of CGF!  For those interested, I have stashed my
own, super-private copy of B20 at the address below.  Please keep this
information in strict confidence -- I shudder to think what would happen
should CGF find out.  You can download B20 at 

null
Description: Binary data
--
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: Key-based authentication fails when keys are in Samba directory

2003-10-24 Thread Hugh Brown
Brian Ford wrote:
> I'm not an ssh expert, but how do you expect this to work, at least if the
> Samba mount requires authentication?  Seems like a "chicken and the egg"
> problem to me.

and Larry Hall wrote:

> Can an unauthenticated user access //sambaserver/username via Windows?
> If not, that's the real problem.  You'll have to use password authentication
> unless you change the access.  

Both of these fine gentlemen had it right:  I had completely missed
the Samba authentication problem.  I was able to use public-key
authentication by mounting my home directory with the public key
via "net use" (and supplying a password), prior to logging in via SSH.

Thanks very much to both of your for your swift (and patient) responses!

-- 
Hugh Brown
[EMAIL PROTECTED]

--
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: proftpd

2003-10-24 Thread Hannu E K Nevalainen
> The above wont work.  Use the "at trick" if you want to run proftpd
> manually:
> 
> 
> http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=cygwin+
> at+trick+localsystem
>
> Jason

WRT "At trick", see
http://www.cygwin.com/ml/cygwin/2003-09/msg01860.html
and have a look at the attachment, it will make life easier.

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- printf("Timezone: %s\n", (DST)?"UTC+02":"UTC+01"); --
--END OF MESSAGE--

--
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: cygcheck as body or attachment (was RE: rsync hang .... )

2003-10-24 Thread Peter J. Stieber
> I've used Cygwin for several years now, and have read this mailing list
> for quite some time. When I encountered the rsync problem, I searched
> mailing lists as well as Google to find the solution, couldn't find a
> definitive answer, and eventually found one myself that worked, so I
> thought I'd post it (as many other people had reported similar problems
> in the archives) in order to help.
>
> I almost didn't email the list with this solution because I couldn't
> remember whether or not to include the output of cygcheck as an
> attachment or as part of the body. I looked on the mailing list webpage
> on cygwin.com, and couldn't see any info, so I decided to put it in the
> body. I should have looked further, but I figured it wouldn't be a big
> deal. Of course, I chose the wrong way, and got flamed.

I think the people I work with would think of me as a "nice guy". I hope
this comment doesn't get me blocked from the cygwin list ;-) Normally I
ignore such things, but I felt compelled because I have seen many other
messages with the following content...

"PLEASE include the generated files 'cygcheck.txt' *as an attachment*,
and NOT in the body of the mail message."

If you don't believe me visit http://cygwin.com/ml/cygwin/ and type "as an
attachment" in the search box. I got 2862 hits.

This makes me believe you've been subscribed to the mailing list for quite
some time, but may not have actually read many messages. I can understand
this. It's an active list. So I thought I would help by pointing this out.

On the other hand, now I understand the WJM philosophy, because in this case
it worked...

> I now know the right way.

You may ask yourself why I bothered replying to this post. We'll you made
another minor mistake by adding my address to email distribution list. I
obviously read the mailing list and this simply resulted in me getting two
copies of the same messages. I hope pointing this out doesn't seem too mean.
Imagine if you would have done this to cfg!

> Anyway, I hope that my simple patch can help someone else in the future,
> and if the additional body of my message bothered anyone, I apologize.

I hope you helped someone too. I'm sure you did. Just ignore the mean people
on the list, but use their advice to avoid further meanness.

Pete


--
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: 1.5.1: can't open files beginning with "..."

2003-10-24 Thread Pavel Tsekov


On Fri, 24 Oct 2003, Rolf Campbell wrote:

> To make things even more interesting, it thinks that anything starting
> with '...' is a character device?
>
> /home/rcampbell> ll ..
> crw-rw-rw-1 rcampbel   0,   0 Oct 24 14:28 ..
>
> /home/rcampbell> touch ...
> touch: creating `...': No such device or address

This does not work on Windows. Basically paths in windows
cannot end in row of dots. The dots are silently ignored.

> Chris Moore wrote:
> > I have a file on my PC called "...foo.txt".

This does work, but Cygwin's path handling code understands
only ".." and "." . If it get three dots in a raw and they
appear before the last '/' char, Cygwin returns ENOENT.

I looked in the code 2 months ago so I may miss some of
the details - please, correct me if I am wrong.

I found this in august and changed the code (normalize_posix_path)
to allow path components starting with multiple dots but I havent
sent the pathc since i had some doubts on how to implement
this properly for UNC paths - the path handling code is
the same. If someone is interested to look at it and discuss
I will be happy to send it.

Pavel

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



Problem with a Cygwin App - Broken on a pristine system until I install Cygwin, cygwin1.dll doesn't seem to be enough

2003-10-24 Thread Benjamin Cutler
I have a program that I originally wrote on Linux, and compiled with cygwin
to make a Windows binary. The problem is that the Windows binary won't work
properly on a system that doesn't have cygwin installed on it. It seems to
not be using fread and fwrite correctly, or it's having some weird problem
with pointers that I can't figure out. The problem is that as SOON as I
install Cygwin onto a system, the executable works perfectly, even though I
don't change anything directly related to the program itself.

The program is using SDL, if that makes any difference, and cygwin1.dll is
the latest version in all my test cases. So far on every machine I've tried
it on this has been the case, where it won't work properly until I've
installed cygwin. What might cygwin be installing that suddenly lets the
program work right that I need to be distributing with my program besides cygwin1.dll?

=
---
Benjamin Cutler
http://surf.to/rproductions/

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.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/



1.3.22: gdbm-1.8.3 build error

2003-10-24 Thread Doru Carastan
Hello,

I have tried to rebuild gdbm-1.8.3 and got a make install error. 
Makefile installs some files with explicit ownership. Unfortunately the 
group and owner variables are not double quoted and the commands fail if 
the variables contain spaces.

gdbm-1.8.3/Makefile:138

install: libgdbm.la gdbm.h gdbm.info
   $(srcdir)/mkinstalldirs $(INSTALL_ROOT)$(libdir) \
   $(INSTALL_ROOT)$(includedir) $(INSTALL_ROOT)$(man3dir) \
   $(INSTALL_ROOT)$(infodir)
   $(LIBTOOL) --mode=install $(INSTALL) -c libgdbm.la \
   $(INSTALL_ROOT)$(libdir)/libgdbm.la
   $(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) gdbm.h \
   $(INSTALL_ROOT)$(includedir)/gdbm.h
   $(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) $(srcdir)/gdbm.3 \
   $(INSTALL_ROOT)$(man3dir)/gdbm.3
   $(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) $(srcdir)/gdbm.info \
   $(INSTALL_ROOT)$(infodir)/gdbm.info
And my group file has group names with spaces. I have recently used 
'mkgroup -dl > /etc/group' to re-create my /etc/group files and got the 
following:

SYSTEM:S-1-5-18:18:
None:S-1-5-21-720897496-2436313513-572454927-513:513:
Domain Admins:S-1-5-21-1286613485-1828479051-310601177-512:10512:
Domain Guests:S-1-5-21-1286613485-1828479051-310601177-514:10514:
Domain Users:S-1-5-21-1286613485-1828479051-310601177-513:10513:
Administrators:S-1-5-32-544:544:
Backup Operators:S-1-5-32-551:551:
Guests:S-1-5-32-546:546:
Network Configuration Operators:S-1-5-32-556:556:
Power Users:S-1-5-32-547:547:
Remote Desktop Users:S-1-5-32-555:555:
Replicator:S-1-5-32-552:552:
Users:S-1-5-32-545:545:
Debugger Users:S-1-5-21-720897496-2436313513-572454927-1005:1005:
HelpServicesGroup:S-1-5-21-720897496-2436313513-572454927-1001:1001:
VS Developers:S-1-5-21-720897496-2436313513-572454927-1006:1006:
I got around by removing the spaces present in the group names, but I 
would like to ask (Corinna?) what is the right way to fix this problem:

a. Sanitize /etc/groups by removing any spaces present in the group names.
b. Modify the Makefile and add the necessary double quoting.
Is there a special reason why mkgroup doesn't remove the spaces present 
in the Windows group names or substitute them let's say with _'s?

Thank you,

--
Doru Carastan Windows Host 
Contractor
(408)-992-4497  MontaVista Software


Cygwin Win95/NT Configuration Diagnostics
Current System Time: Fri Oct 24 16:04:56 2003

Windows XP Professional Ver 5.1 Build 2600 Service Pack 1

Path:   S:\cygwin\usr\local\bin
S:\cygwin\bin
S:\cygwin\bin
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
S:\cygwin\usr\X11R6\bin
S:\cygwin\opt\montavista\host\bin
s:\doru\bin

S:\cygwin\bin\id.exe output (nontsec)
UID: 11629(dcarastan)  GID: 10513(DomainUsers)
10513(DomainUsers) 544(root)
545(Users) 1005(DebuggerUsers)

S:\cygwin\bin\id.exe output (ntsec)
UID: 11629(dcarastan)  GID: 10513(DomainUsers)
10513(DomainUsers) 544(root)
545(Users) 1005(DebuggerUsers)

SysDir: C:\WINDOWS\System32
WinDir: C:\WINDOWS

CYGWIN = `codepage:oem'
HOME = `s:\doru'
MAKE_MODE = `unix'
PWD = `/cygdrive/s/doru/cygwin'
USER = `dcarastan'

Use `-r' to scan registry

a:  fd   N/AN/A
c:  hd  NTFS   39205Mb  17% CP CS UN PA FC IDE-BOOT
d:  hd  FAT   31Mb  69% CPUN   USB-DOS
e:  hd  FAT 1337Mb   1% CPUN   USB-BACKUP
h:  net NTFS   201584Mb  83% CP CSPAdcarastan
m:  net NTFS   34469Mb 100% CP CSPAdcarastan
s:  hd  NTFS   17500Mb  49% CP CS UN PA FC SCSI-HOME
y:  cd   N/AN/A
z:  cd  CDFS 581Mb 100%CS UN   031010_bkup

S:\cygwin  /  system  binmode
S:\cygwin\bin  /usr/bin   system  binmode
S:\cygwin\lib  /usr/lib   system  binmode
.  /cygdrive  system  binmode,cygdrive

Found: S:\cygwin\bin\awk.exe
Found: S:\cygwin\bin\bash.exe
Found: S:\cygwin\bin\cat.exe
Found: S:\cygwin\bin\cp.exe
Found: S:\cygwin\bin\cpp.exe
Found: S:\cygwin\bin\find.exe
Found: S:\cygwin\bin\gcc.exe
Found: S:\cygwin\bin\gdb.exe
Found: S:\cygwin\bin\grep.exe
Found: S:\cygwin\bin\ld.exe
Found: S:\cygwin\bin\ls.exe
Found: S:\cygwin\bin\make.exe
Found: S:\cygwin\bin\mv.exe
Found: S:\cygwin\bin\rm.exe
Found: S:\cygwin\bin\sed.exe
Found: S:\cygwin\bin\sh.exe
Found: S:\cygwin\bin\tar.exe

   58k 2002/05/07 S:\cygwin\bin\cygbz2-1.dll
   54k 2002/01/27 S:\cygwin\bin\cygbz21.0.dll
   13k 2003/06/18 S:\cygwin\bin\cygcharset-1.dll
  848k 2003/04/11 S:\cygwin\bin\cygcrypto-0.9.7.dll
  645k 2003/04/11 S:\cygwin\bin\cygcrypto.dll
  551k 2003/04/02 S:\cygwin\bin\cygcurl-2.dll
  380k 2002/07/24 S:\cygwin\bin\cygdb-3.1.dll
  326k 2002/06/26 S:\cygwin\bin\cygdb2.dll
  487k 2002/07/24 S:\cygwin\bin\cygdb_cxx-3.1.dll
  135k 2003/04/13 S:\cygwin\bin\cygexpat-0.dll
   61k 2003/06/10 S:\cygwin\bin\c

Re: Problem with a Cygwin App - Broken on a pristine system until I install Cygwin, cygwin1.dll doesn't seem to be enough

2003-10-24 Thread Igor Pechtchanski
On Fri, 24 Oct 2003, Benjamin Cutler wrote:

> I have a program that I originally wrote on Linux, and compiled with
> cygwin to make a Windows binary. The problem is that the Windows binary
> won't work properly on a system that doesn't have cygwin installed on
> it. It seems to not be using fread and fwrite correctly, or it's having
> some weird problem with pointers that I can't figure out. The problem is
> that as SOON as I install Cygwin onto a system, the executable works
> perfectly, even though I don't change anything directly related to the
> program itself.
>
> The program is using SDL, if that makes any difference, and cygwin1.dll
> is the latest version in all my test cases. So far on every machine I've
> tried it on this has been the case, where it won't work properly until
> I've installed cygwin. What might cygwin be installing that suddenly
> lets the program work right that I need to be distributing with my
> program besides cygwin1.dll?

"cygcheck yourprogram.exe" should tell you all the DLLs that your program
directly or indirectly depends on.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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: Problem with a cygwin App - Broken on a pristine system until I install cygwin, cygwin1.dll doesn't seem to be enough

2003-10-24 Thread Christopher Faylor
On Fri, Oct 24, 2003 at 04:07:25PM -0700, Benjamin Cutler wrote:
>I have a program that I originally wrote on Linux, and compiled with
>cygwin to make a Windows binary.  The problem is that the Windows
>binary won't work properly on a system that doesn't have cygwin
>installed on it.  It seems to not be using fread and fwrite correctly,
>or it's having some weird problem with pointers that I can't figure
>out.  The problem is that as SOON as I install Cygwin onto a system,
>the executable works perfectly, even though I don't change anything
>directly related to the program itself.
>
>The program is using SDL, if that makes any difference, and cygwin1.dll
>is the latest version in all my test cases.  So far on every machine
>I've tried it on this has been the case, where it won't work properly
>until I've installed cygwin.  What might cygwin be installing that
>suddenly lets the program work right that I need to be distributing
>with my program besides cygwin1.dll?

If you are distributing cygwin outside your organization, the other
thing you need to include is the source code for your application and
for the Cygwin DLL, as per the GPL.

Assuming that you know this, you are right in assuming that just
copying the cygwin DLL should be enough.  You could try just
copying the 'strace' program to the system in question and running
the program with that to see if you can gather a clue into what
is going on.

Otherwise the tried and true printf debugging technique is probably
your best bet.
--
Please use the resources at cygwin.com rather than sending personal email.
Special for spam email harvesters: send email to [EMAIL PROTECTED]
and be permanently blocked from mailing lists at sources.redhat.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: Problem with a cygwin App - Broken on a pristine system until I install cygwin, cygwin1.dll doesn't seem to be enough

2003-10-24 Thread Benjamin Cutler

--- Christopher Faylor <[EMAIL PROTECTED]> wrote:
> If you are distributing cygwin outside your organization, the other
> thing you need to include is the source code for your application and
> for the Cygwin DLL, as per the GPL.
> 

Aye, it's a GPLed app. I didn't want to provide a URL to the app's page
unless asked, but if you want I certainly can, if it helps narrow the problem
down.

> Assuming that you know this, you are right in assuming that just
> copying the cygwin DLL should be enough.  You could try just
> copying the 'strace' program to the system in question and running
> the program with that to see if you can gather a clue into what
> is going on.
> 

Hrm, next time I get a chance to sit down in the CS lab and hammer away at it
for a while (I currently only have a Linux box available to me without making
a trip across campus) I'll try strace. As the previous poster suggested, I
had already tried cygcheck, and all it spat back at me was SDL.dll,
cygwin1.dll, and a bunch of standard Windows DLLs. Perhaps there's a compiler
switch that I missed?

> Otherwise the tried and true printf debugging technique is probably
> your best bet.

Aye, I've already considered this, I just ran out of time to work on it today...

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.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: Binaries for bootstrap GNAT/GCC-Cygwin Build

2003-10-24 Thread David A. Cobb
Gerrit P. Haase wrote:

David schrieb:
 

Around 25 September, David, Gerrit, and Jason had a discussion on the 
list about making David's build of GNAT available.  David's server 
couldn't bear much traffic but there were some offers of other sites.
Are the binaries available on-line at this time?
   

I have a mirror where also Davids binaries are asvailable, though it is
realy outdated, I even couldn't use it to bootstrap a newer gcc on top
of Cygwin 1.5.5.  I'm just about finishing a GCC release for Cygwin
including GNAT.
Do you have a reasonable amount of time and Ada code to test run the Ada
compiler? 

Gerrit
 

I have an /unreasonable/ amount of time.  Ada code - I can write it, I 
can also go download the conformance tests (I think).

MfG,

--
David A. Cobb, Software Engineer, Public Access Advocate
"By God's Grace, I am a Christian man; by my actions a great sinner." -- The Way of a 
Pilgrim: R.French, Tr.
Life is too short to tolerate crappy software!




--
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: Wildcard problem with recursion

2003-10-24 Thread Ajith Kumar
I run these from the win2k cmd.exe and not from the bash prompt. Can u be
more specific please to which doc or man pages I shold refer to?
Thank You
Regards,
ajith

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
Of Corinna Vinschen
Sent: Thursday, October 23, 2003 3:44 PM
To: [EMAIL PROTECTED]
Subject: Re: Wildcard problem with recursion


On Thu, Oct 23, 2003 at 03:05:53PM +0530, Ajith Kumar wrote:
> Cygwin utilities like grep or ls with -R options doesn't seem to be
working.
> egs when I say
> >grep -r FLD_DCT_STRING  *.h??
> I get
> grep: *.hpp: No such file or directory
>
> However there are many .h, .hxx and .hpp files in the subdirectories
>
> ls also gives the same err.
>
> Any solutons?

Yes, read the shell man pages to learn how file completion works.
What you want is a job for `find | xargs grep'.

Corinna

--
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
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: Wildcard problem with recursion

2003-10-24 Thread Ajith Kumar


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
Of Andy Rushton
Sent: Friday, October 24, 2003 2:32 PM
To: [EMAIL PROTECTED]
Subject: Re: Wildcard problem with recursion


Corinna Vinschen wrote:

>On Thu, Oct 23, 2003 at 03:05:53PM +0530, Ajith Kumar wrote:
>
>
>>Cygwin utilities like grep or ls with -R options doesn't seem to be
working.
>>egs when I say
>>
>>
>>>grep -r FLD_DCT_STRING  *.h??
>>>
>>>
>>I get
>>grep: *.hpp: No such file or directory
>>
>>However there are many .h, .hxx and .hpp files in the subdirectories
>>
>>ls also gives the same err.
>>
>>Any solutons?
>>
>>
>
>Yes, read the shell man pages to learn how file completion works.
>What you want is a job for `find | xargs grep'.
>
>
Thanks for the xargs tip Corinna - thats a new one on me.

an alternative (talking to original poster here) is:

grep FLD_DCT_STRING `find . -name '*.h??'` -- 1

Or you can search *directories* recursively with grep, but this doesn't
allow you to filter the file type. e.g.:

grep -r FLD_DCT_STRING .   --- 2

where '.' is the current directory - this will search all files in
subdirectories too. See 'info grep'.

Andy
--
Andy Rushton, Research Fellow, School of ECS, Southampton University
address: rm 3053, Mountbatten Building (53)
phone: 023 8059 6665
http://www.ecs.soton.ac.uk/~ajr1




The command 2 works fine. However 1 fails revereting to my original problem.
If I execute the find command alone I get

D:\views\aj_pvt\Tally63>find . -name '*.h??'
File not found - '*.h??'

or

D:\views\aj_pvt\Tally63>find . -name *.h??
File not found - *.h??

I did n't reply my previous cygwin installation. As u see I  use the Win2k
cmd prompt

Regards,
ajith




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