RE: chmod suddenly ceased to work on old files - NEW FINDINGS

2005-06-30 Thread FischRon.external
> Ugh, top-posting. Reformatted. Sorry, won't happen again. > >>-Original Message- > According to FischRon.external AT infineon DOT com on > 6/28/2005 6:50 AM: > > $ getfacl -a x y > > # file: x > > # owner: fischron > > # group: mkgroup_l_d > > user::rwx > > group::--- > > group:Admini

Re: gcc bug: convert_move -O3

2005-06-30 Thread Reini Urban
oops. Not yet tested for other gcc versions, but I know that it worked for previous perl/gcc versions. Maybe just that previous perls didn't use -O3 $ gcc -v Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/specs Configured with: /gcc/gcc-3.3.3-3/configure --verbose --prefix=/usr --exec-

Re: ls when acl() is busy

2005-06-30 Thread Jim Meyering
[EMAIL PROTECTED] (Eric Blake) wrote: ... > Hmm - murky waters here. It would be a simple one-line fix to > coreutils/lib/acl.c to ignore EBUSY as a non-error, and POSIX has > no requirements per se that a failure of acl() should imply a failure > of ls(1). Should a busy file be conservatively tr

Re: ls when acl() is busy

2005-06-30 Thread Corinna Vinschen
On Jun 30 10:16, Jim Meyering wrote: > [EMAIL PROTECTED] (Eric Blake) wrote: > ... > > Hmm - murky waters here. It would be a simple one-line fix to > > coreutils/lib/acl.c to ignore EBUSY as a non-error, and POSIX has > > no requirements per se that a failure of acl() should imply a failure > > o

RE: Mysterious random crashes with latest snapshots

2005-06-30 Thread Dave Korn
Original Message >From: Igor Pechtchanski >Sent: 30 June 2005 05:51 > Hi, > > I've been experiencing intermittent crashes on my Windows XP laptop with > the past few DLL versions (from 1.5.16 to the latest snapshot). I haven't noticed anything untoward myself. > These are extremely

Bug in printf ?

2005-06-30 Thread haro
Hi all, I'm seeing small bug in printf implementation. May be a bug in newlib ?? % uname -a CYGWIN_NT-5.1 wbbrown 1.5.17(0.129/4/2) 2005-05-25 19:38 i686 unknown unknown Cygwin % /bin/printf "%.2f\n" 0.105 0.10 % /bin/printf "%.2f\n" 0.115 0.12 % /bin/printf "%.2f\n"

RE: Bug in printf ?

2005-06-30 Thread Dave Korn
Original Message >From: [EMAIL PROTECTED] >Sent: 30 June 2005 11:43 > Hi all, > > I'm seeing small bug in printf implementation. > May be a bug in newlib ?? Confirmed. I'm on it! cheers, DaveK -- Can't think of a witty .sigline today -- Unsubscribe info: http://

SV: Bug in printf ?

2005-06-30 Thread Peter J. Acklam
[EMAIL PROTECTED] wrote: > I'm seeing small bug in printf implementation. What bug? I didn't see anything unexpected. Peter -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.htm

Re: gcc bug: convert_move -O3

2005-06-30 Thread Gerrit P. Haase
Reini Urban wrote: oops. Not yet tested for other gcc versions, but I know that it worked for previous perl/gcc versions. Maybe just that previous perls didn't use -O3 $ gcc -v [...] gcc version 3.3.3 (cygwin special) Reini Urban schrieb: easy reproducible testcase: cat > gccO3bug.c stati

Re: SV: Bug in printf ?

2005-06-30 Thread haro
From: "Peter J. Acklam" Date: Thu, 30 Jun 2005 13:06:51 +0200 (CEST) :: ::> I'm seeing small bug in printf implementation. :: ::What bug? I didn't see anything unexpected. :: ::Peter Hi Peter, How come "0.125" gets printed as "0.12", and not "1.3"? Haro -- Unsubscribe info: http://cygwi

Re: SV: Bug in printf ?

2005-06-30 Thread haro
OOps, What bug? I didn't see anything unexpected. Peter :: ::Hi Peter, :: ::How come "0.125" gets printed as "0.12", and not "1.3"? ^^^ "0.13", off cource ;-) ::Haro :: -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-

RE: SV: Bug in printf ?

2005-06-30 Thread Dave Korn
Original Message >From: [EMAIL PROTECTED] >Sent: 30 June 2005 12:21 > From: "Peter J. Acklam" > Date: Thu, 30 Jun 2005 13:06:51 +0200 (CEST) >>> I'm seeing small bug in printf implementation. >>> >>> What bug? I didn't see anything unexpected. >>> >>> Peter > > Hi Peter, > > How

Re: Bug in printf ?

2005-06-30 Thread Peter J. Acklam
[EMAIL PROTECTED] wrote: > ::How come "0.125" gets printed as "0.12", and not "1.3"? > ^^^ "0.13", off cource ;-) Dealing with integers illustrates the matter more clearly. When the decimal value is exactly 0.5, then printf should round to the n

RE: gcc bug: convert_move -O3

2005-06-30 Thread Dave Korn
Original Message >From: Gerrit P. Haase >Sent: 30 June 2005 12:10 > Reini Urban wrote: >> oops. >>> static int hack30_pray(ax, items, func) >>> int ax; >>> int items; >>> void *func; >>> { >>> return 0; >>> } >>> int main () { >>> int ax, items; >>> void * symref; >>> float num;

SV: SV: Bug in printf ?

2005-06-30 Thread Peter J. Acklam
Dave Korn [EMAIL PROTECTED] wrote: > [EMAIL PROTECTED] wrote: > > > How come "0.125" gets printed as "0.12", and not "1.3"? > > Absolutely, there's a rounding error of some sort. For what it's worth: My Sunblade 100 running Solaris 9 has Solaris' /bin/printf and GNU's printf as /usr/local/bin/pr

Re: Bug in printf ?

2005-06-30 Thread Peter Mueller
Hi! Peter J. Acklam wrote: [EMAIL PROTECTED] wrote: ::How come "0.125" gets printed as "0.12", and not "1.3"? ^^^ "0.13", off cource ;-) Dealing with integers illustrates the matter more clearly. When the decimal value is exactly 0

RE: Bug in printf ?

2005-06-30 Thread Dave Korn
Original Message >From: Peter Mueller >Sent: 30 June 2005 13:18 > Hi! > > > Peter J. Acklam wrote: > >> [EMAIL PROTECTED] wrote: ^ Please avoid quoting peoples email addresses in your replies, it causes them to suffer more spamming. > How come "0.125" gets printed

RE: SV: Bug in printf ?

2005-06-30 Thread Dave Korn
Original Message >From: Peter J. Acklam >Sent: 30 June 2005 13:13 > Dave Korn [EMAIL PROTECTED] wrote: http://cygwin.com/acronyms#PCYMTNQREAIYR please! TIA! > >> [EMAIL PROTECTED] wrote: >> >>> How come "0.125" gets printed as "0.12", and n

Re: chmod suddenly ceased to work on old files - NEW FINDINGS

2005-06-30 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to FischRon.external AT infineon DOT com on 6/30/2005 1:25 AM: [OT: Your mailer is not providing a name alongside your email address, so I had to manually munge the address. Mozilla Thunderbird automatically avoids quoting email addresses i

Re: Bug in printf ?

2005-06-30 Thread haro
::Dealing with integers illustrates the matter more clearly. When ::the decimal value is exactly 0.5, then printf should round to the ::nearest *even* integer, as far as I know, so you should get Hi Peter, Thank you for your explanation. I didn't know, until now, that rounding should be done to t

SV: SV: Bug in printf ?

2005-06-30 Thread Peter J. Acklam
Dave Korn wrote: > Have you considered that your sunblade might be operating > in a different rounding mode, by default? I didn't know there were different rounding modes. I thought everyone used so-called "unbiased rounding", so I'm sorry for adding confusion. > I would imagine that printf may

Re: Build/Compile problems with ApachPHP on Cygwin MS-XP

2005-06-30 Thread Tony Karakashian
> This is the wrong approach, use the linking flag -no-undefined instead. I've been searching for a couple of days now for how you're supposed to do that. Set LDFLAGS? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Docume

RE: Mysterious random crashes with latest snapshots

2005-06-30 Thread Igor Pechtchanski
On Thu, 30 Jun 2005, Dave Korn wrote: > Original Message > >From: Igor Pechtchanski > >Sent: 30 June 2005 05:51 > > > Hi, > > > > I've been experiencing intermittent crashes on my Windows XP laptop with > > the past few DLL versions (from 1.5.16 to the latest snapshot). > > I haven't not

Re: Build/Compile problems with ApachPHP on Cygwin MS-XP

2005-06-30 Thread Gerrit P. Haase
Tony Karakashian wrote: This is the wrong approach, use the linking flag -no-undefined instead. I've been searching for a couple of days now for how you're supposed to do that. Set LDFLAGS? Add it to Makefile.am (in case of PHP Makefile.in, yhey don't use automake), there should be the fol

RE: Mysterious random crashes with latest snapshots

2005-06-30 Thread Dave Korn
Original Message >From: Igor Pechtchanski >Sent: 30 June 2005 15:18 > On Thu, 30 Jun 2005, Dave Korn wrote: > >> Original Message >>> From: Igor Pechtchanski >>> Sent: 30 June 2005 05:51 >>> I know this isn't much of a bug report, >> >> I should drop a hippo on you! > > I'll

RE: tar 1.13.25: extracts of files using hardlinks w/i same win32 directory lost

2005-06-30 Thread rkoroly
THANKS -Original Message- From: Larry Hall [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 29, 2005 02:53 PM To: Ralph M Koroly (rkoroly); cygwin@cygwin.com Subject: Re: tar 1.13.25: extracts of files using hardlinks w/i same win32 directory lost At 03:42 PM 6/29/2005, you wrote: >tar (G

1.5.17 ctime issue (Win2K)

2005-06-30 Thread gary . mcdowell
The analysis I've performed. 1) Change the windows timezone to +9:30 Adelaide, Daylight Savings (DST) on, windows clock changes to 00:16 2) Start csh.exe and echo $TZ, (Embedded image moved to file: pic18588.jpg) 3) Run test executable program: #include #include int main() { /* time_t

Re: Mysterious random crashes with latest snapshots

2005-06-30 Thread Christopher Faylor
On Thu, Jun 30, 2005 at 03:37:25PM +0100, Dave Korn wrote: >I think the operator-> isn't the real source of the problem... it's >what leads up to it. > >>>something like >>> >>>NEWLIB_CFLAGS='-g -O0 -DHAVE_OPENDIR -DHAVE_RENAME -DSIGNAL_PROVIDED >>>-D_COMPILING_NEWLIB -DHAVE_FCNTL -DMALLOC_PROVIDE

Re: Mysterious random crashes with latest snapshots

2005-06-30 Thread Christopher Faylor
On Thu, Jun 30, 2005 at 03:37:25PM +0100, Dave Korn wrote: > I think I remember noticing that backtracing across sigfe doesn't always >work too well. Then again, there could be a problem with the debug info: "doesn't always" == "never". >>#3 0x00435d27 in fhandler_pipe::get_guard () > >makes n

Re: SV: Bug in printf ?

2005-06-30 Thread Brian Dessent
Dave Korn wrote: > Absolutely, there's a rounding error of some sort. Compare the difference > when compiling the testcase with -mno-cygwin (i.e. using mingw maths lib): Isn't this just a case of the Cygwin math library choosing "round to even" and the MSVCRT/mingw library choosing "0.5 always

Re: gcc bug: convert_move -O3

2005-06-30 Thread Brian Dessent
Reini Urban wrote: >num = ((*((float (*)()) hack30_pray))(ax,items,symref)); I'm no language lawyer but this seems invalid. I seem to recall discussion on one of the gcc lists about trying to cast a function pointer from one function signature to another, and how it was not defined/supported

RE: Mysterious random crashes with latest snapshots

2005-06-30 Thread Dave Korn
Original Message >From: Christopher Faylor >Sent: 30 June 2005 15:58 > On Thu, Jun 30, 2005 at 03:37:25PM +0100, Dave Korn wrote: >> I think I remember noticing that backtracing across sigfe doesn't always >> work too well. Then again, there could be a problem with the debug info: > > "

Re: Bug in printf ?

2005-06-30 Thread Yitzchak Scott-Thoennes
On Thu, Jun 30, 2005 at 09:44:57PM +0900, [EMAIL PROTECTED] wrote: > ::Dealing with integers illustrates the matter more clearly. When > ::the decimal value is exactly 0.5, then printf should round to the > ::nearest *even* integer, as far as I know, so you should get > > Hi Peter, > > Thank you

RE: SV: Bug in printf ?

2005-06-30 Thread Dave Korn
Original Message >From: Brian Dessent >Sent: 30 June 2005 16:58 > Dave Korn wrote: > >> Absolutely, there's a rounding error of some sort. Compare the >> difference when compiling the testcase with -mno-cygwin (i.e. using >> mingw maths lib): > > Isn't this just a case of the Cygwin

RE: gcc bug: convert_move -O3

2005-06-30 Thread Dave Korn
Original Message >From: Brian Dessent >Sent: 30 June 2005 17:12 > Reini Urban wrote: > >>num = ((*((float (*)()) hack30_pray))(ax,items,symref)); > > I'm no language lawyer but this seems invalid. I seem to recall > discussion on one of the gcc lists about trying to cast a function

Re: Mysterious random crashes with latest snapshots

2005-06-30 Thread Christopher Faylor
On Thu, Jun 30, 2005 at 05:45:52PM +0100, Dave Korn wrote: >Original Message >>From: Christopher Faylor >>Sent: 30 June 2005 15:58 >>On Thu, Jun 30, 2005 at 03:37:25PM +0100, Dave Korn wrote: >>>I think I remember noticing that backtracing across sigfe doesn't >>>always work too well. Then

RE: Mysterious random crashes with latest snapshots

2005-06-30 Thread Dave Korn
Original Message >From: Christopher Faylor >Sent: 30 June 2005 17:58 > On Thu, Jun 30, 2005 at 05:45:52PM +0100, Dave Korn wrote: >> Original Message >>> From: Christopher Faylor >>> Sent: 30 June 2005 15:58 >>> On Thu, Jun 30, 2005 at 03:37:25PM +0100, Dave Korn wrote: I thin

RE: Mysterious random crashes with latest snapshots

2005-06-30 Thread Dave Korn
Original Message >From: Dave Korn >Sent: 30 June 2005 18:08 > larger-valued signal. ^^ Symbol. D'oh! cheers, DaveK -- Can't think of a witty .sigline today -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports:

Re: gcc bug: convert_move -O3

2005-06-30 Thread Brian Dessent
Dave Korn wrote: > > In any case, this should not ICE so you should file a gcc PR. > > But 3.3.x branch is closed now, and the bug is fixed in 3.4.x, so there's > really very little point. I did in fact skim the whole thread before replying but in my skimming I thought that it was ICEing under

Re: gcc bug: convert_move -O3

2005-06-30 Thread Reini Urban
Dave Korn schrieb: Original Message From: Gerrit P. Haase Sent: 30 June 2005 12:10 static int hack30_pray(ax, items, func) int ax; int items; void *func; { return 0; } int main () { int ax, items; void * symref; float num; num = ((*((float (*)()) hack30_pray))(ax,items,symref));

RE: gcc bug: convert_move -O3

2005-06-30 Thread Dave Korn
Original Message >From: Reini Urban >Sent: 30 June 2005 18:42 >> 1) The function call is through a pointer-to-function-returning float, >> but the function itself returns a void *. This is likely to screw up >> the x87 FP stack when the caller pops a return value that the callee >> didn

Re: Problem compiling Setup but unsure if my install is hosed or is it the source or autoconf/automake

2005-06-30 Thread Brian Keener
Just a follow up on this: I finally resolved this and as everyone knew/suspected it was not an autoconf/automake issue or at least I don't think it was unless there was something missed in update to update to update. I actually had the same autom4te error on 3 machines of which I either propag

Is there the package "External Data Representation" in cygwin?

2005-06-30 Thread Peng Yu
Hi, I'm going to use the following package. http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/HTML/AA-Q0R5B-TET1_html/onc-rpc5.html Is this package in cygwin? How to installed it? Best wishes, Peng -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: htt

Re: Mysterious random crashes with latest snapshots

2005-06-30 Thread Christopher Faylor
On Thu, Jun 30, 2005 at 06:07:52PM +0100, Dave Korn wrote: >From: Christopher Faylor >>fhandler_pipe::get_guard is a strange symbol that gdb is incorrectly >>choosing for the name of a function, possibly because it has the sign >>bit set and there's some inappropriate signed comparison somewhere in

Re: ls when acl() is busy

2005-06-30 Thread Larry Hall
At 02:18 PM 6/30/2005, you wrote: >Corinna Vinschen wrote: >[SNIP] >>When a file is exclusivly locked by another application, then the >>access to the ACL is entirely impossible. So we don't know anything >>about the actual ACL. Cygwin's stat() returns with the POSIX permission >>bits set to 000

Re: ls when acl() is busy [was: ls slow on top-level directory]

2005-06-30 Thread Larry Hall
At 02:24 PM 6/30/2005, you wrote: >Larry Hall wrote: >>At 04:03 PM 6/28/2005, you wrote: >[SNIP] >>>IMO, it should be the other way around, i.e. no error but a '+' to >>>signify an ACL, for two reasons: >>> >>>1. Transperency. Since the UNIX permissions are emulated, one could >>>argue that all fil

Re: ls when acl() is busy

2005-06-30 Thread Lasse
Corinna Vinschen wrote: [SNIP] When a file is exclusivly locked by another application, then the access to the ACL is entirely impossible. So we don't know anything about the actual ACL. Cygwin's stat() returns with the POSIX permission bits set to 000 in this case (which is still somewhat unfo

Re: ls when acl() is busy [was: ls slow on top-level directory]

2005-06-30 Thread Lasse
Larry Hall wrote: At 04:03 PM 6/28/2005, you wrote: [SNIP] IMO, it should be the other way around, i.e. no error but a '+' to signify an ACL, for two reasons: 1. Transperency. Since the UNIX permissions are emulated, one could argue that all files should have the '+' displayed... Traditional

Syslog-ng

2005-06-30 Thread Tony Karakashian
I've seen lots of people who got syslog-ng working on their cygwin boxes. Latest version compiles just fine out of the box, but not sure what I should put in for a source in the syslog-ng.conf? Default for Linux is to use /proc/kmesg, but we don't have one under Cygwin. Are Cygwin installs limit

Cygwin from Scratch?

2005-06-30 Thread Tony Karakashian
Just a random thought: as a long time Linux from Scratch user, I'm intrigued about the possibility of building a Cygwin "distribution" from scratch. Typically when I build an LFS install, I take a lot of time building each package to make sure every possible feature is available (for example, curr

Re: Gdb and stopping at assert or segmentation faults

2005-06-30 Thread Kris Thielemans
Dave Korn artimi.com> writes: > > > Anyway, "break __assert" works for catching the assertions. Dunno what's > up with the SEGVs. > Hi Dave I thought this would break even when the assertion didn't fail, but I was wrong there! Good suggestion! Thanks Kris -- Unsubscribe info: h

Some debug tips

2005-06-30 Thread Dustin Breese
I've recently had lots of issues trying to get apache (and xinetd and init and sshd!) running as a windows service. Just thought I'd share some notes I took while researching/troubleshooting that eventually helped me figure out the issues. Especially since I searched and searched for hours on th

Re: gcc bug: convert_move -O3

2005-06-30 Thread Reini Urban
Dave Korn schrieb: 2) Also, the function call is through a pointer-to-function-taking-stdargs, but the function itself is not a stdargs function. Given the wrong calling conventions, this is liable to lead to both caller *and* callee cleaning the args off the stack. Calling conventions sh

undefined reference to [EMAIL PROTECTED]', why?

2005-06-30 Thread Gerrit P. Haase
Hello All, I'm sure that this is covered somewhere, however I cannot find it currently;) Ok, I try to build a Cygwin application that requires CAPI functions which are installed with the drivers for an ISDN card, the DLL is named capi2032.dll, I have an import library which comes from the manufa

Re: Syslog-ng

2005-06-30 Thread Corinna Vinschen
On Jun 30 15:19, Tony Karakashian wrote: > I've seen lots of people who got syslog-ng working on their cygwin > boxes. Latest version compiles just fine out of the box, but not sure > what I should put in for a source in the syslog-ng.conf? Default for > Linux is to use /proc/kmesg, but we don't

Re: Syslog-ng

2005-06-30 Thread Tony Karakashian
> Dunno what you're up to but I'm running syslog from inetutils just > fine. Cygwin tries to syslog on /dev/log if it's available (it's > usually created by syslog) and there's also a /dev/kmsg pipe which > would be utilized for kernel messages ... *if* Cygwin would have > anything like kernel mes

Re: Syslog-ng

2005-06-30 Thread Corinna Vinschen
On Jun 30 16:47, Tony Karakashian wrote: > Following your advice, I installed the default syslog as a > Windows service, and /dev/log is created, but only when syslog is > running. How do I create it so it's always available? You don't. /dev/log is supposed to be a AF_UNIX/AF_LOCAL socket create

should a space really be a "special character" ?

2005-06-30 Thread Brendan Kehoe
I bumped into an annoying little bug in automake 1.9.1 when I tried to configure a tree while sitting in a Cygwin shell. When I invoke ./configure I get a wild message: % pwd /cygdir/c/Documents and Settings/joehacker/bld % ./configure ... checking whether build environment is

Re: undefined reference to [EMAIL PROTECTED]', why?

2005-06-30 Thread Gerrit P. Haase
Gerrit P. Haase wrote: Sure, I could edit my .def file and create an import library that contains the symbol names as expected by the linker, however I want to know why this happens. No, I cannot, or at least if I do so the symbols cannot be resolved at runtime. Gerrit -- =^..^= -- Unsubsc

Re: Some debug tips

2005-06-30 Thread René Berber
Dustin Breese wrote: [snip] > $ cygrunsrv -R apache > $ cygrunsrv -I apache -p /usr/sbin/apache2.exes -d "Apache (cygwin)" \ > -e "CYGWIN=ntsec server" > $ cygrunsrv -S apache > > IT WORKS NOW! But, you have to make darn sure cygserver is running, too. ^

load a shared lib created using gcc/Cygwin

2005-06-30 Thread Yu-Cheng Chou
Can a shared library mylib.dll built using gcc -shared -o mylib.dll file.c be loaded dynamically at run time by function LoadLibrary("mylib.dll") in an application built using Visual C++ or .NET? I tried it in Windows XP with the latest version of gcc/Cygwin, the application will hang at LoadLibra

Re: Cygwin from Scratch?

2005-06-30 Thread Brian Dessent
Tony Karakashian wrote: > Just a random thought: as a long time Linux from Scratch user, I'm > intrigued about the possibility of building a Cygwin "distribution" > from scratch. Typically when I build an LFS install, I take a lot of > time building each package to make sure every possible featur

Re: load a shared lib created using gcc/Cygwin

2005-06-30 Thread Brian Dessent
Yu-Cheng Chou wrote: > Can a shared library mylib.dll built using > gcc -shared -o mylib.dll file.c > be loaded dynamically at run time by function > LoadLibrary("mylib.dll") in an application built using > Visual C++ or .NET? > I tried it in Windows XP with the latest version of > gcc/Cygwin, the

Re: Cygwin from Scratch?

2005-06-30 Thread Brian Dessent
Brian Dessent wrote: > In my experience the two most common changes you have to make when > porting are: a) adding -no-undefined to LDFLAGS (or -Wl,-no-undefined to > CFLAGS), and b) adding missing $(EXEEXT) ... I meant to include c) adding O_BINARY to open() or otherwise dealing with textmode/bi

Re: Is there the package "External Data Representation" in cygwin?

2005-06-30 Thread Brian Dessent
Peng Yu wrote: > I'm going to use the following package. > http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/HTML/AA-Q0R5B-TET1_html/onc-rpc5.html > > Is this package in cygwin? How to installed it? The 'sunrpc' package contains the headers and libraries that implement the xdr_* functions, I

Re: load a shared lib created using gcc/Cygwin

2005-06-30 Thread Yu-Cheng Chou
Hi, I want to load the cygwin1.dll with Visual Studio following the instruction from http://cygwin.com/faq/faq.html#SEC102. But I can't find winsup/cygwin/how-cygtls-works.txt and the sample code in winsup/testsuite/cygload. So where can I find these files? Thanks > Yu-Cheng Chou wrote: > >

Re: load a shared lib created using gcc/Cygwin

2005-06-30 Thread Yu-Cheng Chou
Hi, I want to load the cygwin1.dll with Visual Studio following the instruction from http://cygwin.com/faq/faq.html#SEC102. But I can't find winsup/cygwin/how-cygtls-works.txt and the sample code in winsup/testsuite/cygload. So where can I find these files? Thanks > Yu-Cheng Chou wrote: > >

Re: load a shared lib created using gcc/Cygwin

2005-06-30 Thread Brian Dessent
Yu-Cheng Chou wrote: > I want to load the cygwin1.dll with Visual Studio following > the instruction from http://cygwin.com/faq/faq.html#SEC102. > But I can't find winsup/cygwin/how-cygtls-works.txt and the sample code > in winsup/testsuite/cygload. > So where can I find these files? The paths re

can't connect to ssh server on windows xp

2005-06-30 Thread Yu-Cheng Chou
Hi, I installed sshd as a system service on windows xp, but I can't connect to this ssh server through ssh. The firewall has been turned off. The sshd is listening to port 22. But when I tried to connect to this server, the error message below occurred. ssh: connect to host mouse1 port 22: Conn

Re: load a shared lib created using gcc/Cygwin

2005-06-30 Thread Yu-Cheng Chou
Hi, I made a mistake in the previous reply. Here I state my question again. mylib.dll was built using gcc/cygwin based on some library that might depends on cygwin1.dll. I don't want to load cygwin1.dll explicitly, but I do need to load mylib.dll dynamically at run-time in an application which

Trouble Sending Printer Codes from Perl to Printer

2005-06-30 Thread David Vergin
I'm adapting a working linux program to cygwin. The process has been relatively painless except for this issue which has delayed me way past deadline. I need to output text and printer codes (which may include \000) from a perl program to a printer which may be on a parallel port or a USB port

Re: Trouble Sending Printer Codes from Perl to Printer

2005-06-30 Thread Lasse
David Vergin wrote: I'm adapting a working linux program to cygwin. The process has been relatively painless except for this issue which has delayed me way past deadline. I need to output text and printer codes (which may include \000) from a perl program to a printer which may be on a parall

Dynamically load a shared lib created using gcc/Cygwin

2005-06-30 Thread Yu-Cheng Chou
Hi, I made a mistake in the previous reply. Here I state my question again. mylib.dll was built using gcc/cygwin based on some library that might depends on cygwin1.dll. I don't want to load cygwin1.dll explicitly, but I do need to load mylib.dll dynamically at run-time in an application which

Re: Trouble Sending Printer Codes from Perl to Printer

2005-06-30 Thread Brian Dessent
David Vergin wrote: > system(qq/echo -en "$data_str" | lpr -oraw/); > ...or whatever >From a security standpoint, this is horrific. Passing user-supplied data on the command line to a system command is just a recipe for disaster. I don't understand why you need to use 'echo' to do you

Re: Trouble Sending Printer Codes from Perl to Printer

2005-06-30 Thread Igor Pechtchanski
On Fri, 1 Jul 2005, Lasse wrote: > David Vergin wrote: > > I'm adapting a working linux program to cygwin. The process has been > > relatively painless except for this issue which has delayed me way > > past deadline. > > > > I need to output text and printer codes (which may include \000) from >

Re: Dynamically load a shared lib created using gcc/Cygwin

2005-06-30 Thread Brian Dessent
Yu-Cheng Chou wrote: > I made a mistake in the previous reply. > Here I state my question again. > > mylib.dll was built using gcc/cygwin based on some library that > might depends on cygwin1.dll. > I don't want to load cygwin1.dll explicitly, but I do need to load > mylib.dll dynamically at run-

RE: cron issue: The description for Event ID ( 0 ) in Source ( /usr/sbin/cron ) cannot be found

2005-06-30 Thread Siegfried Heintze
I'm having similar troubles. I have read the cron.README file. I installed cron some time ago. I believe I used the command described in cron.README. I see there are several cron.exes running on my system when I look at the process list. Should there be? Here is one of the many entries in the eve

Re: Trouble Sending Printer Codes from Perl to Printer

2005-06-30 Thread Eric Blake
> > $ echo -en "hello\nworld" > hello > world > [EMAIL PROTECTED] /c/bin > $ #Good! The basic approach works on the command line. >#Control codes are interpreted and no trailing newline. >#So I'll try the same thing from perl letting the echo ># command convert the cont

Re: Trouble Sending Printer Codes from Perl to Printer

2005-06-30 Thread Lasse
Igor Pechtchanski wrote: [SNIP] (parens are optional, Not in the coding guidelines at work... :-) but the main thing is that there can't be a comma after FH in the print statement). Oops, yes that's correct... :-) -- /Lasse -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-sim

Re: Trouble Sending Printer Codes from Perl to Printer

2005-06-30 Thread David Vergin
David Vergin wrote: system(qq/echo -en "$data_str" | lpr -oraw/); That does not work in cygwin. Lasse wrote: Why would want use echo for this? Just use a piped open directly to lpr: open(FH, '| lpr -oraw'); print(FH, $data_str); close(FH); Thank you Lasse. This is seriousl

RE: cron issue: The description for Event ID ( 0 ) in Source ( /usr/sbin/cron ) cannot be found

2005-06-30 Thread Igor Pechtchanski
On Thu, 30 Jun 2005, Siegfried Heintze wrote: > I'm having similar troubles. I have read the cron.README file. I installed > cron some time ago. I believe I used the command described in cron.README. I > see there are several cron.exes running on my system when I look at the > process list. Should

Re: Dynamically load a shared lib created using gcc/Cygwin

2005-06-30 Thread Yu-Cheng Chou
mylib.dll was created using gcc/cygwin based on some libraries that were also built using gcc/cygwin and CANNOT be re-built by other compilers. I have to, and need only to load mylib.dll at run-time by function LoadLibrary("mylib.dll") in an applicaiton that was built by Visual C++ or .NET. Whe

Problem with "set," "if," "foreach" commands

2005-06-30 Thread Han Nguyen
New to Unix, so please have patience. I understand that I should be able to type set food = pickle echo $food But nothing echoes. It just leaves a blank line, then gives another command prompt. Am I doing anything wrong? "If" also doesn't work. This is what happens: $ if (5 > 0) > echo "Hell

Re: Dynamically load a shared lib created using gcc/Cygwin

2005-06-30 Thread Brian Dessent
Yu-Cheng Chou wrote: > mylib.dll was created using gcc/cygwin based on some libraries that were > also built using gcc/cygwin and CANNOT be re-built by other compilers. > I have to, and need only to load mylib.dll at run-time by function > LoadLibrary("mylib.dll") > in an applicaiton that was buil

Re: can't connect to ssh server on windows xp

2005-06-30 Thread René Berber
Yu-Cheng Chou wrote: > I installed sshd as a system service on windows xp, > but I can't connect to this ssh server through ssh. > The firewall has been turned off. By that you mean an external firewall? > The sshd is listening to port 22. > But when I tried to connect to this server, the error

Re: Problem with "set," "if," "foreach" commands

2005-06-30 Thread Brian Dessent
Han Nguyen wrote: > > New to Unix, so please have patience. > [...] > Anything I can do to resolve this? I appreciate the help. Thanks. You seem to be entering "c shell"-type syntax at a bash shell, and it has no idea what you're talking about. There are many shells out there and they all have

RE: cron issue: The description for Event ID ( 0 ) in Source ( /usr/sbin/cron ) cannot be found

2005-06-30 Thread Siegfried Heintze
I found http://www.cygwin.com/ml/cygwin/2003-09/msg01858.html and it says to create /etc/cron.d but that directory is already created. So then I noticed it was marked readonly so I gave full control to everyone and still no luck. Thanks, Siegfired -Original Message- From: [EMAIL PROTECTED]

RE: cron issue: The description for Event ID ( 0 ) in Source ( /usr/sbin/cron ) cannot be found

2005-06-30 Thread Larry Hall
At 10:18 PM 6/30/2005, you wrote: >I found http://www.cygwin.com/ml/cygwin/2003-09/msg01858.html and it says to >create /etc/cron.d but that directory is already created. So then I noticed >it was marked readonly so I gave full control to everyone and still no luck. >Thanks, >Siegfired Please re

Please try latest snapshot -- pthreads mutex users please note

2005-06-30 Thread Christopher Faylor
We're coming close to a 1.5.18 release. Please try the latest snapshot at http://cygwin.com/snapshots/ and help verify that there are no regresions against 1.5.17. I'm particularly interested in hearing if the changes made (at users's requests) to the default mutex handling in pthread.h are worki

Re: ssh localhost date # no startup files read: ~/{.bash_profile,.bash_login,.profile,.bashrc}

2005-06-30 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Tom Rodman on 6/10/2005 7:05 AM: > Below are two tests cases for "ssh localhost date". The Linux > test shows that ~/.bashrc is read. The Cygwin case shows none of > ~/{.bash_profile,.bash_login,.profile,.bashrc} are read. Doesn't this > s

Re: load a shared lib created using gcc/Cygwin

2005-06-30 Thread Reini Urban
Yu-Cheng Chou schrieb: Hi, I made a mistake in the previous reply. Here I state my question again. mylib.dll was built using gcc/cygwin based on some library that might depends on cygwin1.dll. I don't want to load cygwin1.dll explicitly, but I do need to load mylib.dll dynamically at run-time