Re: RFC: Packaging O'Caml

2004-08-27 Thread Gerrit P. Haase
Igor schrieb:

 I'm still trying to get O'Caml to run properly (I keep getting the No
 bytecode file specified message)...  Do you want to discuss this
 off-list?

You cannot strip O'Caml executables, it is somewhere in the docs which
of the compiler executables may be stripped and which not.  Executables
compiled by O'Caml cannot be compiled in general, they are mixed mode,
text/binary code and stripping removes the text... have you opened a
binary with an editor already?  Looks funny.


Gerrit
-- 
=^..^=



Re: Gnome for cygwin

2004-08-27 Thread Gerrit P. Haase
Yaakov schrieb:


 In addition, I've ported bindings for C++ (gtkmm.org), Perl, Python,
 Ruby, and Tcl.  I would imagine that at least the C++ and Python
 bindings would be generally useful.

Perl is the most important;)

Gerrit
-- 
=^..^=



Re: Packaging O'Caml

2004-08-27 Thread Corinna Vinschen
On Aug 27 00:31, Christopher Faylor wrote:
 On Thu, Aug 26, 2004 at 04:33:38PM -0400, Igor Pechtchanski wrote:

[..lots of unnecessary quoting removed...]

 Huh?  So, for example, if one builds a program that uses, say,
 cygncurses7.dll (by linking with /usr/lib/libncurses.dll.a), which, in
 turn, uses cygwin1.dll, that program cannot be released under any license
 that's incompatible with GPL?
 
 Huh? right back at you.
 
 When you build a program using gcc on cygwin, you link in libcygwin.a
 unless you specifically tell gcc not to do so.  If you do not link in
 libcygwin.a then either 1) you are not building a cygwin program, or you
 are 2) inexplicably linking using just the cygwin1.dll directly (which
 probably wouldn't work anyway).  In either case you would not be covered
 by the license exception.  In the first case it would hardly matter and
 in the second case, it is just an artifact of the fact that linking
 directly to the dll didn't work when the licensing words were written.

I've changed the text on the licensing.html page.  It now mentions
cygwin1.dll explicitely.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.


Re: [ITP] glib-1.2.10

2004-08-27 Thread Corinna Vinschen
On Aug 26 17:50, Yaakov Selkowitz wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Corinna Vinschen wrote:
 
 | This package as well as gtk+ are auto-voted per decree.  Are you going
 | to review them, Volker? :-)
 
 Well, that's nice to hear. :-)  Gerrit gave these a GTG, so could
 someone please upload them?  Thanks!

Uploaded (both packages).

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.


Re: postgresql-7.4.5-1 ready for review

2004-08-27 Thread Jason Tishler
Reini,

On Thu, Aug 26, 2004 at 06:59:24PM +0200, Reini Urban wrote:
 Jason Tishler schrieb:
 On Wed, Aug 25, 2004 at 08:09:26PM +0200, Reini Urban wrote:
 ok, postgresql-7.4.5-1 is ready.
 
 Thanks, but I'm going to upload a postgresql-7.4.5-1 shortly.  Let's
 transition maintainership in the 8.0 time frame.
 
 Super. So I can check tcl also.

Please do.  Building with Tcl is only the first step, I never got PL/Tcl
to work.

 Please also check my version of the cygwin README.  I added a Whats
 new section.

Will do.

 AFAICT, the above change is not necessary:
 
 checking for shmget in -lcygipc... no
 ...
 checking sys/ipc.h usability... yes
 checking sys/ipc.h presence... yes
 checking for sys/ipc.h... yes
 
 The problem is, that I still have cygipc installed, so it will find
 it, even if cygserver is running.  Others maybe also. Call it
 defensive programming.

If you are going to maintain Cygwin PostgreSQL, then I highly recommend
uninstalling the deprecated cygipc package.

 Anyway my postgresql-7.4.5-1 cygipc configure.in patch is pending, and 
 will be useful for the 8 series also.

AFAICT, your configure.in patch has been rejected.  Sorry, but I have to
agree with Peter.

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


Re: [ITP] glib-1.2.10

2004-08-27 Thread Dr. Volker Zell
 Corinna Vinschen writes:

 This package as well as gtk+ are auto-voted per decree.  Are you going
 to review them, Volker? :-)

Yup, I'll do that on sunday. Today it's BAP time :-)




Re: [ITP] glib-1.2.10

2004-08-27 Thread Corinna Vinschen
On Aug 27 15:14, Dr. Volker Zell wrote:
  Corinna Vinschen writes:
 
  This package as well as gtk+ are auto-voted per decree.  Are you going
  to review them, Volker? :-)
 
 Yup, I'll do that on sunday. Today it's BAP time :-)

Too late, it's already uploaded.

Corinna


P.S.: Have fun at the BAP concert ;-)

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.


Re: Packaging O'Caml

2004-08-27 Thread Igor Pechtchanski
On Fri, 27 Aug 2004, Christopher Faylor wrote:

 On Thu, Aug 26, 2004 at 04:33:38PM -0400, Igor Pechtchanski wrote:
 On Thu, 26 Aug 2004, Christopher Faylor wrote:
  On Thu, Aug 26, 2004 at 02:46:55PM -0400, Igor Pechtchanski wrote:
  On Thu, 26 Aug 2004, Williams, Gerald S (Jerry) wrote:
  Igor Pechtchanski wrote:
  However, parts of it are released under the Q Public license, which
  GNU lists explicitly as non-GPL-compatible.  Does this mean an
  automatic no to an official Cygwin package [...] ?
  
  From http://cygwin.com/licensing.html: In accordance with section 10 of
  the GPL, Red Hat permits programs whose sources are distributed under a
  license that complies with the Open Source definition to be linked with
  libcygwin.a without libcygwin.a itself causing the resulting program to
  be covered by the GNU GPL.
  
  Interestingly enough, this doesn't mention cygwin1.dll, only
  libcygwin.a, but I may be nitpicking...
 
  Or, you may be missing the point.  When that sentence was written you
  couldn't do something like gcc -o foo foo.c /bin/cygwin1.dll.  You
  had to gcc -o foo foo.c -lcygwin.
 
  The act of linking something with your program is part of what causes
  the GPL to become active.  Including pieces from libcygwin.a into your
  program is part of what exercises the GPL.
 
  Other methods of linking are not covered by this generous exception.
 
 Huh?  So, for example, if one builds a program that uses, say,
 cygncurses7.dll (by linking with /usr/lib/libncurses.dll.a), which, in
 turn, uses cygwin1.dll, that program cannot be released under any license
 that's incompatible with GPL?

 Huh? right back at you.

 When you build a program using gcc on cygwin, you link in libcygwin.a
 unless you specifically tell gcc not to do so.  If you do not link in
 libcygwin.a then either 1) you are not building a cygwin program, or you
 are 2) inexplicably linking using just the cygwin1.dll directly (which
 probably wouldn't work anyway).  In either case you would not be covered
 by the license exception.  In the first case it would hardly matter and
 in the second case, it is just an artifact of the fact that linking
 directly to the dll didn't work when the licensing words were written.

 I don't know what libncurses has to do with anything unless libncurses
 has its own licensing arrangements which could supersede cygwin's.
 Obviously the cygwin dll can't impose it's own notion of acceptable
 licensing if another package's terms are more stringent.

 If you are postulating that it could be somehow possible to build a DLL
 which links with cygwin and is then usable in a mingw application then,
 yes, the GPL exception would not apply if you follow the strict wording.
 It also wouldn't necessarily apply if you dynamically loaded cygwin
 although, IIRC, the jury is still out on whether dynamic loading should
 excersize the GPL or not.

Hmm, yes, I see the point now.  Let's just say I was confused, and leave
it at that.

   IANAL, but the Q Public License is listed on the OSI web page, so there
   don't appear to be any legal restrictions -- some Cygwin packages use
   different open source licenses already.
  
   Or have there been policy changes for new Cygwin packages that I'm not
   aware of?
  
  What threw me off was this sentense on the GNU GPL licensing page
  (http://www.gnu.org/licenses/license-list.html):
  
Since the QPL is incompatible with the GNU GPL, you cannot take a
GPL-covered program and QPL-covered program and link them
together, no matter how.
 
  Since cygwin has an exception to the GPL, this section is potentially
  irrelevant.
 
 Yep, that's what I said below.

 No, you seemed to be implying that the GPL automatically kicks in when
 that isn't necessarily correct.

I was simply quoting the text on the licensing page, with no intended
implications, actually.  But it turned out that I *was* confused.  Thanks
for setting me straight.

  However, it seems I didn't read the document carefully enough, as it goes
  on to say
  
However, if you have written a program that uses QPL-covered
library (called FOO), and you want to release your program under
the GNU GPL, you can easily do that. You can resolve the conflict
for your program by adding a notice like this to it:
  
  As a special exception, you have permission to link this program
  with the FOO library and distribute executables, as long as you
  follow the requirements of the GNU GPL in regard to all of the
  software in the executable aside from FOO.
  
  which is almost exactly what you quoted from the Cygwin licensing page.
  So I guess we're ok.  As soon as I work out the packaging bugs, I'll ITP
  O'Caml.
 
  No, it is not the same thing.  The exception in the cygwin licensing
  allows other licenses to still have effect as long as they adhere to
  the open source definitions mentioned.  The GPL doesn't trump these
  licenses, although if you adhere to the GPL, then that's all 

Re: Heads-Up: tempfile missing (Attn: findutils, bzip2 maintainers)

2004-08-27 Thread Igor Pechtchanski
On Thu, 26 Aug 2004, Charles Wilson wrote:

 Igor Pechtchanski wrote:

  Hi, all,
 
  I just noticed that /bin/updatedb (from findutils) and /bin/bzdiff (from
  bzip2) use tempfile, which is non-POSIX, and is missing under Cygwin.

 Noted, thanks.  Will fix in next release.

Chuck,

FWIW, I already have the fix, and asked the upstream maintainer whether
he'll accept patches.  Just in case, the patch is attached.
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!

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw--- bzdiff-orig 2003-08-09 02:35:45.0 -0400
+++ bzdiff  2004-08-26 15:24:33.263466500 -0400
@@ -37,7 +37,7 @@ if test -z $FILES; then
echo Usage: $prog [${comp}_options] file [file]
exit 1
 fi
-tmp=`tempfile -d /tmp -p bz` || {
+tmp=`mktemp /tmp/bzXX || tempfile -d /tmp -p bz || echo /tmp/bz$$` || {
   echo 'cannot create a temporary file' 2
   exit 1
 }


Re: Gnome for cygwin

2004-08-27 Thread Reini Urban
Gerrit P. Haase schrieb:
Yaakov schrieb:
In addition, I've ported bindings for C++ (gtkmm.org), Perl, Python,
Ruby, and Tcl.  I would imagine that at least the C++ and Python
bindings would be generally useful.
Perl is the most important;)
Well, php is also quite nice, but there already
exist precompiled win32 php-gtk packages.
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/


Re: RFC: Packaging O'Caml

2004-08-27 Thread Gerrit P. Haase
Igor schrieb:

 Executables compiled by O'Caml cannot be compiled in general, they are

 mixed mode, text/binary code and stripping removes the text... have you
 opened a binary with an editor already?  Looks funny.

 Yep.  I assume you mean stripped above, but thanks for the pointers.  I
 should be able to ITP ocaml at some point in the next week or so.
 Igor

Oops, yes of course, fingers too fast for my slow brain;)


Gerrit
-- 
=^..^=



Re: setup 2.427 runtime error

2004-08-27 Thread David A. Cobb
Shaffer, Kenneth wrote:
I'm getting a setup.exe runtime error when trying to install from a local
disk (after downloading from the internet) just after the MD5 checks.
 

I just reported a possibly similar situation; discussions of setup.exe 
mostly take place on cygwin-apps list.
I'm taking the liberty of cc'ing there and resetting the Reply-to header

I thought it was about time I upgrade.
My current cygwin1.dll version 1.5.5 (does setup use the dll?)
 

NO, setup is a MSWindows application.  The current is 2.4something.  
Yes, you should certainly pull down the latest.

--
Ken Shaffer

- - - - - - -  Appended by Scientific-Atlanta, Inc.  - - - - - - -  
This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer.

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

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

begin:vcard
fn:David A. Cobb
n:Cobb;David A.
adr:;;7 Lenox Av #1;West Warwick;RI;02893-3918;USA
email;internet:[EMAIL PROTECTED]
title:Independent Software Consultant
note:PGP Key ID#0x4C293929 effective 01/28/2004
x-mozilla-html:TRUE
version:2.1
end:vcard



Please upload: ssmtp-2.60.9-3

2004-08-27 Thread Robert R Schneck-McConnell
Please upload a new version of ssmtp:

http://math.berkeley.edu/~schneck/cygwin/ssmtp/ssmtp-2.60.9-3.tar.bz2
http://math.berkeley.edu/~schneck/cygwin/ssmtp/ssmtp-2.60.9-3-src.tar.bz2

ssmtp-2.60.4-3 can be kept as prev and other old versions deleted.

Thanks!

Robert


Offscreen rendering

2004-08-27 Thread Kei Okada
Hi,

I have a Cygwin/X installed on a XP and try to use a offscreen rendering
function.

Attached sample program works well on a Linux X server (Xfree 4.3.0),
but it does not works on  a Cygwin/X both XWin and XWin_GL.

When I use XWin_GL, the program crashes at the first
 glXMakeCurrent(dp, GPix, Ctxt) with the message like

change current
X Error of failed request:  GLXBadContext
 Major opcode of failed request:  146 (GLX)
 Minor opcode of failed request:  5 (X_GLXMakeCurrent)
 Serial number of failed request:  1143
 Current serial number in output stream:  114

and When I use XWin, the X server crashes at the second
 glXMakeCurrent(dpy, glwin, cx).

Messages on the shell invoking the sample program are

 save buffer...
 done
 X connection to localhost:0.0 broken (explicit kill or server shutdown).

and the messages on the x server shell are

Signal 11
 login:  fatal IO error 32 (Broken pipe) or KillClient on X server ":0.0"
 X connection to :0.0 broken (explicit kill or server shutdown).
 giving up.
 xinit:  Connection refused (errno 111):  unable to connect to X server
 xinit:  No such process (errno 3):  unexpected signal 2.

What I am doing wrong? Does someone know the solution?

Thanks
Kei Okada


//http://www.nakadai.com/~nakadai/opengl/FAQ/openglfaq.html#faq-doc-4-18
/*
 * Example of an X Window System OpenGL program.
 * OpenGL code is taken from auxdemo.c in the Platform SDK
 */
#include stdio.h
#include stdlib.h
#include unistd.h
#include X11/Xlib.h
#include X11/Xutil.h
#include X11/keysym.h
#include GL/glx.h
#include GL/gl.h
#include GL/glu.h

/* X globals, defines, and prototypes */
Display *dpy;
Window glwin;
//static int attributes[] = {GLX_DEPTH_SIZE, 16, GLX_DOUBLEBUFFER, None};
static int attributes[] = {GLX_RGBA, GLX_RED_SIZE, 1, GLX_GREEN_SIZE, 1,
  GLX_BLUE_SIZE, 1, GLX_DOUBLEBUFFER, GLX_DEPTH_SIZE, 1, 0};

#define SWAPBUFFERS glXSwapBuffers(dpy, glwin)
#define BLACK_INDEX 0
#define RED_INDEX   1
#define GREEN_INDEX 2
#define BLUE_INDEX  4
#define WIDTH   300
#define HEIGHT  200


/* OpenGL globals, defines, and prototypes */
GLfloat latitude, longitude, latinc, longinc;
GLdouble radius;

#define GLOBE1
#define CYLINDER 2
#define CONE 3

GLvoid resize(GLsizei, GLsizei);
GLvoid initializeGL(GLsizei, GLsizei);
GLvoid drawScene(GLvoid);
void polarView( GLdouble, GLdouble, GLdouble, GLdouble);

void saveScene();

static Bool WaitForMapNotify(Display *d, XEvent *e, char *arg)
{
if ((e-type == MapNotify)  (e-xmap.window == (Window)arg)) {
return GL_TRUE;
}
return GL_FALSE;
}

int
main(int argc, char **argv)
{
XVisualInfo*vi;
Colormapcmap;
XSetWindowAttributes swa;
GLXContext  cx;
XEvent  event;
GLboolean   needRedraw = GL_FALSE, recalcModelView = GL_TRUE;
int dummy;

_Xdebug = 1;
dpy = XOpenDisplay(NULL);
XSynchronize(dpy, 0);
if (dpy == NULL){
fprintf(stderr, "could not open display\n");
exit(1);
}

if(!glXQueryExtension(dpy, dummy, dummy)){
fprintf(stderr, "could not open display");
exit(1);
}

/* find an OpenGL-capable Color Index visual with depth buffer */
vi = glXChooseVisual(dpy, DefaultScreen(dpy), attributes);
printf("vi   = %p, depth = %d\n", vi, vi-depth);
if (vi == NULL) {
fprintf(stderr, "could not get visual\n");
exit(1);
}

XVisualInfo*Visp;
int attrList[10], n=0;
attrList[n++] = GLX_RGBA;
attrList[n++] = GLX_RED_SIZE; attrList[n++] = 8;
attrList[n++] = GLX_GREEN_SIZE; attrList[n++] = 8;
attrList[n++] = GLX_BLUE_SIZE; attrList[n++] = 8;
attrList[n++] = GLX_DEPTH_SIZE; attrList[n++] = 1;
attrList[n++] = None;
Visp = glXChooseVisual(dpy,
  DefaultScreen(dpy), attrList);
printf("Visp = %p, depth = %d\n", Visp, Visp-depth);

static Pixmap XPix = 0;
static GLXPixmap GPix = 0;
XPix = XCreatePixmap(dpy, RootWindow(dpy, Visp-screen), WIDTH, HEIGHT,
Visp-depth);
printf("XPix = %p\n", XPix);

GPix = glXCreateGLXPixmap(dpy, Visp, XPix);
printf("GPix = %p\n", GPix);


/* create an OpenGL rendering context */
cx = glXCreateContext(dpy, vi,  None, GL_TRUE);  // direct
//cx = glXCreateContext(dpy, vi,  None, GL_FALSE);
printf("cx   = %p\n", cx);

GLXContext  Ctxt;
Ctxt = glXCreateContext(dpy, Visp,  None, GL_FALSE); // through X server
//Ctxt = 

Re: Offscreen rendering

2004-08-27 Thread Alexander Gottwald
On Fri, 27 Aug 2004, Kei Okada wrote:

 Hi,
 
 I have a Cygwin/X installed on a XP and try to use a offscreen rendering
 function.
 
 Attached sample program works well on a Linux X server (Xfree 4.3.0),
 but it does not works on  a Cygwin/X both XWin and XWin_GL.
 
 When I use XWin_GL, the program crashes at the first
  glXMakeCurrent(dp, GPix, Ctxt) with the message like
 
 change current
 X Error of failed request:  GLXBadContext
  Major opcode of failed request:  146 (GLX)
  Minor opcode of failed request:  5 (X_GLXMakeCurrent)
  Serial number of failed request:  1143
  Current serial number in output stream:  114
 
 and When I use XWin, the X server crashes at the second
  glXMakeCurrent(dpy, glwin, cx).
 
 Messages on the shell invoking the sample program are

I've tested it with xorg-x11-6.7.99.902 and the program failed with the second 
ChooseVisual.  I've have my system running in 16bit color depth. Maybe this 
has an effect too. What colordepth is your system running on?

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


Re: Offscreen rendering

2004-08-27 Thread Kei Okada
Hi,

Thanks for replay.
I'm testing with xorg-x11-xwin-6.7.0.0-12 with 24bit color depth.

JSKT40 [~/work/glut] % ./test4.exe
vi   = 0x100e5060, depth = 24
Visp = 0x100e5600, depth = 24
XPix = 0x21
GPix = 0x22
cx   = 0x100e5798
Ctxt = 0x101261e8

Kei Okada

- Original Message - 
From: Alexander Gottwald [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, August 27, 2004 6:33 PM
Subject: Re: Offscreen rendering


 On Fri, 27 Aug 2004, Kei Okada wrote:

  Hi,
 
  I have a Cygwin/X installed on a XP and try to use a offscreen rendering
  function.
 
  Attached sample program works well on a Linux X server (Xfree 4.3.0),
  but it does not works on  a Cygwin/X both XWin and XWin_GL.
 
  When I use XWin_GL, the program crashes at the first
   glXMakeCurrent(dp, GPix, Ctxt) with the message like
 
  change current
  X Error of failed request:  GLXBadContext
   Major opcode of failed request:  146 (GLX)
   Minor opcode of failed request:  5 (X_GLXMakeCurrent)
   Serial number of failed request:  1143
   Current serial number in output stream:  114
 
  and When I use XWin, the X server crashes at the second
   glXMakeCurrent(dpy, glwin, cx).
 
  Messages on the shell invoking the sample program are

 I've tested it with xorg-x11-6.7.99.902 and the program failed with the second
 ChooseVisual.  I've have my system running in 16bit color depth. Maybe this
 has an effect too. What colordepth is your system running on?

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






If you didn't you are losing dol-lars

2004-08-27 Thread Did-U-ReFi
See how you can slash your payments by $500 or more per month

http://www.ezzalh.com/



performance question

2004-08-27 Thread Eric S. Johansson
this is not directly related to cygwin/X11 but it will be something that 
comes up once in a while.

Sometimes performance just sucks.  sometimes I will sit there and watch 
applications redraw bits over 10s of seconds.  Yet on my ethernet 
interfaces, I have no errors, machine load averages are around .2, 
network utilization is relatively low.  Obviously something is not right 
but I'm not even sure where to start looking.

like I said.  Not directly related but if there are any references I can 
look at, it would be most appreciated.

---eric



src/winsup/cygwin ChangeLog syscalls.cc

2004-08-27 Thread phumblet
CVSROOT:/cvs/src
Module name:src
Changes by: [EMAIL PROTECTED]   2004-08-28 01:37:28

Modified files:
winsup/cygwin  : ChangeLog syscalls.cc 

Log message:
2004-08-28  Pierre Humblet [EMAIL PROTECTED]

* syscalls.cc (ftruncate64): On 9x, call write with a zero length
to zero fill when the file is extended.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.2541r2=1.2542
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/syscalls.cc.diff?cvsroot=srcr1=1.343r2=1.344



Re: [Patch]: Truncate

2004-08-27 Thread Pierre A. Humblet
At 01:00 PM 8/23/2004 +0200, Corinna Vinschen wrote:
Except for this comment, which isn't valid (see above), please check it in.

Done. But here is another simple patch taking care of your concern that
we can fail while zero filling, leaving the file system filled to capacity.

2004-08-28  Pierre Humblet [EMAIL PROTECTED]

* fhandler.cc (fhandler_base::write): In the lseek_bug case, set EOF
before zero filling. Combine similar error handling statements. 


Index: fhandler.cc
===
RCS file: /cvs/src/src/winsup/cygwin/fhandler.cc,v
retrieving revision 1.203
diff -u -p -r1.203 fhandler.cc
--- fhandler.cc 19 Aug 2004 15:47:51 -  1.203
+++ fhandler.cc 28 Aug 2004 01:37:53 -
@@ -815,11 +815,17 @@ fhandler_base::write (const void *ptr, s
 back and fill in the gap with zeros. - DJ
 Note: this bug doesn't happen on NT4, even though the
 documentation for WriteFile() says that it *may* happen
-on any OS. */
+on any OS. */ 
+ /* Check there is enough space */
+ if (!SetEndOfFile (get_output_handle ()))
+   {
+ __seterrno ();
+ return -1;
+   }
  char zeros[512];
  int number_of_zeros_to_write = current_position - actual_length;
  memset (zeros, 0, 512);
- SetFilePointer (get_output_handle (), 0, NULL, FILE_END);
+ SetFilePointer (get_output_handle (), actual_length, NULL,
FILE_BEGIN);
  while (number_of_zeros_to_write  0)
{
  DWORD zeros_this_time = (number_of_zeros_to_write  512
@@ -831,6 +837,7 @@ fhandler_base::write (const void *ptr, s
  __seterrno ();
  if (get_errno () == EPIPE)
raise (SIGPIPE);
+   err:
  /* This might fail, but it's the best we can hope for */
  SetFilePointer (get_output_handle (),
current_position, NULL,
  FILE_BEGIN);
@@ -840,10 +847,7 @@ fhandler_base::write (const void *ptr, s
  if (written  zeros_this_time) /* just in case */
{
  set_errno (ENOSPC);
- /* This might fail, but it's the best we can hope for */
- SetFilePointer (get_output_handle (),
current_position, NULL,
- FILE_BEGIN);
- return -1;
+ goto err;
}
  number_of_zeros_to_write -= written;
}



Re: how to re-build Cygwin core package?

2004-08-27 Thread Gernot Hillier
Hi!

Am Mittwoch, 25. August 2004 13:07 schrieb Gernot Hillier:
 how to re-build Cygwin core package?

Just as reference for others - I now did it this way:

1.  Install Cygwin 2004-06-24, start bash

2.  Unpack the Cygwin core source package:

tar xvjf /cygdrive/e/release/cygwin/cygwin-1.5.10-3-src.tar.bz2

3.  Apply the needed patch (from 
http://www.cygwin.com/ml/cygwin-patches/2004-q3/msg00039.html):

cd cygwin-1.5.10-3/winsup/cygwin  patch -p0  /path/to/root.diff

4.  It's necessary to build Cygwin in an extra path, so create one and change 
to it:

cd ../../..  mkdir obj  cd obj

5.  To avoid Cygwin to overwrite the files of your make environment, an install 
prefix is used:

../cygwin-1.5.10-3/configure --prefix=/fake/usr --sysconfdir=/fake/etc \
 --libexecdir=/fake/usr/sbin --localstatedir=/fake/var \
 --datadir=/fake/usr/share --mandir=/fake/usr/share/man \
 --infodir=/fake/usr/share/info

6.  Build and install the new Cygwin to the install prefix path given above:

make  make install

7.  Remove debug symbols from all executables:

cd /fake  find . -type f -exec strip {} \;

8.  Correct some file locations:

mv  usr/i686-pc-cygwin/bin/* usr/bin/
mv  usr/i686-pc-cygwin/lib/* usr/lib/
rm -rf usr/i686-pc-cygwin/bin usr/i686-pc-cygwin/lib usr/etc
mv  usr/i686-pc-cygwin/* usr/

9.  Create the w32api package:

tar cjf w32api-20040624-1.tar.bz2 usr/include/w32api usr/lib/w32api

10. Remove the files which belong to the w32api package from our tree:

rm -rf /fake/usr/include/w32api /fake/usr/lib/w32api

11. Create the mingw-runtime package:

tar cjf mingw-runtime-20040624-1.tar.bz2 usr/bin/mingwm10.dll \
   usr/doc/mingw-runtime usr/include/mingw usr/lib/mingw

12. Remove the files which belong to the w32api package from our tree:

rm -rf /fake/usr/bin/mingwm10.dll /fake/usr/doc/mingw-runtime \
   /fake/usr/include/mingw /fake/usr/lib/mingw

13. Remove files which are distributed with other packages (but are included 
in the cygwin source package for boot-strapping) or should not be distributed 
at all:

rm -rf /fake/usr/include/iconv.h # comes also with libiconv
rm -rf /fake/usr/include/unctrl.h # comes also with libncurses-devel
rm -rf /fake/usr/share/info/configure.info-1 # auto-created by info tool
rm -rf /fake/usr/lib/libiberty.a # comes also with binutils

14. Three files were not built and would need extra effort (i.e. compiling 
other libraries be-fore the Cygwin package). Take them from the already 
installed Cygwin distribution:

cp /usr/bin/dumper.exe usr/bin/
cp /usr/share/info/libc.info usr/share/info/
cp /usr/share/info/libm.info usr/share/info/

15. Finally, the cygwin package itself can be created:

tar cjf cygwin-20040624-1.tar.bz2 etc/ usr/

16. Now, the created packages can be moved to the Cygwin installation CD-ROM 
to release/cygwin/, release/mingw-runtime/ and release/w32api/ and the file 
names, sizes and md5sums in setup.ini modified accordingly so that setup.exe 
will in-stall the new core packages in the future.

HTH anyone...

-- 
Bye,

Gernot Hillier
CT SE 2
Siemens AG, Mch P

--
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: configure: error: invalid package name: extra-includes

2004-08-27 Thread Peter Ekberg
Gerrit wrote:

 Peter wrote:
 
  The last time I tried to build ggi-project failed with compilation
  errors.  That probably means that I was able to configure it 
  or parts of
  it.
 
  I have spent some time on getting libggi working. I believe 
 it does work
  now, you have to use the cvs version though as the released 
 versions do
  not have all the patches that has been commited lately.
 
  The problem is not that I can't get it to work. It works 
 *most* of the
  time. *Sometimes* there's this mysterious failure though. 
 I'm tired of
  adding spaces to the configure command and I would also like
  ./config.status --recheck to work reliably.
 
  What does an extra space between configure arguments really 
 change? This
  is friggin' strange.
 
  I always update the autogenerated part when a package is going to
  build shared libraries, try: autoreconf --install --force 
 --verbose in
  the source directory.  Well, you do this anyway when building 
  from CVS?
 
  No, there is an autogen.sh script included though. It 
 basically boils
  down to this:
  aclocal
  autoheader
  automake --add-missing
  autoconf
 
  Anyway, I tried:
  WANT_LIBTOOL_VER=1.5.6 WANT_AUTOMAKE_VER=1.8.5 
 WANT_AUTOCONF_VER=2.59
  autoreconf --install --force --verbose
  and I can still reproduce the bug. I can configure with the 
 correct
  number of extra spaces though, but it later bugs out during 
 make so that
  is a definite step backwards.
 
  Which version of configure, automake, libtool are you using?
 
  autoconf 2.59 and automake 1.8.5 and an old libtool 
 (libtool is included
  in libgii, I've had to throw quite a few patches at it to 
 make it work
  with cygwin/mingw. I reported a dlltool/dllwrap problem to this list
  earlier related to this and got the advise to use gcc -shared).
 
 autoreconf -force -install also  installs the new libtool, very good
 idea to do it, since patching the included libtool is error prone.

It might be a good idea in general, but not in this case IMO. I'm no
libtool guru though, so the build problem autoreconf causes might be
easy to fix.

The reason I have patched libtool is that the ggi maintainers are
waiting until after their next release to bring in the 1.5 series of
libtool. I decided not to wait for that.

 I'll try to build the latest release, where can I find a summary about
 all the recent patches / fixes?

I don't think there's a summary on the level you'd be interested in,
other than the cvs log of these files:
http://cvs.sf.net/viewcvs.py/ggi/ggi-core/libgii/m4/libtool.m4
http://cvs.sf.net/viewcvs.py/ggi/ggi-core/libgii/ltmain.sh
Look for commits by me, or commits by cegger referencing me as the
originator. Hmm, when scanning through that list, it looks as if most of
my changes are mingw related. The bottom line is that I have not kept
track of the changes.

It is entirely possible that the changes that has been made to libtool
are bogus. It is, as you say, error prone to fiddle with libtool.
Especially when you, as is the case for me, don't really know what
you're doing and are just making educated guesses. I did make it work
though.

There has also been changes made to the configure.in file
http://cvs.sf.net/viewcvs.py/ggi/ggi-core/libgii/configure.in

Most changes have been made to other parts of the tree but as I see it
those can't be related to this script argument parsing bug.

Otherwise, these pages list high level changes:
http://www.ggi-project.org/packages/libgii.html
http://www.ggi-project.org/packages/libggi.html

Here are some build instruction if you are going to go for the build or
gii/ggi. You will not need the DirectX SDK to reproduce the bug, do
however include the --with-extra-includes option, it is a good way to
trigger the bug. The bug can be triggered with other options as well
though.
http://cvs.sf.net/viewcvs.py/ggi/ggi-core/libgii/doc/README.directx?view
=markup
http://cvs.sf.net/viewcvs.py/ggi/ggi-core/libggi/doc/README.directx?view
=markup

All of the above is perhaps too much info to sift through and if you ask
me, blaming autotools is a red herring. The generated configure script
looks ok to me, and to further support that claim I have tested my
previosly provided steps to reproduce on Solaris, AIX, Linux and mingw
and have not been able to trigger the bug. That is, I have moved the
configure script that has been generated on and fails on cygwin to those
platforms and there is no problem. On the other hand, I can easily
reproduce on cygwin; that usually happens on the 1st, 2nd or sometimes
3rd attempt. Therefore, if you ask me, the problem is in script
execution/invokation, not in script generation.

Cheers,
Peter


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



Newbie: cygrunsrv using strange PATH variable

2004-08-27 Thread Alder
After removing a previous Cygwin installation from my system and 
reinstalling from the harddrive using Setup, running cygrunsrv from any 
account (administrator or user) produces a Windows dialog reporting that 
the DLL cannot be found in the path:

D:\cygwin\usr\sbin;.;Windows system folders;.
I'm pretty sure I have my bash startup files in the same state as in my 
previous installation, but here are the relevant bits from these files 
to show how the PATH variable is created:

[/etc/profile]
PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH:.
[~/.bash_profile]
PATH=~/bin:${PATH}
[~/.bashrc]
empty
If I echo the PATH variable when I first log in with rxvt, it shows:
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/System32/Wbem:/cygdrive/c/Program 
Files/ATI Technologies/ATI Control Panel:/cygdrive/d/Program 
Files/Common Files/GTK/2.0/bin:.

My question is, then, where is cygrunsrv pulling its PATH information 
from and how do I get it to recognize the environment of the shell its 
run in?

Many thanks,
Alder
--
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/


help on makefile

2004-08-27 Thread Yung Leem
Hello to all cygwin experts,

I am a newbie cygwin user that's having a problem compiling a java source.
I am running a makefile that's calling javac -cp [some_dir] 
/cygdrive/c/blah/myclass.java
that's complaining about not being able to find that file.  Being familiar with unix 
development,
I assumed that the shell process would spawn the javac process, but I think my guess 
is wrong.
What really seems to happen is that javac gets called from Windows XP (the system I am 
using)
and javac (from windows xp process) tries to compile that 
/cygdrive/c/blah/myclass.java file, and
obviously fails to find that file.  What are the options I have?

I am really freaking out that something like LD_LIBRARY_PATH, CLASSPATH, or PATH 
variables use :
colon as a delimeter, but windows file systems recognize : as a drive name not as a 
delimeter. 
So having something like export CLASSPATH=c:/windows:c:/temp:c:/blah:$CLASSPATH will 
be a
nightmare.  I need some advise.  Thanks in advance for answering my question.



___
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

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

2004-08-27 Thread Arash Partow
Corinna wrote:
If you distribute a Cygwin DLL binary, you must also provide the sources
of the DLL.  It's not enough to point to the Cygwin web page.  For further
details, see http://cygwin.com/licensing.html
And also as I understand the GPL, you should together along with the source
to the cygwin components also provide the source to your commercial 
application,
because according to the GPL it is considered a derivative work.


Arash Partow
__
Be one who knows what they don't know,
Instead of being one who knows not what they don't know,
Thinking they know everything about all things.
http://www.partow.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: F_ULOCK, F_LOCK, F_TLOCK, F_TEST missing in unistd.h

2004-08-27 Thread Corinna Vinschen
On Aug 26 22:48, Gary R. Van Sickle wrote:
 Well, I just did my 2 minute due diligence and looked up the difference
 between advisory and mandatory file locking.  Did I read right?  Does
 advisory locking actually in no way prevent write access to the locked
 file unless all the interested processes also explicitly use lockf() etc?

Yes.

 If so (and I must be missing something there), couldn't this be implemented
 in Windows simply as named mutexes, with the names being some
 suitably-chosen derivative of the file name?  You wouldn't even need to do
 any explicit sharing between Cygwin processes then.

Keep in mind that it's not per-file locking but record locking.  So you'd
need mutex names which reflect the locked region in the file as well.  But
then you'd need one mutex per locked record.  How do you find overlapping
regions hold by other processes?  To make it worse, flock(2) locks are
preserved across forks, so both processes hold the lock together.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.

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



Re: pthread.h macro bug

2004-08-27 Thread Corinna Vinschen
On Aug 27 02:30, Patrick Graebel wrote:
 Hi!
 
 The macros for pthread_cleanup_push/pop are corrupt, so that g++ 
 (version 3.3.3) fails on '}'. Also there seems to be a space too much 
 between macro name and macro opening bracket.

$ cat  pt.cc EOF
#include pthread.h

void
hdl (void *arg)
{
}

int
main()
{
  pthread_cleanup_push (hdl, 0);
  pthread_cleanup_pop (0);
  return 0;
}
EOF
$ g++ -v
[...]
gcc version 3.3.3 (cygwin special)
$ g++ -c pt.cc
$


What's the problem?  http://cygwin.com/problems.html


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.

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



Re: Very slow SCSI tape drive with cygwin/Win2kPro

2004-08-27 Thread Bill Nugent
Hi Corinna,

Setting tar's -b size up resulted in a radical increase.  Still not 
streaming but real close and workable.  Reading in a 100GB tape with 
500MB to 1,500MB files should take about three or four hours instead of 
three weeks!  I'm going to keep experimenting to see if I can get it to 
stream which should bring it down to 2 hours.  Thank you!

In experimenting I found '-b 20480' was too large and did not work.  I 
have not had a chance to determine at what size tar breaks.

Any idea why I can't set the block size greater than 32K using
mt setblk?  We have a number of tapes which have a 64K block size and 
I'd rather having to rewrite them.

 Thank you again,
 Bill

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



Fw: Problem with bash colorin'

2004-08-27 Thread boxforsr
Hello  ehhmmm excuse me ... I have a problem concernin' bash
implementation  And the problem is: My bash gone bloody ... yes,
that's right everything that was white became red  and everything that
was grey became cherry-alike .(I'm talking bout fonts)... That happened
without any reason  just after the reboot  I did reinstalled it from
zero , but nothing changed  If there is someone who knows the solution ,
please respond 
Thank U..


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



Re: Problem with bash colorin'

2004-08-27 Thread boxforsr
OK OKI'm lamer  sorry gotta change standard win term settings
. BUT HOW DID IT GONE RED? I don't remember that I changed defaults 
strange ...


- Original Message - 
From: boxforsr [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 27, 2004 3:48 PM
Subject: Fw: Problem with bash colorin'


 Hello  ehhmmm excuse me ... I have a problem concernin' bash
 implementation  And the problem is: My bash gone bloody ... yes,
 that's right everything that was white became red  and everything that
 was grey became cherry-alike .(I'm talking bout fonts)... That happened
 without any reason  just after the reboot  I did reinstalled it
from
 zero , but nothing changed  If there is someone who knows the solution
,
 please respond 
 Thank U..



--
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: cygrunsrv -S mountd fails: Error starting a service: QuerySer viceStatus: Win32 error 1062 ?

2004-08-27 Thread Povolotsky, Alexander
Hi Hugh,

Yes, I did run nfs-server-config prior to cygrunsrv commands 

It worked for me when I told it to install mountd, nfsd and portmap as
Windows services NOT as inetd or xinetd services.

but I ran it without any arguments - I am not sure how did you run it per
above words of yours: I told it ?

I have:

nfs-server  2.2.47-2  (same as yours)
cygrunsrv   1.0-1 (you have 0.96-2)

I just downloaded and installed those yesterday ...

When I look for installed services (I ran Windows XP Pro):
(Right click on My Computer-Manage-Services and Applications
-Services)
in the list of services I see Cygwin mountd and Cygwin nfsd but I don't
see Portmap service (what is the exact name for that service ?).

By the way, today I just rebooted my computer and now both Cygwin mountd
and Cygwin nfsd (which are automatic) are shown as started and running ...
So does it mean I om OK now ?

Thanks,
Alex

-Original Message-
From: Hugh Sparks [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 9:33 PM
To: Povolotsky, Alexander
Subject: Re: cygrunsrv -S mountd fails: Error starting a service:
QueryServiceStatus: Win32 error 1062 ?


 Another idea: Take a look at this program:
 
 /usr/bin/nfs-server-config

I did run that program.

It worked for me when I told it to install mountd, nfsd and portmap as
Windows services NOT as inetd or xinetd services.

Use the Task Damager ControlAltDelete to see if you have the
portmap service running before you try to start nfsd or mountd. Start it
by hand if necessary.

Also let me know if you have more recent software than I do.
If necessary, I will update my software to match yours and then
repeat the installation procedure to see what has broken.

-Hugh Sparks, [EMAIL PROTECTED]
-Original Message-
From: Hugh Sparks [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 9:24 PM
To: Povolotsky, Alexander
Subject: Re: cygrunsrv -S mountd fails: Error starting a service:
QueryServiceStatus: Win32 error 1062 ?


 Do you have any idea (as an author of the How To) ?

 Cygwin mountd
 Cygwin nfsd

I'll try to give you a longer reply tomorrow, but here are
some quick ideas:

 Subject: cygrunsrv -S mountd fails: Error starting a service:
 QueryServiceStatus: Win32 error 1062 ?

The services nfsd and mound both depend on the portmap service.
Your error 1062 translates to The service has not been started.
My guess is that the portmap service is not installed or is not running.

It might help me to know about the versions of the cygwin packages you
are using. I'm running:

nfs-server-2.2.47-2
cygrunsrv-0.96-2

If you have newer versions than I do, you may be seeing a new bugs
of some kind. If you have older packages, you may be seeing older
bugs that have been fixed.

Another idea: Take a look at this program:

/usr/bin/nfs-server-config

If you run this, it is supposed to help you configure the nfs server.
It's a shell script, so you can study what it is trying to do with your
text editor.

I'll try to spend more time with you on this over the weekend.

-Hugh Sparks, [EMAIL PROTECTED]

Hi Hugh,

Do you have any idea (as an author of the How To) ?

By the way are your instructions in How To :

Starting the server
Run: 

Start Menu/Programs/Administrative Tools/Services There are three
services associated with NFS: 

Cygwin mountd
Cygwin nfsd
**
specifically Windows 2000 related ?

On Windows XP the equivalent to above would be:

Right click on My Computer-Manage-Services and Applications -Services

Using above (as well as using alternative cygrunsrv -S mountd from the
cygwin shell - see below) fail start the Cygwin mountd service for me ...

Thanks,
Alex
-Original Message-
From: Povolotsky, Alexander 
Sent: Thursday, August 26, 2004 6:55 PM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject: cygrunsrv -S mountd fails: Error starting a service:
QueryServiceStatus: Win32 error 1062 ?

Hi David,

I am also getting the same error as you (an I also I have XP Pro) - did you
get any explanation for it ?

[EMAIL PROTECTED] /cygdrive/c/cygwin/etc
$ cygrunsrv -S portmap

my entry in /etc/export is set to:
~/fadsroot 192.168.0.0/255.255.255.0(ro, no_root_squash)

but I do not have yet the board with IP address 192.168.0.0 configured and
network connected to the laptop - so could I start mountd daemon (service) ?
-
 when i do that I repeatedly get error ...

[EMAIL PROTECTED] /cygdrive/c/cygwin/etc
$ cygrunsrv -S mountd
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062
The service has not been started.

System Event Viewer shows:
Event Type: Error
Event Source:   Service Control Manager
Event Category: None
Event ID:   7034
Date:   8/26/2004
Time:   5:52:38 PM
User:   N/A
Computer:   

The System event viewr's description (in Event Properties):
The Cygwin mountd service tterminated unexpectedly. 

Re: Very slow SCSI tape drive with cygwin/Win2kPro

2004-08-27 Thread Corinna Vinschen
On Aug 27 07:13, Bill Nugent wrote:
 Hi Corinna,
 
 Setting tar's -b size up resulted in a radical increase.  Still not 
 streaming but real close and workable.  Reading in a 100GB tape with 
 500MB to 1,500MB files should take about three or four hours instead of 
 three weeks!  I'm going to keep experimenting to see if I can get it to 
 stream which should bring it down to 2 hours.  Thank you!
 
 In experimenting I found '-b 20480' was too large and did not work.  I 
 have not had a chance to determine at what size tar breaks.
 
 Any idea why I can't set the block size greater than 32K using
 mt setblk?  We have a number of tapes which have a 64K block size and 

So you didn't look into the `mt status 3' output?  I've marked it in my
original reply.  It's the Windows driver value for the maximum block size.
That has nothing to do with Cygwin.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.

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



BUG: mv on a mounted network drive

2004-08-27 Thread Colin JN Breame
Take a look at this output, 'cos it ain't right
$ pwd
/mnt/devserver_e/temp
$ mount
c:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type 
system (binmode)
\\devserver\dev_e_drive on /mnt/devserver_e type system (binmode)
c:\cygwin\bin on /usr/bin type system (binmode)
c:\cygwin\lib on /usr/lib type system (binmode)
c:\cygwin on / type system (binmode)
c: on /mnt/c type system (binmode)
e: on /mnt/e type system (binmode)
$ mkdir temp
$ ls
temp
$ mv * temp
mv: cannot create directory 
`temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp/temp': 
Invalid argument

temp now contains a subdirectory called temp which contains a 
subdirectory called temp...
This doesn't seem to happen on local mounts.

--
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: help on makefile

2004-08-27 Thread Nicolas Roche
Yung Leem wrote:
Hello to all cygwin experts,
I am a newbie cygwin user that's having a problem compiling a java source.
I am running a makefile that's calling javac -cp [some_dir] 
/cygdrive/c/blah/myclass.java
that's complaining about not being able to find that file.  Being familiar with unix 
development,
I assumed that the shell process would spawn the javac process, but I think my guess 
is wrong.
What really seems to happen is that javac gets called from Windows XP (the system I am 
using)
and javac (from windows xp process) tries to compile that 
/cygdrive/c/blah/myclass.java file, and
obviously fails to find that file.  What are the options I have?
your javac program is not a cygwin program so it won't understand the cygwin 
like path. One solution is to use cygpath -w to translate cygwin-like path to 
windows-like path.

I am really freaking out that something like LD_LIBRARY_PATH, CLASSPATH, or PATH variables use :
colon as a delimeter, but windows file systems recognize : as a drive name not as a delimeter. 
So having something like export CLASSPATH=c:/windows:c:/temp:c:/blah:$CLASSPATH will be a
nightmare.  I need some advise.  Thanks in advance for answering my question.
Cygwin handle very well the path separators. If you do in cygwin bash
$ export CLASSPATH=c:/windows:c:/temp:c:/blah:$CLASSPATH
you can launch a windows shell from cygwin and see that the var have been 
translated correctly (: - ;)

Nicolas
--
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: pthread.h macro bug

2004-08-27 Thread Patrick Graebel
Thanks for giving me a hint!
I figured it out: both macros have to be used INSIDE a {} code body in 
the right order. So the use like a normal function fails.

Sorry for this redundant news entry :)
-Patrick

Corinna Vinschen wrote:
On Aug 27 02:30, Patrick Graebel wrote:
Hi!
The macros for pthread_cleanup_push/pop are corrupt, so that g++ 
(version 3.3.3) fails on '}'. Also there seems to be a space too much 
between macro name and macro opening bracket.

$ cat  pt.cc EOF
#include pthread.h
void
hdl (void *arg)
{
}
int
main()
{
  pthread_cleanup_push (hdl, 0);
  pthread_cleanup_pop (0);
  return 0;
}
EOF
$ g++ -v
[...]
gcc version 3.3.3 (cygwin special)
$ g++ -c pt.cc
$
What's the problem?  http://cygwin.com/problems.html
Corinna

--
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 nfs server

2004-08-27 Thread Povolotsky, Alexander
Hello Hugh,

I have:

cygrunsrv.exe (two of these - you have three instances ...)
rpc.nfsd.exe
rpc.mountd.exe

I do not have PORTMAP.EXE !

Try exporting some directories and see if you can mount them from your
Unix/Linux machine.

My Linux board is not ready yet (I am working now at home alone ... - no
other machines, besides the laptop and the board)
 - as soon as I will set my board up, I'll try.

Thanks,
Best Regards,
Alex

-Original Message-
From: Hugh Sparks [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 8:46 AM
To: Povolotsky, Alexander
Subject: Re: cygwin nfs server



 When I look for installed services (I run Windows XP Pro):
 (Right click on My Computer-Manage-Services and
Applications-Services)
 in the list of services I see Cygwin mountd and Cygwin nfsd but I
don't
 see Portmap service (what is the exact name for that service ?).

It shows up on my task list as PORTMAP.EXE (capital letters for some
reason.) It should get started automatically when nfsd and mountd are
started.

 By the way, today I just rebooted my computer and now both Cygwin mountd
 and Cygwin nfsd (which are automatic) are shown as started and running
... .
 So does it mean I am OK now ?

It sounds promising. Try exporting some directories and see if you can
mount them from your Unix/Linux machine.

I looked at my task list when nfsd is running. The following things seem
to be nfs-related:

PORTMAP.EXE
cygrunsrv.exe (three of these)
rpc.nfsd.exe
rpc.mountd.exe

-Hugh Sparks, [EMAIL PROTECTED]
-Original Message-
From: Povolotsky, Alexander 
Sent: Friday, August 27, 2004 8:06 AM
To: 'Hugh Sparks'
Cc: 'Robb, Sam'; '[EMAIL PROTECTED]'
Subject: RE: cygrunsrv -S mountd fails: Error starting a service:
QueryServiceStatus: Win32 error 1062 ?


Hi Hugh,

Yes, I did run nfs-server-config prior to cygrunsrv commands 

It worked for me when I told it to install mountd, nfsd and portmap as
Windows services NOT as inetd or xinetd services.

but I ran it without any arguments - I am not sure how did you run it per
above words of yours: I told it ?

I have:

nfs-server  2.2.47-2  (same as yours)
cygrunsrv   1.0-1 (you have 0.96-2)

I just downloaded and installed those yesterday ...

When I look for installed services (I ran Windows XP Pro):
(Right click on My Computer-Manage-Services and Applications
-Services)
in the list of services I see Cygwin mountd and Cygwin nfsd but I don't
see Portmap service (what is the exact name for that service ?).

By the way, today I just rebooted my computer and now both Cygwin mountd
and Cygwin nfsd (which are automatic) are shown as started and running ...
So does it mean I om OK now ?

Thanks,
Alex

-Original Message-
From: Hugh Sparks [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 9:33 PM
To: Povolotsky, Alexander
Subject: Re: cygrunsrv -S mountd fails: Error starting a service:
QueryServiceStatus: Win32 error 1062 ?


 Another idea: Take a look at this program:
 
 /usr/bin/nfs-server-config

I did run that program.

It worked for me when I told it to install mountd, nfsd and portmap as
Windows services NOT as inetd or xinetd services.

Use the Task Damager ControlAltDelete to see if you have the
portmap service running before you try to start nfsd or mountd. Start it
by hand if necessary.

Also let me know if you have more recent software than I do.
If necessary, I will update my software to match yours and then
repeat the installation procedure to see what has broken.

-Hugh Sparks, [EMAIL PROTECTED]
-Original Message-
From: Hugh Sparks [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 9:24 PM
To: Povolotsky, Alexander
Subject: Re: cygrunsrv -S mountd fails: Error starting a service:
QueryServiceStatus: Win32 error 1062 ?


 Do you have any idea (as an author of the How To) ?

 Cygwin mountd
 Cygwin nfsd

I'll try to give you a longer reply tomorrow, but here are
some quick ideas:

 Subject: cygrunsrv -S mountd fails: Error starting a service:
 QueryServiceStatus: Win32 error 1062 ?

The services nfsd and mound both depend on the portmap service.
Your error 1062 translates to The service has not been started.
My guess is that the portmap service is not installed or is not running.

It might help me to know about the versions of the cygwin packages you
are using. I'm running:

nfs-server-2.2.47-2
cygrunsrv-0.96-2

If you have newer versions than I do, you may be seeing a new bugs
of some kind. If you have older packages, you may be seeing older
bugs that have been fixed.

Another idea: Take a look at this program:

/usr/bin/nfs-server-config

If you run this, it is supposed to help you configure the nfs server.
It's a shell script, so you can study what it is trying to do with your
text editor.

I'll try to spend more time with you on this over the weekend.

-Hugh Sparks, [EMAIL PROTECTED]

Hi Hugh,

Do you have any idea (as an author of the How To) ?

By the way are 

Re: cygwin nfs server

2004-08-27 Thread boxforsr
Portmap is in another package... It is called SunRpc or smth

- Original Message - 
From: Povolotsky, Alexander [EMAIL PROTECTED]
To: 'Hugh Sparks' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; 'Robb, Sam' [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, August 27, 2004 5:05 PM
Subject: RE: cygwin nfs server


 Hello Hugh,

 I have:

 cygrunsrv.exe (two of these - you have three instances ...)
 rpc.nfsd.exe
 rpc.mountd.exe

 I do not have PORTMAP.EXE !

 Try exporting some directories and see if you can mount them from your
 Unix/Linux machine.

 My Linux board is not ready yet (I am working now at home alone ... - no
 other machines, besides the laptop and the board)
  - as soon as I will set my board up, I'll try.

 Thanks,
 Best Regards,
 Alex

 -Original Message-
 From: Hugh Sparks [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 27, 2004 8:46 AM
 To: Povolotsky, Alexander
 Subject: Re: cygwin nfs server



  When I look for installed services (I run Windows XP Pro):
  (Right click on My Computer-Manage-Services and
 Applications-Services)
  in the list of services I see Cygwin mountd and Cygwin nfsd but I
 don't
  see Portmap service (what is the exact name for that service ?).

 It shows up on my task list as PORTMAP.EXE (capital letters for some
 reason.) It should get started automatically when nfsd and mountd are
 started.

  By the way, today I just rebooted my computer and now both Cygwin
mountd
  and Cygwin nfsd (which are automatic) are shown as started and running
 ... .
  So does it mean I am OK now ?

 It sounds promising. Try exporting some directories and see if you can
 mount them from your Unix/Linux machine.

 I looked at my task list when nfsd is running. The following things seem
 to be nfs-related:

 PORTMAP.EXE
 cygrunsrv.exe (three of these)
 rpc.nfsd.exe
 rpc.mountd.exe

 -Hugh Sparks, [EMAIL PROTECTED]
 -Original Message-
 From: Povolotsky, Alexander
 Sent: Friday, August 27, 2004 8:06 AM
 To: 'Hugh Sparks'
 Cc: 'Robb, Sam'; '[EMAIL PROTECTED]'
 Subject: RE: cygrunsrv -S mountd fails: Error starting a service:
 QueryServiceStatus: Win32 error 1062 ?


 Hi Hugh,

 Yes, I did run nfs-server-config prior to cygrunsrv commands

 It worked for me when I told it to install mountd, nfsd and portmap as
 Windows services NOT as inetd or xinetd services.

 but I ran it without any arguments - I am not sure how did you run it per
 above words of yours: I told it ?

 I have:

 nfs-server  2.2.47-2  (same as yours)
 cygrunsrv   1.0-1 (you have 0.96-2)

 I just downloaded and installed those yesterday ...

 When I look for installed services (I ran Windows XP Pro):
 (Right click on My Computer-Manage-Services and Applications
 -Services)
 in the list of services I see Cygwin mountd and Cygwin nfsd but I
don't
 see Portmap service (what is the exact name for that service ?).

 By the way, today I just rebooted my computer and now both Cygwin mountd
 and Cygwin nfsd (which are automatic) are shown as started and running
...
 So does it mean I om OK now ?

 Thanks,
 Alex

 -Original Message-
 From: Hugh Sparks [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 26, 2004 9:33 PM
 To: Povolotsky, Alexander
 Subject: Re: cygrunsrv -S mountd fails: Error starting a service:
 QueryServiceStatus: Win32 error 1062 ?


  Another idea: Take a look at this program:
 
  /usr/bin/nfs-server-config

 I did run that program.

 It worked for me when I told it to install mountd, nfsd and portmap as
 Windows services NOT as inetd or xinetd services.

 Use the Task Damager ControlAltDelete to see if you have the
 portmap service running before you try to start nfsd or mountd. Start it
 by hand if necessary.

 Also let me know if you have more recent software than I do.
 If necessary, I will update my software to match yours and then
 repeat the installation procedure to see what has broken.

 -Hugh Sparks, [EMAIL PROTECTED]
 -Original Message-
 From: Hugh Sparks [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 26, 2004 9:24 PM
 To: Povolotsky, Alexander
 Subject: Re: cygrunsrv -S mountd fails: Error starting a service:
 QueryServiceStatus: Win32 error 1062 ?


  Do you have any idea (as an author of the How To) ?

  Cygwin mountd
  Cygwin nfsd

 I'll try to give you a longer reply tomorrow, but here are
 some quick ideas:

  Subject: cygrunsrv -S mountd fails: Error starting a service:
  QueryServiceStatus: Win32 error 1062 ?

 The services nfsd and mound both depend on the portmap service.
 Your error 1062 translates to The service has not been started.
 My guess is that the portmap service is not installed or is not running.

 It might help me to know about the versions of the cygwin packages you
 are using. I'm running:

 nfs-server-2.2.47-2
 cygrunsrv-0.96-2

 If you have newer versions than I do, you may be seeing a new bugs
 of some kind. If you have older 

RE: cygwin nfs server

2004-08-27 Thread Povolotsky, Alexander
Yes, I got this package downloaded/installed yesterday too.
cygcheck -cd
...
sunrpc  4.0-2
...
-Original Message-
From: boxforsr [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 9:47 AM
To: Povolotsky, Alexander
Cc: [EMAIL PROTECTED]
Subject: Re: cygwin nfs server

Portmap is in another package... It is called SunRpc or smth

- Original Message - 
From: Povolotsky, Alexander [EMAIL PROTECTED]
To: 'Hugh Sparks' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; 'Robb, Sam' [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, August 27, 2004 5:05 PM
Subject: RE: cygwin nfs server

 Hello Hugh,

 I have:

 cygrunsrv.exe (two of these - you have three instances ...)
 rpc.nfsd.exe
 rpc.mountd.exe

 I do not have PORTMAP.EXE !

 Try exporting some directories and see if you can mount them from your
 Unix/Linux machine.

 My Linux board is not ready yet (I am working now at home alone ... - no
 other machines, besides the laptop and the board)
  - as soon as I will set my board up, I'll try.

 Thanks,
 Best Regards,
 Alex

 -Original Message-
 From: Hugh Sparks [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 27, 2004 8:46 AM
 To: Povolotsky, Alexander
 Subject: Re: cygwin nfs server



  When I look for installed services (I run Windows XP Pro):
  (Right click on My Computer-Manage-Services and
 Applications-Services)
  in the list of services I see Cygwin mountd and Cygwin nfsd but I
 don't
  see Portmap service (what is the exact name for that service ?).

 It shows up on my task list as PORTMAP.EXE (capital letters for some
 reason.) It should get started automatically when nfsd and mountd are
 started.

  By the way, today I just rebooted my computer and now both Cygwin
mountd
  and Cygwin nfsd (which are automatic) are shown as started and running
 ... .
  So does it mean I am OK now ?

 It sounds promising. Try exporting some directories and see if you can
 mount them from your Unix/Linux machine.

 I looked at my task list when nfsd is running. The following things seem
 to be nfs-related:

 PORTMAP.EXE
 cygrunsrv.exe (three of these)
 rpc.nfsd.exe
 rpc.mountd.exe

 -Hugh Sparks, [EMAIL PROTECTED]
 -Original Message-
 From: Povolotsky, Alexander
 Sent: Friday, August 27, 2004 8:06 AM
 To: 'Hugh Sparks'
 Cc: 'Robb, Sam'; '[EMAIL PROTECTED]'
 Subject: RE: cygrunsrv -S mountd fails: Error starting a service:
 QueryServiceStatus: Win32 error 1062 ?


 Hi Hugh,

 Yes, I did run nfs-server-config prior to cygrunsrv commands

 It worked for me when I told it to install mountd, nfsd and portmap as
 Windows services NOT as inetd or xinetd services.

 but I ran it without any arguments - I am not sure how did you run it per
 above words of yours: I told it ?

 I have:

 nfs-server  2.2.47-2  (same as yours)
 cygrunsrv   1.0-1 (you have 0.96-2)

 I just downloaded and installed those yesterday ...

 When I look for installed services (I ran Windows XP Pro):
 (Right click on My Computer-Manage-Services and Applications
 -Services)
 in the list of services I see Cygwin mountd and Cygwin nfsd but I
don't
 see Portmap service (what is the exact name for that service ?).

 By the way, today I just rebooted my computer and now both Cygwin mountd
 and Cygwin nfsd (which are automatic) are shown as started and running
...
 So does it mean I om OK now ?

 Thanks,
 Alex

 -Original Message-
 From: Hugh Sparks [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 26, 2004 9:33 PM
 To: Povolotsky, Alexander
 Subject: Re: cygrunsrv -S mountd fails: Error starting a service:
 QueryServiceStatus: Win32 error 1062 ?


  Another idea: Take a look at this program:
 
  /usr/bin/nfs-server-config

 I did run that program.

 It worked for me when I told it to install mountd, nfsd and portmap as
 Windows services NOT as inetd or xinetd services.

 Use the Task Damager ControlAltDelete to see if you have the
 portmap service running before you try to start nfsd or mountd. Start it
 by hand if necessary.

 Also let me know if you have more recent software than I do.
 If necessary, I will update my software to match yours and then
 repeat the installation procedure to see what has broken.

 -Hugh Sparks, [EMAIL PROTECTED]
 -Original Message-
 From: Hugh Sparks [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 26, 2004 9:24 PM
 To: Povolotsky, Alexander
 Subject: Re: cygrunsrv -S mountd fails: Error starting a service:
 QueryServiceStatus: Win32 error 1062 ?


  Do you have any idea (as an author of the How To) ?

  Cygwin mountd
  Cygwin nfsd

 I'll try to give you a longer reply tomorrow, but here are
 some quick ideas:

  Subject: cygrunsrv -S mountd fails: Error starting a service:
  QueryServiceStatus: Win32 error 1062 ?

 The services nfsd and mound both depend on the portmap service.
 Your error 1062 translates to The service has not been started.
 My guess is that the portmap 

Any working PL./Perl instance of - Postgres 7.4.5-1,perl-5.8.5 - on -XP home or Win 2000?

2004-08-27 Thread Kumar Pandey
If anyone with cygwin install of above combination
(available from yesterday) could run the tests
outlined below - I would very much appreciate it.
Please post your results.

Thanks
Kumar

Steps to install and test -
1) install plperl 

createlang plperl template1

2) create test table 

CREATE TABLE employee (
 name text,
 basesalary integer,
 bonus integer
 );

3) create test function

CREATE FUNCTION empcomp(employee) RETURNS integer AS '
 my ($emp) = @_;
 return $emp-{''basesalary''} +
$emp-{''bonus''};
 ' LANGUAGE plperl;

4) add a test data
insert into employee values('Sir Postgre',40,5);
 
5)use perl function - database crashes for me at this
point.

SELECT name, empcomp(employee) FROM employee;

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: cygwin nfs server

2004-08-27 Thread boxforsr
Still no portmap? that's impossible...


- Original Message - 
From: Povolotsky, Alexander [EMAIL PROTECTED]
To: 'boxforsr' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; 'Hugh Sparks' [EMAIL PROTECTED]; 'Robb, Sam'
[EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, August 27, 2004 6:00 PM
Subject: RE: cygwin nfs server


 Yes, I got this package downloaded/installed yesterday too.
 cygcheck -cd
 ...
 sunrpc  4.0-2
 ...
 -Original Message-
 From: boxforsr [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 27, 2004 9:47 AM
 To: Povolotsky, Alexander
 Cc: [EMAIL PROTECTED]
 Subject: Re: cygwin nfs server

 Portmap is in another package... It is called SunRpc or smth

 - Original Message - 
 From: Povolotsky, Alexander [EMAIL PROTECTED]
 To: 'Hugh Sparks' [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]; 'Robb, Sam' [EMAIL PROTECTED];
 [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Friday, August 27, 2004 5:05 PM
 Subject: RE: cygwin nfs server

  Hello Hugh,
 
  I have:
 
  cygrunsrv.exe (two of these - you have three instances ...)
  rpc.nfsd.exe
  rpc.mountd.exe
 
  I do not have PORTMAP.EXE !
 
  Try exporting some directories and see if you can mount them from your
  Unix/Linux machine.
 
  My Linux board is not ready yet (I am working now at home alone ... - no
  other machines, besides the laptop and the board)
   - as soon as I will set my board up, I'll try.
 
  Thanks,
  Best Regards,
  Alex
 
  -Original Message-
  From: Hugh Sparks [mailto:[EMAIL PROTECTED]
  Sent: Friday, August 27, 2004 8:46 AM
  To: Povolotsky, Alexander
  Subject: Re: cygwin nfs server
 
 
 
   When I look for installed services (I run Windows XP Pro):
   (Right click on My Computer-Manage-Services and
  Applications-Services)
   in the list of services I see Cygwin mountd and Cygwin nfsd but I
  don't
   see Portmap service (what is the exact name for that service ?).
 
  It shows up on my task list as PORTMAP.EXE (capital letters for some
  reason.) It should get started automatically when nfsd and mountd are
  started.
 
   By the way, today I just rebooted my computer and now both Cygwin
 mountd
   and Cygwin nfsd (which are automatic) are shown as started and
running
  ... .
   So does it mean I am OK now ?
 
  It sounds promising. Try exporting some directories and see if you can
  mount them from your Unix/Linux machine.
 
  I looked at my task list when nfsd is running. The following things seem
  to be nfs-related:
 
  PORTMAP.EXE
  cygrunsrv.exe (three of these)
  rpc.nfsd.exe
  rpc.mountd.exe
 
  -Hugh Sparks, [EMAIL PROTECTED]
  -Original Message-
  From: Povolotsky, Alexander
  Sent: Friday, August 27, 2004 8:06 AM
  To: 'Hugh Sparks'
  Cc: 'Robb, Sam'; '[EMAIL PROTECTED]'
  Subject: RE: cygrunsrv -S mountd fails: Error starting a service:
  QueryServiceStatus: Win32 error 1062 ?
 
 
  Hi Hugh,
 
  Yes, I did run nfs-server-config prior to cygrunsrv commands
 
  It worked for me when I told it to install mountd, nfsd and portmap as
  Windows services NOT as inetd or xinetd services.
 
  but I ran it without any arguments - I am not sure how did you run it
per
  above words of yours: I told it ?
 
  I have:
 
  nfs-server  2.2.47-2  (same as yours)
  cygrunsrv   1.0-1 (you have 0.96-2)
 
  I just downloaded and installed those yesterday ...
 
  When I look for installed services (I ran Windows XP Pro):
  (Right click on My Computer-Manage-Services and Applications
  -Services)
  in the list of services I see Cygwin mountd and Cygwin nfsd but I
 don't
  see Portmap service (what is the exact name for that service ?).
 
  By the way, today I just rebooted my computer and now both Cygwin
mountd
  and Cygwin nfsd (which are automatic) are shown as started and running
 ...
  So does it mean I om OK now ?
 
  Thanks,
  Alex
 
  -Original Message-
  From: Hugh Sparks [mailto:[EMAIL PROTECTED]
  Sent: Thursday, August 26, 2004 9:33 PM
  To: Povolotsky, Alexander
  Subject: Re: cygrunsrv -S mountd fails: Error starting a service:
  QueryServiceStatus: Win32 error 1062 ?
 
 
   Another idea: Take a look at this program:
  
   /usr/bin/nfs-server-config
 
  I did run that program.
 
  It worked for me when I told it to install mountd, nfsd and portmap as
  Windows services NOT as inetd or xinetd services.
 
  Use the Task Damager ControlAltDelete to see if you have the
  portmap service running before you try to start nfsd or mountd. Start it
  by hand if necessary.
 
  Also let me know if you have more recent software than I do.
  If necessary, I will update my software to match yours and then
  repeat the installation procedure to see what has broken.
 
  -Hugh Sparks, [EMAIL PROTECTED]
  -Original Message-
  From: Hugh Sparks [mailto:[EMAIL PROTECTED]
  Sent: Thursday, August 26, 2004 9:24 PM
  To: Povolotsky, Alexander
  Subject: Re: cygrunsrv -S mountd fails: Error 

Re: cygwin nfs server

2004-08-27 Thread boxforsr
Service name is Cygwin Portmap ...
Why don't u try to make connection via samba?


- Original Message - 
From: Povolotsky, Alexander [EMAIL PROTECTED]
To: 'boxforsr' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; 'Hugh Sparks' [EMAIL PROTECTED]; 'Robb, Sam'
[EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, August 27, 2004 6:00 PM
Subject: RE: cygwin nfs server


 Yes, I got this package downloaded/installed yesterday too.
 cygcheck -cd
 ...
 sunrpc  4.0-2
 ...
 -Original Message-
 From: boxforsr [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 27, 2004 9:47 AM
 To: Povolotsky, Alexander
 Cc: [EMAIL PROTECTED]
 Subject: Re: cygwin nfs server

 Portmap is in another package... It is called SunRpc or smth

 - Original Message - 
 From: Povolotsky, Alexander [EMAIL PROTECTED]
 To: 'Hugh Sparks' [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]; 'Robb, Sam' [EMAIL PROTECTED];
 [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Friday, August 27, 2004 5:05 PM
 Subject: RE: cygwin nfs server

  Hello Hugh,
 
  I have:
 
  cygrunsrv.exe (two of these - you have three instances ...)
  rpc.nfsd.exe
  rpc.mountd.exe
 
  I do not have PORTMAP.EXE !
 
  Try exporting some directories and see if you can mount them from your
  Unix/Linux machine.
 
  My Linux board is not ready yet (I am working now at home alone ... - no
  other machines, besides the laptop and the board)
   - as soon as I will set my board up, I'll try.
 
  Thanks,
  Best Regards,
  Alex
 
  -Original Message-
  From: Hugh Sparks [mailto:[EMAIL PROTECTED]
  Sent: Friday, August 27, 2004 8:46 AM
  To: Povolotsky, Alexander
  Subject: Re: cygwin nfs server
 
 
 
   When I look for installed services (I run Windows XP Pro):
   (Right click on My Computer-Manage-Services and
  Applications-Services)
   in the list of services I see Cygwin mountd and Cygwin nfsd but I
  don't
   see Portmap service (what is the exact name for that service ?).
 
  It shows up on my task list as PORTMAP.EXE (capital letters for some
  reason.) It should get started automatically when nfsd and mountd are
  started.
 
   By the way, today I just rebooted my computer and now both Cygwin
 mountd
   and Cygwin nfsd (which are automatic) are shown as started and
running
  ... .
   So does it mean I am OK now ?
 
  It sounds promising. Try exporting some directories and see if you can
  mount them from your Unix/Linux machine.
 
  I looked at my task list when nfsd is running. The following things seem
  to be nfs-related:
 
  PORTMAP.EXE
  cygrunsrv.exe (three of these)
  rpc.nfsd.exe
  rpc.mountd.exe
 
  -Hugh Sparks, [EMAIL PROTECTED]
  -Original Message-
  From: Povolotsky, Alexander
  Sent: Friday, August 27, 2004 8:06 AM
  To: 'Hugh Sparks'
  Cc: 'Robb, Sam'; '[EMAIL PROTECTED]'
  Subject: RE: cygrunsrv -S mountd fails: Error starting a service:
  QueryServiceStatus: Win32 error 1062 ?
 
 
  Hi Hugh,
 
  Yes, I did run nfs-server-config prior to cygrunsrv commands
 
  It worked for me when I told it to install mountd, nfsd and portmap as
  Windows services NOT as inetd or xinetd services.
 
  but I ran it without any arguments - I am not sure how did you run it
per
  above words of yours: I told it ?
 
  I have:
 
  nfs-server  2.2.47-2  (same as yours)
  cygrunsrv   1.0-1 (you have 0.96-2)
 
  I just downloaded and installed those yesterday ...
 
  When I look for installed services (I ran Windows XP Pro):
  (Right click on My Computer-Manage-Services and Applications
  -Services)
  in the list of services I see Cygwin mountd and Cygwin nfsd but I
 don't
  see Portmap service (what is the exact name for that service ?).
 
  By the way, today I just rebooted my computer and now both Cygwin
mountd
  and Cygwin nfsd (which are automatic) are shown as started and running
 ...
  So does it mean I om OK now ?
 
  Thanks,
  Alex
 
  -Original Message-
  From: Hugh Sparks [mailto:[EMAIL PROTECTED]
  Sent: Thursday, August 26, 2004 9:33 PM
  To: Povolotsky, Alexander
  Subject: Re: cygrunsrv -S mountd fails: Error starting a service:
  QueryServiceStatus: Win32 error 1062 ?
 
 
   Another idea: Take a look at this program:
  
   /usr/bin/nfs-server-config
 
  I did run that program.
 
  It worked for me when I told it to install mountd, nfsd and portmap as
  Windows services NOT as inetd or xinetd services.
 
  Use the Task Damager ControlAltDelete to see if you have the
  portmap service running before you try to start nfsd or mountd. Start it
  by hand if necessary.
 
  Also let me know if you have more recent software than I do.
  If necessary, I will update my software to match yours and then
  repeat the installation procedure to see what has broken.
 
  -Hugh Sparks, [EMAIL PROTECTED]
  -Original Message-
  From: Hugh Sparks [mailto:[EMAIL PROTECTED]
  Sent: Thursday, August 26, 2004 9:24 PM
  To: Povolotsky, Alexander
  

opengl 1.4

2004-08-27 Thread Kamil ERMAN
Hi;
I try to upgrate opengl 1.4 version, because
I want to run and compile mycode in windows
 How can I obtain related lib and dll for cygwin-gcc
compiler.

Respectfully

Kamil ERMAN





___ALL-NEW Yahoo! Messenger - 
all new features - even more fun!  http://uk.messenger.yahoo.com

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



How to install gcc/g++ 2.95 (older version of gcc) on cygwin ?

2004-08-27 Thread bt tan
Hi,

   Any body have any idea how can I install an
older version of gcc on the cygwin?

   I've tried download the tarball from ftp.gnu.org
but dunno how to install it. Any ideas?


Rgrds,
Tan.




___
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

--
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 nfs server

2004-08-27 Thread Povolotsky, Alexander

Searching for PORTMAP.EXE finds it in
 Z:\cygwin\usr\sbin 
 (Z: drive is remapping of my C: drive which itself is not visible on
Windows XP Pro)

Service name is Cygwin Portmap ...
Do I need to start it myself manually ?
-Original Message-
From: Povolotsky, Alexander 
Sent: Friday, August 27, 2004 10:00 AM
To: 'boxforsr'
Cc: [EMAIL PROTECTED]; 'Hugh Sparks'; 'Robb, Sam';
'[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: RE: cygwin nfs server


Yes, I got this package downloaded/installed yesterday too.
cygcheck -cd
...
sunrpc  4.0-2
...
-Original Message-
From: boxforsr [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 9:47 AM
To: Povolotsky, Alexander
Cc: [EMAIL PROTECTED]
Subject: Re: cygwin nfs server

Portmap is in another package... It is called SunRpc or smth

- Original Message - 
From: Povolotsky, Alexander [EMAIL PROTECTED]
To: 'Hugh Sparks' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; 'Robb, Sam' [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, August 27, 2004 5:05 PM
Subject: RE: cygwin nfs server

 Hello Hugh,

 I have:

 cygrunsrv.exe (two of these - you have three instances ...)
 rpc.nfsd.exe
 rpc.mountd.exe

 I do not have PORTMAP.EXE !

 Try exporting some directories and see if you can mount them from your
 Unix/Linux machine.

 My Linux board is not ready yet (I am working now at home alone ... - no
 other machines, besides the laptop and the board)
  - as soon as I will set my board up, I'll try.

 Thanks,
 Best Regards,
 Alex

 -Original Message-
 From: Hugh Sparks [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 27, 2004 8:46 AM
 To: Povolotsky, Alexander
 Subject: Re: cygwin nfs server



  When I look for installed services (I run Windows XP Pro):
  (Right click on My Computer-Manage-Services and
 Applications-Services)
  in the list of services I see Cygwin mountd and Cygwin nfsd but I
 don't
  see Portmap service (what is the exact name for that service ?).

 It shows up on my task list as PORTMAP.EXE (capital letters for some
 reason.) It should get started automatically when nfsd and mountd are
 started.

  By the way, today I just rebooted my computer and now both Cygwin
mountd
  and Cygwin nfsd (which are automatic) are shown as started and running
 ... .
  So does it mean I am OK now ?

 It sounds promising. Try exporting some directories and see if you can
 mount them from your Unix/Linux machine.

 I looked at my task list when nfsd is running. The following things seem
 to be nfs-related:

 PORTMAP.EXE
 cygrunsrv.exe (three of these)
 rpc.nfsd.exe
 rpc.mountd.exe

 -Hugh Sparks, [EMAIL PROTECTED]
 -Original Message-
 From: Povolotsky, Alexander
 Sent: Friday, August 27, 2004 8:06 AM
 To: 'Hugh Sparks'
 Cc: 'Robb, Sam'; '[EMAIL PROTECTED]'
 Subject: RE: cygrunsrv -S mountd fails: Error starting a service:
 QueryServiceStatus: Win32 error 1062 ?


 Hi Hugh,

 Yes, I did run nfs-server-config prior to cygrunsrv commands

 It worked for me when I told it to install mountd, nfsd and portmap as
 Windows services NOT as inetd or xinetd services.

 but I ran it without any arguments - I am not sure how did you run it per
 above words of yours: I told it ?

 I have:

 nfs-server  2.2.47-2  (same as yours)
 cygrunsrv   1.0-1 (you have 0.96-2)

 I just downloaded and installed those yesterday ...

 When I look for installed services (I ran Windows XP Pro):
 (Right click on My Computer-Manage-Services and Applications
 -Services)
 in the list of services I see Cygwin mountd and Cygwin nfsd but I
don't
 see Portmap service (what is the exact name for that service ?).

 By the way, today I just rebooted my computer and now both Cygwin mountd
 and Cygwin nfsd (which are automatic) are shown as started and running
...
 So does it mean I om OK now ?

 Thanks,
 Alex

 -Original Message-
 From: Hugh Sparks [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 26, 2004 9:33 PM
 To: Povolotsky, Alexander
 Subject: Re: cygrunsrv -S mountd fails: Error starting a service:
 QueryServiceStatus: Win32 error 1062 ?


  Another idea: Take a look at this program:
 
  /usr/bin/nfs-server-config

 I did run that program.

 It worked for me when I told it to install mountd, nfsd and portmap as
 Windows services NOT as inetd or xinetd services.

 Use the Task Damager ControlAltDelete to see if you have the
 portmap service running before you try to start nfsd or mountd. Start it
 by hand if necessary.

 Also let me know if you have more recent software than I do.
 If necessary, I will update my software to match yours and then
 repeat the installation procedure to see what has broken.

 -Hugh Sparks, [EMAIL PROTECTED]
 -Original Message-
 From: Hugh Sparks [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 26, 2004 9:24 PM
 To: Povolotsky, Alexander
 Subject: Re: cygrunsrv -S mountd fails: Error starting a service:
 QueryServiceStatus: 

Re: [ANNOUNCEMENT] Release candidate: gcc-3.4.1-1

2004-08-27 Thread Hans Horn
Gerrit,

The problem goes away if I either

leave the -ffast-math flag out (and remove the flags that are implicitly set
by -fmath-math under the hood, i.e. -funsafe-math-optimizations
and -fno-trapping-math)

or leave the -mfpmath=sse flag out

or turn optimization off all-together (replace -On with -g)

Hope this narrows things down a bit!

H.


Gerrit P. Haase wrote:
 Hans wrote:

 Just to follow up on my earlier posting!

 Could it be that I'm picking a stale g77 runtime lib?

 I don't think so, looks like a bug in the optimizer.

 The problem doesn't happen if I replace -O6 with -g.
 It ALSO goes away (with -O6) if I call fabs() instead of abs().
 fabs() however is a C function, which I don't want rely on!


 There is a bug with optimization in 3.3.x.  Maybe there are more bugs
 in the optimizer, please try to figure out which flag triggers the
 error.

 I've attached the output of cygcheck -s -v -r, if that's of any 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/



Re: How to install gcc/g++ 2.95 (older version of gcc) on cygwin ?

2004-08-27 Thread Brian Dessent
bt tan wrote:

Any body have any idea how can I install an
 older version of gcc on the cygwin?
 
I've tried download the tarball from ftp.gnu.org
 but dunno how to install it. Any ideas?

gcc 2.95 was removed from the Cygwin distribution because it was buggy
and no one was interested in fixing it.  So the answer is, you don't use
2.x gcc.

If you're careful you can find an old mirror that still has the 2.95
package (search for its exact filename with a search engine) but
downloading this known-buggy program is entirely up to you and you'll
have to solve any issues that come up yourself.

Brian

--
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 nfs server

2004-08-27 Thread boxforsr
well try that...
and to start it every session add it to win autorun

- Original Message - 
From: Povolotsky, Alexander [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: 'Hugh Sparks' [EMAIL PROTECTED]; 'Robb, Sam'
[EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED];
'boxforsr' [EMAIL PROTECTED]
Sent: Friday, August 27, 2004 6:53 PM
Subject: RE: cygwin nfs server



 Searching for PORTMAP.EXE finds it in
  Z:\cygwin\usr\sbin
  (Z: drive is remapping of my C: drive which itself is not visible on
 Windows XP Pro)

 Service name is Cygwin Portmap ...
 Do I need to start it myself manually ?
 -Original Message-
 From: Povolotsky, Alexander
 Sent: Friday, August 27, 2004 10:00 AM
 To: 'boxforsr'
 Cc: [EMAIL PROTECTED]; 'Hugh Sparks'; 'Robb, Sam';
 '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
 Subject: RE: cygwin nfs server


 Yes, I got this package downloaded/installed yesterday too.
 cygcheck -cd
 ...
 sunrpc  4.0-2
 ...
 -Original Message-
 From: boxforsr [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 27, 2004 9:47 AM
 To: Povolotsky, Alexander
 Cc: [EMAIL PROTECTED]
 Subject: Re: cygwin nfs server

 Portmap is in another package... It is called SunRpc or smth

 - Original Message - 
 From: Povolotsky, Alexander [EMAIL PROTECTED]
 To: 'Hugh Sparks' [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]; 'Robb, Sam' [EMAIL PROTECTED];
 [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Friday, August 27, 2004 5:05 PM
 Subject: RE: cygwin nfs server

  Hello Hugh,
 
  I have:
 
  cygrunsrv.exe (two of these - you have three instances ...)
  rpc.nfsd.exe
  rpc.mountd.exe
 
  I do not have PORTMAP.EXE !
 
  Try exporting some directories and see if you can mount them from your
  Unix/Linux machine.
 
  My Linux board is not ready yet (I am working now at home alone ... - no
  other machines, besides the laptop and the board)
   - as soon as I will set my board up, I'll try.
 
  Thanks,
  Best Regards,
  Alex
 
  -Original Message-
  From: Hugh Sparks [mailto:[EMAIL PROTECTED]
  Sent: Friday, August 27, 2004 8:46 AM
  To: Povolotsky, Alexander
  Subject: Re: cygwin nfs server
 
 
 
   When I look for installed services (I run Windows XP Pro):
   (Right click on My Computer-Manage-Services and
  Applications-Services)
   in the list of services I see Cygwin mountd and Cygwin nfsd but I
  don't
   see Portmap service (what is the exact name for that service ?).
 
  It shows up on my task list as PORTMAP.EXE (capital letters for some
  reason.) It should get started automatically when nfsd and mountd are
  started.
 
   By the way, today I just rebooted my computer and now both Cygwin
 mountd
   and Cygwin nfsd (which are automatic) are shown as started and
running
  ... .
   So does it mean I am OK now ?
 
  It sounds promising. Try exporting some directories and see if you can
  mount them from your Unix/Linux machine.
 
  I looked at my task list when nfsd is running. The following things seem
  to be nfs-related:
 
  PORTMAP.EXE
  cygrunsrv.exe (three of these)
  rpc.nfsd.exe
  rpc.mountd.exe
 
  -Hugh Sparks, [EMAIL PROTECTED]
  -Original Message-
  From: Povolotsky, Alexander
  Sent: Friday, August 27, 2004 8:06 AM
  To: 'Hugh Sparks'
  Cc: 'Robb, Sam'; '[EMAIL PROTECTED]'
  Subject: RE: cygrunsrv -S mountd fails: Error starting a service:
  QueryServiceStatus: Win32 error 1062 ?
 
 
  Hi Hugh,
 
  Yes, I did run nfs-server-config prior to cygrunsrv commands
 
  It worked for me when I told it to install mountd, nfsd and portmap as
  Windows services NOT as inetd or xinetd services.
 
  but I ran it without any arguments - I am not sure how did you run it
per
  above words of yours: I told it ?
 
  I have:
 
  nfs-server  2.2.47-2  (same as yours)
  cygrunsrv   1.0-1 (you have 0.96-2)
 
  I just downloaded and installed those yesterday ...
 
  When I look for installed services (I ran Windows XP Pro):
  (Right click on My Computer-Manage-Services and Applications
  -Services)
  in the list of services I see Cygwin mountd and Cygwin nfsd but I
 don't
  see Portmap service (what is the exact name for that service ?).
 
  By the way, today I just rebooted my computer and now both Cygwin
mountd
  and Cygwin nfsd (which are automatic) are shown as started and running
 ...
  So does it mean I om OK now ?
 
  Thanks,
  Alex
 
  -Original Message-
  From: Hugh Sparks [mailto:[EMAIL PROTECTED]
  Sent: Thursday, August 26, 2004 9:33 PM
  To: Povolotsky, Alexander
  Subject: Re: cygrunsrv -S mountd fails: Error starting a service:
  QueryServiceStatus: Win32 error 1062 ?
 
 
   Another idea: Take a look at this program:
  
   /usr/bin/nfs-server-config
 
  I did run that program.
 
  It worked for me when I told it to install mountd, nfsd and portmap as
  Windows services NOT as inetd or xinetd services.
 
  Use the Task Damager ControlAltDelete to see if you have the
  portmap service 

Re: How to install gcc/g++ 2.95 (older version of gcc) on cygwin ?

2004-08-27 Thread bt tan
How about gcc/g++ version 3.0.0 ? Is it as buggy as
2.95?

I have lotsa buggy program which was made using 2.95
it runs smoothly on 2.95 of gcc. But fails to run
using 3.3 and 3.4 which I've tried. I would like to
try on the version 2.95. Any idea how may I do that?

Rgrds,
Tan.

--- Brian Dessent [EMAIL PROTECTED] wrote:

 bt tan wrote:
 
 Any body have any idea how can I install an
  older version of gcc on the cygwin?
  
 I've tried download the tarball from
 ftp.gnu.org
  but dunno how to install it. Any ideas?
 
 gcc 2.95 was removed from the Cygwin distribution
 because it was buggy
 and no one was interested in fixing it.  So the
 answer is, you don't use
 2.x gcc.
 
 If you're careful you can find an old mirror that
 still has the 2.95
 package (search for its exact filename with a search
 engine) but
 downloading this known-buggy program is entirely up
 to you and you'll
 have to solve any issues that come up yourself.
 
 Brian
 
 --
 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/
 
 




__
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
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/



Re: Any working PL./Perl instance of - Postgres 7.4.5-1,perl-5.8.5 - on -XP home or Win 2000?

2004-08-27 Thread Jason Tishler
Kumar,

On Fri, Aug 27, 2004 at 07:17:59AM -0700, Kumar Pandey wrote:
 If anyone with cygwin install of above combination
 (available from yesterday) could run the tests
 outlined below - I would very much appreciate it.
 Please post your results.

Unfortunately, I get exactly the same results (i.e., PostgreSQL crashes)
as you do. :,(

Jason

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

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



Re: Any working PL./Perl instance of - Postgres 7.4.5-1,perl-5.8.5 - on -XP home or Win 2000?

2004-08-27 Thread Reini Urban
Kumar Pandey schrieb:
If anyone with cygwin install of above combination
(available from yesterday) could run the tests
outlined below - I would very much appreciate it.
Please post your results.
Thanks
Kumar
Steps to install and test -
1) install plperl 

createlang plperl template1
2) create test table 

CREATE TABLE employee (
 name text,
 basesalary integer,
 bonus integer
 );
3) create test function
CREATE FUNCTION empcomp(employee) RETURNS integer AS '
 my ($emp) = @_;
 return $emp-{''basesalary''} +
$emp-{''bonus''};
 ' LANGUAGE plperl;
4) add a test data
insert into employee values('Sir Postgre',40,5);
 
5)use perl function - database crashes for me at this
point.

SELECT name, empcomp(employee) FROM employee;
verified.
BTW: postmaster -d 5
will give you verbose output.
it's a cygserver problem. But I haven't checked yet if it's just
too much connections (postgresql checks at init some max_connections 
params from 500 down to 10), still too less memory or if it's the dup 
problem.
dup(0) = Bad file descriptor ???

sometimes the single select works. sometimes it crashes after you do 
some inserts.
unfortunately the regression testsuite doesn't handle this case.

DEBUG:  found /bin/postgres using argv[0]
DEBUG:  invoking IpcMemoryCreate(size=1114112)
WARNING:  dup(0) failed after 3196 successes: Bad file descriptor
DEBUG:  max_safe_fds = 986, usable_fds = 3196, already_open = 4
DEBUG:  found /bin/postmaster using argv[0]
LOG:  database system was shut down at 2004-08-27 12:59:04 GMT
LOG:  checkpoint record is at 0/9DDFA0
LOG:  redo record is at 0/9DDFA0; undo record is at 0/0; shutdown TRUE
LOG:  next transaction ID: 536; next OID: 17142
LOG:  database system is ready
DEBUG:  proc_exit(0)
DEBUG:  shmem_exit(0)
DEBUG:  exit(0)
DEBUG:  reaping dead processes
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/
--
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: xinetd Permissions; IMAP server

2004-08-27 Thread Igor Pechtchanski
On Thu, 26 Aug 2004, overbored wrote:

 Hi all, I have newbie questions on two subjects:

 1. xinetd

 I can't remove the file /var/lock/subsys/xinetd, either via 'rm
 /var/lock/subsys/xinetd', the init.d/xinetd script, or Windows Explorer. The
 permissions on it say that it's writable by SYSTEM only (not Admins). Am I
 screwed?

Not really.  man chown.

 (I didn't create this file; the xinetd script must have done that, since it's
 launched by init, a service that is assigned SYSTEM permissions by default.)

Or you could try to get a SYSTEM-owned shell, and remove it from there.
FWIW, I have a handy shortcut for that (see below).

 Oddly enough, even though stop() fails, start() seems to be fine...

 $ /etc/rc.d/init.d/xinetd restart
 Stopping xinetd:   [FAILED]
 rm: cannot unlink `/var/lock/subsys/xinetd': Permission denied

This seems like a bug in the xinetd rc script.  It should have anticipated
the ownership of the file, and done a chown before attempting to remove
it.

 Starting xinetd:   [  OK  ]
 touch: creating `/var/lock/subsys/xinetd': Permission denied

Ditto, although this doesn't seem to figure in whether the start
succeeded.  This is less important, though, as it's dependent on the above
bug.

 However, I don't see a process called 'xinetd' in taskmgr. Anyway...what
 should I do now?

Two possibilities: either xinetd is not running, and the above is simply
the result of the file permissions, or xinetd is invoked via some other
program.  The invocation looks like daemon xinetd, and I couldn't find
out what the daemon command did -- perhaps the maintainer of xinetd could
shed some light on it.

 ---
 2. uw-imapd

Disclaimer: I haven't used IMAP -- all the info below is generic.

 My goal is to get an IMAP server running, and it seems my only option today is
 uw-imapd. The cygwin package for that is installed, and I created an 'imap'
 file under xinetd.d with the following:

 # default: off
 # description: The IMAP service allows remote users to access their mail using \
 #  an IMAP client such as Mutt, Pine, fetchmail, or Netscape \
 #  Communicator.
 service imap
 {
 socket_type = stream
 wait= no
 user= root
 server  = /usr/sbin/imapd
 log_on_success  += HOST DURATION
 log_on_failure  += HOST
 disable = no
 }

 Aside: how does this know what port to work with?

Doesn't IMAP have a default port?

Can't help with the rest, so it's snipped.
 [snip]

 Please let me know if any further info is needed (cygcheck stuff, etc.).

In general, it's always good to accompany bug reports and system questions
(especially initial postings) with the output of cygcheck -svr as an
uncompressed text attachment.
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!

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw

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



Lack of development feature ....

2004-08-27 Thread boxforsr
Where is LOAD_IGNORE_AUTHZ_LEVEL  in winbase.h???

--
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: Lack of development feature ....

2004-08-27 Thread Dave Korn
 -Original Message-
 From: cygwin-owner On Behalf Of boxforsr
 Sent: 27 August 2004 16:33
 To: Cygwin Mailing List
 Subject: Lack of development feature 


  BEFORE YOU DO ANYTHING ELSE READ THIS:

http://www.cygwin.com/acronyms/#PCYMTNQREAIYR

DO NOT QUOTE MY EMAIL ADDRESS IN ANY REPLIES.  

  Sorry for shouting, but you've already gotten loads of people spammed
today with all those replies you posted earlier without deleting their email
addresses.  Now, on to your question:

 
 Where is LOAD_IGNORE_AUTHZ_LEVEL  in winbase.h???

It's not in winbase.h.  In fact,

--snip!--
http://www.google.com/search?hl=enie=UTF-8q=LOAD_IGNORE_AUTHZ_LEVEL

Your search - LOAD_IGNORE_AUTHZ_LEVEL - did not match any documents. 
No pages were found containing load_ignore_authz_level.
--snip!--

...there's no such thing anywhere at all.  Where did you hear about it?

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


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



Re: Lack of development feature ....

2004-08-27 Thread boxforsr
ehmm excuse me ms. I'm newbie  really sorry won't do that again..
No listen ma shoutin' now...

__
  LOAD_IGNORE_CODE_AUTHZ_LEVEL If this value is used, the system does
not perform automatic trust comparisons on the DLL or its dependents when
they are loaded.

  Windows 2000/NT, Windows Me/98/95:  This value is not supported



!!(shoutin')

Read uptadatee WinSDK...
Wanna more lacks?I canshow Ya

- Original Message - 
Sent: Friday, August 27, 2004 7:38 PM
Subject: RE: Lack of development feature 


  -Original Message-
  From: cygwin-owner On Behalf Of boxforsr
  Sent: 27 August 2004 16:33
  To: Cygwin Mailing List
  Subject: Lack of development feature 


   BEFORE YOU DO ANYTHING ELSE READ THIS:

 http://www.cygwin.com/acronyms/#PCYMTNQREAIYR

 DO NOT QUOTE MY EMAIL ADDRESS IN ANY REPLIES.

   Sorry for shouting, but you've already gotten loads of people spammed
 today with all those replies you posted earlier without deleting their
email
 addresses.  Now, on to your question:

 
  Where is LOAD_IGNORE_AUTHZ_LEVEL  in winbase.h???

 It's not in winbase.h.  In fact,

 --snip!--
 http://www.google.com/search?hl=enie=UTF-8q=LOAD_IGNORE_AUTHZ_LEVEL

 Your search - LOAD_IGNORE_AUTHZ_LEVEL - did not match any documents.
 No pages were found containing load_ignore_authz_level.
 --snip!--

 ...there's no such thing anywhere at all.  Where did you hear about it?

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


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




--
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: Lack of development feature ....

2004-08-27 Thread Chuck McDevitt
First, you have the name wrong. 

Second, if it's not there, Define it yourself:

#define LOAD_IGNORE_CODE_AUTHZ_LEVEL  0x0010


--
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: Lack of development feature ....

2004-08-27 Thread boxforsr
Wrong Name? I c.errhhggg ... no the name is just fine... no,really...
Thanks for prog lesson , but I really didn't mean that x-|
It has to be in winbase.h ...right?Right  I have up to da date cygwin...
where is it ,U smarty boy?

If I'm to much - excuse ... but this is for interest 

- Original Message - 
Sent: Friday, August 27, 2004 7:54 PM
Subject: Re: Lack of development feature 


 First, you have the name wrong.

 Second, if it's not there, Define it yourself:

 #define LOAD_IGNORE_CODE_AUTHZ_LEVEL  0x0010


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




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



Re: How to install gcc/g++ 2.95 (older version of gcc) on cygwin ?

2004-08-27 Thread Brian Dessent
bt tan wrote:
 
 How about gcc/g++ version 3.0.0 ? Is it as buggy as
 2.95?
 
 I have lotsa buggy program which was made using 2.95
 it runs smoothly on 2.95 of gcc. But fails to run
 using 3.3 and 3.4 which I've tried. I would like to
 try on the version 2.95. Any idea how may I do that?

Like I said, the 2.x version is buggy under Cygwin.  See also
http://www.cygwin.com/ml/cygwin-announce/2003-10/msg3.html 
Proceed at your own risk.  If you want to continue, Google for the
filename of the package and find an old mirror that still has the
package.  I believe the last released version was called gcc2-2.95.3-10
so Google for gcc2-2.95.3-10.tar.bz2 and/or
gcc2-2.95.3-10-src.tar.bz2.  Please don't expect the list to help if
this doesn't work, as it's not supported.

Brian

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



questions about DLL's: .a, .def, and .dll

2004-08-27 Thread Oliver
Hi folks, I'm confused about the files that dllwrap 
creates. On Unix (where I've been programming forever) all you 
have to do is create a .so shared library. But dllwrap ends up 
creating a .a file, a .def file, and a .dll file, yet I can 
build a program that links to, e.g., mylib.dll, with only -L. -lmylib,
*wihtout* having the .def or .a available. So where and when are the .a and 
.def files needed?

Also, I read in the various docs (dllhelpers etc) that you have to 
compile the file that has DllMain using either extern 'C' around the 
DllMain function, or make it a C file rather than a c++ file and compile 
with gcc, yet it worked for me as a c++ file without the extern, is this 
new behavior or is something going to blow up on me later?

Thanks,
Oliver




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



Possible :) development lack...resource crawling --- Security Update :)

2004-08-27 Thread boxforsr
does EnumResourceTypes enumerate standart types?
think not...surely have to no?

- Original Message - 
Sent: Friday, August 27, 2004 8:33 PM
Subject: Possible :) development lack...resource crawling


 Hello guys  have u ever tried to make a resource enumeration under
 cygwin
 Success stories wanted...die-hardly wanted ...
 Strange ... Finding resources works just fine... but not enumerating 
 and I want enumeration ... yes , right enumeration I want ...wanna use
 things like EnumResourceTypes  really want...
 THX...
 
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Problem reports:   http://cygwin.com/problems.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/
 
 

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



RE: Possible :) development lack...resource crawling

2004-08-27 Thread Dave Korn
 -Original Message-
 From: boxforsr 
 Sent: 27 August 2004 17:33
 To: Dave Korn
 Cc: Cygwin Mailing List
 Subject: Possible :) development lack...resource crawling
 
 Hello guys  have u ever tried to make a resource enumeration under
 cygwin

  Nope.

 Success stories wanted...die-hardly wanted ...
 Strange ... Finding resources works just fine... but not 
 enumerating 
 and I want enumeration ... yes , right enumeration I want ...wanna use
 things like EnumResourceTypes  really want...

  You're gonna hafta figure this one out yourself. it's probably a bug
in your code that uses EnumResourceTypes rather than a bug in cygwin or
windoze.  Or it could be a user permissions problem in your
workgroup/domain.  Add printf statements to your code that show all the
arguments you pass to the function call so you can see if they're correct or
not, and check the error code returned from the function to see what it
tells you.

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: Newbie: cygrunsrv using strange PATH variable

2004-08-27 Thread Igor Pechtchanski
On Fri, 27 Aug 2004, Alder wrote:

 After removing a previous Cygwin installation from my system and
 reinstalling from the harddrive using Setup, running cygrunsrv from any
 account (administrator or user) produces a Windows dialog reporting that
 the DLL cannot be found in the path:

   D:\cygwin\usr\sbin;.;Windows system folders;.

 I'm pretty sure I have my bash startup files in the same state as in my
 previous installation, but here are the relevant bits from these files
 to show how the PATH variable is created:

 [/etc/profile]
 PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH:.

 [~/.bash_profile]
 PATH=~/bin:${PATH}

 [~/.bashrc]
 empty

 If I echo the PATH variable when I first log in with rxvt, it shows:

 $ echo $PATH
 /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/System32/Wbem:/cygdrive/c/Program
  Files/ATI Technologies/ATI Control Panel:/cygdrive/d/Program Files/Common 
 Files/GTK/2.0/bin:.

 My question is, then, where is cygrunsrv pulling its PATH information
 from and how do I get it to recognize the environment of the shell its
 run in?

There are two separate problems here.  One is a misconception that the
same PATH you get from your bash startup files will be available to the
services -- that is most certainly not true.  The services executed via
cygrunsrv are invoked directly, with the PATH supposedly inherited from
the Windows system environment.

The second problem, the one I intend to investigate further, is that the
environment doesn't seem to make it through to the subprocesses spawned by
the services (perhaps the solution is as easy as adding export to the
CYGWIN variable, but I'll need to experiment).  In other words, on my new
system the default sshd installation didn't work OOTB, and I needed to add
a '-e PATH=/usr/bin:/bin:$PATH' to the sshd definition.  I'll get back
to the list with the results, whenever I have them.  Not attaching the
cygcheck output because I want to investigate this myself for a bit before
bothering the list with 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!

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw

--
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: Possible :) development lack...resource crawling

2004-08-27 Thread boxforsr
Nice work Dave *THUMBS UP*
People do teach me too much these days ... I checked, belive me sir...
So the problem is that EnumResourceTypes doesn't want  to enumerate standart
types... RT_*
making array of them and calling EnumResourceNames for each of them works
fine
However EnumResourceTypes likes to find user-defined types...

P.S. An error in my code...look at him... oughhff ...no respect u're showing
:)

- Original Message - 
Sent: Friday, August 27, 2004 8:48 PM
Subject: RE: Possible :) development lack...resource crawling


  -Original Message-
  From: boxforsr
  Sent: 27 August 2004 17:33
  To: Dave Korn
  Cc: Cygwin Mailing List
  Subject: Possible :) development lack...resource crawling
 
  Hello guys  have u ever tried to make a resource enumeration under
  cygwin

   Nope.

  Success stories wanted...die-hardly wanted ...
  Strange ... Finding resources works just fine... but not
  enumerating 
  and I want enumeration ... yes , right enumeration I want ...wanna use
  things like EnumResourceTypes  really want...

   You're gonna hafta figure this one out yourself. it's probably a bug
 in your code that uses EnumResourceTypes rather than a bug in cygwin or
 windoze.  Or it could be a user permissions problem in your
 workgroup/domain.  Add printf statements to your code that show all the
 arguments you pass to the function call so you can see if they're correct
or
 not, and check the error code returned from the function to see what it
 tells you.

 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/




--
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: Possible :) development lack...resource crawling --- Security Update :)

2004-08-27 Thread Corinna Vinschen
On Aug 27 20:46, boxforsr wrote:
 does EnumResourceTypes enumerate standart types?
 think not...surely have to no?

This  is  not  a  Cygwin .. rela...ted... question.
Ask this ... on  a   Windows ...fo..r.u.m ... please


Co...rin... a

 
 - Original Message - 
 Sent: Friday, August 27, 2004 8:33 PM
 Subject: Possible :) development lack...resource crawling
 
 
  Hello guys  have u ever tried to make a resource enumeration under
  cygwin
  Success stories wanted...die-hardly wanted ...
  Strange ... Finding resources works just fine... but not enumerating 
  and I want enumeration ... yes , right enumeration I want ...wanna use
  things like EnumResourceTypes  really want...
  THX...
  
  
  --
  Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
  Problem reports:   http://cygwin.com/problems.html
  Documentation: http://cygwin.com/docs.html
  FAQ:   http://cygwin.com/faq/
  
  
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Problem reports:   http://cygwin.com/problems.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.

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



Re: Possible :) development lack...resource crawling --- Security Update :)

2004-08-27 Thread boxforsr
Thank U much, girl...
what libs does the built prog use?
MS's or not?
Cycle from RT_'s makes the deal but I want native support ...


- Original Message - 
Sent: Friday, August 27, 2004 9:09 PM
Subject: Re: Possible :) development lack...resource crawling --- Security
Update :)


 On Aug 27 20:46, boxforsr wrote:
  does EnumResourceTypes enumerate standart types?
  think not...surely have to no?

 This  is  not  a  Cygwin .. rela...ted... question.
 Ask this ... on  a   Windows ...fo..r.u.m ... please


 Co...rin... a

 
  - Original Message - 
  Sent: Friday, August 27, 2004 8:33 PM
  Subject: Possible :) development lack...resource crawling
 
 
   Hello guys  have u ever tried to make a resource enumeration under
   cygwin
   Success stories wanted...die-hardly wanted ...
   Strange ... Finding resources works just fine... but not enumerating

   and I want enumeration ... yes , right enumeration I want ...wanna use
   things like EnumResourceTypes  really want...
   THX...
  
  
   --
   Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
   Problem reports:   http://cygwin.com/problems.html
   Documentation: http://cygwin.com/docs.html
   FAQ:   http://cygwin.com/faq/
  
  
 
  --
  Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
  Problem reports:   http://cygwin.com/problems.html
  Documentation: http://cygwin.com/docs.html
  FAQ:   http://cygwin.com/faq/

 -- 
 Corinna Vinschen  Please, send mails regarding Cygwin to
 Cygwin Project Co-Leader  mailto:[EMAIL PROTECTED]
 Red Hat, Inc.

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




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



Re: opengl 1.4

2004-08-27 Thread Brian Ford
On Fri, 27 Aug 2004, Kamil ERMAN wrote:

 Hi;
 I try to upgrate
 opengl 1.4 version, because
 I want to run and compile mycode in windows
  How can I obtain related lib and dll for cygwin-gcc
 compiler.

Windows only supports OpenGL version 1.1.  All newer functionality is
vendor specific (ATI, Nvidia, etc.), and only available via dynamic
loading (ie.  wglGetProcAddress()).

Headers and import libraries are provided via the w32api and opengl
packages.  Use setup to install them.

If you are looking for something else, try the package search available
here:

http://cygwin.com/packages

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained pilot...

--
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: Possible :) development lack...resource crawling --- Security Update :)

2004-08-27 Thread Robert McNulty Junior
She said that this is off topic. Take it to a MSDN group or get Mingw.
--
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 re-build Cygwin core package?

2004-08-27 Thread Peter Rehley
Might we be able to update the FAQ with this information?
On Aug 26, 2004, at 11:22 PM, Gernot Hillier wrote:
Hi!
Am Mittwoch, 25. August 2004 13:07 schrieb Gernot Hillier:
how to re-build Cygwin core package?
Just as reference for others - I now did it this way:
1.  Install Cygwin 2004-06-24, start bash
2.  Unpack the Cygwin core source package:
tar xvjf /cygdrive/e/release/cygwin/cygwin-1.5.10-3-src.tar.bz2
3.  Apply the needed patch (from
http://www.cygwin.com/ml/cygwin-patches/2004-q3/msg00039.html):
cd cygwin-1.5.10-3/winsup/cygwin  patch -p0  /path/to/root.diff
4.	It's necessary to build Cygwin in an extra path, so create one and 
change
to it:

cd ../../..  mkdir obj  cd obj
5.	To avoid Cygwin to overwrite the files of your make environment, an 
install
prefix is used:

../cygwin-1.5.10-3/configure --prefix=/fake/usr --sysconfdir=/fake/etc 
\
 --libexecdir=/fake/usr/sbin --localstatedir=/fake/var \
 --datadir=/fake/usr/share --mandir=/fake/usr/share/man \
 --infodir=/fake/usr/share/info

6.	Build and install the new Cygwin to the install prefix path given 
above:

make  make install
7.  Remove debug symbols from all executables:
cd /fake  find . -type f -exec strip {} \;
8.  Correct some file locations:
mv  usr/i686-pc-cygwin/bin/* usr/bin/
mv  usr/i686-pc-cygwin/lib/* usr/lib/
rm -rf usr/i686-pc-cygwin/bin usr/i686-pc-cygwin/lib usr/etc
mv  usr/i686-pc-cygwin/* usr/
9.  Create the w32api package:
tar cjf w32api-20040624-1.tar.bz2 usr/include/w32api usr/lib/w32api
10. Remove the files which belong to the w32api package from our tree:
rm -rf /fake/usr/include/w32api /fake/usr/lib/w32api
11. Create the mingw-runtime package:
tar cjf mingw-runtime-20040624-1.tar.bz2 usr/bin/mingwm10.dll \
   usr/doc/mingw-runtime usr/include/mingw usr/lib/mingw
12. Remove the files which belong to the w32api package from our tree:
rm -rf /fake/usr/bin/mingwm10.dll /fake/usr/doc/mingw-runtime \
   /fake/usr/include/mingw /fake/usr/lib/mingw
13.	Remove files which are distributed with other packages (but are 
included
in the cygwin source package for boot-strapping) or should not be 
distributed
at all:

rm -rf /fake/usr/include/iconv.h # comes also with libiconv
rm -rf /fake/usr/include/unctrl.h # comes also with libncurses-devel
rm -rf /fake/usr/share/info/configure.info-1 # auto-created by info 
tool
rm -rf /fake/usr/lib/libiberty.a # comes also with binutils

14.	Three files were not built and would need extra effort (i.e. 
compiling
other libraries be-fore the Cygwin package). Take them from the already
installed Cygwin distribution:

cp /usr/bin/dumper.exe usr/bin/
cp /usr/share/info/libc.info usr/share/info/
cp /usr/share/info/libm.info usr/share/info/
15. Finally, the cygwin package itself can be created:
tar cjf cygwin-20040624-1.tar.bz2 etc/ usr/
16.	Now, the created packages can be moved to the Cygwin installation 
CD-ROM
to release/cygwin/, release/mingw-runtime/ and release/w32api/ and the 
file
names, sizes and md5sums in setup.ini modified accordingly so that 
setup.exe
will in-stall the new core packages in the future.

HTH anyone...
--
Bye,
Gernot Hillier
CT SE 2
Siemens AG, Mch P
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


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


Re: help on makefile

2004-08-27 Thread Igor Pechtchanski
On Fri, 27 Aug 2004, Nicolas Roche wrote:

 Yung Leem wrote:
  Hello to all cygwin experts,
 
  I am a newbie cygwin user that's having a problem compiling a java source.
  I am running a makefile that's calling javac -cp [some_dir]
  /cygdrive/c/blah/myclass.java
  that's complaining about not being able to find that file.  Being familiar
  with unix development,
  I assumed that the shell process would spawn the javac process, but I think
  my guess is wrong.

No, it's right, the program does get spawned by the shell.  What you seem
to mean is that you assumed that there would be a Cygwin javac program
that would understand the POSIX pathnames, which is an incorrect
assumption.

  What really seems to happen is that javac gets called from Windows XP (the
  system I am using) and javac (from windows xp process) tries to compile
  that /cygdrive/c/blah/myclass.java file, and
  obviously fails to find that file.  What are the options I have?

 your javac program is not a cygwin program so it won't understand the cygwin
 like path. One solution is to use cygpath -w to translate cygwin-like path to
 windows-like path.

Correct, see http://cygwin.com/cygwin-ug-net/using-effectively.html.
Or you can use the java wrapper scripts I posted earlier (see
http://cygwin.com/ml/cygwin/2003-01/msg00174.html or the wrappers/java
directory in the cygwin-apps CVS repository).  These wrappers make java*
look like the Unix java that understands Unix (POSIX) paths, both on the
command line, and in variables such as $CLASSPATH, and does translations
automatically.  One thing the scripts don't do is detect where your java
is installed, so you'll have to edit them to specify that location.

  I am really freaking out that something like LD_LIBRARY_PATH,
  CLASSPATH, or PATH variables use : colon as a delimeter, but windows
  file systems recognize : as a drive name not as a delimeter. So
  having something like export
  CLASSPATH=c:/windows:c:/temp:c:/blah:$CLASSPATH will be a nightmare.
  I need some advise.  Thanks in advance for answering my question.

 Cygwin handle very well the path separators. If you do in cygwin bash
 $ export CLASSPATH=c:/windows:c:/temp:c:/blah:$CLASSPATH

Not quite true.  First off, if the above were translated as a path (e.g.,
by cygpath -wp, the colons (:) after the drive letters would be turned
into semicolons, with all the resulting havoc.  There are three solutions:
one is to set the CLASSPATH using Windows notation (don't forget to escape
the semicolons [;], or the shell will interpret them as command
separators), the other is to use the /cygdrive/c notation instead of the
c: notation, and translate it using cygpath -wp (e.g.,
CLASSPATH=`cygpath -wp 
/cygdrive/c/windows:/cygdrive/c/temp:/cygdrive/c/blah`;$CLASSPATH
), and the third is to use the abovementioned java wrapper scripts which
will do the above for you automatically.

 you can launch a windows shell from cygwin and see that the var have been
 translated correctly (: - ;)

Only $PATH and a couple of other variables are translated in this way.
$CLASSPATH isn't one of them, as you can easily verify.
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!

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw

--
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: Newbie: cygrunsrv using strange PATH variable

2004-08-27 Thread Alder
Larry Hall wrote:
Specifically, we need to know the results of 'cygcheck -srv' (*attached*,
not inlined), the exact context in which this happens, and the input and 
output.
My apologies.  I think I covered the inputs and outputs in my original 
post, though.  Here (attached) are the results of:

$ cygcheck -srv

Cygwin Configuration Diagnostics
Current System Time: Fri Aug 27 10:45:36 2004

Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4

Path:   D:\cygwin\usr\local\bin
D:\cygwin\bin
D:\cygwin\bin
D:\cygwin\usr\X11R6\bin
d:\cygwin\bin
c:\WINNT\system32
c:\WINNT


Output from D:\cygwin\bin\id.exe (nontsec)
UID: 1000(Manager) GID: 544(Administrators)
544(Administrators) 
1006(NetMeeting RDS Users)

Output from D:\cygwin\bin\id.exe (ntsec)
UID: 1000(Manager) GID: 544(Administrators)
0(root) 
513(None)   544(Administrators)
545(Users)  
1006(NetMeeting RDS Users)

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

CYGWIN = `ntsec ntea server binmode tty check_case:strict 
error_start:d:\cygwin\bin\gdb.exe title nostrip_title'
HOME = `D:\cygwin\home\Manager'
MAKE_MODE = `unix'
PWD = `/home/Manager'
USER = `Manager'

ALLUSERSPROFILE = `C:\Documents and Settings\All Users.WINNT'
APPDATA = `C:\Documents and Settings\Manager.KIRALY\Application Data'
CLASSPATH = `D:\Program Files\Java\j2re1.4.2_05\lib\ext\QTJava.zip'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `KIRALY'
COMSPEC = `C:\WINNT\system32\cmd.exe'
CVS_RSH = `/bin/ssh'
HISTCONTROL = `ignoredups'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\Manager.KIRALY'
HOSTNAME = `kiraly'
INFOPATH = 
`/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info::.'
LOGONSERVER = `\\KIRALY'
MANPATH = 
`/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::.:/usr/ssl/man:/usr/X11R6/man'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/usr/bin'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PKG_CONFIG_PATH = `/usr/X11R6/lib/pkgconfig'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 6 Stepping 5, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0605'
PROGRAMFILES = `C:\Program Files'
PROMPT = `$P$G'
PS1 = `\[\033]0;\w\007
[EMAIL PROTECTED] \[\033[33m\w\033[0m\]
$ '
QTJAVA = `D:\Program Files\Java\j2re1.4.2_05\lib\ext\QTJava.zip'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINNT'
TEMP = `C:\DOCUME~1\MANAGE~1.KIR\LOCALS~1\Temp'
TERM = `cygwin'
TEXMF = `{/usr/share/lilypond/2.2.2,/usr/share/texmf}'
TMP = `C:\DOCUME~1\MANAGE~1.KIR\LOCALS~1\Temp'
USERDOMAIN = `KIRALY'
USERNAME = `Manager'
USERPROFILE = `C:\Documents and Settings\Manager.KIRALY'
WINDIR = `C:\WINNT'
_ = `/usr/bin/cygcheck'
POSIXLY_CORRECT = `1'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x0022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `D:\cygwin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `D:\cygwin/bin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `D:\cygwin/lib'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/X11R6/lib/X11/fonts
  (default) = `D:\cygwin\usr\X11R6\lib\X11\fonts'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

a:  fd   N/AN/A
c:  hd  NTFS4118Mb  62% CP CS UN PA FC W2K_SYSTEM
d:  hd  NTFS   19069Mb  43% CP CS UN PA FC DATA_1
e:  hd  NTFS2014Mb  18% CP CS UN PA FC SCSI_DISK
f:  hd  NTFS   19069Mb  11% CP CS UN PA FC DATA_2
g:  hd  NTFS   19069Mb   4% CP CS UN PA FC DATA_3
h:  hd  NTFS   19108Mb  10% CP CS UN PA FC DATA_4
i:  cd  CDFS 508Mb 100%CS UN   Creative

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

Found: D:\cygwin\bin\awk.exe
Found: D:\cygwin\bin\bash.exe
Found: D:\cygwin\bin\cat.exe
Found: D:\cygwin\bin\cp.exe
Found: D:\cygwin\bin\cpp.exe
Found: D:\cygwin\bin\find.exe
Found: D:\cygwin\bin\gcc.exe
Found: D:\cygwin\bin\gdb.exe
Found: D:\cygwin\bin\grep.exe

SYSTEM-owned shell shortcut (Was Re: xinetd Permissions; IMAP server)

2004-08-27 Thread Igor Pechtchanski
On Fri, 27 Aug 2004, Igor Pechtchanski wrote:

 [snip]
 Or you could try to get a SYSTEM-owned shell, and remove it from there.
 FWIW, I have a handy shortcut for that (see below).

Sorry, I forgot to include the promised shortcut.  Here it is:

C:\cygwin\bin\bash.exe -c at $(date +%H):$(($(date +%M) + 1)) /interactive 
'c:\cygwin\bin\bash.exe' --login -i; secs=$((60 - $(date +%S))); while [ $secs -ne 0 
]; do echo -ne 'Please wait '$secs' seconds for the shell \r'; sleep 1; secs=$(($secs 
- 1)); done

Just paste the above line in the Target: field of the shortcut.  What
this will do is show a window with the countdown until the system-owned
login shell pops up.  If you want to make it really nice, set the width of
the shortcut screen buffer (in the Layout tab) to 38 and the height to 1.

The above assumes you installed Cygwin in c:/cygwin.  If you installed it
somewhere else, the shortcut needs to be modified accordingly.
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!

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw

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



signal delivery problem (with pthreads)

2004-08-27 Thread Valery A. Frolov
Hello,

In short:
First signal delivery on call of pthread_kill(tid, SIGUSR1) works fine
but second one delivers signal with _delay_ and _twice_, and then my
own daemon crash. This is on cygwin1.dll 1.5.10-3 and snapshot of
2004-08-21. But on cygwin1.dll 1.5.7-1 all works _fine_ and _long_ time.

In detail:
(Sorry for my bad English.)
(And sorry for long letter.)
(And much more sorry if this is not appropriate place to ask this question.)

I'm writing a daemon. Multi-threaded and TCP/IP-oriented. And it works.
On Linux and FreeBSD. And on cygwin 1.5.7-1. But there is a problem
which I'm currently trying to solve: one of the servicing client thread
hangs up with 100% CPU usage in random time periods (but with probability
nearly equal to 1) and do not response to wakeup signals.

The first investigation brought me an idea that the problem is lying in
select() call in cygwin implementation. (I have only one socket in
select() call and nothing more.) But maybe I'm wrong.

Anyway, in that moment I made the decision to update cygwin1.dll because
my cygwin1.dll 1.5.7-1 is too old and maybe a newer version solves my
problem. I got 1.5.10-3 and... my daemon crashed :( on very simple action.
I had never seen something like this with 1.5.7-1.

Then I got the (latest on that moment) snapshot of cygwin1.dll -
2004-08-21. And my daemon crashed again with same symptoms.

gdb 2003-09-20-cvs (cygwin-special) didn't help because it received
SIGSEGV in KERNEL32!IsBadWritePtr on my daemon run before the piece
of code with problem was executed.

But strace (cygwin) 1.21 gave some interesting results.

Here is some data and logs.

$ strace -o strace7.log -t -m sigp  yolopd -l yolopd7.log
$ strace -o straceB.log -t -m sigp  yolopd -l yolopdB.log

yolopd7.log (1.5.7-1) and yolopdB.log (snapshot 20040821) are
my daemon logs. Just in case.

SIGUSR1 is used by main thread to awake other sleeping threads which
perform some actions.

The SIGUSR1 handler is very simple:

static void handler_sigusr1(int sig)
{
#ifdef DEBUG
log_msg(got SIGUSR1);
#endif
// do nothing, only for exit from sleep()
}


$ grep -i sig yolopd7.log
2004-08-27 13:03:41 yolopd[195]: setting signal handlers done.
2004-08-27 13:03:53 yolopd[195]: ATM001: send SIGUSR1 (refresh).
2004-08-27 13:03:53 yolopd[195]: got SIGUSR1.
2004-08-27 13:04:24 yolopd[195]: ATM001: send SIGUSR1 (refresh).
2004-08-27 13:04:24 yolopd[195]: got SIGUSR1.
[...and then normal exit...]

$ grep -i sig yolopdB.log
2004-08-27 13:01:35 yolopd[149]: setting signal handlers done.
2004-08-27 13:01:50 yolopd[149]: ATM001: send SIGUSR1 (refresh).
2004-08-27 13:01:50 yolopd[149]: got SIGUSR1.
2004-08-27 13:01:59 yolopd[149]: ATM001: send SIGUSR1 (refresh).
2004-08-27 13:02:20 yolopd[149]: got SIGUSR1.
2004-08-27 13:02:20 yolopd[149]: got SIGUSR1.  -- twice!
[...immediate crash...]

$ ls -l strace?.log
-rw-r--r--1 Valery   None 6277 Aug 27 13:04 strace7.log
-rw-r--r--1 Valery   None   171388 Aug 27 13:02 straceB.log

Compare the size of strace log files!  :-[  ]

$ grep -c pending strace?.log
strace7.log:5
straceB.log:679   -- !!!

$ grep -c signal.*not delivered strace?.log
strace7.log:0
straceB.log:6 -- !!!

$ grep -E '(arriv|returning.*signal 30)' strace7.log
13:03:53 [sig] yolopd 195 _threadinfo::interrupt_setup: armed signal_arrived 0x60, sig 
30, res 1
13:03:53 [main] yolopd 195 reset_signal_arrived: reset signal_arrived
13:03:53 [unknown (0x6A)] yolopd 195 sig_send: returning 0x0 from sending signal 30
13:04:24 [sig] yolopd 195 _threadinfo::interrupt_setup: armed signal_arrived 0x60, sig 
30, res 1
13:04:24 [main] yolopd 195 reset_signal_arrived: reset signal_arrived
13:04:24 [unknown (0x6A)] yolopd 195 sig_send: returning 0x0 from sending signal 30

$ grep -E '(arriv|returning.*signal 30)' straceB.log
13:01:50 [sig] yolopd 149 _cygtls::interrupt_setup: armed signal_arrived 0x9C, sig 30, 
res 1
13:01:50 [unknown (0xC3)] yolopd 149 sig_send: returning 0x0 from sending signal 30
13:01:51 [unknown (0xC8)] yolopd 149 reset_signal_arrived: reset signal_arrived
13:02:00 [unknown (0xC3)] yolopd 149 sig_send: returning 0x0 from sending signal 30
13:02:20 [unknown (0xC8)] yolopd 149 reset_signal_arrived: reset signal_arrived
13:02:20 [sig] yolopd 149 _cygtls::interrupt_setup: armed signal_arrived 0x9C, sig 30, 
res 1
13:02:20 [unknown (0xC8)] yolopd 149 reset_signal_arrived: reset signal_arrived

Two things which I've found out in strace?.log.

First. In strace7.log exactly one reset_signal_arrived record after
each armed signal. In straceB.log for first signal there is _two_
reset_signal_arrived records with ~30 seconds interval.

Second. In strace7.log reset_signal_arrived record is present _before_
returning 0x0 from sending signal 30. In straceB.log - _after_.

Maybe I'm saying nonsense and problem is placed in my daemon code
but not in cygwin but...

Whole trace files (strace7.log  straceB.log) are attached to this letter.

I can't make small source code 

Possible :) development lack...resource crawling --- Security Update :) - FIX

2004-08-27 Thread boxforsr
ok ok okseems my mistake  all ok now.
always check types with IS_INTRESOURCE.

--
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: questions about DLL's: .a, .def, and .dll

2004-08-27 Thread Igor Pechtchanski
On Fri, 27 Aug 2004, Oliver wrote:

 Hi folks, I'm confused about the files that dllwrap
 creates. On Unix (where I've been programming forever) all you
 have to do is create a .so shared library. But dllwrap ends up
 creating a .a file, a .def file, and a .dll file, yet I can
 build a program that links to, e.g., mylib.dll, with only -L. -lmylib,
 *wihtout* having the .def or .a available. So where and when are the .a and
 .def files needed?

The newer versions of gcc apparently allow you to link directly to a .dll
file.  The .def and .a are needed for older versions of gcc, and possibly
for some other tools.

 Also, I read in the various docs (dllhelpers etc) that you have to
 compile the file that has DllMain using either extern 'C' around the
 DllMain function, or make it a C file rather than a c++ file and compile
 with gcc, yet it worked for me as a c++ file without the extern, is this
 new behavior or is something going to blow up on me later?

The reason you want an 'extern C' for DLL functions in general is that
g++ and the Windows C++ compilers (notably VC++) use different name
munging schemes, so a DLL built with C++ symbols won't be usable from
other applications that try to call those functions.  The reason you want
it for DllMain is that the Windows loader will be looking for the unmunged
name DllMain.  Are you sure that it's really invoked when the DLL is
loaded?
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!

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw

--
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: questions about DLL's: .a, .def, and .dll

2004-08-27 Thread Igor Pechtchanski
On Fri, 27 Aug 2004, Igor Pechtchanski wrote:

 On Fri, 27 Aug 2004, Oliver wrote:

  Hi folks, I'm confused about the files that dllwrap
  creates. On Unix (where I've been programming forever) all you
  have to do is create a .so shared library. But dllwrap ends up
  creating a .a file, a .def file, and a .dll file, yet I can
  build a program that links to, e.g., mylib.dll, with only -L. -lmylib,
  *wihtout* having the .def or .a available. So where and when are the .a and
  .def files needed?

 The newer versions of gcc apparently allow you to link directly to a .dll
   ^/binutils
 file.  The .def and .a are needed for older versions of gcc, and possibly
 ^/binutils
 for some other tools.
 [snip]
   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!

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw

--
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: signal delivery problem (with pthreads)

2004-08-27 Thread Valery A. Frolov
 Whole trace files (strace7.log  straceB.log) are attached to this letter.

Heh... Forgot attach it.

WBR,
 Valery
13:03:41 [main] yolopd 161 sigproc_init: process/signal handling enabled(1)
13:03:41 [main] yolopd 161 wait_for_sigthread: wait_sig_inited 0x54
13:03:41 [main] yolopd 161 subproc_init: started wait_subproc thread
13:03:41 [main] yolopd 161 proc_subproc: args: 1, 2239944
13:03:41 [main] yolopd 161 proc_subproc: added pid 195 to wait list, slot 0, winpid 
0xC3, handle 0x128
13:03:41 [main] yolopd 161 proc_subproc: returning 1
13:03:41 [proc] yolopd 161 wait_subproc: starting
13:03:41 [proc] yolopd 161 wait_subproc: looping
13:03:41 [main] yolopd 195 fork_child: hParent 0x68, child 1 first_dll 0x0, load_dlls 0
13:03:41 [main] yolopd 195 sigproc_init: process/signal handling enabled(801)
13:03:41 [main] yolopd 195 wait_for_sigthread: wait_sig_inited 0x48
13:03:41 [main] yolopd 195 sigaction: signal 15, newact 0x0, oldact 0x2233F0
13:03:41 [main] yolopd 195 sigaction: signal 15, newact 0x2233F0, oldact 0x0
13:03:41 [main] yolopd 195 sigaction: signal 2, newact 0x0, oldact 0x2233F0
13:03:41 [main] yolopd 195 sigaction: signal 2, newact 0x2233F0, oldact 0x0
13:03:41 [main] yolopd 195 sigaction: signal 30, newact 0x0, oldact 0x2233F0
13:03:41 [main] yolopd 195 sigaction: signal 30, newact 0x2233F0, oldact 0x0
13:03:41 [main] yolopd 195 sigaction: signal 31, newact 0x0, oldact 0x2233F0
13:03:41 [main] yolopd 195 sigaction: signal 31, newact 0x2233F0, oldact 0x0
13:03:41 [main] yolopd 195 sigaction: signal 1, newact 0x0, oldact 0x2233F0
13:03:41 [main] yolopd 195 sigaction: signal 1, newact 0x2233F0, oldact 0x0
13:03:41 [main] yolopd 195 sigaction: signal 13, newact 0x0, oldact 0x2233F0
13:03:41 [main] yolopd 195 sigaction: signal 13, newact 0x2233F0, oldact 0x0
13:03:41 [main] yolopd 195 sig_send: sendsig 0xE8, pid 195, signal -13, its_me 1
13:03:41 [main] yolopd 195 sig_send: wakeup 0xC0
13:03:41 [sig] yolopd 195 wait_sig: signalled 0xC0
13:03:41 [main] yolopd 195 sig_send: Waiting for pack.wakeup 0xC0
13:03:41 [main] yolopd 195 sig_send: returning 0x0 from sending signal -13
13:03:41 [main] yolopd 195 set_signal_mask: oldmask 0x0, newmask 0x0, mask_bits 0x0
13:03:41 [main] yolopd 195 set_signal_mask: not calling sig_dispatch_pending
13:03:41 [main] yolopd 195 handle_sigsuspend: oldmask 0x0, newmask 0x0
13:03:42 [main] yolopd 161 sigproc_terminate: entering
13:03:42 [sig] yolopd 161 wait_sig: done
13:03:42 [main] yolopd 161 proc_terminate: nchildren 1, nzombies 0
13:03:42 [main] yolopd 161 proc_subproc: args: 3, 1
13:03:42 [main] yolopd 161 proc_subproc: clear waiting threads
13:03:42 [main] yolopd 161 proc_subproc: finished clearing
13:03:42 [main] yolopd 161 proc_subproc: returning 1
13:03:42 [main] yolopd 161 proc_terminate: 195(195) closed child handle
13:03:42 [main] yolopd 161 proc_terminate: leaving
13:03:42 [main] yolopd 161 do_exit: 161 == pgrp 161, send SIG{HUP,CONT} to stopped 
children
13:03:42 [main] yolopd 161 kill_pgrp: pid 161, signal -1
13:03:42 [proc] yolopd 161 wait_subproc: looping
13:03:42 [proc] yolopd 161 wait_subproc: done
13:03:42 [main] yolopd 161 _pinfo::exit: Calling ExitProcess 0
13:03:53 [unknown (0x6A)] yolopd 195 sig_send: sendsig 0xE8, pid 195, signal 30, 
its_me 1
13:03:53 [unknown (0x6A)] yolopd 195 sig_send: wakeup 0x140
13:03:53 [sig] yolopd 195 sig_handle: signal 30 processing
13:03:53 [sig] yolopd 195 sig_handle: signal 30, about to call 0x401088
13:03:53 [sig] yolopd 195 proc_subproc: args: 3, 1
13:03:53 [sig] yolopd 195 proc_subproc: clear waiting threads
13:03:53 [sig] yolopd 195 proc_subproc: finished clearing
13:03:53 [sig] yolopd 195 proc_subproc: returning 1
13:03:53 [sig] yolopd 195 _threadinfo::interrupt_setup: armed signal_arrived 0x60, sig 
30, res 1
13:03:53 [sig] yolopd 195 setup_handler: interrupted known cygwin routine
13:03:53 [sig] yolopd 195 setup_handler: signal 30 delivered
13:03:53 [sig] yolopd 195 sig_handle: returning 1
13:03:53 [sig] yolopd 195 wait_sig: signalled 0x140
13:03:53 [main] yolopd 195 reset_signal_arrived: reset signal_arrived
13:03:53 [main] yolopd 195 set_signal_mask: oldmask 0x0, newmask 0x2000, mask_bits 
0x0
13:03:53 [main] yolopd 195 set_signal_mask: not calling sig_dispatch_pending
13:03:53 [main] yolopd 195 set_signal_mask: oldmask 0x2000, newmask 0x0, mask_bits 
0x2000
13:03:53 [main] yolopd 195 set_signal_mask: oldmask 0x0, newmask 0x0, mask_bits 0x0
13:03:53 [main] yolopd 195 set_signal_mask: not calling sig_dispatch_pending
13:03:53 [main] yolopd 195 handle_sigsuspend: oldmask 0x0, newmask 0x0
13:03:53 [unknown (0x6A)] yolopd 195 sig_send: Waiting for pack.wakeup 0x140
13:03:53 [unknown (0x6A)] yolopd 195 sig_send: returning 0x0 from sending signal 30
13:04:24 [unknown (0x6A)] yolopd 195 sig_send: sendsig 0xE8, pid 195, signal 30, 
its_me 1
13:04:24 [unknown (0x6A)] yolopd 195 sig_send: wakeup 0x1E8
13:04:24 [sig] yolopd 195 sig_handle: signal 30 processing
13:04:24 [sig] yolopd 195 sig_handle: signal 

setup 2.427 runtime error

2004-08-27 Thread Shaffer, Kenneth
I'm getting a setup.exe runtime error when trying to install from a local
disk (after downloading from the internet) just after the MD5 checks.

I thought it was about time I upgrade.

My current cygwin1.dll version 1.5.5 (does setup use the dll?)

--
Ken Shaffer



 - - - - - - -  Appended by Scientific-Atlanta, Inc.  - - - - - - -  
This e-mail and any attachments may contain information which is confidential, 
proprietary, privileged or otherwise protected by law. The information is solely 
intended for the named addressee (or a person responsible for delivering it to the 
addressee). If you are not the intended recipient of this message, you are not 
authorized to read, print, retain, copy or disseminate this message or any part of it. 
If you have received this e-mail in error, please notify the sender immediately by 
return e-mail and delete it from your computer.


--
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: questions about DLL's: .a, .def, and .dll

2004-08-27 Thread Oliver
Igor Pechtchanski pechtcha at cs.nyu.edu writes:

 On Fri, 27 Aug 2004, Oliver wrote:
 
  creating a .a file, a .def file, and a .dll file, yet I can
  build a program that links to, e.g., mylib.dll, with only -L. -lmylib,
  *wihtout* having the .def or .a available. So where and when are the .a and
  .def files needed?
 
 The newer versions of gcc apparently allow you to link directly to a .dll
 file.  The .def and .a are needed for older versions of gcc, and possibly
 for some other tools.

I guess the .def file might be used if you created your dll in cygwin/mingw but 
are creating your program with VC++ and linking to your non-VC++ dll. (?)

 ...a DLL built with C++ symbols won't be usable from
 other applications that try to call those functions.  The reason you want
 it for DllMain is that the Windows loader will be looking for the unmunged
 name DllMain.  Are you sure that it's really invoked when the DLL is

Yes. I even tried it on the latest dllhelpers C++ example: just renamed 
dllinit.c to .cc and changed makeit.bat to use g++ instead of gcc, and 
everything still works. Perhaps g++ knows to leave DllMain alone? Or perhaps 
the APIENTRY macro that appears just in front of DllMain prevents munging? 

Oliver




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



May I suggest

2004-08-27 Thread Bruce
IDUAYCMMfor some people.
I don't understand and you can't make me.

Bruce

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



Strange problem with MC

2004-08-27 Thread landocalrissian
Hello from Gregg C Levine
Here's a funny thing that's been happening ever since I installed Cygwin
here, and subscribed to this list:
cat: /tmp/mc-Gregg: No such file or directory
cat: C: No such file or directory
cat: Levine/mc.pwd.1992: No such file or directory

As all of you can see, the program is attempting to parse the name that tmp
lives in, inside my Documents and Setting folder, and then inside the local
settings folder. And since the folder with my name on it is considered a
system folder, with those requirements and privleges, I can't rename it.
What's interesting, is that it works normally, except for activities
regarding access to the tmp directory. Are there any work arounds? If I'm
bringing this to the wrong list, then I'll be happy to resend it to the
proper one.
Gregg C Levine landocalrissian atsign att dot net 
This signature asks, Where am I?.


--
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: setup 2.427 runtime error

2004-08-27 Thread David A. Cobb
Shaffer, Kenneth wrote:
I'm getting a setup.exe runtime error when trying to install from a local
disk (after downloading from the internet) just after the MD5 checks.
 

I just reported a possibly similar situation; discussions of setup.exe 
mostly take place on cygwin-apps list.
I'm taking the liberty of cc'ing there and resetting the Reply-to header

I thought it was about time I upgrade.
My current cygwin1.dll version 1.5.5 (does setup use the dll?)
 

NO, setup is a MSWindows application.  The current is 2.4something.  
Yes, you should certainly pull down the latest.

--
Ken Shaffer

- - - - - - -  Appended by Scientific-Atlanta, Inc.  - - - - - - -  
This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer.

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

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

begin:vcard
fn:David A. Cobb
n:Cobb;David A.
adr:;;7 Lenox Av #1;West Warwick;RI;02893-3918;USA
email;internet:[EMAIL PROTECTED]
title:Independent Software Consultant
note:PGP Key ID#0x4C293929 effective 01/28/2004
x-mozilla-html:TRUE
version:2.1
end:vcard


--
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: Newbie: cygrunsrv using strange PATH variable

2004-08-27 Thread Larry Hall
At 01:51 PM 8/27/2004, you wrote:
Larry Hall wrote:

Specifically, we need to know the results of 'cygcheck -srv' (*attached*,
not inlined), the exact context in which this happens, and the input and output.

My apologies.  I think I covered the inputs and outputs in my original post, though.  
Here (attached) are the results of:



snip

Actually, I was looking for details of your cygrunsrv run and where and 
how you started it (i.e. exact input, output, sequence of events, etc).
But perhaps Igor's issue is the same as yours.  Try his suggestion and 
see if it helps.





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



[BUG] Bad File Descriptor while trying to set up postgresql

2004-08-27 Thread David A. Cobb
At first, this stopped me entirely from initializing postgres; however, 
today the initdb  createdb succeeded -- I don't know what changed.  In 
any case, references to the database directory during the initdb incur a 
Bad File Descriptor complaint when trying to set permissions.

The partition where the database lives is FAT32 -- it needs to be 
because it is also visible from my Linux dual-boot. 
I know permissions on a FAT32 volume are, at best, faked.  But IMHO it 
shouldn't incur this sort of error.

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

Running in debug mode.

initdb: internal variables:
  PGDATA=/var/database/pgsql
  datadir=/usr/share/postgresql
  PGPATH=/usr/bin
  ENCODING=UTF-8
  ENCODINGID=6
  POSTGRES_SUPERUSERNAME=postgres
  POSTGRES_BKI=/usr/share/postgresql/postgres.bki
  POSTGRES_DESCR=/usr/share/postgresql/postgres.description
  POSTGRESQL_CONF_SAMPLE=/usr/share/postgresql/postgresql.conf.sample
  PG_HBA_SAMPLE=/usr/share/postgresql/pg_hba.conf.sample
  PG_IDENT_SAMPLE=/usr/share/postgresql/pg_ident.conf.sample
The files belonging to this database system will be owned by user postgres.
This user must also own the server process.

The database cluster will be initialized with locale C.

fixing permissions on existing directory /var/database/pgsql... chmod: changing 
permissions of `/var/database/pgsql': Bad file descriptor

initdb: failed
total 0
drwxr-xr-x2 postgres None0 Aug  5 11:27 Debian_Packages
drwxr-xr-x5 postgres None0 Aug 25 13:25 Marathon
drwxr-xr-x3 postgres None0 Aug 25 11:22 Zeos
drwxr-xr-x2 postgres None0 Aug 25 22:24 pgsql
begin:vcard
fn:David A. Cobb
n:Cobb;David A.
adr:;;7 Lenox Av #1;West Warwick;RI;02893-3918;USA
email;internet:[EMAIL PROTECTED]
title:Independent Software Consultant
note:PGP Key ID#0x4C293929 effective 01/28/2004
x-mozilla-html:TRUE
version:2.1
end:vcard


--
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: questions about DLL's: .a, .def, and .dll

2004-08-27 Thread Oliver
Igor Pechtchanski pechtcha at cs.nyu.edu writes:

 The newer versions of gcc apparently allow you to link directly to a .dll
 file.  The .def and .a are needed for older versions of gcc, and possibly
 for some other tools.
 
 [...]

 The reason you want an 'extern C' for DLL functions in general is that
 g++ and the Windows C++ compilers (notably VC++) use different name
 munging schemes, so a DLL built with C++ symbols won't be usable from
 other applications that try to call those functions.  The reason you want
 it for DllMain is that the Windows loader will be looking for the unmunged
 name DllMain.  Are you sure that it's really invoked when the DLL is
 loaded?

Actually I found something quite interesting on a Tcl extensions in Windows 
wiki website, where a poster says that DllMain, __decl... import export, 
windows.h etc are no longer needed with g++. Sure enough, the following example 
works:

1) create a dll.h file that contains a class definition, just like you would on 
Unix (i.e. no __decl... macros, no extern etc)
2) create a dll.cc file that contains some of your class definition methods
3) then create the dll with  

   g++ -c dll.o
   g++ -shared dll.o -otestdll.dll

4) create a testMain.cc file with a main() that #includes dll.h and uses some 
things defined in dll.cc
5) build with 

   g++ -o testMain testMain.cc -L. -ltestdll

6) run testMain.exe to make sure it works

Note that extern, gcc, import/export macros and declarations, DllMain etc were 
NOT needed. Gcc seems to export everything, like it would on *nix (except, 
presumably, functions declared static and things in anonymous namespace -- 
exercise left to the reader ;). 

You can tell the linker to generate a .def file by adding -Wl,--output-
def=testdll.def when creating the testdll.dll. This shows all symbols 
exported. Running nm on testdll.dll also shows 

67488220 T [EMAIL PROTECTED]
67481000 T [EMAIL PROTECTED]

which means that gcc auto-generated it, and did not mangle for C++ use. 

Does anyone know if testdll.dll, created this way, would be linkable from a 
VC++ program? I don't have access to VC++.

Oliver




--
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: setup 2.427 runtime error

2004-08-27 Thread Shaffer, Kenneth
Thanks!

cygwin folks:  sorry for the post to the wrong list... I wrote before I
read all the way down where it specifically mentions that setup questions
go to the cygwin-apps list.

--
Ken Shaffer


On Fri, 27 Aug 2004, David A. Cobb wrote:

 Date: Fri, 27 Aug 2004 16:25:49 -0400
 From: David A. Cobb [EMAIL PROTECTED]
 To: [EMAIL PROTECTED], [EMAIL PROTECTED]
 Cc: Cygwin Application Packaging Discussion List [EMAIL PROTECTED]
 Subject: Re: setup 2.427 runtime error

 Shaffer, Kenneth wrote:

 I'm getting a setup.exe runtime error when trying to install from a local
 disk (after downloading from the internet) just after the MD5 checks.
 
 
 I just reported a possibly similar situation; discussions of setup.exe
 mostly take place on cygwin-apps list.
 I'm taking the liberty of cc'ing there and resetting the Reply-to header

 I thought it was about time I upgrade.
 
 My current cygwin1.dll version 1.5.5 (does setup use the dll?)
 
 
 NO, setup is a MSWindows application.  The current is 2.4something.
 Yes, you should certainly pull down the latest.

 --
 Ken Shaffer
 
 
 
  - - - - - - -  Appended by Scientific-Atlanta, Inc.  - - - - - - -
 This e-mail and any attachments may contain information which is confidential, 
 proprietary, privileged or otherwise protected by law. The information is solely 
 intended for the named addressee (or a person responsible for delivering it to the 
 addressee). If you are not the intended recipient of this message, you are not 
 authorized to read, print, retain, copy or disseminate this message or any part of 
 it. If you have received this e-mail in error, please notify the sender immediately 
 by return e-mail and delete it from your computer.
 
 
 --
 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/
 
 
 
 

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






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



Re: Strange problem with MC (Attn: MC maintainer)

2004-08-27 Thread Igor Pechtchanski
On Fri, 27 Aug 2004, landocalrissian wrote:

 Hello from Gregg C Levine
 Here's a funny thing that's been happening ever since I installed Cygwin
 here, and subscribed to this list:
 cat: /tmp/mc-Gregg: No such file or directory
 cat: C: No such file or directory
 cat: Levine/mc.pwd.1992: No such file or directory

This is a quoting bug in line 5 of the /usr/share/mc/bin/mc-wrapper.sh
script, which says:

MC_PWD=`cat $MC_PWD_FILE`

This should be

MC_PWD=`cat $MC_PWD_FILE`

MC maintainer, please note.  In the meantime, you can fix it in your local
copy.
Igor

 As all of you can see, the program is attempting to parse the name that tmp
 lives in, inside my Documents and Setting folder, and then inside the local
 settings folder. And since the folder with my name on it is considered a
 system folder, with those requirements and privleges, I can't rename it.
 What's interesting, is that it works normally, except for activities
 regarding access to the tmp directory. Are there any work arounds? If I'm
 bringing this to the wrong list, then I'll be happy to resend it to the
 proper one.
 Gregg C Levine landocalrissian atsign att dot net
 This signature asks, Where am I?.

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

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw

--
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: questions about DLL's: .a, .def, and .dll

2004-08-27 Thread Igor Pechtchanski
On Fri, 27 Aug 2004, Oliver wrote:

 Igor Pechtchanski pechtcha at cs.nyu.edu writes:

  The newer versions of gcc apparently allow you to link directly to a .dll
  file.  The .def and .a are needed for older versions of gcc, and possibly
  for some other tools.
 
  [...]
 
  The reason you want an 'extern C' for DLL functions in general is that
  g++ and the Windows C++ compilers (notably VC++) use different name
  munging schemes, so a DLL built with C++ symbols won't be usable from
  other applications that try to call those functions.  The reason you want
  it for DllMain is that the Windows loader will be looking for the unmunged
  name DllMain.  Are you sure that it's really invoked when the DLL is
  loaded?

 Actually I found something quite interesting on a Tcl extensions in
 Windows wiki website, where a poster says that DllMain, __decl...
 import export, windows.h etc are no longer needed with g++. Sure enough,
 the following example works:

 1) create a dll.h file that contains a class definition, just like you
 would on Unix (i.e. no __decl... macros, no extern etc)
 2) create a dll.cc file that contains some of your class definition methods
 3) then create the dll with

g++ -c dll.o
g++ -shared dll.o -otestdll.dll

 4) create a testMain.cc file with a main() that #includes dll.h and uses
 some things defined in dll.cc
 5) build with

g++ -o testMain testMain.cc -L. -ltestdll

 6) run testMain.exe to make sure it works

 Note that extern, gcc, import/export macros and declarations, DllMain
 etc were NOT needed. Gcc seems to export everything, like it would on
 *nix (except, presumably, functions declared static and things in
 anonymous namespace -- exercise left to the reader ;).

 You can tell the linker to generate a .def file by adding -Wl,--output-
 def=testdll.def when creating the testdll.dll. This shows all symbols
 exported. Running nm on testdll.dll also shows

 67488220 T [EMAIL PROTECTED]
 67481000 T [EMAIL PROTECTED]

 which means that gcc auto-generated it, and did not mangle for C++ use.

 Does anyone know if testdll.dll, created this way, would be linkable from a
 VC++ program? I don't have access to VC++.

First off, yes, a DllMain will be generated automatically if you don't
provide it.  That still doesn't address the issue of whether you should
declare it as 'extern C' when you *do* provide it.  It seems that
APIENTRY is enough.

Secondly, the resultant DLL will be linkable from a VC++ program, but the
C++ functions in it will not be accessible from code compiled with VC++.
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!

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw

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



Re: Strange problem with MC (Attn: MC maintainer)

2004-08-27 Thread Brian Ford
While we have their attention...

$ /bin/sh -c . /etc/profile
alias: not found

$ cat /etc/profile.d/mc.sh
alias mc='. /usr/share/mc/bin/mc-wrapper.sh'

Since our /bin/sh is ash, could this be a shell function (or
something else that is ash compatible) instead?

mc()
  . /usr/share/mc/bin/mc-wrapper.sh

I'd like to be able to use /bin/sh as a login shell occasionally without
this error.  Thanks.

On Fri, 27 Aug 2004, Igor Pechtchanski wrote:
 On Fri, 27 Aug 2004, landocalrissian wrote:

  Hello from Gregg C Levine
  Here's a funny thing that's been happening ever since I installed Cygwin
  here, and subscribed to this list:
  cat: /tmp/mc-Gregg: No such file or directory
  cat: C: No such file or directory
  cat: Levine/mc.pwd.1992: No such file or directory

 This is a quoting bug in line 5 of the /usr/share/mc/bin/mc-wrapper.sh
 script, which says:

   MC_PWD=`cat $MC_PWD_FILE`

 This should be

   MC_PWD=`cat $MC_PWD_FILE`

 MC maintainer, please note.  In the meantime, you can fix it in your local
 copy.
   Igor

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained pilot...

--
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: setup 2.427 runtime error

2004-08-27 Thread Larry Hall
At 03:15 PM 8/27/2004, you wrote:
I'm getting a setup.exe runtime error when trying to install from a local
disk (after downloading from the internet) just after the MD5 checks.

I thought it was about time I upgrade.

My current cygwin1.dll version 1.5.5 (does setup use the dll?)


No.

Does it work OK installing from the internet?



--
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: Strange problem with MC (Attn: MC maintainer)

2004-08-27 Thread landocalrissian
Hello from Gregg C Levine
I did what you suggested Igor. Now I'm getting:
bash: command substitution: line 1: unexpected EOF while looking for
matching `
'
bash: command substitution: line 2: syntax error: unexpected end of file

It also says that:
/tmp/mc-Gregg: Can't open /tmp/mc-Gregg: No such file or directory

That from trying to browse a BZIP2 compressed tar file. This is also part of
my original complain.
Did I cause that, by changing something? What can I do to prevent it?
Gregg C Levine landocalrissian atsign att dot net
This signature isn't here.

 -Original Message-
 From: [EMAIL PROTECTED]  [mailto:[EMAIL PROTECTED] On Behalf Of
 Igor Pechtchanski
 Sent: Friday, August 27, 2004 4:37 PM
 To: landocalrissian
 Cc: [EMAIL PROTECTED]
 Subject: Re: Strange problem with MC (Attn: MC maintainer)
 
 On Fri, 27 Aug 2004, landocalrissian wrote:
 
  Hello from Gregg C Levine
  Here's a funny thing that's been happening ever since I installed Cygwin
  here, and subscribed to this list:
  cat: /tmp/mc-Gregg: No such file or directory
  cat: C: No such file or directory
  cat: Levine/mc.pwd.1992: No such file or directory
 
 This is a quoting bug in line 5 of the /usr/share/mc/bin/mc-wrapper.sh
 script, which says:
 
   MC_PWD=`cat $MC_PWD_FILE`
 
 This should be
 
   MC_PWD=`cat $MC_PWD_FILE`
 
 MC maintainer, please note.  In the meantime, you can fix it in your local
 copy.
   Igor
 
  As all of you can see, the program is attempting to parse the name that
tmp
  lives in, inside my Documents and Setting folder, and then inside the
local
  settings folder. And since the folder with my name on it is considered a
  system folder, with those requirements and privleges, I can't rename
it.
  What's interesting, is that it works normally, except for activities
  regarding access to the tmp directory. Are there any work arounds? If
I'm
  bringing this to the wrong list, then I'll be happy to resend it to the
  proper one.
  Gregg C Levine landocalrissian atsign att dot net
  This signature asks, Where am I?.
 
 --
   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!
 
 Happiness lies in being privileged to work hard for long hours in doing
 whatever you think is worth doing.  -- Dr. Jubal Harshaw
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Problem reports:   http://cygwin.com/problems.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/


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



Re: questions about DLL's: .a, .def, and .dll

2004-08-27 Thread Oliver

 Secondly, the resultant DLL will be linkable from a VC++ program, but the
 C++ functions in it will not be accessible from code compiled with VC++.

Of course, the usual c++ name mangling incompatibilities. 

Thanks for your help!
Oliver



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



RE: Strange problem with MC (Attn: MC maintainer)

2004-08-27 Thread Igor Pechtchanski
On Fri, 27 Aug 2004, landocalrissian wrote:

 Hello from Gregg C Levine
 I did what you suggested Igor. Now I'm getting:
 bash: command substitution: line 1: unexpected EOF while looking for
 matching `
 '
 bash: command substitution: line 2: syntax error: unexpected end of file

 It also says that:
 /tmp/mc-Gregg: Can't open /tmp/mc-Gregg: No such file or directory

 That from trying to browse a BZIP2 compressed tar file. This is also part of
 my original complain.
 Did I cause that, by changing something? What can I do to prevent it?

Are you sure you copied the change I suggested verbatim?  Looks like you
reversed the '' and the '`' in your copy...  Make sure line 5 reads

MC_PWD=`cat $MC_PWD_FILE`

(e.g., by cutting and pasting) and you should be ok.
Igor
P.S. Oh, and http://cygwin.com/acronyms/#PCYMTNQREAIYR, even if it's the
list address.  Thanks.

 Gregg C Levine landocalrissian atsign att dot net
 This signature isn't here.

  -Original Message-
  From: [EMAIL PROTECTED]  [mailto:[EMAIL PROTECTED] On Behalf Of
  Igor Pechtchanski
  Sent: Friday, August 27, 2004 4:37 PM
  To: landocalrissian
  Cc: [EMAIL PROTECTED]
  Subject: Re: Strange problem with MC (Attn: MC maintainer)
 
  On Fri, 27 Aug 2004, landocalrissian wrote:
 
   Hello from Gregg C Levine
   Here's a funny thing that's been happening ever since I installed Cygwin
   here, and subscribed to this list:
   cat: /tmp/mc-Gregg: No such file or directory
   cat: C: No such file or directory
   cat: Levine/mc.pwd.1992: No such file or directory
 
  This is a quoting bug in line 5 of the /usr/share/mc/bin/mc-wrapper.sh
  script, which says:
 
  MC_PWD=`cat $MC_PWD_FILE`
 
  This should be
 
  MC_PWD=`cat $MC_PWD_FILE`
 
  MC maintainer, please note.  In the meantime, you can fix it in your local
  copy.
  Igor
 
   As all of you can see, the program is attempting to parse the name that tmp
   lives in, inside my Documents and Setting folder, and then inside the local
   settings folder. And since the folder with my name on it is considered a
   system folder, with those requirements and privleges, I can't rename it.
   What's interesting, is that it works normally, except for activities
   regarding access to the tmp directory. Are there any work arounds? If I'm
   bringing this to the wrong list, then I'll be happy to resend it to the
   proper one.
   Gregg C Levine landocalrissian atsign att dot net
   This signature asks, Where am I?.

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

Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing.  -- Dr. Jubal Harshaw

--
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 nfs server

2004-08-27 Thread Povolotsky, Alexander
To check the theory that Z drive is confusing Cygwin,
it is foundable using ls from Cygwin bash shell (via c: drive
reference):
$ ls /cygdrive/c/cygwin/usr/sbin/PORTMAP.EXE
/cygdrive/c/cygwin/usr/sbin/PORTMAP.EXE

Executing it from Cygwin bash shell

$ /cygdrive/c/cygwin/usr/sbin/PORTMAP.EXE

did not produce the process running 

$ strace  /cygdrive/c/cygwin/usr/sbin/PORTMAP.EXE
strace.exe: error creating process
C:/cygwin/cygdrive/c/cygwin/usr/sbin/PORTMAP.EXE, (error 3)

What is the meaning of (error 3)?

Then I executed PORTMAP.EXE from the DOS shell (again executing
PORTMAP.EXE via c: drive reference)

D:\Profiles\apovolotc:\cygwin\usr\sbin\PORTMAP.EXE

The executable was found but the execution of PORTMAP.EXE produced the
following error:
portmap.exe - Unable To Locate Component
This application has failed to start because cygwin1.dll was not found.

However cygwin1.dll  does reside in Z:\cygwin\bin (which is c:\cygwin\bin )
it is also foundable using ls from Cygwin bash shell:
$ ls /cygdrive/c/cygwin/bin/cygwin1.dll
/cygdrive/c/cygwin/bin/cygwin1.dll

You should see installed services named:

Cygwin mountd
Cygwin nfsd
Cygwin portmap

As I have reported before the third service (Cygwin portmap) is not listed

Regards,
Alex
-Original Message-
From: Hugh Sparks [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 2:36 PM
To: Povolotsky, Alexander
Subject: Re: cygwin nfs server  Z:\cygwin\usr\sbin\PORTMAP.EXE


  (Z: drive is remapping of my C: drive which itself is not visible on
 Windows XP Pro)

I wonder if that is causing your problem.
It is possible that the service dependency is looking for the path
c:\cygwin\usr\sbin\PORTMAP.EXE

I'm starting to think that maybe the weirdness with your
Z drive is fooling Cygwin. I remember once long ago,
I tried installing Cygwin somewhere other than
c:\cygwin.  I had all sorts of problems and I had to unsinstall
everything an start over.

 Do I need to start it myself manually ?

No. 
You are supposed to configure the services
Cygwin nfsd and also Cygwin mountd so they
both depend on Cygwin portmap.

Run:

Start Menu/Programs/Administrative Tools/Services

(Or do whatever works for you to get to the services window)

You should see installed services named:

Cygwin mountd
Cygwin nfsd
Cygwin portmap

If you right-click on Cygwin mountd and select Properties
and then select the Dependencies tab,
you should see that it depends on Cygwin portmap.
The same should be true for Cygwin nfsd.
When yhou look at the dependencies tab for the Cygwin portmap
you should see a display that shows that Cygwin mountd and
Cygwin nfsd both depend on this service.

On the General tab, the Startup type: should be Automatic
for all three services.

Also, on the General tab, you will see buttons to Start, Stop,
Pause, and Resume. If PORTMAP.EXE does not show up in 
the Task Damager list, try this:

Using the GUI panels described above:
Stop the services Cygwin nfsd and Cygwin mountd.
Start the Cygwin portmap
Start Cygwin mountd
Start Cygwin nfsd

This is what should be happening automatically.


Good luck,

-Hugh Sparks, [EMAIL PROTECTED]

-Original Message-
From: Povolotsky, Alexander 
Sent: Friday, August 27, 2004 10:53 AM
To: '[EMAIL PROTECTED]'
Cc: 'Hugh Sparks'; 'Robb, Sam'; '[EMAIL PROTECTED]';
'[EMAIL PROTECTED]'; 'boxforsr'
Subject: RE: cygwin nfs server



Searching for PORTMAP.EXE finds it in
 Z:\cygwin\usr\sbin 
 (Z: drive is remapping of my C: drive which itself is not visible on
Windows XP Pro)

Service name is Cygwin Portmap ...
Do I need to start it myself manually ?
-Original Message-
From: Povolotsky, Alexander 
Sent: Friday, August 27, 2004 10:00 AM
To: 'boxforsr'
Cc: [EMAIL PROTECTED]; 'Hugh Sparks'; 'Robb, Sam';
'[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: RE: cygwin nfs server


Yes, I got this package downloaded/installed yesterday too.
cygcheck -cd
...
sunrpc  4.0-2
...
-Original Message-
From: boxforsr [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 9:47 AM
To: Povolotsky, Alexander
Cc: [EMAIL PROTECTED]
Subject: Re: cygwin nfs server

Portmap is in another package... It is called SunRpc or smth

- Original Message - 
From: Povolotsky, Alexander [EMAIL PROTECTED]
To: 'Hugh Sparks' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; 'Robb, Sam' [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, August 27, 2004 5:05 PM
Subject: RE: cygwin nfs server

 Hello Hugh,

 I have:

 cygrunsrv.exe (two of these - you have three instances ...)
 rpc.nfsd.exe
 rpc.mountd.exe

 I do not have PORTMAP.EXE !

 Try exporting some directories and see if you can mount them from your
 Unix/Linux machine.

 My Linux board is not ready yet (I am working now at home alone ... - no
 other machines, besides the laptop and the board)
  - as soon as I will set my board up, I'll try.

 Thanks,
 Best Regards,
 Alex

 -Original Message-
 From: 

Re: signal delivery problem (with pthreads)

2004-08-27 Thread Christopher Faylor
On Fri, Aug 27, 2004 at 09:11:56PM +0300, Valery A. Frolov wrote:
In short:
First signal delivery on call of pthread_kill(tid, SIGUSR1) works fine
but second one delivers signal with _delay_ and _twice_, and then my
own daemon crash. This is on cygwin1.dll 1.5.10-3 and snapshot of
2004-08-21. But on cygwin1.dll 1.5.7-1 all works _fine_ and _long_ time.

In detail:
(Sorry for my bad English.)
(And sorry for long letter.)
(And much more sorry if this is not appropriate place to ask this question.)

Sorry, but if this is really a problem, you're going to have to provide a
simple test case which reproduces it.  Providing a description of the
symptoms is not going to do it and neither is unsolicited strace output.

--
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: F_ULOCK, F_LOCK, F_TLOCK, F_TEST missing in unistd.h

2004-08-27 Thread Gary R. Van Sickle
 On Aug 26 22:48, Gary R. Van Sickle wrote:
  Well, I just did my 2 minute due diligence and looked up the 
  difference between advisory and mandatory file locking.  Did I read 
  right?  Does advisory locking actually in no way prevent 
 write access to the locked
  file unless all the interested processes also explicitly 
 use lockf() etc?
 
 Yes.
 

Wow.  Is this acually a useful thing, or just an unseemly holdover from the
bad-old-days?

  If so (and I must be missing something there), couldn't this be 
  implemented in Windows simply as named mutexes, with the 
 names being 
  some suitably-chosen derivative of the file name?  You 
 wouldn't even 
  need to do any explicit sharing between Cygwin processes then.
 
 Keep in mind that it's not per-file locking but record 
 locking.  So you'd need mutex names which reflect the locked 
 region in the file as well.  But then you'd need one mutex 
 per locked record.  How do you find overlapping regions hold 
 by other processes?  To make it worse, flock(2) locks are 
 preserved across forks, so both processes hold the lock together.

Hmmm.  Well, is there some reason you couldn't just use LockFile{Ex} et al?
Any apps that are expecting to simultaneously write to the same file without
real locking are busted anyway, aren't they?

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



How to install an update of the library GMP in cygwin?

2004-08-27 Thread Moises Deangelo
Hello People.

I am download the complete installation of cygwin. Whereby saw, it is
going to give some 400Mb.

My main interest is to work with the mathematics library GMP.

In cygwin, the last version that I found was to 4.1.2-1, but in the site
of the library GMP, the last version is to 4.1.3.

I do not understand anything of Linux or Unix and my English is not
anything good.

Someone who knows this library, you know tell me how to install the new
version of her (gmp-4.1.3)???
Or anybody does it knows how to tell when will the new version be placed
for download in the install of the cygwin?

I do not understand a lot about the organization of the system.

To install, I only precise know where to place the compacted file, and
which ones command type.

I hope do not be being stupid with this question, but it is just that I
really do not understand, and I get afraid of damage the installation.

It does much time that I come trying to work with for gmp,  do not want
for everything to lose.

A hug to everybody.
I keep waiting the help from someone.

Thanks people.

Moises Deangelo.
[EMAIL PROTECTED]
ICQ:89529510



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



OpenSSH-3.9p1-1, mysterious -r option, and documented steps to resolve Connection to host closed. message was sshd privilege separation problem

2004-08-27 Thread Greg Morgan
Greg Morgan wrote:
Corinna Vinschen wrote:
...
  Again, as Larry already noted, the most informative thread is
  http://cygwin.com/ml/cygwin/2004-08/msg00625.html
  Note especially http://cygwin.com/ml/cygwin/2004-08/msg00702.html
...
I can't say that I tried googling for this first.  Thank you for a 
response and having both a work around and solution already.  I'll try 
it tomorrow at work.

Greg
If the subject title of OpenSSH-3.9p1-1, mysterious -r option, and 
documented steps to resolve Connection to host closed. message was 
sshd privilege separation problem did not provide you enough search 
terms here are some more cygwin-1.5.10-3 package
upgrading openssh 3.8.1p1-1 - 3.9p1-1 breaks privilege separation.

I have tested and documented two ways to solve this problem.  If editing 
files and regular expressions bother you then try the first option.

OPTION 1.)
I ran
ssh-host-config y
at the command prompt just to make sure I had the rest of ssh setup 
correctly.  I performed this step because of all the fooling around I 
tried to resolve the Connection to host closed. messages without 
knowing what the problem was.

Then I removed the services entry by entering
cygrunsrv -R sshd
at the command prompt.  A harmless error message will be displayed if 
you do not have the service running.

I looked at Cygwin /usr/bin/ssh-host-config configuration script and 
found the command line that I would use:
cygrunsrv -I sshd -d CYGWIN sshd -p /usr/sbin/sshd \
-a -D -e CYGWIN=tty ntsec

I modified it to
cygrunsrv -I sshd -d CYGWIN sshd -p /usr/sbin/sshd \
-a -D -r -e CYGWIN=tty ntsec
This was the command line I ran at the command prompt to supply the -r 
option that Corinna said was required.  Please enter the command all on 
one line without the \, or make sure the \, the continuation character, 
is the last character on the line before starting the -a on the second line.

Finally, I started the service by issuing this command at the Cygwin 
command prompt.
cygrunsrv -S sshd

OPTION 2.)
An alternate method is to enter
vim /usr/bin/ssh-host-config
on the command line.  The use vim's search and replace functions to 
change all the sshd -a -D occurrences to sshd -a -D -r like so
:%s/sshd -a -D/sshd -a -D -r/g

Finally, issue the following commands at the command prompt.
cygrunsrv -R sshd
ssh-host-config -y -c tty ntsec
cygrunsrv -S sshd
LOL..I gained some finesse the second time around. ;-)
I successfully sshed into my Cygwin PC with the new ssh package 
OpenSSH_3.9p1, OpenSSL 0.9.7d 17 Mar 2004 using both resolution 
procedures above.
More on why I selected tty ntsec 
http://tech.erdelynet.com/cygwin-sshd.html.  It has always worked.

I decided on the -r option verses installing a new Cygwin DLL.  It 
sounded like the more conservative repair approach.

If you are looking for the undocumented -r option a brief note can be 
found here http://www.mail-archive.com/[EMAIL PROTECTED]/msg43331.html. 
 There's nothing that I found in the man page nor on 
http://www.openssh.org about the sshd -r option.

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