Re: Packaging lapack, blas, etc

2005-01-19 Thread Reini Urban
James R. Phillips schrieb:
I am looking at packaging numerical libraries such as lapack and blas for use
by a cygwin version of gnu octave.  I would like some guidance on a couple
issues:
I would a bit with a release until the gcc-3.4 dwarf2 EH problems 
(performance degradation with new libstdc++ exceptions) are settled. 
Shouldn't be that far anymore.
See the octave or gcc list on known octave issues.
  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14563
  http://sources.redhat.com/ml/cygwin/2004-11/msg7.html

1) I anticipate developing the libraries in a dll format, and there may be
multiple versions, optimized for different processor architecture.  What is the
best way to support (ie select from) multiple installed library versions at run
time?  Simply make certain the correct version is copied to /usr/bin, or add
the path to the correct version to the $PATH environmental string?  Or
something else?
To /usr/bin if you depend on them on startup.
However as it looks like, if you demand-load (dlopen) them later after 
doing some cpu detection, you can put them anywhere, preferably into 
/usr/lib/package or /usr/libexec/package
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/


Re: bsdgames

2005-01-19 Thread Warren Young
Yitzchak Scott-Thoennes wrote:
How big is a complete bsdgames binary package for Cygwin?
the tarball is about 750k.
That doesn't seem excessive for a single package.


Re: xterm error

2005-01-19 Thread Alexander Gottwald
On Wed, 19 Jan 2005, Guy Przytula wrote:

 I upgraded my cygwin and xterm.  now when starting xterm I get the 
 message cygx11-6.dll could not be found, although this file is present 
 in file structure of cygwin.  Any setting that has to be changed.  Any 
 changes between release ?

xterm moved to /usr/bin/xterm a while ago. To make it find it's dlls again
/usr/X11R6/bin must be in PATH. Normally this is done in 
/etc/profile.d/00xorg-x11-base.sh
which is read when bash is started.

Do you start xterm from the bash shell or directly from windows?

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


re cygwin/X for connecting to X sessions of Redhat 8

2005-01-19 Thread Raman
Hi
I recently downloaded and installed cygwin/X Setup.exe - X11 related 
files. When i run cygwin.bat i get a bash shell prompt. I followed the 
instructions given in the manual to run X. My installation doesnot 
contain a XWin.exe file, but I do have a Xwinwm.exe in the bin folder. 
When i run this file on my XP desktop, I get the following error message 
This application has failed to start because cygX11-6.dll was not 
found. Re-installing the application. In fact I reinstalled it 
again but the error still appears. This file is not in the Cygwin directory.

Is there anything I am doing wrong?
Raman


Re: re cygwin/X for connecting to X sessions of Redhat 8

2005-01-19 Thread Alexander Gottwald
On Wed, 19 Jan 2005, Raman wrote:

 Hi
 
 I recently downloaded and installed cygwin/X Setup.exe - X11 related 
 files. When i run cygwin.bat i get a bash shell prompt. I followed the 
 instructions given in the manual to run X. My installation doesnot 
 contain a XWin.exe file, but I do have a Xwinwm.exe in the bin folder. 
 When i run this file on my XP desktop, I get the following error message 
 This application has failed to start because cygX11-6.dll was not 
 found. Re-installing the application. In fact I reinstalled it 
 again but the error still appears. This file is not in the Cygwin directory.

make sure you have installed the xorg-x11-base and X-startup-files packages.
All other required packages will be installed too with the dependency system

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


Cygwin Xfree not functional on laptop with wireless

2005-01-19 Thread Browning, Jeff
All:

I have installed Cygwin Xfree on my T40 laptop and yesterday when in the
office over a normal wired ethernet connection, it was working fine.

Today, I am working from home over a wireless connection, and Cygwin has
become completely non-functional. The bash shell shows nothing,
basically it's just dead. Running the startxwin.bat file from a normal
DOS window shows the usual start message. The X icon appears, but will
display nothing. Eventually, the X icon vanishes, apparently a silent
crash.

Any clue what is going on here?

Regards,
Jeff

 


re Cygwin/X

2005-01-19 Thread Raman
Hi
I had written to you a couple of minutes back. I think I was able to 
locate the cygx11-6.dll file. The problem was that the path has to be 
defined in the  cygwin.bat for the XP system to locate the files while 
executing.

I defined the following path SET 
PATH=%PATH%;C:\cygwin\usr\X11R6\bin;c:\cygwin\bin in the batch and it 
worked.

Sorry for the trouble!
Raman


Re: re Cygwin/X

2005-01-19 Thread billh
Thank you for asking the obvious.  I was considering installing cygwin
elsewhere on my system.  By coincidence this was exactly what I needed.

- Original Message -
From: Raman [EMAIL PROTECTED]
To: cygwin-xfree@cygwin.com
Sent: Wednesday, January 19, 2005 6:59 AM
Subject: re Cygwin/X


 Hi

 I had written to you a couple of minutes back. I think I was able to
 locate the cygx11-6.dll file. The problem was that the path has to be
 defined in the  cygwin.bat for the XP system to locate the files while
 executing.

 I defined the following path SET
 PATH=%PATH%;C:\cygwin\usr\X11R6\bin;c:\cygwin\bin in the batch and it
 worked.

 Sorry for the trouble!

 Raman




Re: Cygwin Xfree not functional on laptop with wireless

2005-01-19 Thread Igor Pechtchanski
On Wed, 19 Jan 2005, Browning, Jeff wrote:

 All:

 I have installed Cygwin Xfree on my T40 laptop and yesterday when in the
 office over a normal wired ethernet connection, it was working fine.

 Today, I am working from home over a wireless connection, and Cygwin has
 become completely non-functional. The bash shell shows nothing,
 basically it's just dead. Running the startxwin.bat file from a normal
 DOS window shows the usual start message. The X icon appears, but will
 display nothing. Eventually, the X icon vanishes, apparently a silent
 crash.

 Any clue what is going on here?

The bash thing sounds like a general Cygwin problem, so you should take it
to the main Cygwin list (redirecting and setting Reply-To:).  Do you
happen to run a VPN in addition to your wireless connection?
Also, please review http://cygwin.com/problems.html to see how you can
provide the relevant information about your system.
HTH,
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!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT


sh.exe hangs, but I can kind of get things working if I don't disable McAffee

2005-01-19 Thread Linda Yee
If I don't disable Privacy Service:
If I run /usr/X11R6/bin/startxwin.sh (from bash without calling sh), the
script gets to
===
...
XFree86-Bigfont extension local-client optimization disabled due to lack of 
shar
ed memory support in the kernel
(--) Setting autorepeat to delay=500, rate=31
(--) winConfigKeyboard - Layout: 0409 (0409)
(--) Using preset keyboard for English (USA) (409), type 4
Rules = xorg Model = pc105 Layout = us Variant = (null) Options = 
(null
)
===

If I press Enter at this point, I get a command prompt.
ps indicates that I have bash, xterm, XWin, and sh (child of XWin) running.
I don't see an xterm.
I try to run xdvi.  It shows up in the process list, but I don't see an
xdvi window.
In order to get xdvi running, I first have to type in
export DISPLAY=127.0.0.1:0.0
If I open another cygwin prompt and kill -9 /usr/bin/sh from it, XWin spits 
out:

===
$ (EE) Couldn't load XKB keymap, falling back to pre-XKB keymap
(--) 3 mouse buttons found
Could not init font path element /usr/X11R6/lib/X11/fonts/TTF/, removing 
from li
st!
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing 
from
list!
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing 
from li
st!
Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing 
from
list!
winPointerWarpCursor - Discarding first warp: 700 525
winInitMultiWindowWM - pthread_mutex_lock () returned.
winMultiWindowXMsgProc - pthread_mutex_lock () returned.
winInitMultiWindowWM - pthread_mutex_unlock () returned.
winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0
winMultiWindowXMsgProc - pthread_mutex_unlock () returned.
winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0
winProcEstablishConnection - Hello
winInitClipboard ()
winProcEstablishConnection - winInitClipboard returned.
winClipboardProc - Hello
DetectUnicodeSupport - Windows NT/2000/XP
winClipboardProc - DISPLAY=127.0.0.1:0.0
winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the 
disp
lay.
winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened 
the di
splay.
winClipboardProc - XOpenDisplay () returned and successfully opened the 
display.

Xlib: sequence lost (0x13501  0x188) in reply type 0x82!
Xlib: unexpected async reply (sequence 0x3501)!
X connection to 127.0.0.1:0.0 broken (explicit kill or server shutdown).
===
At this point, xdvi pops up (but is non-functional).  A completely 
functional
xterm pops up.  If I set the DISPLAY properly on both cygwin windows, I can 
call
gv, xfig, xeyes, xpdf, xterm, xemacs, etc--they all work, although xdvi is 
still
unhappy and vanishes the moment the cursor is over it.
Etc, etc.  So, everything that I've tried except xdvi is fine, except when I 
try
to exit from cygwin.  I have to kill -9 XWin.

===
On the other hand, if I disable McAffee Privacy Service before starting
cygwin, on calling starwin.sh, I get
===
(--) Setting autorepeat to delay=500, rate=31
(--) winConfigKeyboard - Layout: 0409 (0409)
(--) Using preset keyboard for English (USA) (409), type 4
winMultiWindowXMsgProc - Hello
ayout = us Variant = (null) Options = (null)
winMultiWindowXMsgProc - Hello
winMultiWindowXMsgProc - Calling pthread_mutex_lock ()
===
killing /usr/bin/sh leads to
===
$ (EE) Couldn't load XKB keymap, falling back to pre-XKB keymap
(--) 3 mouse buttons found
Could not init font path element /usr/X11R6/lib/X11/fonts/TTF/, removing 
from li
st!
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing 
from
list!
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing 
from li
st!
Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing 
from
list!
winPointerWarpCursor - Discarding first warp: 700 525
winInitMultiWindowWM - pthread_mutex_lock () returned.
winInitMultiWindowWM - pthread_mutex_unlock () returned.
winMultiWindowXMsgProc - pthread_mutex_lock () returned.
winMultiWindowXMsgProc - pthread_mutex_unlock () returned.
winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0
winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0
winProcEstablishConnection - Hello
winInitClipboard ()
winProcEstablishConnection - winInitClipboard returned.
winClipboardProc - Hello
DetectUnicodeSupport - Windows NT/2000/XP
winClipboardProc - DISPLAY=127.0.0.1:0.0
XIO:  fatal IO error 22 (Invalid argument) on X server 127.0.0.1:0.0
 after 5 requests (4 known processed) with 0 events remaining.
XIO:  fatal IO error 22 (Invalid argument) on X server 127.0.0.1:0.0
 after 5 

Using rsync to sync to NTFS: permission issues

2005-01-19 Thread Wim Heemskerk Lists
Hi,
I (want to) use rsync under cygwin to sync files from a Linux box to a WinXP 
box. I want to maintain a full backup, including the file permissions.

First, this is how far I got:
- the XP box uses an NTFS partition to write the back-up on.
- rsync runs on the XP box (as it is by far the muscle of the two and can't 
have a listening port open) and uses the -e ssh option.
- cygwin ntea is on, ntsec is left on too.
- I am administrator on the WinXP box and attached those credentials to UID 
0 undercygwin. rsync is indeed able to set file credentials.
- I made all accounts needed on the XP box, as XP doesn't accept use of 
account / group numbers that aren't tied to an account

Now the problem:
- rsync locks itself out sometimes: when I sync a file my way with 
permissions like this: rwxrwx--- user1:user1 rsync will make it just fine. 
But: when it wishes to update that file next time, it has no access. 
Likewise it makes folders with such permissions and then can't access them 
to write the files into them.
- rsync handles this rather badly btw: it goes to 100% CPU use and stays 
there forever and ever, not getting any further
- this non-access is consistent with NTFS file permissions: even an 
administrator can't normally browse through folders to which he has no 
access, but: he should be able to make backups of them / place those back, 
which is what we are doing here.
- WinXP info tell me that to get this special access the application must 
use the NTFS back-ups API. Apperently cygwin+rsync does not.. how can I 
change that?

Thanks for any help you can provide! 

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


_beginthreadex

2005-01-19 Thread Kukuk Barbara
Hi,
I would like to know how I can use _beginthreadex in my program.
It is shown as an unresolved external. Do I have to link a special
library?

Thanks for your help.

Barbara


--
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 DLLs on Cygwin

2005-01-19 Thread Dave Korn
 -Original Message-
 From: cygwin-owner On Behalf Of Xuan Bai
 Sent: 19 January 2005 06:23

 Hello, my dear friend,
 
 I want to build some DLLs on Cygwin.  I got to know how to build DLLs
 from one single source codes file with gcc -shared -o ..
 
 However, the DLL I am planning to develop need to be built from
 several source code files.  Is there anywat I can build DLL by passing
 flags through configure?

  You can specify as many source code files on the command line as you like

gcc -shared -o my.dll file1.c file2.c file3.c ...etc...



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


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: _beginthreadex

2005-01-19 Thread Dave Korn
 -Original Message-
 From: cygwin-owner On Behalf Of Kukuk Barbara
 Sent: 19 January 2005 11:49

 Hi,
 I would like to know how I can use _beginthreadex in my program.
 It is shown as an unresolved external. Do I have to link a special
 library?
 
 Thanks for your help.
 
 Barbara


  You can't use MSVCRT functions, such as _beginthreadex, under cygwin, but you
can use the win32 equivalents such as CreateThread and so on.

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


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Using rsync to sync to NTFS: permission issues

2005-01-19 Thread Warren Young
Wim Heemskerk Lists wrote:
I (want to) use rsync under cygwin to sync files from a Linux box to a 
WinXP box. I want to maintain a full backup, including the file 
permissions.
Without something like NIS or LDAP to synchronize the user and group 
databases between the machines, I think you will have problems with that 
goal.

- rsync locks itself out sometimes: when I sync a file my way with 
permissions like this: rwxrwx--- user1:user1 rsync will make it just 
fine. But: when it wishes to update that file next time, it has no 
access. 
Are you running rsync as the SYSTEM user?
- rsync handles this rather badly btw: it goes to 100% CPU use and 
stays there forever and ever, not getting any further
I've seen this before, but only on a Win98 box, where it would freeze 
the machine, hard.  I have no more information on the problem beyond 
that, and won't be able to investigate it because that box has since 
been replaced by a WinXP box.

- WinXP info tell me that to get this special access the application 
must use the NTFS back-ups API. Apperently cygwin+rsync does not.. how 
can I change that?
Such an effort would be best done with a native port of rsync, I'd 
think.  Adding Win32-specific calls to Cygwin rsync would be missing the 
whole point of Cygwin, I think.

Bottom line, I think if I had a hard requirement to back up files with 
permissions from a Linux box to a Win32 box, I'd just tar them up and 
send the tar file to the PC.  If you don't compress the tar file, 
there's a nonzero chance that rsync can still save some I/O when 
synchronizing after the first copy.

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


business

2005-01-19 Thread dave
 Hi, Advertise your Products and Services with Email Movies made by You 
at  www.myvideotalk.net/16203   or become a Distributor at  
www.myvideotalk.com/16203   details at  www.videoincome.co.uk/business/ 
 Regards   Dave.

--
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: looking for shell program to retrieve property info from windows files

2005-01-19 Thread Jason Tishler
Jaye,

On Tue, Jan 18, 2005 at 07:15:09PM -0500, Jaye Speaks wrote:
 does anyone know of a shell program to retrieve the property info from
 windows files.  I need info like the fileversion or prodversion.

No, so I wrote my own:

$ version 'C:\Program Files\Microsoft Office\OFFICE11\WINPROJ.EXE'
Required Information:
ProductVersion = 11.0.2003.816
FileVersion = 11.0.2003.816
Optional Information:

$ cygversion /mnt/c/Program\ Files/Microsoft\ Office/OFFICE11/WINPROJ.EXE 
Required Information:
ProductVersion = 11.0.2003.816
FileVersion = 11.0.2003.816
Optional Information:

See attached for the source and Makefile.

Note the Makefile builds two executables:

version.exe:Mingw executable
cygversion.exe: Cygwin executable

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
/*
 * Copyright (c) 2005 Jason Tishler
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * A copy of the GNU General Public License can be found at
 * http://www.gnu.org/
 *
 * Written by Jason Tishler [EMAIL PROTECTED]
 *
 * $Id: version.cc,v 1.6 2005/01/19 14:49:52 jt Exp $
 */

#include windows.h
#include stdio.h
#ifdef __CYGWIN__
#include sys/cygwin.h
#endif

const char* GetVersionString(const void* aVersionInfo,
const char* aVersionName);
const VS_FIXEDFILEINFO* GetFixedFileInfo(const void* aVersionInfo);
void PrintRequiredVersionInfo(const VS_FIXEDFILEINFO* aFixedFileInfo);
void PrintOptionalVersionInfo(char* aVersionInfo);
bool GetFullPathName(const char* aFileName, char* aPathName,
unsigned int aSize);
void PrintUsage();

const char* aVersionNames[] =
{
Comments,
CompanyName,
FileDescription,
FileVersion,
InternalName,
LegalCopyright,
LegalTrademarks,
OriginalFilename,
PrivateBuild,
ProductName,
ProductVersion,
SpecialBuild
};

int
main(int argc, const char* argv[])
{
if (argc  2)
{
PrintUsage();
exit(1);
}

for (int i = 1; i  argc; i++)
{
char aPathName[MAX_PATH + 1];
const char* aFileName = argv[i];
GetFullPathName(aFileName, aPathName, sizeof(aPathName));

if (argc  2)
{
printf(%s%s:\n, (i != 1) ? \n : , aFileName);
}

DWORD aHandle = 0;
DWORD aSize = GetFileVersionInfoSize(aPathName, aHandle);
if (aSize == 0)
{
exit(2);
}

char* aVersionInfo = new char[aSize];
BOOL aStatus = GetFileVersionInfo(aPathName, aHandle, aSize, 
aVersionInfo);
if (!aStatus)
{
delete [] aVersionInfo;
exit(3);
}

const VS_FIXEDFILEINFO* aFixedFileInfo = 
GetFixedFileInfo(aVersionInfo);
PrintRequiredVersionInfo(aFixedFileInfo);

PrintOptionalVersionInfo(aVersionInfo);

delete [] aVersionInfo;
}

exit(0);
}

const char*
GetVersionString(const void* aVersionInfo, const char* aVersionName)
{
const char* aSeparator = \\;
const char* aPrefix = StringFileInfo;
const char* aLangCodePage = 040904b0;
char aVersionPath[MAX_PATH + 1];

strcpy(aVersionPath, aSeparator);
strcat(aVersionPath, aPrefix);
strcat(aVersionPath, aSeparator);
strcat(aVersionPath, aLangCodePage);
strcat(aVersionPath, aSeparator);
strcat(aVersionPath, aVersionName);

void* aBuffer = 0;
UINT aSize = 0;
VerQueryValue((void*) aVersionInfo, aVersionPath, aBuffer, aSize);
return (const char*) aBuffer;
}

const VS_FIXEDFILEINFO*
GetFixedFileInfo(const void* aVersionInfo)
{
void* aBuffer = 0;
UINT aSize = 0;
const char* aRootBlock = \\;
VerQueryValue((void*) aVersionInfo, (char*) aRootBlock, aBuffer, 
aSize);
return (const VS_FIXEDFILEINFO*) aBuffer;
}

void
PrintRequiredVersionInfo(const VS_FIXEDFILEINFO* aFixedFileInfo)
{
if (!aFixedFileInfo)
return;

printf(Required Information:\n);
printf(ProductVersion = %d.%d.%d.%d\n,
aFixedFileInfo-dwProductVersionMS  16,
aFixedFileInfo-dwProductVersionMS  0x,
aFixedFileInfo-dwProductVersionLS  16,
aFixedFileInfo-dwProductVersionLS  0x);
printf(FileVersion = %d.%d.%d.%d\n,
aFixedFileInfo-dwFileVersionMS  

Re: _beginthreadex

2005-01-19 Thread Corinna Vinschen
On Jan 19 12:45, Dave Korn wrote:
  -Original Message-
  From: cygwin-owner On Behalf Of Kukuk Barbara
  Sent: 19 January 2005 11:49
 
  Hi,
  I would like to know how I can use _beginthreadex in my program.
  It is shown as an unresolved external. Do I have to link a special
  library?
  
  Thanks for your help.
  
  Barbara
 
 
   You can't use MSVCRT functions, such as _beginthreadex, under cygwin, but 
 you
 can use the win32 equivalents such as CreateThread and so on.

Or even better, use posix threads.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
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/



Re: FileRunner under cygwin - simple compilation fails.

2005-01-19 Thread CV
Igor Pechtchanski pechtcha at cs.nyu.edu writes:
 On Wed, 19 Jan 2005, CV wrote:
  After running the command gcc -E ext.c -o ext.pre and then
  comparing ext.pre with tcl.h I think I can identify some of
  the included bits, eg. the following:
 
 You could also just look at the '# line' lines, e.g.,
 '# 159 /usr/include/tcl.h 3 4'

Yep, those lines are in there. Quite a number of them in fact.

 The most interesting thing is whether Tcl_CreateCommand is declared, and
 whether its signature corresponds to its usage in ext.c.

Here are the relevant bits.
I'm afraid I am not conversant enough with pointer and data type
mechanisms in c to make total sense of it. It appears to be fairly
advanced stuff ...

And I am seeing strange behaviour in the program, on one
particular point, though we best not go into details on that
yet as I am not sure it is anything to do with cygwin.

But it would be useful to eliminate the doubt about
these warnings first. If you can see any obvious mistake
below I'd appreciate it.

-- from tclDecls.h, included at pre-compile time 
/* 91 */
EXTERN Tcl_Command  Tcl_CreateCommand _ANSI_ARGS_((Tcl_Interp * interp, 
CONST char * cmdName, Tcl_CmdProc * proc, 
ClientData clientData, 
Tcl_CmdDeleteProc * deleteProc));
...
Tcl_Command (*tcl_CreateCommand) _ANSI_ARGS_((Tcl_Interp * interp,
   CONST char * cmdName, Tcl_CmdProc * proc, ClientData clientData,
   Tcl_CmdDeleteProc * deleteProc)); /* 91 */
-
-- usage in ext.c ---
... (declarations at the top of the file)
static int GetTimeFromSecs(ClientData clientData, Tcl_Interp* interp, 
   int argc, char* argv[]);
static int GetTimeFromSecsSetFormat(ClientData clientData, Tcl_Interp* interp, 
   int argc, char* argv[]);
static int GetStringFromMode(ClientData clientData, Tcl_Interp* interp, 
   int argc, char* argv[]);
static int GetUidGidString(ClientData clientData, Tcl_Interp* interp, 
   int argc, char* argv[]);

... (a little further down)
int
Ext_Init(interp)
Tcl_Interp *interp; /* Interpreter for application. */
{
Tcl_CreateCommand(interp, GetTimeFromSecs, GetTimeFromSecs, NULL, NULL);
Tcl_CreateCommand(interp, GetTimeFromSecsSetFormat,
  GetTimeFromSecsSetFormat, NULL, NULL);
Tcl_CreateCommand(interp, GetStringFromMode, GetStringFromMode,
   NULL, NULL);
Tcl_CreateCommand(interp, GetUidGidString, GetUidGidString, NULL, NULL);
...
--
 and, again, the warnings from the compilation ---

gcc -Wall -fPIC -O3 -I/usr/include -I/usr/include -I/usr/include/X11
   -c -o ext.o ext.c
cc1: warning: -fPIC ignored for target (all code is position independent)
ext.c: In function `Ext_Init':
ext.c:95: warning: passing arg 3 of `Tcl_CreateCommand' from
  incompatible pointer type
ext.c:96: warning: passing arg 3 of `Tcl_CreateCommand' from
  incompatible pointer type
ext.c:97: warning: passing arg 3 of `Tcl_CreateCommand' from
  incompatible pointer type
ext.c:98: warning: passing arg 3 of `Tcl_CreateCommand' from
  incompatible pointer type
...
--

  Don't know, but actually it only refuses to enter the
  C:/cygwin/cygdrive directory, where the windows disks
  are mounted. It is ok everywhere else.
 
 Ha.  /cygdrive is a virtual directory, intended to access Windows disks
 from inside Cygwin, not vice versa.  Why go to C:/cygwin/cygdrive/c/, when
 you can simply go to C:/?

I would have preferred to have a consistent view of the
directory tree from within cygwin, starting from / as
the root, but as I say it's a minor point.

Cheers CV



--
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: update on hyperthreading system for cgf

2005-01-19 Thread Nick Coghlan
Adrian Cox wrote:
On Thu, 2005-01-13 at 19:58 -0500, Christopher Faylor wrote:

This is still pretty far off from the goal but I would still appreciate
it if anyone could recommend a cheap system which demonstrates the
problem.  So far, I don't recall anyone giving specific details about a
name brand computer or a specific motherboard.  If I start getting names
I can start doing research on the best place to purchase a system.
My system is an ASUS P4P800S with an Intel P4 2.6 GHz. Single 512 MB stick of 
PC3200 RAM. OS is XP Pro.

And heck, contributing towards a machine for CGF is cheaper than getting a 
decent monitor to hook up to my Linux machine :)

Regards,
Nick.
--
Nick Coghlan   |   [EMAIL PROTECTED]   |   Brisbane, Australia
---
http://boredomandlaziness.skystorm.net
--
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: update on hyperthreading system for cgf

2005-01-19 Thread Christopher Faylor
On Thu, Jan 20, 2005 at 12:09:54AM +1000, Nick Coghlan wrote:
Adrian Cox wrote:
On Thu, 2005-01-13 at 19:58 -0500, Christopher Faylor wrote:


This is still pretty far off from the goal but I would still appreciate
it if anyone could recommend a cheap system which demonstrates the
problem.  So far, I don't recall anyone giving specific details about a
name brand computer or a specific motherboard.  If I start getting names
I can start doing research on the best place to purchase a system.

My system is an ASUS P4P800S with an Intel P4 2.6 GHz. Single 512 MB stick 
of PC3200 RAM. OS is XP Pro.

And heck, contributing towards a machine for CGF is cheaper than getting a 
decent monitor to hook up to my Linux machine :)

Thanks.  Unfortunately contributions seem to have stalled and I'm several
hundred dollars from what appears to be a basic system which demonstrates
the problem.

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/



pdksh not setting $? with exit status of commands

2005-01-19 Thread David Kramer
When I execute commands in the pdksh shell that should set an exit value, $? is
not being set.  When I use the bash shell, it is.  

In pdksh:
/c/windevel grep o regexps
oo
/c/windevel echo $?
0
/c/windevel grep Z regexps
/c/windevel echo $?
0

In bash:
/c/windevel grep o regexps
oo
/c/windevel echo $?
0
/c/windevel grep Z regexps
/c/windevel echo $?
1

Grep is just one command I'm using for demonstration.  This is true of all
commands I've tried so far.  Even when I write my own script and exit 1 from it,
$? is zero afterwards, which is really hurting my automation efforts.

Oh, and I have to use a ksh-like shell, because the same scripts need to run on
an AIX box with ksh and no bash.

Thanks.



--
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: pdksh not setting $? with exit status of commands

2005-01-19 Thread Dave Korn
 -Original Message-
 From: cygwin-owner On Behalf Of David Kramer
 Sent: 19 January 2005 15:20

 When I execute commands in the pdksh shell that should set an 
 exit value, $? is
 not being set.  When I use the bash shell, it is.  

  This one already came up very recently.  Search the list archives.

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


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: How do I get an old version of cygwin?

2005-01-19 Thread Adrian Cox
On Tue, 2005-01-18 at 09:51 -0500, Christopher Faylor wrote:
 On Tue, Jan 18, 2005 at 08:41:51AM +, Adrian Cox wrote:

 Have you considered building a custom version of the latest Cygwin, and
 putting it on their box in a different directory?  Trying to solve this
 sort of problem is unpopular on this list, but my initial research
 suggests that changing the values of CYGWIN_VERSION_DLL_IDENTIFIER and
 CYGWIN_INFO_CYGNUS_REGISTRY_NAME should do the job.
 
 You really shouldn't be giving out advice to people without
 understanding what the problems are.  You don't even know why this
 person needs to hve an older version of cygwin.  Immediately jumping to
 the conclusion that they just need to mess with things in the source and
 recompile is not good advice.

Because it is extremely common to distribute an application along with
the correct version of the support packages. If I distribute a Windows
application which uses perl, I want to distribute a tested working perl
interpreter in the same package. If I distribute a Windows application
using Cygwin, I want to distribute a tested working Cygwin DLL in the
same package. Disk space and bandwidth are so cheap they're almost free.
Testing takes time.

These people already have one tested and working application on an old
version of Cygwin. Now they want to run a second application validated
against a newer version of Cygwin. As far as I can see Cygwin has been
deliberately designed to make this difficult.

-- 
Adrian Cox [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/



Fixeland

2005-01-19 Thread Auto Response
Para entrares em contacto com o fixeland deverás usar o formulário de feedback 
disponível em www.fixeland.com/feedback.asp

--
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 do I get an old version of cygwin?

2005-01-19 Thread Christopher Faylor
On Wed, Jan 19, 2005 at 03:50:17PM +, Adrian Cox wrote:
On Tue, 2005-01-18 at 09:51 -0500, Christopher Faylor wrote:
 On Tue, Jan 18, 2005 at 08:41:51AM +, Adrian Cox wrote:

 Have you considered building a custom version of the latest Cygwin, and
 putting it on their box in a different directory?  Trying to solve this
 sort of problem is unpopular on this list, but my initial research
 suggests that changing the values of CYGWIN_VERSION_DLL_IDENTIFIER and
 CYGWIN_INFO_CYGNUS_REGISTRY_NAME should do the job.
 
 You really shouldn't be giving out advice to people without
 understanding what the problems are.  You don't even know why this
 person needs to hve an older version of cygwin.  Immediately jumping to
 the conclusion that they just need to mess with things in the source and
 recompile is not good advice.

Because it is extremely common to distribute an application along with
the correct version of the support packages.

AFAICT, The OP merely wanted to be able to produce a binary that they knew
would work on their customer's system.

AFAIK, all that is required to do that is to link against the older DLL
or an older import library.

I'm only drawing assumptions from the limited information in the
messages but this certainly once again illustrates the point about
people who think they need multiple versions of cygwin on the system.

If I distribute a Windows application which uses perl, I want to
distribute a tested working perl interpreter in the same package.  If I
distribute a Windows application using Cygwin, I want to distribute a
tested working Cygwin DLL in the same package.  Disk space and
bandwidth are so cheap they're almost free.  Testing takes time.

So, to extend this reasoning, if you want to release a linux application
which uses perl, you must either release the kernel along with your
application or you have to stop people from using your application on
linux kernels on which you haven't tested.

These people already have one tested and working application on an old
version of Cygwin.  Now they want to run a second application validated
against a newer version of Cygwin.  As far as I can see Cygwin has been
deliberately designed to make this difficult.

As far as I can tell, you are purposely avoiding educating yourself on
this subject so that you can continue to make broad statements like
this.

I guess it is getting close to the time to *plonk*.

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

2005-01-19 Thread Kaz Kylheku
On Wed, 19 Jan 2005, Kukuk Barbara wrote:

 Hi,
 I would like to know how I can use _beginthreadex in my program.
 It is shown as an unresolved external. Do I have to link a special
 library?

This function is not a Win32 API, but a function in Microsoft Visual
Studio's C library.

Unlike UNIX-like systems, Windows does not have the equivalent of a C
library for providing run-time support to C programs (malloc, printf,
etc). C programming environments targetting Windows have to provide
their own.

_beginthreadex is a wrapper for CreateThread which routes the thread
through a startup function within the C library, where it can
initialize some thread-local storage specific to that library and
whatnot.


--
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: FileRunner under cygwin - simple compilation fails.

2005-01-19 Thread Igor Pechtchanski
On Wed, 19 Jan 2005, CV wrote:

 Igor Pechtchanski pechtcha at cs.nyu.edu writes:
  On Wed, 19 Jan 2005, CV wrote:
   After running the command gcc -E ext.c -o ext.pre and then
   comparing ext.pre with tcl.h I think I can identify some of
   the included bits, eg. the following:
 
  You could also just look at the '# line' lines, e.g.,
  '# 159 /usr/include/tcl.h 3 4'

 Yep, those lines are in there. Quite a number of them in fact.

Ok, looks like it was included, so that's that.

  The most interesting thing is whether Tcl_CreateCommand is declared, and
  whether its signature corresponds to its usage in ext.c.

 Here are the relevant bits.
 I'm afraid I am not conversant enough with pointer and data type
 mechanisms in c to make total sense of it. It appears to be fairly
 advanced stuff ...

Arg #3 is a pointer to a function (Tcl_CmdProc).  See where that's
declared *in the preprocessed file* (so that all macros are expanded) and
see if your declarations of GetTimeFromSecs, etc, correspond to it.  The
most obvious mismatch is probably the const char* argv[] vs. your char*
argv[].

 [snip]
 But it would be useful to eliminate the doubt about
 these warnings first. If you can see any obvious mistake
 below I'd appreciate it.

 -- usage in ext.c ---
 ... (declarations at the top of the file)
 static int GetTimeFromSecs(ClientData clientData, Tcl_Interp* interp,
int argc, char* argv[]);
 [snip]
 ... (a little further down)
 int
 Ext_Init(interp)
 Tcl_Interp *interp;   /* Interpreter for application. */
 {
 Tcl_CreateCommand(interp, GetTimeFromSecs, GetTimeFromSecs, NULL, NULL);
 [snip]
 ...
 --
  and, again, the warnings from the compilation ---

 gcc -Wall -fPIC -O3 -I/usr/include -I/usr/include -I/usr/include/X11
-c -o ext.o ext.c
 cc1: warning: -fPIC ignored for target (all code is position independent)
 ext.c: In function `Ext_Init':
 ext.c:95: warning: passing arg 3 of `Tcl_CreateCommand' from
   incompatible pointer type
 [snip]
 ...
 --

   Don't know, but actually it only refuses to enter the
   C:/cygwin/cygdrive directory, where the windows disks
   are mounted. It is ok everywhere else.
 
  Ha.  /cygdrive is a virtual directory, intended to access Windows
  disks from inside Cygwin, not vice versa.  Why go to
  C:/cygwin/cygdrive/c/, when you can simply go to C:/?

 I would have preferred to have a consistent view of the
 directory tree from within cygwin, starting from / as
 the root, but as I say it's a minor point.

If you want to see /cygdrive as a real directory, create it (mkdir
/cygdrive should do it).  However, any *Cygwin* program will interpret
/ as c:/cygwin, and not as c:/, unless your mounts are screwed up
(which they don't seem to be).
HTH,
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!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: bash not functional on laptop with wireless

2005-01-19 Thread Igor Pechtchanski
On Wed, 19 Jan 2005, Igor Pechtchanski wrote:

 On Wed, 19 Jan 2005, Browning, Jeff wrote:

  All:
 
  I have installed Cygwin Xfree on my T40 laptop and yesterday when in the
  office over a normal wired ethernet connection, it was working fine.
 
  Today, I am working from home over a wireless connection, and Cygwin has
  become completely non-functional. The bash shell shows nothing,
  basically it's just dead. Running the startxwin.bat file from a normal
  DOS window shows the usual start message. The X icon appears, but will
  display nothing. Eventually, the X icon vanishes, apparently a silent
  crash.
 
  Any clue what is going on here?

 The bash thing sounds like a general Cygwin problem, so you should take it
 to the main Cygwin list (redirecting and setting Reply-To:).  Do you
 happen to run a VPN in addition to your wireless connection?
 Also, please review http://cygwin.com/problems.html to see how you can
 provide the relevant information about your system.

...and it bounced due to a keyword in the subject (presumably XFree).
So I changed the subject.
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!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



How does one become a mirror of the cygwin project?

2005-01-19 Thread mirrors
We were not able to find information on how to create the mirror and who 
to notify.

Thanks
--
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 does one become a mirror of the cygwin project?

2005-01-19 Thread Christopher Faylor
On Wed, Jan 19, 2005 at 12:20:29PM -0500, mirrors wrote:
We were not able to find information on how to create the mirror and who 
to notify.

http://cygwin.com/mirrors.html contains instructions.

--
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: FileRunner under cygwin - simple compilation fails.

2005-01-19 Thread Patrick Samson

--- Igor Pechtchanski wrote:
 Arg #3 is a pointer to a function (Tcl_CmdProc). 
 See where that's
 declared *in the preprocessed file* (so that all
 macros are expanded) and
 see if your declarations of GetTimeFromSecs, etc,
 correspond to it.  The
 most obvious mismatch is probably the const char*
 argv[] vs. your char*
 argv[].
 

From a working source of Postgresql:

static int pltcl_elog(ClientData cdata, Tcl_Interp
*interp,
   int argc, CONST84 char *argv[]);
 ^^^

I'm pretty confident that CONST84 is #defined as CONST
in tcl.h




__ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

--
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: FileRunner under cygwin - simple compilation fails.

2005-01-19 Thread Igor Pechtchanski
On Wed, 19 Jan 2005, Patrick Samson wrote:

 --- Igor Pechtchanski wrote:
  Arg #3 is a pointer to a function (Tcl_CmdProc). See where that's
  declared *in the preprocessed file* (so that all macros are expanded)
  and see if your declarations of GetTimeFromSecs, etc, correspond to
  it.  The most obvious mismatch is probably the const char* argv[]
  vs. your char* argv[].

 From a working source of Postgresql:

 static int pltcl_elog(ClientData cdata, Tcl_Interp *interp,
  int argc, CONST84 char *argv[]);
  ^^^

 I'm pretty confident that CONST84 is #defined as CONST in tcl.h

...which expands to const in the final sources:

$ echo '#include tcl.h' | gcc -E - | grep '^typedef int (Tcl_CmdProc)'
typedef int (Tcl_CmdProc) (ClientData clientData, Tcl_Interp *interp, int argc, 
const char *argv[]);

And your point was?..
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!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
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 do I get an old version of cygwin?

2005-01-19 Thread Yitzchak Scott-Thoennes
On Wed, Jan 19, 2005 at 03:50:17PM +, Adrian Cox wrote:
 On Tue, 2005-01-18 at 09:51 -0500, Christopher Faylor wrote:
  On Tue, Jan 18, 2005 at 08:41:51AM +, Adrian Cox wrote:
 
  Have you considered building a custom version of the latest Cygwin, and
  putting it on their box in a different directory?  Trying to solve this
  sort of problem is unpopular on this list, but my initial research
  suggests that changing the values of CYGWIN_VERSION_DLL_IDENTIFIER and
  CYGWIN_INFO_CYGNUS_REGISTRY_NAME should do the job.
  
  You really shouldn't be giving out advice to people without
  understanding what the problems are.  You don't even know why this
  person needs to hve an older version of cygwin.  Immediately jumping to
  the conclusion that they just need to mess with things in the source and
  recompile is not good advice.
 
 Because it is extremely common to distribute an application along with
 the correct version of the support packages. If I distribute a Windows
 application which uses perl, I want to distribute a tested working perl
 interpreter in the same package. If I distribute a Windows application
 using Cygwin, I want to distribute a tested working Cygwin DLL in the
 same package. Disk space and bandwidth are so cheap they're almost free.
 Testing takes time.
 
 These people already have one tested and working application on an old
 version of Cygwin. Now they want to run a second application validated
 against a newer version of Cygwin. As far as I can see Cygwin has been
 deliberately designed to make this difficult.

Gets kind of old to hear this debated over and over again when it's
clear that the developers are not interested in the work involved.

Time for a cygwin-multi-versions (moderated?) list?  cygwin-licensing
was very successful at reducing the licensing traffic (both here and
there).

--
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: FileRunner under cygwin - simple compilation - Success.

2005-01-19 Thread CV
Igor Pechtchanski pechtcha at cs.nyu.edu writes:
 
 Arg #3 is a pointer to a function (Tcl_CmdProc).  See where that's
 declared *in the preprocessed file* (so that all macros are expanded) and
 see if your declarations of GetTimeFromSecs, etc, correspond to it.  The
 most obvious mismatch is probably the const char* argv[] vs. your char*
 argv[].

OK, this is the definition of Tcl_CmdProc in the preprocessed file:
---
typedef int (Tcl_CmdProc) (ClientData clientData, Tcl_Interp *interp,
  int argc, const char *argv[]);

And here is GetTimeFromSecs also from the preprocessed file:
---
static int GetTimeFromSecs(ClientData clientData, Tcl_Interp* interp,
   int argc, char* argv[]);

... so I changed char* argv[] to to const char *argv[] at
the affected spots in the source code in ext.c.

It now compiles and links without warnings and the application
(FileRunner) works with the resulting .dll. I can't be certain
yet if it also fixed the problem I was having, since it was
intermittent.

I can see how this change makes the data types agree and gets
rid of the warnings.

But I am quite baffled as to why this should be declared as a
constant !? That argument  seems to be a pointer to an array
of input arguments to a function. Surely such a pointer would
have to change dynamically during execution and no way could
it be constant !?

Oh well. These comments sort of give away my level of
(in)experience I suppose... :o)

Another thing is that, seeing what it was all about, I can't
imagine that the warnings actually mattered, or made the
resulting .dll work differently in any way (?)

Can't be sure if I'm through with this yet but your advice saw
me through a couple of initial hurdles in style here.

Big THANKS, again, for your excellent help !

Cheers CV



--
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: FileRunner under cygwin - simple compilation fails.

2005-01-19 Thread Patrick Samson

--- Igor Pechtchanski wrote:

 On Wed, 19 Jan 2005, Patrick Samson wrote:
 
 
  From a working source of Postgresql:
 
  static int pltcl_elog(ClientData cdata, Tcl_Interp
 *interp,
 int argc, CONST84 char *argv[]);
   ^^^
 
  I'm pretty confident that CONST84 is #defined as
 CONST in tcl.h
 
 ...which expands to const in the final sources:
 
 $ echo '#include tcl.h' | gcc -E - | grep
 '^typedef int (Tcl_CmdProc)'
 typedef int (Tcl_CmdProc) (ClientData clientData,
 Tcl_Interp *interp, int argc, const char *argv[]);
 
 And your point was?..
   Igor

You're right.
I just wanted to inform that the CONST84 may be
a better syntax (according to the postgresql sample,
but it may be only a particular case, I don't know
other examples).
I should have be more precise with:
by default CONST84 expands to CONST, but with
possible additional define's, it may expand to
nothing.




__ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Cannot interact with X programs

2005-01-19 Thread Avuton Olrich
Compiled  installed:
 * WMmp (  https://svn.musicpd.org/WMmp/ )
 * glurp ( https://svn.musicpd.org/glurp/ )
 * gmpc ( https://svn.musicpd.org/gmpc/ )

Environment: Windows XP

Uname -a: CYGWIN_NT-5.1 computer 1.5.12(0.116/4/2) 2004-11-10 08:34
i686 unknown unknown Cygwin

Results  Problem:  All install and execute fine, but when trying to
interact with them nothing happens.  Common warnings are between glurp
and gmpc where I get alot of the following:

(stuff here) libglade-WARNING **: could not find signal handler (stuff here)

There is no stdout/stderr coming from WMmp.

Have tried strace running WMmp and there was nothing of interest.
Tried running strace with gmpc and got 13M strace, tried grepping out
errors and warnings and found nothing interesting.

Any help would be appreciated,
avuton
-- 
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: bash not functional on laptop with wireless (VPN) connection

2005-01-19 Thread Browning, Jeff
All:

Yes, I am running the Cisco VPN client in addition to a wireless network
connection. So I just tested it with the wireless on, but the VPN off.
It works fine. Therefore, the problem is the VPN connection not the
wireless connection.

My Cisco VPN client is version 4.0.2. My Cygwin was downloaded
yesterday, so it should be fairly up-to-date. My bash shell reports
2.05b.

My question, then, is how to use Cygwin, including the X server, in
conjunction with my VPN connection.

Regards,
Jeff

-Original Message-
From: Igor Pechtchanski [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 19, 2005 11:47 AM
To: Browning, Jeff
Cc: cygwin@cygwin.com
Subject: Re: bash not functional on laptop with wireless

On Wed, 19 Jan 2005, Igor Pechtchanski wrote:

 On Wed, 19 Jan 2005, Browning, Jeff wrote:

  All:
 
  I have installed Cygwin Xfree on my T40 laptop and yesterday when in

  the office over a normal wired ethernet connection, it was working
fine.
 
  Today, I am working from home over a wireless connection, and Cygwin

  has become completely non-functional. The bash shell shows nothing, 
  basically it's just dead. Running the startxwin.bat file from a 
  normal DOS window shows the usual start message. The X icon appears,

  but will display nothing. Eventually, the X icon vanishes, 
  apparently a silent crash.
 
  Any clue what is going on here?

 The bash thing sounds like a general Cygwin problem, so you should 
 take it to the main Cygwin list (redirecting and setting Reply-To:).  
 Do you happen to run a VPN in addition to your wireless connection?
 Also, please review http://cygwin.com/problems.html to see how you 
 can provide the relevant information about your system.

...and it bounced due to a keyword in the subject (presumably XFree).
So I changed the subject.
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!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: bash not functional on laptop with wireless (VPN) Connection

2005-01-19 Thread Browning, Jeff
All:

Per the instructions on the web page referred to by Igor, below, my
cygcheck.out file is attached.

Regards,
Jeff 

-Original Message-
From: Igor Pechtchanski [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 19, 2005 11:47 AM
To: Browning, Jeff
Cc: cygwin@cygwin.com
Subject: Re: bash not functional on laptop with wireless

On Wed, 19 Jan 2005, Igor Pechtchanski wrote:

 On Wed, 19 Jan 2005, Browning, Jeff wrote:

  All:
 
  I have installed Cygwin Xfree on my T40 laptop and yesterday when in

  the office over a normal wired ethernet connection, it was working
fine.
 
  Today, I am working from home over a wireless connection, and Cygwin

  has become completely non-functional. The bash shell shows nothing, 
  basically it's just dead. Running the startxwin.bat file from a 
  normal DOS window shows the usual start message. The X icon appears,

  but will display nothing. Eventually, the X icon vanishes, 
  apparently a silent crash.
 
  Any clue what is going on here?

 The bash thing sounds like a general Cygwin problem, so you should 
 take it to the main Cygwin list (redirecting and setting Reply-To:).  
 Do you happen to run a VPN in addition to your wireless connection?
 Also, please review http://cygwin.com/problems.html to see how you 
 can provide the relevant information about your system.

...and it bounced due to a keyword in the subject (presumably XFree).
So I changed the subject.
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!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT


cygcheck.out
Description: cygcheck.out
--
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: looking for shell program to retrieve property info from windows files

2005-01-19 Thread DePriest, Jason R.
I did something similar in perl.

#!/usr/bin/perl

# Version 1.0
# - It does what it does.

use Digest::MD5 qw(md5_hex);
use Win32::File;
use Win32::File::VersionInfo;
use Win32::FileTime;

$fname = $ARGV[0];

print \nFile: $fname;

if (! -e $fname) {
print \n\nI cannot find your file.;
print \nError!;
print \nperl: $!\nos: $^E\n;
die;
}

Win32::File::GetAttributes($fname,$fattr);
#print \nWin32::File::GetAttrubutes(\$fname\,\$fattr) - $fattr;
$finfo = Win32::File::VersionInfo::GetFileVersionInfo($fname);
#print \n\$finfo =
Win32::File::VersionInfo::GetFileVersionInfo(\$fname\) - $finfo;
$ftime = Win32::FileTime-new($fname);
#print \n\$ftime = Win32::FileTime-new(\$fname\) - $ftime;

if ($finfo) {
print \nFile Version: , $finfo-{FileVersion};
print \nProduct Version: , $finfo-{ProductVersion};
%Flags = $finfo-{Flags};
foreach $key (keys %Flags) {
if ($Flags{$key}) {
print \nFlags: , $key;
} # end of if the value exists
} # end of foreach flag
print \nOS: , $finfo-{OS};
print \nType: , $finfo-{Type};
print \nDate: , $finfo-{Date};
my $lang = (keys %{$finfo-{Lang}})[0];
if ($lang) {
print \nLanguage: , $lang;
print \nComments: , $finfo-{Lang}{$lang}{Comments};
print \nCompanyName: , $finfo-{Lang}{$lang}{CompanyName};
print \nFileDescription: , 
$finfo-{Lang}{$lang}{FileDescription};
print \nFileVersion: , $finfo-{Lang}{$lang}{FileVersion};
print \nInternalName: , $finfo-{Lang}{$lang}{InternalName};
print \nCopyright: , $finfo-{Lang}{$lang}{Copyright};
print \nTrademarks: , $finfo-{Lang}{$lang}{Trademarks};
print \nOriginalFilename: , 
$finfo-{Lang}{$lang}{OriginalFilename};
print \nProductName: , $finfo-{Lang}{$lang}{ProductName};
print \nProductVersion: , 
$finfo-{Lang}{$lang}{ProductVersion};
print \nPrivateBuild: , $finfo-{Lang}{$lang}{PrivateBuild};
print \nSpecialBuild: , $finfo-{Lang}{$lang}{SpecialBuild};
}
} # end of if
else {
print \n\nI cannot get the file flags.;
print \nError!;
print \nAre you sure this is a valid Microsoft Portable Executable
(PE) file with valid version information?\n;
}

if ($fattr) {
$#attr = -1;
if ($fattr  ARCHIVE) { push(@attr,archive); }
if ($fattr  COMPRESSED) { push(@attr,compressed); }
if ($fattr  DIRECTORY) { push(@attr,directory); }
if ($fattr  HIDDEN) { push(@attr,hidden); }
if ($fattr  NORMAL) { push(@attr,normal); }
if ($fattr  OFFLINE) { push(@attr,offline); }
if ($fattr  READONLY) { push(@attr,readonly); }
if ($fattr  SYSTEM) { push(@attr,system); }
if ($fattr  TEMPORARY) { push(@attr,temporary); }
print \nFile Attributes: , join(, ,@attr);
}
else {
print \n\nI cannot get the file attributes.;
print \nError!;
print \nperl: $!\nos: $^E\n;
}

if ($ftime) {
printf(
\nCreated : %4d/%02d/%02d %02d:%02d:%02d,
$ftime-Create(
'year', 
'month', 
'day', 
'hour', 
'minute', 
'second' 
)
);
printf(
\nAccessed : %4d/%02d/%02d %02d:%02d:%02d,
$ftime-Access(
'year', 
'month', 
'day', 
'hour', 
'minute', 
'second' 
)
);
printf(
\nModified : %4d/%02d/%02d %02d:%02d:%02d,
$ftime-Modify(
'year', 
'month', 
'day', 
'hour', 
'minute', 
'second' 
)
);
} # end of if
else {
print \n\nI cannot get the file times.;
print \nError!;
print \nperl: $!\nos: $^E\n;
}

print \nMD5 Checksum: , md5_hex($fname);

print \n;

On Wed, 19 Jan 2005 08:03:00 -0500, Jason Tishler  [REMOVED]  wrote:
 Jaye,
 
 On Tue, Jan 18, 2005 at 07:15:09PM -0500, Jaye Speaks wrote:
  does anyone know of a shell program to retrieve the property info from
  windows files.  I need info like the fileversion or prodversion.
 
 No, so I wrote my own:
 
$ version 'C:\Program Files\Microsoft Office\OFFICE11\WINPROJ.EXE'
Required Information:
ProductVersion = 11.0.2003.816
FileVersion = 11.0.2003.816
Optional Information:
 
$ cygversion /mnt/c/Program\ Files/Microsoft\ Office/OFFICE11/WINPROJ.EXE
Required Information:

Re: pdksh not setting $? with exit status of commands

2005-01-19 Thread David Kramer
Dave Korn dave.korn at artimi.com writes:

 
  -Original Message-
  From: cygwin-owner On Behalf Of David Kramer
  Sent: 19 January 2005 15:20
 
  When I execute commands in the pdksh shell that should set an 
  exit value, $? is
  not being set.  When I use the bash shell, it is.  
 
   This one already came up very recently.  Search the list archives.
 
 cheers, 
   DaveK

I *did* STFW first.  The closest thread I could find is negative error status:
gcc vs. cl, which invloves both negative exit values and Windows commands,
neither of which are relevant to my problem.  I'm trying to use Cygwin binaries
inside Cygwin's pdksh shell, and expecting 0 or 1.

If you can recall anything else about the thread you mentioned, I would
appreciate it.  For what it's worth, the search page will not let me search on
$?.  I tried searching for ksh exit

Thanks for your help.



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



a standard place to get cygwin

2005-01-19 Thread Green, Keith

Once again I'm required to use cygwin.
Once again I'm having trouble.

I notice that when I download from different places, I get different
things included.  In particular, I just downloaded /installed from anl.gov and
told it to install all.  First time I open a cygwin window I notice a problem 
...
it gives me two lines of telling me it can't find grep ... (this happens while
it's going through the stuff in profile.d).  I check /usr/bin and sure enough
there is no grep in there.  I do a find in the entire cygwin directory ... it's
nowhere to be found.  I try copying grep from a far previous version of cygwin
... doesn't work (some kind of missing DLL error).

This has happened previously on other installs and is among the primary
reasons I never use cygwin unless I'm forced into it.  I think if I could just
find 'the right site' that had everything in it ... one I could depend on to 
always
include the sensible stuff at least (grep, gawk, Image Magick, the standard 
stuff) ..
that this would be a much less irritating experience.  Does such a site exist?
Where is THE place from which to download cygwin?

k




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: bash not functional on laptop with wireless (VPN) connection

2005-01-19 Thread Igor Pechtchanski
Ugh, top posting...  Reformatted.

On Wed, 19 Jan 2005, Browning, Jeff wrote:

  -Original Message-
  From: Igor Pechtchanski [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, January 19, 2005 11:47 AM
  To: Browning, Jeff
  Cc: [EMAIL PROTECTED]

http://cygwin.com/acronyms/PCYMTNQREAIYR.  Google on the acronym for
possible fixes.  Thanks.

  Subject: Re: bash not functional on laptop with wireless
 
  On Wed, 19 Jan 2005, Browning, Jeff wrote:
 
   All:
  
   I have installed Cygwin Xfree on my T40 laptop and yesterday when
   in the office over a normal wired ethernet connection, it was
   working fine.
  
   Today, I am working from home over a wireless connection, and
   Cygwin has become completely non-functional. The bash shell shows
   nothing, basically it's just dead.
   [snip]
   Any clue what is going on here?
 
  The bash thing sounds like a general Cygwin problem, so you should
  take it to the main Cygwin list (redirecting and setting Reply-To:).
  Do you happen to run a VPN in addition to your wireless connection?
  Also, please review http://cygwin.com/problems.html to see how you
  can provide the relevant information about your system.

 All:

 Per the instructions on the web page referred to by Igor, below, my
 cygcheck.out file is attached.

 Yes, I am running the Cisco VPN client in addition to a wireless network
 connection. So I just tested it with the wireless on, but the VPN off.
 It works fine. Therefore, the problem is the VPN connection not the
 wireless connection.

Your cygcheck output shows that your home directory is on a network share.
Can you access that share with VPN connection on?  What directory does
bash normally start up in?  Can you run bash -i from a command prompt
(i.e., omit the --login flag, so that it doesn't try to access your home
directory)?  If not, does bash --norc -i work?  Do any other Cygwin
programs (e.g., ls) work?

 My Cisco VPN client is version 4.0.2.  My Cygwin was downloaded
 yesterday, so it should be fairly up-to-date.  My bash shell reports
 2.05b.

The Cygwin information, BTW, is all contained in the cygcheck output[*].
The fact that simply turning off the VPN (as opposed to uninstalling it)
makes things work suggests that it's not messing with things like TCP/IP
stack, etc.  Could it be simply that the VPN client sets some environment
variables that interfere with Cygwin?

 My question, then, is how to use Cygwin, including the X server, in
 conjunction with my VPN connection.

You'll have to debug this, as I have no problem running Cygwin on my home
Win98 machine (yes, pathetic, isn't it) even when connected using Cisco
VPN used by my father (I don't recall the version at the moment).

If you can get one of the commands suggested above to work, it may be
simply that bash tries to access your home directory and fails.  If that
is the case, check whether you can access your home share using Windows
mechanisms -- perhaps there's a Windows/network configuration error
somewhere.

If you get repeatable hangs with all Cygwin programs (i.e., the VPN
affects the working of the main Cygwin DLL), you'll need to use something
like strace to see where it hangs (and analyze the output yourself --
please don't send unsolicited strace output to the list).  The man page
for strace should contain enough info to get you started.

HTH,
Igor
[*] As I keep telling people, your Cygwin installation is only as
up-to-date as the mirror you're using.  You did use a mirror that's
updated regularly, so in your case this doesn't apply, but I thought I'd
throw this in for good measure...
-- 
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!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
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: pdksh not setting $? with exit status of commands

2005-01-19 Thread Igor Pechtchanski
On Wed, 19 Jan 2005, David Kramer wrote:

 When I execute commands in the pdksh shell that should set an exit
 value, $? is not being set.  When I use the bash shell, it is.

Please review and follow http://cygwin.com/problems.html to provide
enough information about your installation.

 In pdksh:
 /c/windevel grep o regexps
 oo
 /c/windevel echo $?
 0
 /c/windevel grep Z regexps
 /c/windevel echo $?
 0

 [snip bash session]

 Grep is just one command I'm using for demonstration.  This is true of
 all commands I've tried so far.  Even when I write my own script and
 exit 1 from it, $? is zero afterwards, which is really hurting my
 automation efforts.

Can't reproduce this here, sorry:

$ pdksh
$ cygcheck -f /bin/pdksh
pdksh-5.2.14-3
$ grep o regexps ; echo $?
oo
0
$ grep Z regexps ; echo $?
1

 Oh, and I have to use a ksh-like shell, because the same scripts need to
 run on an AIX box with ksh and no bash.

Well, this seems to be a problem with your Cygwin installation, but that
aside, using bourne-shell syntax should work for both bash and ksh.

Igor Pechtchanski, Cygwin volunteer PDksh maintainer
-- 
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!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
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: looking for shell program to retrieve property info from windows files

2005-01-19 Thread Igor Pechtchanski
On Wed, 19 Jan 2005, Jason Tishler wrote:

 Jaye,

 On Tue, Jan 18, 2005 at 07:15:09PM -0500, Jaye Speaks wrote:
  does anyone know of a shell program to retrieve the property info from
  windows files.  I need info like the fileversion or prodversion.

 No, so I wrote my own:

 $ version 'C:\Program Files\Microsoft Office\OFFICE11\WINPROJ.EXE'
 Required Information:
 ProductVersion = 11.0.2003.816
 FileVersion = 11.0.2003.816
 Optional Information:

 $ cygversion /mnt/c/Program\ Files/Microsoft\ Office/OFFICE11/WINPROJ.EXE
 Required Information:
 ProductVersion = 11.0.2003.816
 FileVersion = 11.0.2003.816
 Optional Information:

 See attached for the source and Makefile.

Jason,

This looks useful.  Feel like proposing this for cygutils?
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!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
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: a standard place to get cygwin

2005-01-19 Thread Larry Hall
At 03:00 PM 1/19/2005, you wrote:

Once again I'm required to use cygwin.
Once again I'm having trouble.

I notice that when I download from different places, I get different
things included.  In particular, I just downloaded /installed from anl.gov and
told it to install all.  First time I open a cygwin window I notice a 
problem ...
it gives me two lines of telling me it can't find grep ... (this happens while
it's going through the stuff in profile.d).  I check /usr/bin and sure enough
there is no grep in there.  I do a find in the entire cygwin directory ... it's
nowhere to be found.  I try copying grep from a far previous version of cygwin
... doesn't work (some kind of missing DLL error).

This has happened previously on other installs and is among the primary
reasons I never use cygwin unless I'm forced into it.  I think if I could just
find 'the right site' that had everything in it ... one I could depend on to 
always
include the sensible stuff at least (grep, gawk, Image Magick, the standard 
stuff) ..
that this would be a much less irritating experience.  Does such a site exist?
Where is THE place from which to download cygwin?


I'd be pretty surprised if that was your real problem.  Even though it's
true that some mirrors may be more up-to-date than others, this is typically
a temporary thing.  If you feel this is the issue (after reading what I say
below), then you might want to try mirrors.rcn.net.  I've never had trouble
with that site.

Sounds to me, though, like you have an errant Cygwin install hanging 
around.  First thing to do is follow this FAQ:

How do I uninstall all of Cygwin?
http://cygwin.com/faq/faq_toc.html#TOC20

If after installing with that procedure, you still have problems, you have 
a program installed on your system that uses it's own version of 
'cygwin1.dll'.  Hunt down that DLL and destroy it.  The program using it 
should be able to use the same 'cygwin1.dll' that you just installed.  If 
it cannot, contact the provider of that program.


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


--
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: a standard place to get cygwin

2005-01-19 Thread Igor Pechtchanski
On Wed, 19 Jan 2005, Green, Keith wrote:

 Once again I'm required to use cygwin.
 Once again I'm having trouble.

 I notice that when I download from different places, I get different
 things included.
 [snip]
 This has happened previously on other installs and is among the primary
 reasons I never use cygwin unless I'm forced into it.  I think if I
 could just find 'the right site' that had everything in it ... one I
 could depend on to always include the sensible stuff at least (grep,
 gawk, Image Magick, the standard stuff) .. that this would be a much
 less irritating experience.  Does such a site exist? Where is THE place
 from which to download cygwin?

Any one of the official Cygwin mirrors at http://cygwin.com/mirrors.html
should have an up-to-date mirror of all Cygwin packages.  Since anl.gov
(you do mean ftp://mirror.mcs.anl.gov/pub/cygwin.com/, right?) is one of
them, it should be one of THE places you ask for.

I suspect the problem isn't with the mirror.  You mention a previous
installation of Cygwin -- perhaps you have stale mounts?  Please review
http://cygwin.com/problems.html for Cygwin problem reporting guidelines,
including the kind of information you should provide about your system for
us to be able to help you.
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!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
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: a standard place to get cygwin

2005-01-19 Thread Green, Keith



Larry wrote:
 Sounds to me, though, like you have an errant Cygwin install hanging 
 around.  First thing to do is follow this FAQ:
 
 How do I uninstall all of Cygwin?
 http://cygwin.com/faq/faq_toc.html#TOC20
 
 If after installing with that procedure, you still have 
 problems, you have 
 a program installed on your system that uses it's own version of 
 'cygwin1.dll'.  Hunt down that DLL and destroy it.  The 
 program using it 
 should be able to use the same 'cygwin1.dll' that you just 
 installed.  If 
 it cannot, contact the provider of that program.

After installing cygwin on one of my boss's machines, he too
was missing grep - and I know for certain he's never installed
cygwin on his machine.  However, I'll hunt this down.  On my
machine at least I have maybe half a dozen different installs
sitting around in various states of disrepair.  Once I can get
it working correctly on my machine, I'll look at his.

thanks,
k



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



kpsexpand error starting up cygwin

2005-01-19 Thread Bart Sims
Any idea what causes this error when starting up cygwin on winXP sp2?

/usr/bin/kpsexpand: can't open input file: /usr/bin/kpsexpand

Thanks,

Bart


This message was sent using IMP, the Internet Messaging Program.


--
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: a standard place to get cygwin

2005-01-19 Thread Christopher Faylor
On Wed, Jan 19, 2005 at 03:38:23PM -0500, Green, Keith wrote:
Larry wrote:
Sounds to me, though, like you have an errant Cygwin install hanging
around.  First thing to do is follow this FAQ:

How do I uninstall all of Cygwin?
http://cygwin.com/faq/faq_toc.html#TOC20

If after installing with that procedure, you still have problems, you
have a program installed on your system that uses it's own version of
'cygwin1.dll'.  Hunt down that DLL and destroy it.  The program using
it should be able to use the same 'cygwin1.dll' that you just
installed.  If it cannot, contact the provider of that program.

After installing cygwin on one of my boss's machines, he too was
missing grep - and I know for certain he's never installed cygwin on
his machine.  However, I'll hunt this down.  On my machine at least I
have maybe half a dozen different installs sitting around in various
states of disrepair.  Once I can get it working correctly on my
machine, I'll look at his.

Hopefully, you have finally bitten the bullet and just installed
grep by rerunning setup.exe by now...

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: pdksh not setting $? with exit status of commands

2005-01-19 Thread David Kramer
Igor Pechtchanski pechtcha at cs.nyu.edu writes:
 On Wed, 19 Jan 2005, David Kramer wrote:
 
  When I execute commands in the pdksh shell that should set an exit
  value, $? is not being set.  When I use the bash shell, it is.
 
 Please review and follow http://cygwin.com/problems.html to provide
 enough information about your installation.

Will do in future, thank you.

  In pdksh:
  /c/windevel grep o regexps
  oo
  /c/windevel echo $?
  0
  /c/windevel grep Z regexps
  /c/windevel echo $?
  0
 
 Can't reproduce this here, sorry:
 
 $ pdksh
 $ cygcheck -f /bin/pdksh
 pdksh-5.2.14-3
 $ grep o regexps ; echo $?
 oo
 0
 $ grep Z regexps ; echo $?
 1

I see a functional difference in your example and mine.  
You ran grep then echo separated by a ;, 
while I ran it on two separate lines.  
These should do the same thing (as it does on my other target, AIX), 
but it doesn't appear to.  

When I run your example in my Cygwin pdksh shell, 
I get the same results as you.  It looks like I can use 
that format as a workaround for the problem, but I sure
would like to understand why it doesn't work as expected in my 
example, when both examples produce the same results in AIX's ksh,
so I can predict these kinds of problems in the future better.

Thanks for your help.  





Cygwin Configuration Diagnostics
Current System Time: Wed Jan 19 16:13:42 2005

Windows XP Professional Ver 5.1 Build 2600 Service Pack 1

Path:   ~\bin
c:\Program Files\Subversion\bin
C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
C:\cygwin\usr\X11R6\bin
c:\sybase\OLEDB
c:\sybase\ODBC
c:\sybase\ASEP_Win32
c:\sybase\OCS-12_5\dll
c:\sybase\OCS-12_5\lib3p
c:\sybase\OCS-12_5\bin
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
c:\sybase\DLL
c:\sybase\BIN
k:\apps\pvcs\vm60\nt
c:\windevel
c:\SFU\Perl\bin\
c:\SFU\common\
c:\Program Files\Subversion\bin
c:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT
c:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin
c:\Program Files\Microsoft Visual Studio\Common\Tools
c:\Program Files\Microsoft Visual Studio\VC98\bin
c:\Program Files\Microsoft Visual Studio\VC98\Bin
c:\Program Files\Microsoft Visual Studio\COMMON\IDE\IDE98
c:\windevel\svn1\bin
c:\windevel\svn1\scripts

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 15668(dkramer) GID: 10545(mkgroup-l-d)
10545(mkgroup-l-d)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 15668(dkramer) GID: 10545(mkgroup-l-d)
0(root)  544(Administrators)  
545(Users)   10545(mkgroup-l-d)

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

HOME = `c:\Documents and Settings\dkramer'
LD_LIBRARY_PATH = `C:\cygwin\usr\lib:\usr\X11R6\lib'
MAKE_MODE = `unix'
USER = `dkramer'

c:  hd  NTFS   76245Mb  35% CP CS UN PA FC 
d:  cd   N/AN/A
h:  net NTFS2048Mb   2% CP CS UN PA FC dH_Home
k:  net NTFS   32384Mb  93% CP CSPAdata
o:  net NTFS4096Mb  26% CP CS UN PA FC old_dH_Shared
r:  net NTFS   26208Mb  92% CP CSPAcm_data
s:  net NTFS5120Mb   0% CP CS UN PA FC dH_Shared
t:  net NTFS   16383Mb  71% CP CS UN PA FC IT_Share

C:\cygwin  / system  binmode
C:\cygwin/bin  /usr/bin  system  binmode
C:\cygwin/lib  /usr/lib  system  binmode
C:\cygwin\usr\X11R6\lib\X11\fonts  /usr/X11R6/lib/X11/fonts  system  binmode
.  /cygdrive system 
binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: c:\SFU\common\cat.exe
Warning: C:\cygwin\bin\cat.exe hides c:\SFU\common\cat.exe
Found: C:\cygwin\bin\cp.exe
Found: c:\SFU\common\cp.exe
Warning: C:\cygwin\bin\cp.exe hides c:\SFU\common\cp.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: c:\SFU\common\find.exe
Warning: C:\cygwin\bin\find.exe hides c:\SFU\common\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\grep.exe
Found: c:\SFU\common\grep.exe
Warning: C:\cygwin\bin\grep.exe hides c:\SFU\common\grep.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: c:\SFU\common\ls.exe
Warning: C:\cygwin\bin\ls.exe hides c:\SFU\common\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\mv.exe
Found: c:\SFU\common\mv.exe
Warning: C:\cygwin\bin\mv.exe hides c:\SFU\common\mv.exe
Found: C:\cygwin\bin\rm.exe
Found: c:\SFU\common\rm.exe
Warning: C:\cygwin\bin\rm.exe hides c:\SFU\common\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: c:\SFU\common\sed.exe
Warning: C:\cygwin\bin\sed.exe hides c:\SFU\common\sed.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe

   92k 2004/06/08 C:\cygwin\bin\cygapr-0-0.dll - os=4.0 

RE: a standard place to get cygwin

2005-01-19 Thread Green, Keith

cgf wrote:
After installing cygwin on one of my boss's machines, he too was
 missing grep - and I know for certain he's never installed cygwin on
 his machine.  However, I'll hunt this down.  On my machine at least I
 have maybe half a dozen different installs sitting around in various
 states of disrepair.  Once I can get it working correctly on my
 machine, I'll look at his.
 
 Hopefully, you have finally bitten the bullet and just installed
 grep by rerunning setup.exe by now...

That's the only way I've ever installed cygwin.  I have rerun and
rerun and rerun setup ... more than a half dozen times just this
go around ... dozens and dozens of times on various machines over
the last few years.  Every single install I recall has missed something.
It's always been a matter of how much annoyance I could tolerate.
An absence of grep far exceeds the limit - and so I make inquiry.
Following the instructions on that web page Larry gave me, I've completely
eradicated cygwin from my machine and begun the reinstall (30% complete).
I should know very shortly whether this will work.

Also, it turns out there was indeed a cygwin1.dll loaded with xgobi
(an app I only used a short while and then forgot about).  

k


--
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: a standard place to get cygwin

2005-01-19 Thread Christopher Faylor
On Wed, Jan 19, 2005 at 04:43:44PM -0500, Green, Keith wrote:
cgf wrote:
After installing cygwin on one of my boss's machines, he too was
missing grep - and I know for certain he's never installed cygwin on
his machine.  However, I'll hunt this down.  On my machine at least I
have maybe half a dozen different installs sitting around in various
states of disrepair.  Once I can get it working correctly on my
machine, I'll look at his.

Hopefully, you have finally bitten the bullet and just installed grep
by rerunning setup.exe by now...

That's the only way I've ever installed cygwin.  I have rerun and rerun
and rerun setup ...  more than a half dozen times just this go around
...  dozens and dozens of times on various machines over the last few
years.  Every single install I recall has missed something.  It's
always been a matter of how much annoyance I could tolerate.  An
absence of grep far exceeds the limit - and so I make inquiry.
Following the instructions on that web page Larry gave me, I've
completely eradicated cygwin from my machine and begun the reinstall
(30% complete).  I should know very shortly whether this will work.

You eradicated cygwin because you were missing grep?  Wow.

Just INSTALL grep using setup.exe.  There is no reason to go to
incredible effort because you were missing a program -- especially if
your tolerance for free software is so low.  I would think you'd rather
just fix the problem and move on rather than compound your problem by
wiping things out and installing everything.

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: a standard place to get cygwin

2005-01-19 Thread Green, Keith

 Sounds to me, though, like you have an errant Cygwin install hanging 
 around.  First thing to do is follow this FAQ:
 
 How do I uninstall all of Cygwin?
 http://cygwin.com/faq/faq_toc.html#TOC20

I was skeptical, but that was it!

thanks!
k

 


--
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: pdksh not setting $? with exit status of commands

2005-01-19 Thread Igor Pechtchanski
On Wed, 19 Jan 2005, David Kramer wrote:

 Igor Pechtchanski pechtcha at cs.nyu.edu writes:
  On Wed, 19 Jan 2005, David Kramer wrote:
 
   When I execute commands in the pdksh shell that should set an exit
   value, $? is not being set.  When I use the bash shell, it is.
  
   In pdksh:
   /c/windevel grep o regexps
   oo
   /c/windevel echo $?
   0
   /c/windevel grep Z regexps
   /c/windevel echo $?
   0
 
  Can't reproduce this here, sorry:
 
  $ pdksh
  $ cygcheck -f /bin/pdksh
  pdksh-5.2.14-3
  $ grep o regexps ; echo $?
  oo
  0
  $ grep Z regexps ; echo $?
  1

 I see a functional difference in your example and mine.  You ran grep
 then echo separated by a ;, while I ran it on two separate lines.

Hmm, interesting.  I tried both ways, and they both worked identically for
me, so I posted the one that used less space...

 These should do the same thing (as it does on my other target, AIX), but
 it doesn't appear to.

 When I run your example in my Cygwin pdksh shell, I get the same results
 as you.  It looks like I can use that format as a workaround for the
 problem, but I sure would like to understand why it doesn't work as
 expected in my example, when both examples produce the same results in
 AIX's ksh, so I can predict these kinds of problems in the future
 better.

 Cygwin Configuration Diagnostics
 Current System Time: Wed Jan 19 16:13:42 2005

 Windows XP Professional Ver 5.1 Build 2600 Service Pack 1
 [snip]
 Found: C:\cygwin\bin\grep.exe
 Found: c:\SFU\common\grep.exe
 Warning: C:\cygwin\bin\grep.exe hides c:\SFU\common\grep.exe

Ah, I think this may be your problem.  Are you *sure* you're using the
Cygwin grep?  In general, mixing MS SFU and Cygwin in the PATH is not a
good idea.

Try explicitly using /bin/grep, i.e.,

$ /bin/grep o regexps
oo
$ echo $?
0
$ /bin/grep Z regexps
$ echo $?
1

Igor Pechtchanski, Cygwin volunteer PDksh maintainer
-- 
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!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
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: a standard place to get cygwin

2005-01-19 Thread Igor Pechtchanski
On Wed, 19 Jan 2005, Igor Pechtchanski wrote:

 I suspect the problem isn't with the mirror.  You mention a previous
 installation of Cygwin -- perhaps you have stale mounts?
^

On Wed, 19 Jan 2005, Green, Keith wrote:

  Sounds to me, though, like you have an errant Cygwin install hanging
  around.  First thing to do is follow this FAQ:
 
  How do I uninstall all of Cygwin?
  http://cygwin.com/faq/faq_toc.html#TOC20

 I was skeptical, but that was it!

Ah, so it *was* the problem of stale mounts...
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!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: cygwin programs called from non-cygwin programs mauling \ in args

2005-01-19 Thread Yitzchak Scott-Thoennes
On Wed, Jan 12, 2005 at 10:42:48PM -0800, Yitzchak Scott-Thoennes wrote:
 $ cat child.c
 #include stdio.h
 int main(int argc, char **argv)
 {
   printf([%s]\n, argv[1]);
   return 0;
 }
 
 $ cat parent.c
 #include unistd.h
 int main(int argc, char **argv) {
   char *args[] = { argv[1], a\\\b\\\c, 0};
   execv( argv[1], args);
   return 1;
 }
 
 $ gcc -mno-cygwin -Wall parent.c -o nocygparent
 parent.c: In function `main':
 parent.c:4: warning: passing arg 2 of `execv' from incompatible pointer type
 
 $ gcc -Wall child.c -o cygchild
 
 $ ./nocygparent cygchild
 [a\bc]

Can anybody else confirm this?

--
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: a standard place to get cygwin

2005-01-19 Thread Green, Keith

 
 On Wed, 19 Jan 2005, Igor Pechtchanski wrote:
 
  I suspect the problem isn't with the mirror.  You mention a previous
  installation of Cygwin -- perhaps you have stale mounts?
 ^
 
 On Wed, 19 Jan 2005, Green, Keith wrote:
 
   Sounds to me, though, like you have an errant Cygwin 
 install hanging
   around.  First thing to do is follow this FAQ:
  
   How do I uninstall all of Cygwin?
   http://cygwin.com/faq/faq_toc.html#TOC20
 
  I was skeptical, but that was it!
 
 Ah, so it *was* the problem of stale mounts...
   Igor

Yes, though I'm not sure what a stale mount means in a registry context.
It didn't click for me when I was deleting registry entries, but it does
now that you mention it again, that all those mount entries under Cygwin
Solutions was probably what you were talking about.

Thanks,
k



--
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: a standard place to get cygwin

2005-01-19 Thread Larry Hall
At 06:35 PM 1/19/2005, you wrote:

 
 On Wed, 19 Jan 2005, Igor Pechtchanski wrote:
 
  I suspect the problem isn't with the mirror.  You mention a previous
  installation of Cygwin -- perhaps you have stale mounts?
 ^
 
 On Wed, 19 Jan 2005, Green, Keith wrote:
 
   Sounds to me, though, like you have an errant Cygwin 
 install hanging
   around.  First thing to do is follow this FAQ:
  
   How do I uninstall all of Cygwin?
   http://cygwin.com/faq/faq_toc.html#TOC20
 
  I was skeptical, but that was it!
 
 Ah, so it *was* the problem of stale mounts...
   Igor

Yes, though I'm not sure what a stale mount means in a registry context.
It didn't click for me when I was deleting registry entries, but it does
now that you mention it again, that all those mount entries under Cygwin
Solutions was probably what you were talking about.


Yes, I pointed you at the prescribed way of making sure your machine
is Cygwin clean, in case there was something else in your installation 
that was causing you problems.  As Chris and Igor pointed out, it's rather
brute force but it's the easy thing to point people at.  In your case, I 
also agree that you may have been able to get away with 'umount -A'.  If
you boss's machine is still having a problem, you could try this on his.
It's possible that he has installed some 3rd party Cygwin app too that
he doesn't know about or forgot.



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


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



home directory

2005-01-19 Thread Green, Keith


New problem. Never had this one before.

In Windows, I define the HOME variable to C:\etc.

However, my cygwin.bat file reads
   @echo off
   set HOME=/home/kgreen (also tried set HOME=H:\cygwin\home\kgreen )
   H:
   chdir H:\cygwin\bin
   bash --login -i

and the pertinent line from /etc/passwd reads:

kgreen:unused_by_nt/2000/xp:12447:10545:kgreen,U-BBB\kgreen,S-1-5-21-748114381-82326301-405542714-2447:/home/kgreen:/bin/bash

BUT ... when I double click on icon (cygwin.bat), it keeps bringing me up in 
/usr/bin.

I've tried disabling ~/.bashrc and ~/.bash_login (just in case).  Same thing.

The odd thing is that in the cygwin.bat file, regardless of how I set it (with 
POSIX or DOS path name), when the cygwin window comes up and I type echo $HOME, 
it has the right value in it.  That is, $HOME says /home/kgreen.

Also, when I put a ~/.bashrc and ~/.bash_login inside /home/kgreen, it uses 
them!  So it's getting there somehow ... and then deciding on its own that it 
would rather be in /usr/bin!

k


--
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: Permission denied on Windows XP

2005-01-19 Thread Donald Hyun
Larry Hall lh-no-personal-replies-please at cygwin.com writes:

 
 At 12:39 AM 1/18/2005, you wrote:
 I suffer from 'permission denied' problem
 on my note-pc (Windows XP)
 
 After running big script (recursive make script), I have met 
 'resource temporarily unavailable' message.
 And then I can't execute any bash command because of
 'permission denied' message.
 
 I installed cygwin v1.5.9. I tried in the latest cygwin version, 
 but I had the same result.
 
 How can I solve this problem?
 
 Start here:
 
 Problem reports:   http://cygwin.com/problems.html
 
 --
 Larry Hall  http://www.rfk.com
 RFK Partners, Inc. (508) 893-9779 - RFK Office
 838 Washington Street(508) 893-9889 - FAX
 Holliston, MA 01746 
 
 


Since a few days ago, I met permission denied message when running my
compilation bash script.
My note-pc doesn't work after 'permission denied' happens. 
My colleague which suffers from this problem has formatted the hard disk.
Permission denied messsage is as follows.

-
make[1]: Leaving directory
'/cygdrive/d/Phevos/df/psdbg/modules/dbgman/srce'
mk: hwlcsl.gen: using /cygdrive/d/Phevos/df/hardwl/srce/hardwl.gen
. 
 
Compiling... [ hwlcsl1init.c ]
make[1]: Entering directory
'/cygdrive/d/Phevos/df/hardwl/modules/hwlcsl/srce'
 
 
Compiling... [ hwlcsl2req.c ]
 
 
Compiling... [ hwlcsl4ret.c ]
 
 
Making PTL file... [ hwlcsl.ptl ]
 
 
make[1]: Leaving directory
'/cygdrive/d/Phevos/df/hardwl/modules/hwlcsl/srce'
cut: permission denied
/usr/bin/uname: permission denied
/usr/bin/uname: permission denied
C:\cygwin\bin\cut.exe (132892): 
*** thread handle not set - 0x00x0, Win32 error 1450
mk: hwlgpm.gen: using /cygdrive/d/Phevos/df/hardwl/srce/hardwl.gen
make[1]: execvp: /cygdrive/d/Phevos/build/_common/listmodules:
Permission denied
make[1]: Entering directory
'/cygdrive/d/Phevos/df/hardwl/modules/hwlgpm/srce'
make[1]: execvp: /bin/sh.exe: Permission denied
make[1]: Entering directory
'/cygdrive/d/Phevos/df/hardwl/modules/hwlgpm/srce'
make[1]: execvp: /cygdrive/d/Phevos/build/_common/listmodules:
Permission denied
make[1]: Entering directory
'/cygdrive/d/Phevos/df/hardwl/modules/hwlgpm/srce'
make[1]: execvp: /cygdrive/d/Phevos/build/_common/listmodules:
Permission denied
make[1]: Entering directory
'/cygdrive/d/Phevos/df/hardwl/modules/hwlgpm/srce'
make[1]: execvp: /cygdrive/d/Phevos/build/_common/listmodules:
Permission denied
make[1]: Entering directory
'/cygdrive/d/Phevos/df/hardwl/modules/hwlgpm/srce'
make[1]: execvp: /cygdrive/d/Phevos/build/_common/listmodules:
Permission denied
make[1]: Entering directory
'/cygdrive/d/Phevos/df/hardwl/modules/hwlgpm/srce'
make[1]: execvp: /cygdrive/d/Phevos/build/_common/listmodules:
Permission denied
make[1]: Entering directory
'/cygdrive/d/Phevos/df/hardwl/modules/hwlgpm/srce'
make[1]: execvp: /cygdrive/d/Phevos/build/_common/listmodules:
Permission denied
make[1]: Entering directory
'/cygdrive/d/Phevos/df/hardwl/modules/hwlgpm/srce'
make[1]: Entering directory
'/cygdrive/d/Phevos/df/hardwl/modules/hwlgpm/srce'
make[1]: /cygdrive/d/Phevos/build/_common/mk.mk:262: 
fork: Permission denied
make[1]: /cygdrive/d/Phevos/build/_common/mk.mk:269: 
fork: Permission denied
make[1]: /cygdrive/d/Phevos/build/_common/mk.mk:271: 
fork: Permission denied
make[1]: /cygdrive/d/Phevos/build/_common/mk.mk:340: 
fork: Permission denied
make[1]: /cygdrive/d/Phevos/build/_common/mk.mk:348: 
fork: Permission denied
make[1]: /cygdrive/d/Phevos/build/_common/mk.mk:615: 
fork: Permission denied
make[1]: fork: Permission denied
make[1]: vfork: Permission denied
make[1]: /cygdrive/d/Phevos/build/_common/mk.mk:615: 
fork: Permission denied
make[1]: fork: Permission denied
make[1]: vfork: Permission denied
make[1]: /cygdrive/d/Phevos/build/_common/mk.mk:615: 
fork: Permission denied
make[1]: fork: Permission denied
make[1]: vfork: Permission denied
make[1]: /cygdrive/d/Phevos/build/_common/mk.mk:615: 
fork: Permission denied
make[1]: fork: Permission denied
make[1]: vfork: Permission denied
make[1]: Leaving directory
'/cygdrive/d/Phevos/df/hardwl/modules/hwlgpm/srce'
make: *** [d:/Phevos/df/hardwl/modules/hwlgpm] Error 2
---

I have tested on cygwin 1.3.5, cygwin 1.5.9, 
and cygwin 1.5.12, but it's not solved.
After robooting windows XP, the script seems to work well. 
But during running the same message happens.

I don't want to format my note-pc. Is there any good idea?

Thanks in advance.



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



How to ensure every file/dir has Administrators permissions? (ntsec, passwd, group)

2005-01-19 Thread Bert-Steffen Visser
I'm using ntsec on ntfs. The thing is when users restrict group and world 
access to their files (umask 077 or chmod g-rwx,o-rwx), the administrators 
group is also locked out. Very unpractical for automated backups running from 
the administrator account.

Now, I would like every file/dir created with cygwin always to have full 
Administrators permissions (or any other group). I was guessing that this 
should be doable in the passwd/group files, but I can't figure out how.

greetz,
Bert


--
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: update on hyperthreading system for cgf

2005-01-19 Thread Christopher Faylor
On Thu, Jan 20, 2005 at 12:09:54AM +1000, Nick Coghlan wrote:
Adrian Cox wrote:
On Thu, 2005-01-13 at 19:58 -0500, Christopher Faylor wrote:

This is still pretty far off from the goal but I would still appreciate
it if anyone could recommend a cheap system which demonstrates the
problem.  So far, I don't recall anyone giving specific details about a
name brand computer or a specific motherboard.  If I start getting
names I can start doing research on the best place to purchase a
system.

My system is an ASUS P4P800S with an Intel P4 2.6 GHz.  Single 512 MB
stick of PC3200 RAM.  OS is XP Pro.

And heck, contributing towards a machine for CGF is cheaper than
getting a decent monitor to hook up to my Linux machine :)

So far, the machine specifications are still too expensive for what I have.

Hasn't anyone put together a nice $400 system?

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: cygwin programs called from non-cygwin programs mauling \ in args

2005-01-19 Thread Gary R. Van Sickle

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Yitzchak Scott-Thoennes
 Sent: Wednesday, January 19, 2005 5:34 PM
 To: cygwin@cygwin.com
 Subject: Re: cygwin programs called from non-cygwin programs 
 mauling \ in args
 
 On Wed, Jan 12, 2005 at 10:42:48PM -0800, Yitzchak 
 Scott-Thoennes wrote:
  $ cat child.c
  #include stdio.h
  int main(int argc, char **argv)
  {
printf([%s]\n, argv[1]);
return 0;
  }
  
  $ cat parent.c
  #include unistd.h
  int main(int argc, char **argv) {
char *args[] = { argv[1], a\\\b\\\c, 0};
execv( argv[1], args);
return 1;
  }
  
  $ gcc -mno-cygwin -Wall parent.c -o nocygparent
  parent.c: In function `main':
  parent.c:4: warning: passing arg 2 of `execv' from incompatible 
  pointer type
  
  $ gcc -Wall child.c -o cygchild
  
  $ ./nocygparent cygchild
  [a\bc]
 
 Can anybody else confirm this?
 

Lessee

...sorta.  I get:


$ ./nocygparent cygchild

~
$ [a\bc]


And then it sits there waiting for input.  When I hit enter it quits and
brings me back to the prompt.  This is with snapshot 20050116 and gcc (GCC)
3.4.1 (cygming special).

What happens if you correct the warning?

-- 
Gary R. Van Sickle


--
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: home directory

2005-01-19 Thread Igor Pechtchanski
On Wed, 19 Jan 2005, Green, Keith wrote:

 New problem. Never had this one before.
 In Windows, I define the HOME variable to C:\etc.

 However, my cygwin.bat file reads
@echo off
set HOME=/home/kgreen (also tried set HOME=H:\cygwin\home\kgreen )
H:
chdir H:\cygwin\bin
bash --login -i

 and the pertinent line from /etc/passwd reads:

 kgreen:unused_by_nt/2000/xp:12447:10545:kgreen,U-BBB\kgreen,S-1-5-21-748114381-82326301-405542714-2447:/home/kgreen:/bin/bash

 BUT ... when I double click on icon (cygwin.bat), it keeps bringing me
 up in /usr/bin.
 I've tried disabling ~/.bashrc and ~/.bash_login (just in case).  Same
 thing.
 The odd thing is that in the cygwin.bat file, regardless of how I set it
 (with POSIX or DOS path name), when the cygwin window comes up and I
 type echo $HOME, it has the right value in it.  That is, $HOME says
 /home/kgreen.
 Also, when I put a ~/.bashrc and ~/.bash_login inside /home/kgreen, it
 uses them!  So it's getting there somehow ... and then deciding on its
 own that it would rather be in /usr/bin!

You could try to start bash with --login -i -v, which should show the
commands that are executed, and possibly explain why the directory is
changed to /usr/bin.
HTH,
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!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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

2005-01-19 Thread Gary R. Van Sickle
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Corinna Vinschen
 Sent: Wednesday, January 19, 2005 7:08 AM
 To: cygwin@cygwin.com
 Subject: Re: _beginthreadex
 
 On Jan 19 12:45, Dave Korn wrote:
   -Original Message-
   From: cygwin-owner On Behalf Of Kukuk Barbara
   Sent: 19 January 2005 11:49
  
   Hi,
   I would like to know how I can use _beginthreadex in my program.
   It is shown as an unresolved external. Do I have to link 
 a special 
   library?
   
   Thanks for your help.
   
   Barbara
  
  
You can't use MSVCRT functions, such as _beginthreadex, under 
  cygwin, but you can use the win32 equivalents such as 
 CreateThread and so on.
 
 Or even better, use posix threads.
 
 Corinna

This sort of begs the question: is it actually safe to use CreateThread() et
al when you're linking to Cygwin's CRT, or are you asking for trouble?  I'm
pretty sure I know the answer to this one, but just for posterity

-- 
Gary R. Van Sickle


--
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: update on hyperthreading system for cgf

2005-01-19 Thread David Christensen
Christopher Faylor wrote:
 Hasn't anyone put together a nice $400 system?

How about $417.50?

http://secure.newegg.com/app/WishR.asp?ID=1251752 


You need to provide the hard drive, CD-ROM drive, floppy drive, keyboard, mouse,
and operating system.


David


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



Tktable

2005-01-19 Thread fergus
Has anybody tried successfully to install Tktable: 
http://prdownloads.sourceforge.net/tktable/Tktable2.9.tar.gz?download
The configure stage seems to work very well, with explicit recognition of
Cygwin and the requirement for .exe extensions etc. Unfortunately make fails
though the objections seem slight.
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/



Couple of scripts to remove duplicate packages

2005-01-19 Thread Alex
Hi,
I have a habit of keeping cygwin packages on my computer and updating 
them from time to time using setup.exe. This saves me time when I need 
to install on another computer.
This creates a problem of old versions of packages accumulating in my 
download directory. I used to remove them by hand but that is a time 
consuming process. Finally I wrote an awk script to help me deal with 
the problem. And just for kicks I added a shell wrapper :).

Attached are the scripts. I hope they could be useful to someone else.
I am sure they can be improved but they have been useful to me as is.
Thanks,
Alex
#! /bin/awk
BEGIN { \
  last_pkg = ;
  last_date = 0;
  last_dir = ;
  last_pkg_name = ;
  cmd = find release -type f -printf '%h %f %TY%Tm%Td\n';
  while(( cmd | getline )  0)
{ 
  dir = $1;
  pkg = $2;
  date = $3;
  count = split(dir, part, /);
  if( last_pkg_name == part[count] ){
if( date  last_date ){
  print dir / pkg;
  continue;
}else{
  print last_dir / last_pkg;
}
  }
  last_pkg = pkg;
  last_date = date;
  last_dir = dir;
  last_pkg_name = part[count];
}
  close(cmd);
}
#! /bin/bash
# Version of cyg-remove-dups in bash, just for kicks. Still uses awk and find
# awk is used in a normal way. Trick is to pass program to it with the data
# on stdin.
find release -type f -printf %h %f %TY%Tm%Td\n  | \
awk -- '
BEGIN { \
  last_pkg = ;
  last_date = 0; 
  last_dir = ;
  last_pkg_name = ; 
}
{
  dir = $1;
  pkg = $2;
  date = $3;
  count = split(dir, part, /);
  if( last_pkg_name == part[count] ){
if( date  last_date ){
   print dir / pkg;
   next;
}else{
print last_dir / last_pkg;
}
  }
  last_pkg = pkg;
  last_date = date;
  last_dir = dir;
  last_pkg_name = part[count];
}
'
--
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: Couple of scripts to remove duplicate packages

2005-01-19 Thread Igor Pechtchanski
On Wed, 19 Jan 2005, Alex wrote:
Hi,
I have a habit of keeping cygwin packages on my computer and updating
them from time to time using setup.exe. This saves me time when I need
to install on another computer.
This creates a problem of old versions of packages accumulating in my
download directory. I used to remove them by hand but that is a time
consuming process. Finally I wrote an awk script to help me deal with
the problem. And just for kicks I added a shell wrapper :).
Attached are the scripts. I hope they could be useful to someone else.
I am sure they can be improved but they have been useful to me as is.
That's a nice attempt.  However, I can see that you're not aware of
Michael Chase's clean_setup.pl (which does that and much, much more).
Google for it.
HTH,
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!
The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT
--
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: Permission denied on Windows XP

2005-01-19 Thread Luc Hermitte
* On Thu, Jan 20, 2005 at 12:59:16AM +, Donald Hyun [EMAIL PROTECTED] 
wrote:
 Larry Hall lh-no-personal-replies-please at cygwin.com writes:
 [...]
 fork: Permission denied
 make[1]: fork: Permission denied
 make[1]: vfork: Permission denied
 make[1]: Leaving directory
 '/cygdrive/d/Phevos/df/hardwl/modules/hwlgpm/srce'
 make: *** [d:/Phevos/df/hardwl/modules/hwlgpm] Error 2
 ---
 
 I have tested on cygwin 1.3.5, cygwin 1.5.9, 
 and cygwin 1.5.12, but it's not solved.
 After robooting windows XP, the script seems to work well. 
 But during running the same message happens.
 
 I don't want to format my note-pc. Is there any good idea?

Are you using Agnitum Outpost Firewall ?
Is so find another firewall that does not leak ressources.

HTH,

-- 
Luc Hermitte

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