How to use cygwin.dll into MSVC program

2002-09-18 Thread Niraj Agarwal
Hi All, I want to use cygwin.dll file to porgram written in MSVC program. Is it possible? If yes please provide pointers in this direction? Thanks and Best Regards Niraj Agarwal Senior Member Technical Staff Network Programs Ltd. Noida

Re: libpng not found.

2002-09-18 Thread Soren A
Shankar Unni <[EMAIL PROTECTED]> wrote in [EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: > Soren A wrote: >> Your message text reading "my application" conveys ambiguous meaning >> to me. > > [ much detail deleted ] > > Could you maybe have started off by suggesting that he install "libpng" > fro

Re: Getting MAC address within C/C++-program in Windows2000

2002-09-18 Thread Alex Vinokur
- Original Message - From: "Warren Young" <[EMAIL PROTECTED]> Newsgroups: gmane.os.cygwin Sent: Thursday, September 12, 2002 7:08 PM Subject: Re: Getting MAC address within C/C++-program in Windows2000 http://sources.redhat.com/ml/cygwin/2002-09/msg00602.html > [EMAIL PROTECTED] wrote:

Re: Getting MAC address within C/C++-program in Windows2000

2002-09-18 Thread Alex Vinokur
- Original Message - From: "Corinna Vinschen" <[EMAIL PROTECTED]> Newsgroups: gmane.os.cygwin Sent: Wednesday, September 11, 2002 7:01 PM Subject: Re: Getting MAC address within C/C++-program in Windows2000 http://sources.redhat.com/ml/cygwin/2002-09/msg00531.html > On Wed, Sep 11, 2002

MMap offset parameter failing with ENOMEM error

2002-09-18 Thread Shane Mann
Hi, I am having trouble with mmap using the last 'offset' parameter. I have attached a small piece of code (and sample file) which demonstrates the problem. Basically if the offset parameter is passed as a variable to mmap then the call fails with an ENOMEM error. But if you pass 0 as the paramet

Re: cvs executes illegal instructions

2002-09-18 Thread Michael A Chase
On Wed, 18 Sep 2002 15:10:44 -0700 Steve Kelem <[EMAIL PROTECTED]> wrote: > > > I'm running cvs 1.11 on Windows 2000, and the latest cygwin inside tcsh > 6.11.00. > If I run "cvs commit" from tcsh, it runs a bit, and then brings up a > popup: Darn. I forgot to also ask for the _exact_ comman

Re: cvs executes illegal instructions

2002-09-18 Thread Michael A Chase
On Wed, 18 Sep 2002 15:10:44 -0700 Steve Kelem <[EMAIL PROTECTED]> wrote: > I'm running cvs 1.11 on Windows 2000, and the latest cygwin inside tcsh > 6.11.00. > If I run "cvs commit" from tcsh, it runs a bit, and then brings up a > popup: > > 16 bit MS-DOS Subsystem > The NTVDM CPU has encounte

RE: GNAT in gcc-3.2 [was Re: New gcc-3.1.1 Release - g77]

2002-09-18 Thread Billinghurst, David (CRTS)
I will build a gcc+gnat only binary, tar it up and see how big it is. If it isn't too big, I will put it on my geocities page and send you the URL. I have no Ada experience, so can't vouch for the end result, but it will bootstrap itself. I just built it "because it was there". -Origin

Re: dumb escaping question when using Cygwin + NT commands

2002-09-18 Thread Randall R Schulz
Scott, At 15:15 2002-09-18, Scott Prive wrote: >Hello, > >I get this odd problem when calling NT commands from Cygwin. I am >single-quoting the data, but the way I'm doing things (probably wrong...) >does not like passing $1 function arguments to NT commands. If I hardcode >the arguments inte

dumb escaping question when using Cygwin + NT commands

2002-09-18 Thread Scott Prive
Hello, I get this odd problem when calling NT commands from Cygwin. I am single-quoting the data, but the way I'm doing things (probably wrong...) does not like passing $1 function arguments to NT commands. If I hardcode the arguments internally, everything works. The two example functions b

cvs executes illegal instructions

2002-09-18 Thread Steve Kelem
I'm running cvs 1.11 on Windows 2000, and the latest cygwin inside tcsh 6.11.00. If I run "cvs commit" from tcsh, it runs a bit, and then brings up a popup: 16 bit MS-DOS Subsystem The NTVDM CPU has encountered an illegal instruction. CS:00cf IP:0514 OP:ff ff 00 00 98 Choose 'Close' to termina

Attn: Monsieur le Directeur Général (Confidentiel & Urgent)

2002-09-18 Thread Kwame Ashantee
Madame/Monsieur, Je sais que ma lettre vous parviendra comme une grande surprise.Cependant, c'est une necessité pour moi de vous écrire cette lettre confidentielle qui mérite votre attention urgente pour notre avantage mutuel. Par conséquent, quoi qu'il en soit, je vous prierai de bien voulo

Re: Migrating users from NT to Cygwin?

2002-09-18 Thread Max Bowsher
Craig Emery wrote: > Dear All, > > after installing cygwin all the NT users that existed before running setup.exe have been migrated into my /etc/passwd file and I > can run bash --login as them. > > I wish for an NT user that I've since created to have the same ability. > > How do I migrate this

Migrating users from NT to Cygwin?

2002-09-18 Thread Craig Emery
Dear All, after installing cygwin all the NT users that existed before running setup.exe have been migrated into my /etc/passwd file and I can run bash --login as them. I wish for an NT user that I've since created to have the same ability. How do I migrate this newly created NT user over to c

AW: PHP Apache module with PostgreSQL support

2002-09-18 Thread Andreas
> > I read this in (/usr/doc/Cygwin/)php-4.2.0-1.README: > > ../../../CYGIN-PATCHES/mkdll.sh libsapi.la \ > > -L ../../../.libs -lphp4 \ > > [addional -lfoobar ld flags] \ > > > The above seems important. > > > /usr/bin/cyghttpd.dll > > > > I tried: > > ../

Tcl/Tk 8.4 released without cygwin support

2002-09-18 Thread Heribert Dahms
FYI, too pity: > Date: Wed, 18 Sep 2002 17:06:56 + (UTC) > From: Jeff Hobbs <[EMAIL PROTECTED]> > Newsgroups: comp.lang.tcl.announce > Followup-To: comp.lang.tcl > Subject: ANNOUNCE: Tcl 8.4.0 Final Release > Incompatibilities in configuring/building/installing Tcl/Tk: > * cygwin support d

Open bash at the current explorer directory?

2002-09-18 Thread John Daniel Doucette
Igor, With all the great info on the mailing list and some research on my own, this is the registry file I came up with to open a cygwin rxvt shell at the current explorer directory/drive. It also includes the option to open a Command prompt at the explorer directory/drive (Horrors!). It wor

Re: PHP Apache module with PostgreSQL support

2002-09-18 Thread Jason Tishler
Andreas, On Wed, Sep 18, 2002 at 09:38:12PM +0200, Andreas wrote: > I read this in (/usr/doc/Cygwin/)php-4.2.0-1.README: > ../../../CYGIN-PATCHES/mkdll.sh libsapi.la \ > -L ../../../.libs -lphp4 \ > [addional -lfoobar ld flags] \ The above seems important. >

Re: PHP Apache module with PostgreSQL support

2002-09-18 Thread Andreas
> > It doesn't work that way: > > ../../../CYGIN-PATCHES/mkdll.sh libsapi.la \ > > -L ../../../.libs -lphp4 \ > > /usr/bin/cyghttpd.dll /usr/bin/pq.dll [8] > ^^^ > > One should *not* link against DLLs directly -- one should link against >

Re: cvs cygwin1.dll

2002-09-18 Thread Christopher Faylor
On Wed, Sep 18, 2002 at 06:42:50PM +, Guy Harrison wrote: >On Fri, 13 Sep 2002 08:58:16 -0400, Christopher Faylor <[EMAIL PROTECTED]> >wrote: > >>On Fri, Sep 13, 2002 at 09:09:37AM +, Guy Harrison wrote: >>>I can't seem to figure out how to set a breakpoint in sigproc.cc without >>>recompi

Re: what's that 1543 port ?

2002-09-18 Thread Conrad Scott
"Francois de Campagnolle" <[EMAIL PROTECTED]> wrote: > The cygwin binaries try for some reason to talk to the 1543 port on > localhost since I last run setup. > What's gives ? Since in your last message on the list you asked about cygserver, my guess is that you have a windows 9x/ME box and you a

Re: libpng not found.

2002-09-18 Thread Christopher Faylor
On Wed, Sep 18, 2002 at 10:52:26AM -0700, Shankar Unni wrote: >Soren A wrote: >>Your message text reading "my application" conveys ambiguous meaning to me. >> [ much detail deleted ] > >Could you maybe have started off by suggesting that he install "libpng" >from the "Libs" section during the set

Re: scrolling through buffer in cygwin.bat shell

2002-09-18 Thread Jason Tishler
Brent, On Wed, Sep 18, 2002 at 11:42:33AM -0500, Crittenden David-QDC001 wrote: > I have tried the man page on rxvt and get this: > $ man rxvt > Formatting page, please wait... > Error executing formatting or display command. > System command (cd /usr/man ; (echo -e ".pl 1100i"; cat > /usr/man/m

1.3.12: /bin/sh crashes

2002-09-18 Thread Kent Shi
(I'm reposting this, following the bug reporting guidelines this time) While building gcc, we saw two 'Signal 11's; each one was a crash of /bin/sh that left behind a stackdump file (see below). We don't know how repeatable this is. We then replaced /bin/sh with /bin/bash, and have not seen a pr

fetchmail 6.0.0 build problem due to gettext issue

2002-09-18 Thread Jason Tishler
I'm attempting to build fetchmail 6.0.0 so I can update the Cygwin distribution to the latest version. Unfortunately, configure does not determine that gettext is in libintl as it should. Note that fetchmail's aclocal.m4 was changed between 5.9.13 (i.e., the last version that I released) and 5.9

Re: libpng not found.

2002-09-18 Thread Shankar Unni
Soren A wrote: > Your message text reading "my application" conveys ambiguous meaning to me. > [ much detail deleted ] Could you maybe have started off by suggesting that he install "libpng" from the "Libs" section during the setup? -- Shankar. -- Unsubscribe info: http://cygwin.com/ml

Re: cvs cygwin1.dll

2002-09-18 Thread Guy Harrison
On Fri, 13 Sep 2002 08:58:16 -0400, Christopher Faylor <[EMAIL PROTECTED]> wrote: >On Fri, Sep 13, 2002 at 09:09:37AM +, Guy Harrison wrote: >>I can't seem to figure out how to set a breakpoint in sigproc.cc without >>recompiling make with debug. Any hints? > >Just attach to the running proce

"+" entry doesn't work in hosts.equiv

2002-09-18 Thread Bruce Dobrin
Under current Linux, the "+" entry in hosts.equiv is allowed if you have : "auth required /lib/security/pam_rhosts_auth.so promiscuous" in the /etc/pam.d/rsh file since cygwin has no pam, is there a way to get the + to work (or something equivalent?) we have over 2000 constantly chan

Re: what's that 1543 port ?

2002-09-18 Thread Igor Pechtchanski
On Wed, 18 Sep 2002, Francois de Campagnolle wrote: > The cygwin binaries try for some reason to talk to the 1543 port on > localhost since I last run setup. > What's gives ? > > FRC http://www.stengel.net/tcpports.htm HTH. Igor -- http://cs.nyu.edu/~pec

what's that 1543 port ?

2002-09-18 Thread Francois de Campagnolle
The cygwin binaries try for some reason to talk to the 1543 port on localhost since I last run setup. What's gives ? FRC -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ:

Re: Script to emulate ldd

2002-09-18 Thread Christopher Faylor
On Wed, Sep 18, 2002 at 11:37:55AM -0600, Warren Young wrote: >Matt Swift wrote: >>Attached is a bash script that emulates the ldd(1) utility. Enjoy. > >I wanted this very thing the other day! Thanks, Matt. > >My only complaint is that it should give usage (or demand --help) when >you run it with

Re: Script to emulate ldd

2002-09-18 Thread Warren Young
Matt Swift wrote: > Attached is a bash script that emulates the ldd(1) utility. Enjoy. I wanted this very thing the other day! Thanks, Matt. My only complaint is that it should give usage (or demand --help) when you run it without arguments. I vote that this be added to Cygwin. Binutils, pe

Re: Invisible link?

2002-09-18 Thread Max Bowsher
Christopher Faylor wrote: > On Wed, Sep 18, 2002 at 06:08:33PM +0100, Max Bowsher wrote: > > John Carlyle- Clarke wrote: > > > Darn -- figured it out about 10 seconds after I hit send. It was of course a > > mount. I unmounted, created an empty /usr/lib and > > > then remounted, and now it shows

Re: Invisible link?

2002-09-18 Thread Christopher Faylor
On Wed, Sep 18, 2002 at 06:08:33PM +0100, Max Bowsher wrote: >John Carlyle- Clarke wrote: >> Darn -- figured it out about 10 seconds after I hit send. It was of course a >mount. I unmounted, created an empty /usr/lib and >> then remounted, and now it shows in the folder listing. Sorry about tha

Re: Invisible link?

2002-09-18 Thread Max Bowsher
John Carlyle- Clarke wrote: > Darn -- figured it out about 10 seconds after I hit send. It was of course a mount. I unmounted, created an empty /usr/lib and > then remounted, and now it shows in the folder listing. Sorry about that. WARNING! This is inadvisable! Imagine... some Cygwin binary t

Re: Setup 2.249.2.5 Hangs during "Install from Local Directory"

2002-09-18 Thread Max Bowsher
John Carlyle- Clarke wrote: > Setup was causing me a problem, which I worked around. Now I am seeing problems with some of the Cygwin packages. I believe > they may be manifestations of the same problem. I can provide an strace for crontab which I can't for setup (I think?). setup.exe does not

RE: scrolling through buffer in cygwin.bat shell

2002-09-18 Thread Crittenden David-QDC001
Igor, Thanks for setting me straight. I have tried the man page on rxvt and get this: $ man rxvt Formatting page, please wait... Error executing formatting or display command. System command (cd /usr/man ; (echo -e ".pl 1100i"; cat /usr/man/man1/rxvt.1; echo ".pl \n(nlu+10") | /usr/bin/tbl | /u

RE: supplement cygwin_logon_user with CreateProcessWithLogonW?

2002-09-18 Thread Chris January
> > CreateProcessWithLogonW (as opposed to the LogonUser / > CreateProcessAsUser) > > combination. This is because CreateProcessWithLogonW utilises the RunAs > > (2000)/SecondaryLogon (XP) service. Would it make sense to > modify Cygwin so > > this could be used in place of cygwin_logon_user if on

Re: scrolling through buffer in cygwin.bat shell

2002-09-18 Thread Igor Pechtchanski
On Wed, 18 Sep 2002, Crittenden David-QDC001 wrote: > All, > > Is is possible to map the keys shift-page up and shift-page down to scroll > through the buffer of the cygwin shell? > > I have seen references to the rxvt app on the mailing lists, but I think > this is used with an xserver. > > I am

Re: rxvt doesn't paste selections anymore?

2002-09-18 Thread Igor Pechtchanski
On Wed, 18 Sep 2002, Deragon, Hans wrote: > I also have another new problem with rxvt. > [snip] > A dos window does show up when called, followed by rxvt. > [snip] > On the new Cygwin, the dos window persist; I must kill it manually. Try the "run" utility: http://www.neuro.gatech.edu/users/cwils

scrolling through buffer in cygwin.bat shell

2002-09-18 Thread Crittenden David-QDC001
All, Is is possible to map the keys shift-page up and shift-page down to scroll through the buffer of the cygwin shell? I have seen references to the rxvt app on the mailing lists, but I think this is used with an xserver. I am running cygwin on w2k with cygwin version 1.3.12-4. Thank you in

Re: rxvt doesn't paste selections anymore?

2002-09-18 Thread Deragon, Hans
Found the same problem. On both of my machines, rxvt 2.7.2 is running. Yet, the one with the latest version of cygwin is broken, as you described. Pretty anoying since this cut&paste function is the #1 kill feature of rxvt. I might revert to the DOS window to be able to perform cut&paste. I also

Re: Open bash at the current explorer directory?

2002-09-18 Thread Igor Pechtchanski
As I posted earlier, you can avoid calling both ~/.bashrc and /etc/profile by running bash with a "-i" option ( http://www.cygwin.com/ml/cygwin/2002-09/msg00680.html ). So invoke the first bash as '-e bash --login -i', and the second as 'exec bash --rcfile ~/.profile'. You may get ~/.bashrc exec

Re: Invisible link?

2002-09-18 Thread Gerrit P. Haase
John schrieb: > Can anyone explain the shell output below? I am probably missing > something obvious, but there seems to be a link from /usr to /lib > which is invisible. What is going on here? x:/cygwin/lib is mounted to /usr/lib Usually there is also a directory x:/cygwin/usr/lib created by

RE: Setup 2.249.2.5 Hangs during "Install from Local Directory"

2002-09-18 Thread John Carlyle- Clarke
> -Original Message- > From: Pavel Tsekov [mailto:[EMAIL PROTECTED]] > Sent: 18 September 2002 13:19 > To: John Carlyle- Clarke > Cc: Cygwin List (E-mail) > Subject: RE: Setup 2.249.2.5 Hangs during "Install from Local > Directory" > > > On Wed, 18 Sep 2002, John Carlyle- Clarke wrote

Re: printing from within Cygwin

2002-09-18 Thread Jason Tishler
Igor, On Tue, Sep 17, 2002 at 02:25:32PM -0400, Igor Pechtchanski wrote: > On Tue, 17 Sep 2002, Jason Tishler wrote: > > Would you like to contribute a2ps? Note that it builds OOTB under > > Cygwin. > > Yes, I know -- I just built it... :-) > Hmm, does contributing some package automatically ma

RE: Setup 2.249.2.5 Hangs during "Install from Local Directory"

2002-09-18 Thread Pavel Tsekov
On Wed, 18 Sep 2002, John Carlyle- Clarke wrote: Please, ask about one problem at a time. Is setup which is causing problems for you or some of the Cygwin packages ? I was under the impression that you're having troubles installing Cygwin due to a setup.exe misbehaving. Now I see that you've

Re: PHP Apache module with PostgreSQL support

2002-09-18 Thread Jason Tishler
Andreas, On Tue, Sep 17, 2002 at 05:51:43PM +0200, Andreas wrote: > > Then you may need to patch config.m4 instead (again, I have not > > checked the source). The bottom line is that under Cygwin the check > > for the existence of the pq library must look for either libpq.a > > (i.e., import lib

RE: Help! Can I access a tape created with UNIX tar under W2K

2002-09-18 Thread Brian Topping
> -Original Message- > From: Corinna Vinschen [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 18, 2002 4:38 AM > To: [EMAIL PROTECTED] > Subject: Re: Help! Can I access a tape created with UNIX tar under W2K > > I don't believe it's a Cygwin problem. Did you try other > tapes al

RE: Setup 2.249.2.5 Hangs during "Install from Local Directory"

2002-09-18 Thread John Carlyle- Clarke
> -Original Message- > From: Pavel Tsekov [mailto:[EMAIL PROTECTED]] > Sent: 18 September 2002 11:32 > To: John Carlyle- Clarke > Cc: Cygwin List (E-mail) > Subject: RE: Setup 2.249.2.5 Hangs during "Install from Local > Directory" > > > On Wed, 18 Sep 2002, John Carlyle- Clarke wrote

GNAT in gcc-3.2 [was Re: New gcc-3.1.1 Release - g77]

2002-09-18 Thread David A. Cobb
Billinghurst, David (CRTS) wrote: >It can be done. I have a working (or so it seems) GNAT for cygwin. > >Let me know if you are interested. > _Very interested_ . Thanks.. What do I need to do? > >-Original Message- >From: David A. Cobb [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, 18

Re: Open bash at the current explorer directory?

2002-09-18 Thread Frantisek Dufka
Umm they both work, sort of. As I said before, the user profile gets executed twice. If you run some executable from the user profile which should run only once, it's a problem. First invocation is from the '-e /usr/bin/bash --login' part, the second is from the 'exec bash --rcfile ~/.profile' (o

problems if dot in front of bash CDPATH

2002-09-18 Thread Don Sharp
Hi Folks There is an inconsistency when "." is included in one's CDPATH. If "." is at the start of the CDPATH then "cd someCDPATHdirectory/.." leaves you in the current directory. Works fine if "." isn't at CDPATH front. Example below $ echo $CDPATH .:/dosh/avalon/src/src:/dost/avalon/src $ pw

Re: Open bash at the current explorer directory?

2002-09-18 Thread John Vincent
Hi, Here is an alternative that has also been posted before, that also works when it's a disk drive rather than a directory. Does this work any better for you? (Both work fine for me on W2K SP3) /John Vincent -- REGEDIT4 [HKEY_CLASSES_ROOT\Directory\

Re: Open bash at the current explorer directory?

2002-09-18 Thread Frantisek Dufka
Sure. We are both talking about following key, right? Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\shell\0cmd-rxvt] @="Open rxvt Window Here" [HKEY_CLASSES_ROOT\Directory\shell\0cmd-rxvt\command] @="C:\\cygwin\\bin\\rxvt.exe -bg black -fg white -sr -sl 1000 -fn \"Fixedsys\"

RE: Setup 2.249.2.5 Hangs during "Install from Local Directory"

2002-09-18 Thread Pavel Tsekov
On Wed, 18 Sep 2002, John Carlyle- Clarke wrote: > This problem seems to occur when the setup program tries to access a file for >writing for which it does not have permission. Well, is there a chance you know also the name of the file. And is it really a single file or a directory ? Please, d

RE: Setup 2.249.2.5 Hangs during "Install from Local Directory"

2002-09-18 Thread John Carlyle- Clarke
Well, since no-one seems to be able to help me, let me provide a bit more information. This problem seems to occur when the setup program tries to access a file for writing for which it does not have permission. I am not sure if it is related, but I have seen similar behaviour when trying to

RE: Invisible link?

2002-09-18 Thread John Carlyle- Clarke
Darn -- figured it out about 10 seconds after I hit send. It was of course a mount. I unmounted, created an empty /usr/lib and then remounted, and now it shows in the folder listing. Sorry about that. > -Original Message- > From: John Carlyle- Clarke > Sent: 18 September 2002 10:06

Invisible link?

2002-09-18 Thread John Carlyle- Clarke
Can anyone explain the shell output below? I am probably missing something obvious, but there seems to be a link from /usr to /lib which is invisible. What is going on here? johncc@WINTERMUTE /usr $ ls -la total 312 drwxr-xr-x 17 Administ Administ 4096 Sep 17 11:43 . drwxrwxrwx 13 Ad

Re: Open bash at the current explorer directory?

2002-09-18 Thread Marcos Lorenzo de Santiago
> I don't know how to do it without using .bashrc, but this works for me > (current cygwin, NT 4.0) > > Registry key contains: > > D:\cygwin\bin\rxvt.exe -sb -sr -sl 16384 -fn fixedsys -fg gray -bg black > -e /bin/env CFH="%1" /bin/bash --login > > .ba

Re: Open bash at the current explorer directory?

2002-09-18 Thread Frantisek Dufka
I don't know how to do it without using .bashrc, but this works for me (current cygwin, NT 4.0) Registry key contains: D:\cygwin\bin\rxvt.exe -sb -sr -sl 16384 -fn fixedsys -fg gray -bg black -e /bin/env CFH="%1" /bin/bash --login .bashrc contains if [ "$CFH" != "" ] ; then cd "$CFH"

Re: Help! Can I access a tape created with UNIX tar under W2K

2002-09-18 Thread Corinna Vinschen
On Tue, Sep 17, 2002 at 11:39:24PM -0400, Brian Topping wrote: > I think I got all of the things down, what am I missing? Drive is DDS3, > cygwin was just installed from net today: > > Administrator@BRIAN ~ > $ mount -b -f //./tape0 /dev/st0 You don't have to do this. The names /dev/stX and /d

Re: libpng not found.

2002-09-18 Thread Soren A
"Krung Saengpole" <[EMAIL PROTECTED]> wrote in [EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: > I come to this mailing list for the first time. If I go to the wrong > place, apologize me. I installed Cygwin on my machine (Win95), when I > compiled my program that use -lpng, system told me that libp