Re: -silent-dup-error command line parameter not working?

2006-12-07 Thread Randy Brown
Running it as a service basically does not require starting, or 
attempting to start, an Xserver each time you open a window.  The 
service runs continually in the background and listens for connections.  
The procedure is relatively simple:


Create an environment variable:
CYGWIN = server
From a cygwin terminal window run:
/usr/bin/cygserver-config  (Answer yes to the prompt and reboot)
Then you can add Startxwin.bat, for example, to your startup folder so 
The Xserver starts at boot.


Randy

Sergei Pachkov wrote:

Can you shortly describe start xserver as service?



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



Picasso Events Team

2006-12-07 Thread Picasso Middle East | Events Team

Take the Lead with Us!
www.picassome.com

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



Requesting Help Troubleshooting App That Won't Start

2006-12-07 Thread Wayne Anderson
Hello mailing list.  I'm new to Cygwin/X, and I'm trying to use it to run
Micros 8700 apps (on a SCO OpenServer 5 machine) from my Win2K PC.

I'm running an out-of-the box default install of Cygwin/X, except for adding
the -ac switch to the startxdmcp.bat file (thanks to Matt Flemming's web
site).  I can successfully run startxdmcp.bat and log in to the OpenServer
desktop.  All the built-in OpenServer apps seem to work, and all the Micros
8700 apps work except one (Configurator), which of course is the one I need.

When I attempt to start the app, the outline of the window begins to
display, but before the contents become visible it immediately closes.  The
XWin.log file looks exactly the same whether I run a working app or the
nonworking one, so that doesn't seem to give me any clues.  I don't know
where to go from here to troubleshoot - any suggestions would be
appreciated.

The information contained in this e-mail message is private and confidential
information intended only for the use of the individual or entity to whom it
is addressed.  If the reader of this e-mail message is not the intended
recipient you are notified any disclosure, dissemination, distribution,
copying or the taking of any action based upon the information contained in
this message is strictly prohibited.

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



Re: -silent-dup-error command line parameter not working?

2006-12-07 Thread Larry Hall (Cygwin X)

http://cygwin.com/acronyms/#TOFU.  Reformatted.
Randy Brown wrote:

Sergei Pachkov wrote:

Can you shortly describe start xserver as service?

Running it as a service basically does not require starting, or 
attempting to start, an Xserver each time you open a window.  The 
service runs continually in the background and listens for connections.  
The procedure is relatively simple:


Create an environment variable:
CYGWIN = server
 From a cygwin terminal window run:
/usr/bin/cygserver-config  (Answer yes to the prompt and reboot)
Then you can add Startxwin.bat, for example, to your startup folder so 
The Xserver starts at boot.



For anyone out there that might be unsure, the procedure described above
does *not* start Cygwin's X-server as a service.  It starts Cygwin's
'cygserver' http://cygwin.com/cygwin-ug-net/using-cygserver.html as
a service.  This service is not required to run the X-server.

The Cygwin X-server is started just as one would manually but automates
it by putting it in the startup folder.  Things started from this folder
are not services, though it is a perfectly good way to start the X-server
automatically.

For those that don't care about the distinction or the details, please
forget what I just said. ;-)

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

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



src/winsup/cygwin ChangeLog cygheap.h external ...

2006-12-07 Thread corinna
CVSROOT:/cvs/src
Module name:src
Changes by: [EMAIL PROTECTED]   2006-12-07 10:04:53

Modified files:
winsup/cygwin  : ChangeLog cygheap.h external.cc path.cc 

Log message:
* cygheap.h (struct cwdstuff): Add sync member and accompanying
keep_in_sync methods.
* external.cc (cygwin_internal): Call above keep_in_sync method when
CW_SYNC_WINENV is requested.
* path.cc (cwdstuff::init): Don't change to windows_system_directory
if keep_in_sync is requested.
(cwdstuff::keep_in_sync): New method.
(cwdstuff::set): Take sync flag into account.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.3669r2=1.3670
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygheap.h.diff?cvsroot=srcr1=1.118r2=1.119
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/external.cc.diff?cvsroot=srcr1=1.89r2=1.90
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/path.cc.diff?cvsroot=srcr1=1.424r2=1.425



src/winsup/cygwin ChangeLog autoload.cc syscal ...

2006-12-07 Thread corinna
CVSROOT:/cvs/src
Module name:src
Changes by: [EMAIL PROTECTED]   2006-12-07 11:53:46

Modified files:
winsup/cygwin  : ChangeLog autoload.cc syscalls.cc 

Log message:
* autoload.cc (SHFileOperationA): Define.
* syscalls.cc (try_to_bin): New function trying to move a file to
the recycle bin.
(unlink): Fix arguments used in CreateFile for delete on close.
Before closing the handle, try to move the file to the recycle bin.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.3670r2=1.3671
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/autoload.cc.diff?cvsroot=srcr1=1.126r2=1.127
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/syscalls.cc.diff?cvsroot=srcr1=1.410r2=1.411



src/winsup/cygwin ChangeLog ntdll.h syscalls.cc

2006-12-07 Thread corinna
CVSROOT:/cvs/src
Module name:src
Changes by: [EMAIL PROTECTED]   2006-12-07 17:40:24

Modified files:
winsup/cygwin  : ChangeLog ntdll.h syscalls.cc 

Log message:
* ntdll.h (STATUS_DELETE_PENDING): Define.
(struct _FILE_DISPOSITION_INFORMATION): Define.
* syscalls.cc (unlink_9x): new function to delete file on 9x.
* syscalls.cc (unlink_nt): new function to delete file on NT.
(unlink): Simplify.  Move OS dependent stuff into aforementioned
functions.  Also handle FILE_ATTRIBUTE_HIDDEN as R/O-like flag.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.3671r2=1.3672
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ntdll.h.diff?cvsroot=srcr1=1.41r2=1.42
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/syscalls.cc.diff?cvsroot=srcr1=1.411r2=1.412



src/winsup/cygwin ChangeLog syscalls.cc

2006-12-07 Thread corinna
CVSROOT:/cvs/src
Module name:src
Changes by: [EMAIL PROTECTED]   2006-12-07 17:53:05

Modified files:
winsup/cygwin  : ChangeLog syscalls.cc 

Log message:
* syscalls.cc (unlink_nt): Open native symlinks with
FILE_OPEN_REPARSE_POINT flag.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.3672r2=1.3673
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/syscalls.cc.diff?cvsroot=srcr1=1.412r2=1.413



No octave prompt (no error messages)

2006-12-07 Thread Albert Vos

Hi,

at home and at work I have the same problem with octave under cygwin. In 
both cases I octave just quits without giving any output, no prompt, no 
error messages. One computer runs on win2000 Sp4 on which I'm no 
administrator and the other runs on winXp Sp2 on which I have all rights.


Both cygwin environment are downloaded this month.

I have no idea what the problem is, can anyone help me find out??

Albert

_
FREE pop-up blocking with the new Windows Live Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/



--
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: vi / vim command

2006-12-07 Thread Warren Young

Shahed wrote:


I tried that, but didn't work. i have downloaded the vim-7.0.tar.bz2 file


Downloading individual packages and trying to install them by hand is 
not supported.  If you keep insisting on trying to fix the problem this 
way, you will probably annoy everyone and won't get any help at all.


The only supported way to install a Cygwin package is to use setup.exe. 
 If it is not working for you, you need to figure out what you're doing 
wrong with setup.exe, not try to work around it.  Most likely, you're 
not selecting Vim in the package list.  setup.exe installs a fairly 
minimal set of packages by default, and Vim is not one of those packages.


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



Which packages for a2x

2006-12-07 Thread Morten Kjarulff

Hi,

I downloaded the asciidoc package. asciddoc works fine.

I then tried the a2x program. First 'getopt' was missing from my
installation. I used the Search Package List, it said that getopt.exe is
in:
 cygutils/cygutils-1.2.10-1 A collection of simple utilities
 util-linux/util-linux-2.12r-2 Random collection of Linux utilities
But I have cygutils installed (by default?), so maybe the package list is
somehow wrong?

I installed util-linux, and now a2x is missing xsltproc. So I was
wondoering if a2x could be a package itself, that pulled all the needed
packages with it? (asciidoc+util-linux+???)

Cheers,
Morten


--
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-email utility clipping attached zips

2006-12-07 Thread zzapper
René Berber [EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]: 

 zzapper wrote:
 
 I'm using the following to send attachments from the cli, works fine
 except for word Docs etc but zip files loose a few bytes

 eg

 -rwxr-xr-x  1 davidr None 161792 Dec  2 12:47 ../aaa/am4mar.doc 
 (RECEIVED) -rwxrwxrwx+ 1 davidr None 161792 Feb 14  2006 am4mar.doc
 otherwise?
 
 Yes, it works fine but I've never sent zip or doc files.  Just ran a
 test, no problem with zip file (unzip -t ... No errors detected in
 compressed data of...) 
 
 BTW your subject is probably not attracting many replies, it's not a
 Cygwin utility, its a package, http://email.cleancode.org/, like any
 other package. 

rene,
thanks for replying, did you check that file size was exactly the same as 
unzip is clever enough to copy with a few errors?

regards subject, email is so common i wanted to find some way to get 
any subject to standout, didnt realise it was a package though!

I have emailed the author but no reply as yet. I better persue his 
website!

Emailing attachments from the command line will be such useful thing for

-- 
http://successtheory.com/tips/ Vim, Zsh, MySQL Tips


--
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: Windows Vista and CygWin

2006-12-07 Thread McArdle, Christian
 If you are not the intended recipient, you are hereby notified
 that any use, copying or dissemination of this message is
 strictly prohibited. If you received this message in

 If it does have any weight, it prohibits us from replying to your 
 communication.

Not really, as you are the intended recipient! This means that the prohibitions 
don't apply to you.

 But it seems more likely that your company policy prohibits you from
 using your e-mail system to post on a public list, as you have done.

No, it just puts an annoying long signature on the end. In fact, I had no idea 
that it did so until you complained, especially as my brain automatically 
filters out signatures, so I didn't even notice when I read it myself.

 Don't you have access to a personal mail account?

Yes, but I'm off now, anyway!

Christian.

_
This email message, including any attachments, may contain confidential and 
proprietary information for the sole use of the intended recipient.  If you are 
not the intended recipient, you are hereby notified that any use, copying or 
dissemination of this message is strictly prohibited.  If you received this 
message in error, please notify Brooks Automation, Inc. immediately by reply 
email or by calling Brooks US Headquarters at +1 978-262-2400. Then delete this 
message from your system, without making any copy or distribution.  Thank you.

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



[ANNOUNCEMENT] Updated: xemacs-21.4.19-3/xemacs-tags-21.4.19-3/xemacs-emacs-common-21.4.19-3

2006-12-07 Thread Dr. Volker Zell
Hi

A new version of 'xemacs' has been uploaded to a server near you.


DESCRIPTION:

A powerful, highly customizable open source text editor and application 
development system


CYGWIN NEWS:


* Fixed a packaging bug introduced by the switch to the cygport build framework.

  XEmacs printed a warning
  
WARNING:
Couldn't find an obvious default for the root of the
XEmacs hierarchy

  during startup.
  
* Added a dependency on libpq4 to setup.hint and removed postgresql.

* Make File-Print work under Cygwin X11 version of XEmacs, instead of emitting:
  Feature not yet implemented: Dialog box type, print-setup
  (File-Page Setup is still a no op under X11)


INSTALLATION:
=
To update your installation, click on the Install Cygwin now link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Save it and run setup, answer the questions and pick up
the above mentioned package from the 'Editors' category.


DOWNLOAD:
=
Note that downloads from sources.redhat.com (aka cygwin.com) aren't
allowed due to bandwidth limitations.  This means that you will need
to find a mirror which has this update.

These mirrors already got the package, the others will probably have 
the latest version of this package fairly soon:

In the US

   ftp://mirrors.rcn.net/pub/sourceware/cygwin/ 

has reliable high bandwidth connections.


QUESTIONS:
==
If you want to make a point or ask a question the Cygwin mailing
list is the appropriate place.


CYGWIN-ANNOUNCE UNSUBSCRIBE INFO:
=
To unsubscribe to the cygwin-announce mailing list, look at the
List-Unsubscribe:  tag in the email header of this message.  Send
email to the address specified there.  It will be in the format:

[EMAIL PROTECTED]


Enjoy
  Volker


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



iostream

2006-12-07 Thread Matthias Blaickner
Hi everybody

I have problems with cygwin supporting iostream.h I
use g++ as compiler and I'm told to remove the .h
suffix from the header. doing so results in error
messages about unknown functions.
the test programm is:

#include 
main()
{
cout  He's not the Messiah. He's a very naughty
boy  endl;
}

resulting in:
  
In file included from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/backward/iostream.h:31,
 from test.cc:1:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one
deprecated or antiquated header. Please consider using
one of the 32 headers found in section 17.4.1.2 of the
C++ standard. Examples include substituting the 
header for the  header for C++ includes, or
 instead of the deprecated header
. To disable this warning use
-Wno-deprecated.
test.cc:5:2: warning: no newline at end of file

using  returns:

test.cc: In function `int main()':
test.cc:4: error: `cout' undeclared (first use this
function)
test.cc:4: error: (Each undeclared identifier is
reported only once for each function it appears in.)
test.cc:4: error: `endl' undeclared (first use this
function)
test.cc:5:2: warning: no newline at end of file

I really searched the mailing list, the web etc. the
advice below doesn't help me since I Do use g++ and a
cc-suffix.

thanks for any advise
matthias

I believe this is in the gcc FAQ. However, it's
been asked often enough
  on this list, so here's an answer for the
archives:
 
  gcc uses the file extension to determine the
language. Any extension it
  doesn't recognize is assumed to be a C file.
The default extension for a
  C++ file is .C. gcc does not recognize
.cxx, which is used by
  Microsoft compilers, I think. It is, of
course, possible to tell gcc to
  treat a .cxx file as a C++ file. In case you
don't want to mess with
  the gcc configuration, use either the -x c++
option of gcc, or simply
  call g++.
  Igor

 Hmm, I suppose I better correct myself before
someone else does...
 The default extensions (suffixes) for C++ are
.C, .cc, .cpp, and
 .cxx. Any suffix that is not recognized (e.g.,
.o and .a) is passed
 directly to the linker.

What's wrong with me today? :-(
Please strike the .cpp suffix. The above should
read:
The default suffixes for C++ are .C, .cc, and
.cxx.

your 'mistake' was understandable, since .C, .cc,
.cxx, .cp, .cpp and.c++. are all considered
c++ in gcc 3.0 and up. (although the person in this
question is obviously using 3.0 since they got it to
compile :P)

Gareth


 

Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com

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



1.5.21-1 Release: Windows memory resources do not recover.

2006-12-07 Thread Dave Silvia
Hi!

On further investigation an looking more closely at the areas in the configure
script where they errors and/or reboot was occurring, and with some helpful
pointers from responders on this list, I've constructed the following bash shell
script (exhaustMem.bsh):

--
#!/bin/sh

if [ $1 == --help -o $1 == -h -o $1 == /? ]
then
echo Usage: `basename $0` [mainIter [execIter [varIter]]]
echo Where: mainIter  outermost loop iterations [default: 50]
echoexecIter  exec file descriptors iterations [default: 
\$mainIter]
echovarIter   variable assignment via back tick exec [default:
\$mainIter]
echo
echo Description:
echoExecute while monitoring the Task Manager in Windows 
selecting
the
echo'Performance' tab and watching the value in the 'Physical 
Memory
(K)'
echotable element 'Available'.  Value will steadily decrease 
and
never
echofully recover after all execution has finished. At least, 
not in
the
echoshort term.  And it can lead to depletion to the point 
where
reboot
echois necessary or precipitated.
echo
echoCommand line parameters can be tweaked to examine which 
seem to
affect
echothe severity of the condition the most.
exit 0
fi

mainIter=$1
: ${mainIter:=10}
mainMax=$mainIter
execIter=$2
: ${execIter:=$mainIter}
execMax=$execIter
varIter=$3
: ${varIter:=$mainIter}
varMax=$varIter

while [ ${mainIter} -ne 0 ]
do

mainIter=`expr ${mainIter} - 1`

echo Main Output to File Iteration:   `expr ${mainMax} -
${mainIter}`

tmpIter=$execIter
while [ ${tmpIter} -ne 0 ]
do
tmpIter=`expr ${tmpIter} - 1`
echo Exec to Open File Descriptor Iteration:  `expr ${execMax} -
${tmpIter}`
exec 5data5.txt
exec 6data6.txt
exec 7data7.txt
done

tmpIter=$varIter
while [ ${tmpIter} -ne 0 ]
do
tmpIter=`expr ${tmpIter} - 1`
echo Variable Backtick Exec Assignment Iteration: `expr ${varMax} -
${tmpIter}`
thePath=`echo $PATH`
theDir=`pwd`
theDate=`date`
theMachine=`uname -m`
theKernel=`uname -s`
theKernRlse=`uname -r`
theOpSys=`uname -o`
done

echo Current Path: 5
echo $thePath 5
echo 5

echo Current Directory: ${theDir} 5
echo 5

echo Date and Time: ${theDate} 5
echo 5

echo Machine Type: ${theMachine} 5
echo 5

echo Kernel Name: ${theKernel} 5
echo 5

echo Kernel Release: ${theKernRlse} 5
echo 5

echo Operating System: ${theOpSys} 5
echo 5

echo Current Path: 6
echo $thePath 6
echo 6

echo Current Directory: ${theDir} 6
echo 6

echo Date and Time: ${theDate} 6
echo 6

echo Machine Type: ${theMachine} 6
echo 6

echo Kernel Name: ${theKernel} 6
echo 6

echo Kernel Release: ${theKernRlse} 6
echo 6

echo Operating System: ${theOpSys} 6
echo 6

echo Current Path: 7
echo $thePath 7
echo 7

echo Current Directory: ${theDir} 7
echo 7

echo Date and Time: ${theDate} 7
echo 7

echo Machine Type: ${theMachine} 7
echo 7

echo Kernel Name: ${theKernel} 7
echo 7

echo Kernel Release: ${theKernRlse} 7
echo 7

echo Operating System: ${theOpSys} 7
echo 7

done

exit 0

--

It pretty well illustrates the problem. It also points to it's being a problem
between Windows (mine is XP Pro SP2) and bash.exe. Possibly the particular build
Cygwin uses (?).

Anyway, it does appear to be an exec error from one source or another (backtick
execution being another form of exec). The severity also seems related to what
is being exec'd more so than how long the exec takes or how large.

If you open Windows Task Manager and monitor the Physical Memory, it's pretty
easy to see.

Use exhaustMem.bsh --help to see details.


thx,
Dave S.

wxMS_developers · Development with wxWidgets on MSWindows
http://tech.groups.yahoo.com/group/wxMS_developers/

wxWidgets Code Exchange
http://wxcodex.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/



Cygwin home page

2006-12-07 Thread Xavier Joubert
Hi all,

I just wanted to remind you the Cygwin home page at http://www.cygwin.com still
list 1.5.21.

Best regards,

Xavier

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

2006-12-07 Thread Dave Korn
On 07 December 2006 13:02, Matthias Blaickner wrote:

 Hi everybody
 
 I have problems with cygwin supporting iostream.h I
 use g++ as compiler and I'm told to remove the .h
 suffix from the header. doing so results in error
 messages about unknown functions.

  'cout' and 'endl' live in the std:: namespace these days.  Either add a
'using namespace std;' declaration or prefix each usage.

  This is a generic C++ programming question and would be better on a C++
coding mailing list, since it isn't specific to cygwin but would be exactly
the same with any C++ compiler on any platform.

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

2006-12-07 Thread hermitte
Hello,

Matthias Blaickner [EMAIL PROTECTED] wrote:

 I have problems with cygwin supporting iostream.h I
 use g++ as compiler and I'm told to remove the .h
 suffix from the header. doing so results in error
 messages about unknown functions.
 the test programm is:

 #include
 main()
 {
 cout  He's not the Messiah. He's a very naughty
 boy  endl;
 }
 [snip]

Upgrade your C++ reference material. The .h header have deprecated in 98. IIRC,
GCC became conformant with the 3.x version.
This is not a cygwin question, but a C++ question.

Anyway, check any C++ FAQ (like the C++lite - §27.4 and 27.5) and update your
courses/tutorials.
Namespaces are what you have missed. BTW, main() is supposed to return an int.

HTH,

--
Luc Hermitte

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



gzip maintainer

2006-12-07 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

gzip 1.3.7 is now out, with a number of security fixes folded in to the
upstream sources.  It built quite easily out of the box, but I don't know
how many patches cgf had folded into 1.3.5 that may or may not need to be
hung onto.  Are you planning on making a release, and/or considering
letting someone else step up as a maintainer?

- --
Life is short - so eat dessert first!

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

iD8DBQFFeBUZ84KuGfSFAYARAvZAAKCkEdf1LiIPB8auXXBkn4CqdEg+MQCgpe3r
lU3qgeP3wp3j2+RFyvv/xfA=
=XfxH
-END PGP SIGNATURE-

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



Re: Latest Cygwin: rl_getenv_hook problem

2006-12-07 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Alexei Alexandrov on 12/7/2006 12:18 AM:
 sh.exe won't start with the following error message:
 
 The procedure entry point rl_getenv_hook could not be located in the
 dynamic link library cygreadline6.dll

Your version of /bin/sh (I'm guessing something from the 6.0 series) did
not get upgraded properly by the bash postinstall script.  So that I might
be able to improve the postinstall script to try harder in your scenario,
please run the following commands and report the results to the list:

$ ls -l /bin/bash.exe /bin/sh.exe
$ getfacl /bin/bash.exe /bin/sh.exe
$ sh --version
$ bash --version

Then run the following command to fix your problem:

$ cp /bin/bash.exe /bin/sh.exe

- --
Life is short - so eat dessert first!

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

iD8DBQFFeBaZ84KuGfSFAYARAmSKAKCoaNdXtxz5sS76K4F0m6EMOlDvQwCgtyPi
lGAkjYEnTNWKLJSgFc729ac=
=3kAL
-END PGP SIGNATURE-

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



Re: Which packages for a2x

2006-12-07 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Morten Kjarulff on 12/7/2006 2:04 AM:
 Hi,
 
 I downloaded the asciidoc package. asciddoc works fine.
 
 I then tried the a2x program. First 'getopt' was missing from my
 installation. I used the Search Package List, it said that getopt.exe is
 in:
  cygutils/cygutils-1.2.10-1 A collection of simple utilities
  util-linux/util-linux-2.12r-2 Random collection of Linux utilities
 
 I installed util-linux, and now a2x is missing xsltproc. So I was
 wondoering if a2x could be a package itself, that pulled all the needed
 packages with it? (asciidoc+util-linux+???)

cygutils 1.2.10 is old; getopt moved to util-linux.  And 'cygcheck -p
xsltproc' shows that you also need libxslt installed.  Thanks for the
hint; I've updated asciidoc to now depend on these two packages.

- --
Life is short - so eat dessert first!

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

iD8DBQFFeBfG84KuGfSFAYARArd8AJ9MY5CLofhZoEVToR5uCDYa+w9rUgCfTY+n
7lLYJKl4lVgVhX5XLILBCqw=
=pDQ6
-END PGP SIGNATURE-

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



RE: Windows Vista Cygwin

2006-12-07 Thread Jeremy T. Harrison

I ran the setup piece via 'Run as Administrator'.  I am getting the same
error message about bash.exe ...program to stop working correctly...
notify you if a solution is available...

When I launch bash.exe, I get the bash prompt, but no further.  Is there
some manual work I can do to 'repair' the installation?  I recognize
that this is caused by Vista and not by Cygwin.

What are the basic directory permissions that apply in a successful
cygwin setup?  (I am considering the following root-level directories:
/bin, /etc, /home. /lib, /proc, /srv, /usr, /var - if there are other
directories I should consider, please advise.  I am not so concerned
about sub directories at this point --  there may be other users
directories in /home; those are not a concern yet.)

I imagine if I add /bin to the path I will get a little further than I
am -- are there other directories that I should not overlook?

Jeremy

On Dec  6 07:31, Jeremy T. Harrison wrote:
 Please direct me if the following question has been answered - I
searched the archives and did not find anything.
 
 I recently converted my Windows XP box to Windows Vista.? I am
beyond
RC1.
 
 I have tried multiple times to install Cygwin, never with success.

Did you run setup by simply double clicking on it or did you start it
with right click - Run as administrator.  You might stumble over
UAC.


Corinna

Thank you for your suggestion -- I will try it with Run as
Administrator
-- that does give me some insight to other problems (folder permissions
were totally hosed) I was having with my 'run' of Cygwin.

As before, I will post my results!

Jeremy


--
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: Latest Cygwin: rl_getenv_hook problem

2006-12-07 Thread Alexei Alexandrov

On 12/7/06, Eric Blake [EMAIL PROTECTED] wrote:


Your version of /bin/sh (I'm guessing something from the 6.0 series) did
not get upgraded properly by the bash postinstall script.  So that I might
be able to improve the postinstall script to try harder in your scenario,
please run the following commands and report the results to the list:

$ ls -l /bin/bash.exe /bin/sh.exe
$ getfacl /bin/bash.exe /bin/sh.exe
$ sh --version
$ bash --version

Then run the following command to fix your problem:

$ cp /bin/bash.exe /bin/sh.exe



Here is the output:


ls -l /bin/bash.exe /bin/sh.exe

-rwxrwx---+ 1 aalexand mkgroup-l-d 484352 Dec  6 17:17 /bin/bash.exe
-rwxrwx---+ 1 aalexand mkgroup-l-d 451072 Aug  4  2005 /bin/sh.exe


getfacl /bin/bash.exe /bin/sh.exe

# file: /bin/bash.exe
# owner: aalexand
# group: mkgroup-l-d
user::rwx
group::rwx
group:SYSTEM:rwx
group:Users:r-x
mask:rwx
other:---

# file: /bin/sh.exe
# owner: aalexand
# group: mkgroup-l-d
user::rwx
group::rwx
group:SYSTEM:rwx
group:Users:r-x
mask:rwx
other:---


bash --version

GNU bash, version 3.2.5(8)-release (i686-pc-cygwin)
Copyright (C) 2005 Free Software Foundation, Inc.

I couldn't do sh --version because it doesn't work, but looking at the
binary I can see that it contains version string

@(#)Bash version 3.00.16(11) release GNU release 3.00

Thanks a lot!

--
Alexei Alexandrov

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



Re: 1.5.21-1 Release: Windows memory resources do not recover.

2006-12-07 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Dave Silvia on 12/7/2006 6:08 AM:
 Hi!
 
 On further investigation an looking more closely at the areas in the configure
 script where they errors and/or reboot was occurring, and with some helpful
 pointers from responders on this list, I've constructed the following bash 
 shell
 script (exhaustMem.bsh):

Are you SURE you don't have a buggy driver installed?  Known culprits
include Agnitum outpust, Mcafee virus scanners, Logitech webcam, ...  In
other words, the leak is not caused by cygwin, but by your buggy driver
leaking memory for every process spawned by your process-intensive scripts.

- --
Life is short - so eat dessert first!

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

iD8DBQFFeBjF84KuGfSFAYARAg0cAKCPRB3toLdIVa1FVzROuhqrK5EKYQCdHIod
H5WTYFZH4SFoaRgm1X6QvGQ=
=dWdL
-END PGP SIGNATURE-

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



Re: Windows Vista and CygWin

2006-12-07 Thread Andrew DeFaria

McArdle, Christian wrote:
If you are not the intended recipient, you are hereby notified that 
any use, copying or dissemination of this message is
strictly prohibited. If you received this message in If it does have 
any weight, it prohibits us from replying to your communication.
Not really, as you are the intended recipient! This means that the 
prohibitions don't apply to you.
You really didn't intend on me receiving this! Trust me. I'm now gonna 
abuse the hell out of it. Prepare to sue me! ;-)


The prohibition is quite simply unenforceable and carries no legal 
weight at all.
But it seems more likely that your company policy prohibits you from 
using your e-mail system to post on a public list, as you have done.
No, it just puts an annoying long signature on the end. In fact, I had 
no idea that it did so until you complained, especially as my brain 
automatically filters out signatures, so I didn't even notice when I 
read it myself.
How does your brain auto filter it when it is not properly delineated as 
a signature? You do know that a proper signature is set off by two 
dashes and a space right?


--

Andrew DeFaria http://defaria.com
A bus station is where a bus stops. A train station is where a train 
stops. On my desk, I have a work station... Go figure!



--
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: Latest Cygwin: rl_getenv_hook problem

2006-12-07 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Alexei Alexandrov on 12/7/2006 6:34 AM:
 
 ls -l /bin/bash.exe /bin/sh.exe
 -rwxrwx---+ 1 aalexand mkgroup-l-d 484352 Dec  6 17:17 /bin/bash.exe
 -rwxrwx---+ 1 aalexand mkgroup-l-d 451072 Aug  4  2005 /bin/sh.exe

You need to update your /etc/groups
(http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-files,
http://cygwin.com/cygwin-ug-net/using-utils.html#mkgroup).  I'm hoping
that it was because your group information was incorrect that the
postinstall script failed, since nothing else really looks like it would
explain the failure of cp.

Also, could you send the output of:

$ grep -C5 00bash.sh /var/log/setup.log/full

to see if it captured any error messages from the attempted cp?

- --
Life is short - so eat dessert first!

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

iD8DBQFFeCG/84KuGfSFAYARAj9BAJ4lPeWAAkAOOrG3uAuZw9C2IESGwgCfaCK1
oEB5QAP1gd7wmTrKnXVt4Bk=
=YeNL
-END PGP SIGNATURE-

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



Re: Windows Vista and CygWin

2006-12-07 Thread Richard Quadling

On 07/12/06, Andrew DeFaria [EMAIL PROTECTED] wrote:

A bus station is where a bus stops. A train station is where a train
stops. On my desk, I have a work station... Go figure!


A bus station is normally where a bus terminates.
A train station is normally where a train pauses for a while.
A work station is where your work either terminates or pauses for a while.

Better yet is the difference between a boat/ship and gunboat/gunship.

Or

I would recommend that you read a book that I once read about red reeds.

etc.


--

Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731
Standing on the shoulders of some very clever giants!

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

2006-12-07 Thread Buchbinder, Barry \(NIH/NIAID\) [E]
Bob Rossi wrote on Thursday, December 07, 2006 9:10 AM:
 I'd like to know if anyone knows if it is possible to start the msys
 environment from a cygwin shell? I'm ssh'ing into a windows machine,
 which gives me a cygwin shell. I've tried a lot of things, and can't
 get an msys environment.   
 
 Even if I remove every environment variable except for PS1, and then
 run 'cmd' and then cd to C:\msys\1.0 and the run .\msys.bat, I end up
 back in cygwin somehow.  
 
 Any suggestions?

No idea, but this might help:
http://www.mingw.org/mingwfaq.shtml#faq-usingwithcygwin

--
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: No octave prompt (no error messages)

2006-12-07 Thread Tony Richardson
Albert Vos vos_albert at hotmail.com writes:

 at home and at work I have the same problem with octave under cygwin. In 
 both cases I octave just quits without giving any output, no prompt, no 
 error messages. One computer runs on win2000 Sp4 on which I'm no 
 administrator and the other runs on winXp Sp2 on which I have all rights.

You might try starting octave using octave -V or octave -x (or both) to
determine if it is getting hung in one of the startup scripts.
Otherwise follow the problem reporting guidelines ...

Tony Richardson




--
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: printf '\377\376h\000\r\000\n\000'|file - #wrong result?

2006-12-07 Thread Kenneth Nellis
FWIW, my older 3.39 version of file, running on Redhat Enterprise Linux,
is clearly broken, or perhaps its magic file is. It reports both my
UTF-16BE and UTF-16LE files as UTF-16LE. So it seems pointless to 
debate which version of file is more broken than the other. (And, of
course, this is not a Cygwin issue.)

--Ken Nellis

-Original Message-
From: Corinna Vinschen 
Sent: Wednesday, December 06, 2006 2:51 PM
To: cygwin@cygwin.com
Subject: Re: printf '\377\376h\000\r\000\n\000'|file - #wrong result?

On Dec  6 14:34, Larry Hall (Cygwin) wrote:
 Tom Rodman wrote:
 Maybe not a new problem, but this older (flame me) cygwin version works 
 better:

No, not better, different.  Newer versions of file happen to know
about new file types which older versions of file don't.  
file-4.16 recognizes the header of your string as the magic nuber of
an MPEG ADTS, layer I, v1, 192 kBits, 32 kHz, Stereo file.

Again, file is using large lists of file header and typical content
information of many different file types.  The result of file is
NOT the ultimate truth, but an aproximation based on the data files.


--
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 home page

2006-12-07 Thread Corinna Vinschen
On Dec  7 14:08, Xavier Joubert wrote:
 Hi all,
 
 I just wanted to remind you the Cygwin home page at http://www.cygwin.com 
 still
 list 1.5.21.

Thanks for the hint.


Corinna

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

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



Re: msys

2006-12-07 Thread Bob Rossi
On Thu, Dec 07, 2006 at 09:19:04AM -0500, Buchbinder, Barry (NIH/NIAID) [E] 
wrote:
 Bob Rossi wrote on Thursday, December 07, 2006 9:10 AM:
  I'd like to know if anyone knows if it is possible to start the msys
  environment from a cygwin shell? I'm ssh'ing into a windows machine,
  which gives me a cygwin shell. I've tried a lot of things, and can't
  get an msys environment.   
  
  Even if I remove every environment variable except for PS1, and then
  run 'cmd' and then cd to C:\msys\1.0 and the run .\msys.bat, I end up
  back in cygwin somehow.  
  
  Any suggestions?
 
 No idea, but this might help:
 http://www.mingw.org/mingwfaq.shtml#faq-usingwithcygwin

Thanks, but that's not what I'm looking for. I've already showed that I
can cross compile from cygwin to mingw. However, I would also like to
build nativly for mingw. I can do this if I'm sitting at my computer,
cuase the msys environment is easy to get. However, when I'm remote,
there is no way I can see to get into an msys environment.

The mingw-users list suggested that I get another version of sshd that's
not related to cygwin. However, i like cygwin's sshd server.

Any ideas?

Thanks,
Bob Rossi

--
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: Windows Vista Cygwin

2006-12-07 Thread Corinna Vinschen
On Dec  7 06:38, Jeremy T. Harrison wrote:
 
 I ran the setup piece via 'Run as Administrator'.  I am getting the same
 error message about bash.exe ...program to stop working correctly...
 notify you if a solution is available...
 
 When I launch bash.exe, I get the bash prompt, but no further.  Is there
 some manual work I can do to 'repair' the installation?  I recognize
 that this is caused by Vista and not by Cygwin.

I can't reproduce your problem.  I'm running Cygwin on two Vista 32
installations using Cygwin 1.5.22 or the latest developer snapshot from
http://cygwin.com/snapshots/, as well as on a Vista 64 machine with the
latest snapshot.  You could try rebasing, maybe using a base address of
0x6500, but changing the base address like this shouldn't be
actually required.

I have obviously no idea how you configured your system, which is sort
of a pain on Vista anyway.  Sorry, but, this is one of the cases where
you have to roll up your sleeves and start debugging.

 I imagine if I add /bin to the path I will get a little further than I
 am -- are there other directories that I should not overlook?

If you start using the cygw.bat file you should already have /bin, resp
/usr/bin (which is the same) in your path.


Corinna

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

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



Re: msys

2006-12-07 Thread Corinna Vinschen
On Dec  7 09:27, Bob Rossi wrote:
  However, when I'm remote,
 there is no way I can see to get into an msys environment.
 
 The mingw-users list suggested that I get another version of sshd that's
 not related to cygwin. However, i like cygwin's sshd server.

MSYS is a very old Cygwin version.  There's some collision which you
can't avoid as long as MSYS doesn't encapsulate itself against a running
Cygwin, which is, as I understood, one of the development targets for
MSYS.


Corinna

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

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



How to login to another Unix workstation or Cygwin PC

2006-12-07 Thread Steve Boyd
I'm a Cygwin newbie; spent the last 15 years in the tender clutches of hp-ux.
Currently making the jump to Cygwin.  I'm looking for a place to start when
it comes to using things I was familiar with on hp-ux; rlogin, remsh, ftp,
etc.  Can anybody give me some general background on these subjects in Cygwin?


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



RE: 1.5.21-1 Release: Windows memory resources do not recover.

2006-12-07 Thread Dave Korn
On 07 December 2006 13:08, Dave Silvia wrote:

 Hi!
 
 On further investigation an looking more closely at the areas in the
 configure script where they errors and/or reboot was occurring, and with
 some helpful pointers from responders on this list, I've constructed the
 following bash shell script (exhaustMem.bsh):
 
 --
 #!/bin/sh


  Could you send that again as an attachment, so that the lines don't get
wrapped?

  Also, I will happily reply to that offlist email you sent me, but for the
reasons outlined at http://cygwin.com/acronyms#PPIOSPE, I will only do so
on-list.  Since it is improper to quote someone's personal email in public,
please resend that post, to the list address, and we'll have the discussion
here, where it can be of use to everyone.


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: 1.5.21-1 Release: Windows memory resources do not recover.

2006-12-07 Thread Matt Wozniski

I've constructed the following bash shell script (exhaustMem.bsh):



Are you SURE you don't have a buggy driver installed?  Known culprits
include Agnitum outpust, Mcafee virus scanners, Logitech webcam, ...  In
other words, the leak is not caused by cygwin, but by your buggy driver
leaking memory for every process spawned by your process-intensive scripts.


I can't reproduce your problem either.  Try running that same script
in safe mode without networking, and you're pretty likely to get
different results.  That should prove that it's a faulty driver.

~Matt

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



MPI

2006-12-07 Thread MarioA

Hello,

I would like to know if someone can tell me what I have to do to install
MPI, in order to use it under Cygwin.

Thank you very much,

MarioA
-- 
View this message in context: http://www.nabble.com/MPI-tf2775108.html#a7741455
Sent from the Cygwin Users mailing list archive at Nabble.com.


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



Re: Trouble with DLL and file (com port) IO

2006-12-07 Thread R. Steve McKown
On Wednesday 06 December 2006 03:13 pm, Dave Korn wrote:
 On 06 December 2006 17:01, R. Steve McKown wrote:
  Th extension accepts a file descriptor to an open serial port, uses the
  cygwin get_osfhandle() function to get the corresponding HANDLE, calls
  the DLL function, then returns.  When run, python core dumps somewhere
  between ...

   Go research what those decorations actually signify.  Here's some terms
 to help get you started at Google:  cdecl, stdcall, fastcall.  Actually,
 nevermind google, you may as well go straight to MSDN.

The dll header file defines the functions using the WINAPI definition, which 
appears to map to __stdcall, so I thought the compiler already had the right 
information in this regard.  I'll research over at MSDN; thank you.

   The only other obvious mistake was spamming everyone on the list with a
 couple of hundred kb of completely useless crud ...

I posted an apology and a correction within 10 minutes after posting an 
attachment containing build products, which caused its massive size.  I can't 
blame you for busting my chops anyway; it was a bone-headed oversight.

Thanks again,
Steve

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



matrix size limitation in cygwin?

2006-12-07 Thread Fam. Ivanescu Gruia

Hi all,

I try to make C program in CygWin having declared matrix variables like:

float lats[1000][1000],lons[1000]
[1000];

It compiles, but when I run the executable I got:

Segmentation fault (core dumped)

It seems that the 1000 value is too big. If I put 500 it works. However, 
I need to use 1000 and I'm wandering if this limitation in CygWin may be 
adjusted in any ways. Do you have please any idea?


Many thanks,
Liviu

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



Build problems --- putty-0.58-cygterm-20060525.tar.gz and putty-0.58.tar.gz

2006-12-07 Thread Keith Christian

Problem: Successful build on one XP machine but not on another.

On the machine with the successful build, PuTTY-Cygterm is fabulous.  I can't 
wait to get it working on the other machine.

I was able to successfully build Puttycyg on one Windows XP machine, but not on 
another.  Used the same source files on both machines, e.g. putty-0.58.tar.gz 
and the companion putty-0.58-cygterm-20060525.tar.gz.  I also tried the 0.57 
version of both source files, but the build failed at the same point.

The machine having problems stops at the step below.  The crt2.o file is the 
same on both machines, same path, and same filesize and date.

I'm using the build instructions here: 
http://web.gccaz.edu/~medgar/puttycyg/BUILDING.txt.  Again, I had a successful 
build on another nearly identical XP machine.

Here's the last part of the output where it fails:

gcc -mwindows -mno-cygwin -s -o putty.exe -Wl,-Map,putty.map be_all.o \
cmdline.o config.o cproxy.o cygterm.o dialog.o ldisc.o \
ldiscucs.o logging.o minibidi.o misc.o pinger.o portfwd.o \
pproxy.o proxy.o raw.o rlogin.o settings.o sizetip.o ssh.o \
sshaes.o sshblowf.o sshbn.o sshcrc.o sshcrcda.o sshdes.o \
sshdh.o sshdss.o sshmd5.o sshpubk.o sshrand.o sshrsa.o \
sshsh512.o sshsha.o sshzlib.o telnet.o terminal.o timing.o \
tree234.o version.o wcwidth.o wildcard.o win_res.res.o \
wincfg.o winctrls.o windefs.o windlg.o window.o winmisc.o \
winnet.o winnoise.o winpgntc.o winprint.o winstore.o \
wintime.o winucs.o winutils.o x11fwd.o -ladvapi32 -lcomctl32 \
-lcomdlg32 -lgdi32 -limm32 -lshell32 -luser32 -lwinmm \
-lwinspool
ld: crt2.o: No such file: No such file or directory
make: *** [putty.exe] Error 1
make: Leaving directory `/usr/src/putty-0.58/WINDOWS'


My investigation of the whereabouts of crt2.o:

==
Output of --- locate /crt2

/cygdrive/c/cygwin/lib/mingw/crt2.o
==


==
Output of --- ls -l /cygdrive/c/cygwin/lib/mingw/crt2.o

-rwxrwxrwx+ 1 kchristian Users 2260 Nov 18 15:29 
/cygdrive/c/cygwin/lib/mingw/crt2.o
==



Baffling.  Any ideas?


=Keith

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



RE: Trouble with DLL and file (com port) IO

2006-12-07 Thread Dave Korn
On 07 December 2006 15:54, R. Steve McKown wrote:

 On Wednesday 06 December 2006 03:13 pm, Dave Korn wrote:
 On 06 December 2006 17:01, R. Steve McKown wrote:
 Th extension accepts a file descriptor to an open serial port, uses the
 cygwin get_osfhandle() function to get the corresponding HANDLE, calls
 the DLL function, then returns.  When run, python core dumps somewhere
 between ...
 
   Go research what those decorations actually signify.  Here's some terms
 to help get you started at Google:  cdecl, stdcall, fastcall.  Actually,
 nevermind google, you may as well go straight to MSDN.
 
 The dll header file defines the functions using the WINAPI definition, which
 appears to map to __stdcall, so I thought the compiler already had the right
 information in this regard.  I'll research over at MSDN; thank you.

  It's about a hundred-to-one on that what's going on here is a disagreement
between caller and callee about whose job it is to clean up the stack.

   The only other obvious mistake was spamming everyone on the list with a
 couple of hundred kb of completely useless crud ...
 
 I posted an apology and a correction within 10 minutes after posting an
 attachment containing build products, which caused its massive size.  I
 can't blame you for busting my chops anyway; it was a bone-headed oversight.

  For the avoidance of doubt: that paragraph was meant to be read to oneself
whilst imagining a bemused tone of voice, rather than a harsh and aggressive
one.

  However, if you do it again, I'll drop a hippo on 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: matrix size limitation in cygwin?

2006-12-07 Thread Dave Korn
On 07 December 2006 15:59, Fam. Ivanescu Gruia wrote:

 Hi all,
 
 I try to make C program in CygWin having declared matrix variables like:
 
 float lats[1000][1000],lons[1000]
 [1000];
 
 It compiles, but when I run the executable I got:
 
 Segmentation fault (core dumped)
 
 It seems that the 1000 value is too big. If I put 500 it works. However,
 I need to use 1000 and I'm wandering if this limitation in CygWin may be
 adjusted in any ways. Do you have please any idea?

  This is a FAQ.  Read the FAQ.

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: Build problems --- putty-0.58-cygterm-20060525.tar.gz and putty-0.58.tar.gz

2006-12-07 Thread Dave Korn
On 07 December 2006 16:00, Keith Christian wrote:



 
 Baffling.  Any ideas?


  Different binutils versions?  make versions?  Run cygcheck -s -v -r on
each machine and then diff the two?


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

2006-12-07 Thread Brian Dessent
MarioA wrote:

 I would like to know if someone can tell me what I have to do to install
 MPI, in order to use it under Cygwin.

You are making the mistake of assuming that anyone here has any idea
what MPI is.  We could probably google it and find out (and I'm sure
some readers might know) but the fact remains that if it isn't listed at
http://cygwin.com/packages/ (and it's not) then it's not part of the
distro and so you're on your own.  If MPI has a mailing list, ask
there.  If this is some kind of library, then try downloading its source
code and building it, and if you get an error, report the exact error
along with the exact steps you used to get the error.  In short, you
need to be much more specific.

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

2006-12-07 Thread Samuel Thibault
Hi,

Brian Dessent, le Thu 07 Dec 2006 08:12:05 -0800, a écrit :
 MarioA wrote:
 
  I would like to know if someone can tell me what I have to do to install
  MPI, in order to use it under Cygwin.
 
 You are making the mistake of assuming that anyone here has any idea
 what MPI is.

MPI is a standard, not an application. mpich and lampi are some examples
of implementations.

Samuel

--
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 login to another Unix workstation or Cygwin PC

2006-12-07 Thread Matthew Woehlke

Steve Boyd wrote:

I'm a Cygwin newbie; spent the last 15 years in the tender clutches of hp-ux.
Currently making the jump to Cygwin.  I'm looking for a place to start when
it comes to using things I was familiar with on hp-ux; rlogin, remsh, ftp,
etc.  Can anybody give me some general background on these subjects in Cygwin?


Yes: start by installing OpenSSH, and then read the man pages for 'ssh', 
'sshd', 'sftp', etc. Read /usr/share/doc/Cygwin/openssh.README for how 
to set up sshd on your box (and whatever you do, *DO NOT* read any 
websites with 'pigtail.net' in the address; that site is long infamous 
for having broken instructions).


You might also want Cygwin's 'telnet' package if you need to log into 
hosts that do not support ssh.


I'm not aware of an remsh for Cygwin (and neither is 
http://cygwin.com/packages/), but the same says that rsh (which you 
still shouldn't use if you can avoid it) lives in the 'inetutils' 
package. Oddly enough, that seems to also be the package where the 
vanilla 'ftp' lives.


--
Matthew
unsubscribe me plz!! -- Newbies


--
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: Latest Cygwin: rl_getenv_hook problem

2006-12-07 Thread Alexei Alexandrov


Also, could you send the output of:

$ grep -C5 00bash.sh /var/log/setup.log/full

to see if it captured any error messages from the attempted cp?



The grepped setup log is attached (it is from setup.log, by the way -
setup.log.full is surprisingly small).

--
Alexei Alexandrov


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

Re: Trouble with DLL and file (com port) IO

2006-12-07 Thread R. Steve McKown
On Wednesday 06 December 2006 04:27 pm, Matthew Woehlke wrote:
 Dave Korn wrote:
BTW, mixing MSVC-based code with cygwin-based is inherently unreliable
  and liable to fail unpredictably.  I guess the vendor isn't likely to
  want to share their dll source with you so you could recompile it with
  gcc, but it might not be /too/ complicated to just take a look at the USB
  transactions that get sent across the bus when you try to manipulate the
  gpios using their dll, then throw together your own custom library to
  send the same transactions using libusb or similar.
 
  This works in Linux already (we extended the
  linux driver to emulate the gpio capbilities of the vendor DLL).

 ...especially since he seemed to imply that he already has his own
 working source for Linux. It should (FLW) be fairly easy to port this to
 Cygwin (seeing as how Cygwin's purpose is to emulate Linux, and make
 porting Linux code easy).

To use libusb, a native driver can't have allocated the device, right?  The 
windows driver is currently providing a USB/serial interface so the device 
can be opened by its tty/com port.  This functionality is required.

In Linux, this was easy; extend the part's kernel driver to provide ioctl()s 
that implement the additional USB transactions to support gpio.  There's no 
such analog in the vendor's windows driver; instead they provide this 
add-on DLL.

Any feedback is appreciated.  I'm possibly missing some simpler alternative.

Thanks,
Steve

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

2006-12-07 Thread Dave Korn
On 07 December 2006 16:26, Samuel Thibault wrote:

 Hi,
 
 Brian Dessent, le Thu 07 Dec 2006 08:12:05 -0800, a écrit :
 MarioA wrote:
 
 I would like to know if someone can tell me what I have to do to install
 MPI, in order to use it under Cygwin.
 
 You are making the mistake of assuming that anyone here has any idea
 what MPI is.
 
 MPI is a standard, not an application. mpich and lampi are some examples
 of implementations.
 
 Samuel


  Then the answer to the original question:

 I would like to know if someone can tell me what I have to do to install
 MPI, in order to use it under Cygwin.

must be

  You would have to install an implementation of it, in order to use 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: MPI

2006-12-07 Thread David A. Case
On Thu, Dec 07, 2006, MarioA wrote:
 
 I would like to know if someone can tell me what I have to do to install
 MPI, in order to use it under Cygwin.
 

You can download and install a precompiled mpich2 for windows.  Then you can
use cygwin compilers and loaders to link your program to that library in the
usual way.

When I tried a couple of months ago to build mpich2 from sources using
cygwin's compilers, there were problems (which I don't even fully remember
now).  Since the precompiled libraries worked fine for me, I didn't pursue
this.

...good luck...dave case

--
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: Windows Vista and CygWin

2006-12-07 Thread Christopher Faylor
On Thu, Dec 07, 2006 at 01:01:37PM +0100, McArdle, Christian wrote:
 If you are not the intended recipient, you are hereby notified
 that any use, copying or dissemination of this message is
 strictly prohibited. If you received this message in

 If it does have any weight, it prohibits us from replying to your 
 communication.

Not really, as you are the intended recipient! This means that the
prohibitions don't apply to you.

But it seems more likely that your company policy prohibits you from
using your e-mail system to post on a public list, as you have done.

No, it just puts an annoying long signature on the end.  In fact, I had
no idea that it did so until you complained, especially as my brain
automatically filters out signatures, so I didn't even notice when I
read it myself.

Please read: http://sourceware.org/lists.html for the site policy on
this type of disclaimer.  Basically, it is not allowed.

cgf

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



Re: msys

2006-12-07 Thread Christopher Faylor
On Thu, Dec 07, 2006 at 09:27:19AM -0500, Bob Rossi wrote:
On Thu, Dec 07, 2006 at 09:19:04AM -0500, Buchbinder, Barry (NIH/NIAID) [E] 
wrote:
 Bob Rossi wrote on Thursday, December 07, 2006 9:10 AM:
  I'd like to know if anyone knows if it is possible to start the msys
  environment from a cygwin shell? I'm ssh'ing into a windows machine,
  which gives me a cygwin shell. I've tried a lot of things, and can't
  get an msys environment.   
  
  Even if I remove every environment variable except for PS1, and then
  run 'cmd' and then cd to C:\msys\1.0 and the run .\msys.bat, I end up
  back in cygwin somehow.  
  
  Any suggestions?
 
 No idea, but this might help:
 http://www.mingw.org/mingwfaq.shtml#faq-usingwithcygwin

Thanks, but that's not what I'm looking for. I've already showed that I
can cross compile from cygwin to mingw. However, I would also like to
build nativly for mingw. I can do this if I'm sitting at my computer,
cuase the msys environment is easy to get. However, when I'm remote,
there is no way I can see to get into an msys environment.

The mingw-users list suggested that I get another version of sshd that's
not related to cygwin. However, i like cygwin's sshd server.

Any ideas?

We do not support msys in this mailing list.

Please take this discussion elsewhere.

cgf

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



Re: 1.5.21-1 Release: Windows memory resources do not recover.

2006-12-07 Thread Dave Silvia
-- On Thu, 07 Dec 2006 06:36:05 -0700 Eric Blake wrote --
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 According to Dave Silvia on 12/7/2006 6:08 AM:
 Hi!

 On further investigation an looking more closely at the areas in
 the configure script where they errors and/or reboot was
 occurring, and with some helpful pointers from responders on this
 list, I've constructed the following bash shell script
 (exhaustMem.bsh):


 Are you SURE you don't have a buggy driver installed?  Known
 culprits include Agnitum outpust, Mcafee virus scanners, Logitech
 webcam, ...  In other words, the leak is not caused by cygwin, but
 by your buggy driver leaking memory for every process spawned by
 your process-intensive scripts.

 - --
 Life is short - so eat dessert first!

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

 iD8DBQFFeBjF84KuGfSFAYARAg0cAKCPRB3toLdIVa1FVzROuhqrK5EKYQCdHIod
 H5WTYFZH4SFoaRgm1X6QvGQ= =dWdL -END PGP SIGNATURE-

Well, if there's a conflict with a driver or service, it's a Microsoft driver or
service because that's all that appears to be running differently between Safe
and Normal mode. And, yes, in Safe mode it doesn't exhibit the behavior, but
that's hardly helpful. I don't imagine anyone who's going to run major
configuration scripts is going to want to do it in safe mode. Nor would it be
desirable/effective in a lot of instances.

It does appear to be some kind of problem between bash and Windows. I'm done,
tho'. It's beyond my resources to do anything about and I haven't any more time
to spend on investigating other shells to see if they're different. 3 days is
enough.

thx,
Dave S.


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



RE: 1.5.21-1 Release: Windows memory resources do not recover.

2006-12-07 Thread Dave Korn
On 07 December 2006 18:30, Dave Silvia wrote:


 It does appear to be some kind of problem between bash and Windows. I'm
 done, tho'. It's beyond my resources to do anything about and I haven't any
 more time to spend on investigating other shells to see if they're
 different. 3 days is enough.


  Your computer is faulty, and so is the diagnostic that you are using.  I'll
explain in a separate reply to your earlier post.


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: Trouble with DLL and file (com port) IO

2006-12-07 Thread R. Steve McKown
On Thursday 07 December 2006 09:07 am, Dave Korn wrote:
 On 07 December 2006 15:54, R. Steve McKown wrote:
  On Wednesday 06 December 2006 03:13 pm, Dave Korn wrote:
  On 06 December 2006 17:01, R. Steve McKown wrote:
  Th extension accepts a file descriptor to an open serial port, uses the
  cygwin get_osfhandle() function to get the corresponding HANDLE, calls
  the DLL function, then returns.  When run, python core dumps somewhere
  between ...
 
Go research what those decorations actually signify.  Here's some
  terms to help get you started at Google:  cdecl, stdcall, fastcall. 
  Actually, nevermind google, you may as well go straight to MSDN.
 
  The dll header file defines the functions using the WINAPI definition,
  which appears to map to __stdcall, so I thought the compiler already had
  the right information in this regard.  I'll research over at MSDN; thank
  you.

   It's about a hundred-to-one on that what's going on here is a
 disagreement between caller and callee about whose job it is to clean up
 the stack.

And it was.  I had defined a typedef for casting the function pointer returned 
from dlsym(), and it did not carry the proper call attributes.  The test code 
is now working.  Thanks for the assist!

The only other obvious mistake was spamming everyone on the list with
  a couple of hundred kb of completely useless crud ...
 
  I posted an apology and a correction within 10 minutes after posting an
  attachment containing build products, which caused its massive size.  I
  can't blame you for busting my chops anyway; it was a bone-headed
  oversight.

   For the avoidance of doubt: that paragraph was meant to be read to
 oneself whilst imagining a bemused tone of voice, rather than a harsh and
 aggressive one.

   However, if you do it again, I'll drop a hippo on you!

8^D

Best,
Steve

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



Winsock

2006-12-07 Thread Lucas Charron
I'm using C::B(http://www.codeblocks.org) over cygwin. I'm testing a 
socket stream library of my own creation (using Winsock2). My server 
is currently a simple HTTP server (sends out a blank html page saying 
you are here). I can connect to my listening socket from within the 
same process and transmit data to and from the server and client, 
but, if I try to use a web-browser, I get This connection was denied 
and the server application has no notification of anything even trying 
to connect. I've checked all of windows' firewall settings (firewall is 
disabled). I've also tryed binding to my external IP and to my loopback. 
I've tryed binding to 0.0.0.0. Somewhere, my connection is being 
rejected. I've checked the windows log files for dropped packets, and 
nothing. I'm at my wits end.
All sockets functions return normally, there are no errors that windows 
is reporting. This is either a Windows or Cygwin problem, but I can't 
figure it out.


If anyone has any idea whats going on, please tell me.

--Luke

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



RE: Winsock

2006-12-07 Thread Dave Korn
On 07 December 2006 19:21, Lucas Charron wrote:

 I can connect to my listening socket from within the
 same process and transmit data to and from the server and client,
 but, if I try to use a web-browser, I get This connection was denied
 and the server application has no notification of anything even trying
 to connect. I've checked all of windows' firewall settings (firewall is
 disabled). I've also tryed binding to my external IP and to my loopback.
 I've tryed binding to 0.0.0.0. Somewhere, my connection is being
 rejected. I've checked the windows log files for dropped packets, and
 nothing. I'm at my wits end.
 All sockets functions return normally, there are no errors that windows
 is reporting. This is either a Windows or Cygwin problem, but I can't
 figure it out.

  There is no such thing as a per-process socket, so that can't be the cause
directly.  I suggest you a) look at the netstat output to make sure that the
socket you think is there and listening is valid and b) try to connect with
something simple like telnet or netcat rather than a browser.

  The most likely explanation for this behaviour is that you've got the wrong
endianness somewhere in your code when you setup the inetaddrs.  Within the
same process, you've got the same code, so the server is listening on
whichever numbered port you get if you byteswap (unsigned short)80, and the
client that tries to connect tries to connect to that port, whereas when you
try it with a real browser it tries to get to the real port 80 and finds
nothing there listening.  You must use htonX when entering values directly
into an inetaddr.




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: cygwin-email utility clipping attached zips

2006-12-07 Thread René Berber
zzapper wrote:
[snip]
 rene,
 thanks for replying, did you check that file size was exactly the same as 
 unzip is clever enough to copy with a few errors?

Same files:

$ md5sum prof_383.zip
ed1b2d83d65f187cc780725313cdac92 *prof_383.zip

$ md5sum /c/tmp/prof_383.zip
ed1b2d83d65f187cc780725313cdac92 */c/tmp/prof_383.zip

 regards subject, email is so common i wanted to find some way to get 
 any subject to standout, didnt realise it was a package though!

Good point, looking for email will result in a million hits.

 I have emailed the author but no reply as yet. I better persue his 
 website!
 
 Emailing attachments from the command line will be such useful thing for

But your problem sounds more like one of DOS type mount, or something
(bash/tcsh/etc.) mangling the file -- as in stripping \r from binary files.
-- 
René Berber


--
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-email utility clipping attached zips

2006-12-07 Thread zzapper
René Berber [EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]: 

 
 But your problem sounds more like one of DOS type mount, or something
 (bash/tcsh/etc.) mangling the file -- as in stripping \r from binary
 files. 

Rene
Please award yourself one gold star!
I'd messed around with the mounts recently, have now  reverted it to 
binmode, drat!

Thanks

-- 
http://successtheory.com/tips/ Vim, Zsh, MySQL Tips


--
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: Windows Vista and CygWin

2006-12-07 Thread Andrew DeFaria

Richard Quadling wrote:

On 07/12/06, Andrew DeFaria [EMAIL PROTECTED] wrote:
A bus station is where a bus stops. A train station is where a train 
stops. On my desk, I have a work station... Go figure!

A bus station is normally where a bus terminates.
A train station is normally where a train pauses for a while.
A work station is where your work either terminates or pauses for a 
while.


Better yet is the difference between a boat/ship and gunboat/gunship.

Or

I would recommend that you read a book that I once read about red reeds.

etc.
I just love it when people spend time analyzing my tagline jokes that 
were never meant to be logical, just funny, and pick apart it's logic. 
Tell me more! :-)


--

Andrew DeFaria http://defaria.com
The obituaries in the newspaper prove beyond a shadow of a doubt that 
people die in alphabetical order.



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

2006-12-07 Thread Tim Prince

[EMAIL PROTECTED] wrote:

Hello,

I would like to know if someone can tell me what I have to do to install
MPI, in order to use it under Cygwin.

Thank you very much,

MarioA
  
While there was once a version of lam-mpi set up to build under cygwin, 
AFAIK it has suffered bit rot and would present a struggle.  You could 
use native Windows mpich builds, recognizing that they don't use cygwin 
.dll and are not supported under cygwin, even though cygwin is valuable 
as a more capable command line environment.  Note that Argonne Windows 
mpich includes 32- and 64-bit Windows versions, which are much the same 
as those which are embedded in the Windows CCS environment, and can be 
run together with cygwin.  Even if you should be ingenious enough to 
link against Argonne mpich with a cygwin compiler and -mno-cygwin, that 
takes it outside the range of topics which this mail list supports.


--
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 cd in Cygwin scripts

2006-12-07 Thread David Bishop

Eric Blake wrote:


According to David Bishop on 12/6/2006 9:06 PM:

I can manually use the cd command without problems, but when I try to
use it in a script, I just get:
: No such file or directory


Sounds like a case of DOS line endings on a binary mount.
http://cygwin.com/ml/cygwin-announce/2006-12/msg8.html


That was it.  Simple DOS file format.  Amazing what another set of eyes 
can see, thanks!


--
NAME: David W. Bishop   INTERNET: [EMAIL PROTECTED]

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



Re: Latest Cygwin: rl_getenv_hook problem

2006-12-07 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Alexei Alexandrov on 12/7/2006 9:32 AM:

 Also, could you send the output of:

 $ grep -C5 00bash.sh /var/log/setup.log/full

 to see if it captured any error messages from the attempted cp?

 
 The grepped setup log is attached (it is from setup.log, by the way -
 setup.log.full is surprisingly small).

Actually, it was setup.log.full that I wanted, since that is the file
where the postinstall script redirects the output from 'cp -v' - really,
what I'm looking for from someone who has a failed /bin/sh upgrade, is the
reason for the failure (for example, whether it was because sh.exe was in
use, or because of permissions issues, etc.).  Until I know why it failed,
I can't work around it, since I haven't been able to reproduce a failure
in my tests so far.

- --
Life is short - so eat dessert first!

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

iD8DBQFFeN0s84KuGfSFAYARAiLJAJ908CzEjWOq4yvYwkhJ/0mmVJwZawCePtL0
JODdl6NkxGaLIN7BSuyLLHA=
=OzzO
-END PGP SIGNATURE-

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