Re: wstring support in GCC 4.1.2 in Cygwin 1.5.25-11

2008-05-22 Thread jadooo

Ya I am trying MinGW now. 

But since it is like building on the windows platform, we need to get round
with 
concepts which differ on the posix and the windows system. Currently I am 
dealing with the Signals, one such problem. In in my linux based code we
have used 
the sigaction() concept which is not supported in MinGW. 

Now I am bit worried to estimate the time for the complete activity as I
will 
have to make modifications in the code to make porting successful. 



Longyu Mei wrote:
> 
> How about minGW? Did you try that? I have similiar
> problem and I will try to see if there is any
> difference.
> 
> 
> --- jadooo <[EMAIL PROTECTED]> wrote:
> 
>> 
>> Thanks a lot for the valuable information.
>> 
>> I am trying to port my application developed in
>> linux to windows, now as
>> it is quiet clear that I could not use cygwin, due
>> to lack of Unicode
>> support,
>> is there any other alternative to try out my porting
>> activity.
>> 
>> Thanking you all once again for the great help.
>> 
>> Vipin
>> 
>> 
>> 
>> 
>> 
>> jadooo wrote:
>> > 
>> > Hi All,
>> > I was trying to compile my code on
>> Cygwin[1.5.25-11] with GCC[4.1.2], 
>> > but I am not able to build with errors on wstring.
>> 
>> >  
>> > I tried to test a simple application which uses
>> wstring, like
>> >  
>> > #include 
>> > #include 
>> > int main( ) 
>> > {
>> >using namespace std;
>> >   
>> >  const basic_string  s1 ( L"abc" );
>> >wstring s2 ( L"abc" );   // Uses the typedef
>> for wstring
>> >if ( s1 == s2 )
>> >   cout << "The strings s1 & s2 are equal." <<
>> endl;
>> >else
>> >   cout << "The strings s1 & s2 are not equal."
>> << endl;
>> > }
>> >  
>> > and on compiling I am getting the following
>> error..
>> >  
>> > -->g++ main.cpp -o main
>> > main.cpp: In function `int main()':
>> > main.cpp:8: error: `wstring' undeclared (first use
>> this function)
>> > main.cpp:8: error: (Each undeclared identifier is
>> reported only once for
>> > each fu
>> > nction it appears in.)
>> > main.cpp:8: error: expected `;' before "s2"
>> > main.cpp:9: error: `s2' undeclared (first use this
>> function)
>> >  
>> > I searched on the net but could not get any thing
>> recent or useful. Some
>> > old forum threads[2005] say that 
>> > it was not supported. 
>> >  
>> > Any advice or pointer will be of great help.
>> >  
>> > Thanks & Regards
>> > Vipin
>> > 
>> > 
>> 
>> -- 
>> View this message in context:
>>
> http://www.nabble.com/wstring-support-in-GCC-4.1.2-in-Cygwin-1.5.25-11-tp17275355p17359564.html
>> Sent from the Cygwin list 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/
>> 
>> 
> 
> 
> 
>   
> 
> --
> 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/
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/wstring-support-in-GCC-4.1.2-in-Cygwin-1.5.25-11-tp17275355p17399580.html
Sent from the Cygwin list 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: makefile for matlab-engine in cygwin

2008-05-22 Thread Reini Urban
2008/5/21  <[EMAIL PROTECTED]>:
> Hi evereybody
> I am working with a client/server system and I am trying to extend it with an
> input client which uses matlab engine to get data from matlab.
> I would like to compile it with cygwin in windows XP.
> Just typing 'mex.bat A.c B.c' (where 'A.c' and 'B.c' are a 'reduced' version 
> of
> the input client) in the cygwin bash shell works fine, but I am a bit
> struggling with the makefile:
> I would like to extend an existing makefile which works fine with other input
> clients.
>
> If I just change 'gcc' to 'mex.bat' in the makefile I get the following error:

Just out of my head:
You are using the lcc template (LCCENGMATOPTS.BAT) and the Win32 perl
with the cygwin setup.
You should use the GCC template (maybe GCCENGMATOPTS.BAT) and maybe
cygwin's perl instead.
That's how I did it.
But's a long time ago and I don't have access to that machine anymore.

lcc should also do it, but then you'll get difficulties when doing
cross-compiling to better platforms.
So starting with the stricter gcc is a brave goal for your s-functions.

> $ make
> Makefile:34: depend: No such file or directory
> mex.bat -M -g -O3 -std=c99 -Wall -W -Werror -pedantic -I../../server -
> I../../utility file.c file_input.c flight_info.c input_client.c main.c
> matlab_flightpath_input.c orientation.c parse_arg.c pdf.c position.c
> time_stamp.c ../../utility/file.c ../../utility/tcp.c 
> ../../utility/parse_arg.c
> ./../server/flight_info.c ../../server/pdf.c ../../server/position.c 
> ../../serv
> er/time_stamp.c ../../server/o
> rientation.c ../../server/input_client.c ../../server/client.c > depend
> make: [depend] Error 9 (ignored)
> depend:2: *** missing separator (did you mean TAB instead of 8 spaces?).  
> Stop.
> Appendix 1: makefile
> CC = gcc
...

> Appendix 2: mexopts.bat file
> rem LCCENGMATOPTS.BAT
> rem
> remCompile and link options used for building standalone engine or MAT
> remprograms
> remwith LCC C compiler 2.4
...
> set PATH=%MATLAB%\sys\lcc\bin;%PATH%
> set LCCMEX=%MATLAB%\sys\lcc\mex
> set PERL="%MATLAB%\sys\perl\win32\bin\perl.exe"
> set MW_TARGET_ARCH=win32
> rem 
> rem Compiler parameters
> rem 
> set COMPILER=lcc
> set OPTIMFLAGS=-DNDEBUG
> set DEBUGFLAGS=-g4
> set COMPFLAGS=-c -Zp8 -I"%MATLAB%\sys\lcc\include" -noregistrylookup
> set NAME_OBJECT=-Fo

> Any help or pointers in the right direction would be highly appreciated.

-- 
Reini Urban
http://phpwiki.org/ http://murbreak.at/

--
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: _pinfo::dup_proc_pipe: DuplicateHandle failed

2008-05-22 Thread Hugh Sasse
On Wed, 21 May 2008, Relson, David wrote:

> Hi Hugh,
> 
> I'm not an expert (else I'd solve this myself), but it seems not to be a

when it comes to windows, neither am I, but since nobody else is coming
in on this thread I'll see if I can get you any further forward.

> problem with make, but a general problem in duplicating handles for
> subprocesses.  To test that, I entered a classic "Hello World" program
> and created a 2 line script named hello.sh to build it:
> 
> relsondt1--> cat ./hello.sh
> #!/bin/sh -x
> Bcc +BccDos.cfg -c -Ic:/BC45/INCLUDE -D -oHELLO.OBJ HELLO.CPP

This is the sort of narrowing down that helps.
> 
> 
> relsondt1--> ./hello.sh
> + Bcc +BccDos.cfg -c -Ic:/BC45/INCLUDE -D -oHELLO.OBJ HELLO.CPP
>   7 [main] bash 5564! _pinfo::dup_proc_pipe: DuplicateHandle failed, \
> pid   5564, hProcess 0x6DD, wr_proc_pipe 0x750, Win32 error 6

That Win32 error looks more like it is to do with Windows than Cygwin
per se.   So what is "Win32 error 6" (apart from a very unintuitive 
error message?  Google points me at various things, including this:

http://www.freeerrorscan.net/landing/error/error-6.php?t202kw=error%206&m=p&c=3&lpip=538&gclid=CKrViK32uZMCFQ88QwodgQR3DA

which says there are problems with your registry if you get this.
I'm not in a position to give advice on how to fix this.  I don't 
really know what the best cleanup programs are or how to test their
trustworthiness.  But  I'd like to know.  Also, I don't know whether
to trust that source as being accurate.

> Borland C++ 4.52 Copyright (c) 1987, 1994 Borland International
> hello.cpp:
> Warning hello.cpp 8: Parameter 'argc' is never used in function \
>main(int,char * *)
> Warning hello.cpp 8: Parameter 'argv' is never used in function \
>main(int,char * *)
> 
> As can be seen, the message is displayed _and_ the compiler is run.

this would seem to fit with the hypothesis that this is something amiss
which is not directly related to Cygwin or your program, because the script
does its job.  But I wouldn't say it counts as proof.
> 
> Note that I've used " \" and indentation to indicate wrapped/continued
> lines.
> 
> HTH,
> 
> David
> 
Hugh

--
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: _pinfo::dup_proc_pipe: DuplicateHandle failed

2008-05-22 Thread Dave Korn
Hugh Sasse wrote on 22 May 2008 12:08:

>> relsondt1--> ./hello.sh
>> + Bcc +BccDos.cfg -c -Ic:/BC45/INCLUDE -D -oHELLO.OBJ HELLO.CPP
>>   7 [main] bash 5564! _pinfo::dup_proc_pipe: DuplicateHandle failed, \
>> pid   5564, hProcess 0x6DD, wr_proc_pipe 0x750, Win32 error 6
> 
> That Win32 error looks more like it is to do with Windows than Cygwin
> per se.   So what is "Win32 error 6"

http://msdn.microsoft.com/en-us/library/ms681382(VS.85).aspx

ERROR_INVALID_HANDLE

> which says there are problems with your registry if you get this.

  No, it's what you'd expect if you try and dup a handle that's already been
closed - an indication that the child exited prematurely.  This is one of
those semi-generic fork failures that could be BLODA, but another
possibility is that because this is a non-cygwin app being launched from
cygwin, it might be pulling in a dll that causes a rebase conflict.

  Following the rebaseall procedure described in the "Usage:" section of
/usr/share/doc/Cygwin/rebase-2.4.3.README might help as is, or it might be
necessary to find a list of the dlls being pulled in by the borland compiler
and rebase them too by adding a -T option pointing to a file that lists the
(cygwin-style posix) paths to the BC45 dlls.


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: setfacl on Cygwin

2008-05-22 Thread Eric Blake

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Bruno Haible on 5/21/2008 5:05 PM:
| Hi Eric,
|
| I'm looking at ACL support for gnulib. Can you reproduce this with a
| recent Cygwin? With a two-year-old Cygwin I got this:

I reproduced the same symptoms with cygwin 1.5.25-11.

|
| $ touch foo
|
| $ getfacl foo
| # file: foo
| # owner: haible
| # group: None
| user::rw-
| group::r--
| mask:rwx
| other:r--
|
| $ setfacl -m user:4:--x foo
| setfacl: No error
|
| $ echo $?
| 0
|
| $ getfacl foo
| # file: foo
| # owner: haible
| # group: None
| user::rw-
| group::r--
| mask:rwx
| other:r--
|
| The setfacl program
|   1. complained about "No error",
|   2. exited with exit code 0 although it did not execute the requested
change.
|
| Bruno
|
|

- --
Don't work too hard, make some time for fun as well!

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

iEYEARECAAYFAkg1XVsACgkQ84KuGfSFAYDZ3wCeMRFdZ4W2Li56pAJkTPJY16ry
QygAnA8TDzi/fNw3Agy0w2qEV6RmFefY
=5bUN
-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: setfacl on Cygwin

2008-05-22 Thread Corinna Vinschen
On May 22 05:47, Eric Blake wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> According to Bruno Haible on 5/21/2008 5:05 PM:
> | Hi Eric,
> |
> | I'm looking at ACL support for gnulib. Can you reproduce this with a
> | recent Cygwin? With a two-year-old Cygwin I got this:
>
> I reproduced the same symptoms with cygwin 1.5.25-11.
>
> |
> | $ touch foo
> |
> | $ getfacl foo
> | # file: foo
> | # owner: haible
> | # group: None
> | user::rw-
> | group::r--
> | mask:rwx
> | other:r--
> |
> | $ setfacl -m user:4:--x foo
> | setfacl: No error
> |
> | $ echo $?
> | 0
> |
> | $ getfacl foo
> | # file: foo
> | # owner: haible
> | # group: None
> | user::rw-
> | group::r--
> | mask:rwx
> | other:r--
> |
> | The setfacl program
> |   1. complained about "No error",
> |   2. exited with exit code 0 although it did not execute the requested
> change.

The problem is that the request can't be executed because we have no
mapping from uid 4 to a Windows SID.  OTOH, the underlying Solaris
function acl() does not define any error code for a non-existant user
because it's not an error on Solaris. 

What error code do you want?  EINVAL?


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: setfacl on Cygwin

2008-05-22 Thread Corinna Vinschen
On May 22 14:34, Corinna Vinschen wrote:
> On May 22 05:47, Eric Blake wrote:
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > According to Bruno Haible on 5/21/2008 5:05 PM:
> > | Hi Eric,
> > |
> > | I'm looking at ACL support for gnulib. Can you reproduce this with a
> > | recent Cygwin? With a two-year-old Cygwin I got this:
> >
> > I reproduced the same symptoms with cygwin 1.5.25-11.
> >
> > |
> > | $ touch foo
> > |
> > | $ getfacl foo
> > | # file: foo
> > | # owner: haible
> > | # group: None
> > | user::rw-
> > | group::r--
> > | mask:rwx
> > | other:r--
> > |
> > | $ setfacl -m user:4:--x foo
> > | setfacl: No error
> > |
> > | $ echo $?
> > | 0
> > |
> > | $ getfacl foo
> > | # file: foo
> > | # owner: haible
> > | # group: None
> > | user::rw-
> > | group::r--
> > | mask:rwx
> > | other:r--
> > |
> > | The setfacl program
> > |   1. complained about "No error",
> > |   2. exited with exit code 0 although it did not execute the requested
> > change.
> 
> The problem is that the request can't be executed because we have no
> mapping from uid 4 to a Windows SID.  OTOH, the underlying Solaris
> function acl() does not define any error code for a non-existant user
> because it's not an error on Solaris. 
> 
> What error code do you want?  EINVAL?

I applied a patch to CVS so this situation will return an "Invalid argument"
error message now.


Thanks for the report,
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/



/dev/console

2008-05-22 Thread Jaspreet Singh
i am getting some kinda error with init, its not executing scripts in 
runlevels. syslogd logs

May 22 18:07:37 node1 init: PID 1832: `init' service stopped, exit status: 0
May 22 18:07:37 node1 init: open(/dev/console): Permission denied
May 22 18:07:43 node1 init: can't open /dev/console
May 22 18:07:43 node1 init: can't open /dev/console
May 22 18:07:43 node1 init: Entering runlevel: 3
May 22 18:07:43 node1 init: open(/dev/console): Permission denied
May 22 18:07:44 node1 init: PID 2744: `init' service started
May 22 18:07:44 node1 webmin[2296]: Webmin starting 
May 22 18:07:45 node1 init: no more processes left in this runlevel
May 22 18:18:31 node1 -- MARK --

anybody


  From Chandigarh to Chennai - find friends all over India. Go to 
http://in.promos.yahoo.com/groups/citygroups/


--
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: /dev/console

2008-05-22 Thread Corinna Vinschen
On May 22 18:35, Jaspreet Singh wrote:
> i am getting some kinda error with init, its not executing scripts in 
> runlevels. syslogd logs
> 
> May 22 18:07:37 node1 init: PID 1832: `init' service stopped, exit status: 0
> May 22 18:07:37 node1 init: open(/dev/console): Permission denied
> May 22 18:07:43 node1 init: can't open /dev/console
> May 22 18:07:43 node1 init: can't open /dev/console
> May 22 18:07:43 node1 init: Entering runlevel: 3
> May 22 18:07:43 node1 init: open(/dev/console): Permission denied
> May 22 18:07:44 node1 init: PID 2744: `init' service started
> May 22 18:07:44 node1 webmin[2296]: Webmin starting 
> May 22 18:07:45 node1 init: no more processes left in this runlevel
> May 22 18:18:31 node1 -- MARK --

You can't use /dev/console for logging.  When running init as a service,
it has no console.  Change your syslogd configuration.


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: wstring support in GCC 4.1.2 in Cygwin 1.5.25-11

2008-05-22 Thread jadooo

I just come across one article in google about UTF-8 Cygwin

http://www.okisoft.co.jp/esc/utf8-cygwin/

Just wanted to check about this. As per the documentation here
it says that the Cygwin it is providing will suport Unicode. 

Is it worth to go back and try this out. 


Brian Dessent wrote:
> 
> jadooo wrote:
> 
>> Please let me know if I am doing anything wrong.
> 
> Yes, you are misunderstanding the nature of the problem.
> 
> In order to support the wstring class, gcc relies on the platform's libc
> supporting wide character C99 functions.  newlib does not have the
> necessary support[1] so until that work is contributed, the wstring
> class cannot be enabled in libstdc++.  And even then, you'd have to
> rebuild libstdc++ which means rebuilding all of gcc.
> 
> Cygwin 1.7 currently contains support for unicode characters in
> filenames, but this is a far cry from general wide character string
> support (e.g. wprintf) so simply upgrading to 1.7 will not do anything. 
> Larry's suggestion that this will start working in 1.7 is premature,
> unless somebody contributes the necessary newlib improvements before 1.7
> is released.
> 
> Brian
> 
> [1] For a list of the missing features see
> http://cygwin.com/ml/cygwin-developers/2008-04/msg00094.html
> 
> --
> 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/
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/wstring-support-in-GCC-4.1.2-in-Cygwin-1.5.25-11-tp17275355p17405074.html
Sent from the Cygwin list 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: wstring support in GCC 4.1.2 in Cygwin 1.5.25-11

2008-05-22 Thread Larry Hall (Cygwin)

jadooo wrote:

I just come across one article in google about UTF-8 Cygwin

http://www.okisoft.co.jp/esc/utf8-cygwin/

Just wanted to check about this. As per the documentation here
it says that the Cygwin it is providing will suport Unicode. 

Is it worth to go back and try this out. 


You can try it out but it's important to keep in mind 2 things:

1. This is a patch that has not been accepted into CVS.  1.7.x is
   accomplishing the same thing by going a different path.

2. This patch still only affects cygwin1.dll.  There is no newlib
   patch.  So this doesn't get you any closer to your goal than the
   snapshot does.

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

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

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



fate/resolution/location of things like "sys/sockio.h"

2008-05-22 Thread Mike Marchywka

Hi,
I'm trying to build nmap from scratch to track down some security issues.
It seems to be choking on this,
configure:4180: result: no
configure:4208: checking for sys/ioccom.h
configure:4216: result: no
configure:4104: checking sys/sockio.h usability
configure:4121: gcc -c -g -O2  conftest.c>&5
conftest.c:53:24: sys/sockio.h: No such file or directory
configure:4127: $? = 1
configure: failed program was:
| /* confdefs.h.  */

but I can't figure out exactly what the status of "sys/sockio.h" is from the 
results here:

http://www.google.com/search?hl=en&q=site%3Acygwin.com++%22sockio.h%22

Is there a definitive way to fix this? Some posts on non-cygwin sites but 
nothing
seems to get beyond "it didn't build what is wrong?"


Thanks.

Mike Marchywka
586 Saint James Walk
Marietta GA 30067-7165
404-788-1216 (C)<- leave message
989-348-4796 (P)<- emergency only
[EMAIL PROTECTED]
Note: If I am asking for free stuff, I normally use for hobby/non-profit
information but may use in investment forums, public and private.
Please indicate any concerns if applicable.
Note: Hotmail is possibly blocking my mom's entire
ISP - try  me on [EMAIL PROTECTED] if no reply
here. Thanks.


_
E-mail for the greater good. Join the i’m Initiative from Microsoft.
http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ GreaterGood

--
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: fate/resolution/location of things like "sys/sockio.h"

2008-05-22 Thread Dave Korn
Mike Marchywka wrote on 22 May 2008 16:03:

> but I can't figure out exactly what the status of "sys/sockio.h" is from
> the results here: 
> 
> http://www.google.com/search?hl=en&q=site%3Acygwin.com++%22sockio.h%22

  Wrong place to look, surely?

http://cygwin.com/cgi-bin2/package-grep.cgi?grep=sys%2Fsockio.h

> Is there a definitive way to fix this? 

  Fix what exactly?  The fact that cygwin doesn't supply or support
?  Well, yes, there is a definitive way to fix it:

http://cygwin.com/acronyms#PTC


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: setfacl on Cygwin

2008-05-22 Thread Bruno Haible
Corinna Vinschen wrote:
> > What error code do you want?  EINVAL?

EINVAL sounds right, yes. The Solaris manual page [1] also mentions it:

  "EINVAL
... the cmd argument is SETACL or ACE_SETACL and the ACL specified in
aclbufp is not valid."

> I applied a patch to CVS so this situation will return an "Invalid argument"
> error message now.

Thanks. Will the setfacl program then exit with non-zero exit code (since it
could not set the requested ACL)?

Bruno


[1] http://docs.sun.com/app/docs/doc/816-5167/acl-2?l=en&a=view


--
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: setfacl on Cygwin

2008-05-22 Thread Mark J. Reed
On Thu, May 22, 2008 at 12:36 PM, Bruno Haible <[EMAIL PROTECTED]> wrote:
> Corinna Vinschen wrote:
>> > What error code do you want?  EINVAL?
>
> EINVAL sounds right, yes. The Solaris manual page [1] also mentions it:
>
>  "EINVAL
>... the cmd argument is SETACL or ACE_SETACL and the ACL specified in
>aclbufp is not valid."

Right.  That's the thing - this is a different error condition, one
that could not possibly arise on Solaris (since there is only one
concept of user there).  The question is, what should the error code
be for this new condition that can only arise on Cygwin?  Since it's
an invalid user identity for the requested operation, EINVAL seems
appropriate; it's just not what the man page says EINVAL means in this
context.

The only other standard error code that leaps out at me as possibly
appropriate is EPERM ("Operation not permitted").

Sadly, the "no such thing exists" errors are all quite specific as to
the thing in question: ENOENT for files, ESRCH for processes, ENXIO
for devices, etc.




-- 
Mark J. Reed <[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: setfacl on Cygwin

2008-05-22 Thread Corinna Vinschen
On May 22 18:36, Bruno Haible wrote:
> Corinna Vinschen wrote:
> > > What error code do you want?  EINVAL?
> 
> EINVAL sounds right, yes. The Solaris manual page [1] also mentions it:
> 
>   "EINVAL
> ... the cmd argument is SETACL or ACE_SETACL and the ACL specified in
> aclbufp is not valid."
> 
> > I applied a patch to CVS so this situation will return an "Invalid argument"
> > error message now.
> 
> Thanks. Will the setfacl program then exit with non-zero exit code (since it
> could not set the requested ACL)?

It will now, I just applied a patch.


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: wstring support in GCC 4.1.2 (OS independent)

2008-05-22 Thread Linda Walsh

Brian Dessent wrote:

jadooo wrote:


Please let me know if I am doing anything wrong.


Yes, you are misunderstanding the nature of the problem.

In order to support the wstring class, gcc relies on the platform's libc
supporting wide character C99 functions.

---
Even though the "kernel" (cygwin 1.5) doesn't support unicode
shouldn't it be possible -- and desirable for gcc to support the
'wstring' datatype?

It does seem 'wstring' is supported on standard linux,
but internally, the kernel doesn't support double-wide
characters anymore than cygwin.  So maybe the problem is
not that cygwin doesn't support unicode, but that the gcc
libs & compile utils don't support the standard linux
equivalents?

Whether or not cygwin (or the linux kernel) supports
"wchar" is not entirely relevant to what the application libraries
on top of the kernel support -- at least going by the example
on an x86_64 linux.  It's still the case that the 64-bit
linux kernel doesn't support wchars any more than cygwin, yet
the compiler suite does.


--
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: wstring support in GCC 4.1.2 in Cygwin 1.5.25-11

2008-05-22 Thread Linda Walsh

jadooo wrote:

Thanks a lot for the valuable information.

I am trying to port my application developed in linux to windows, now as
it is quiet clear that I could not use cygwin, due to lack of Unicode
support,
is there any other alternative to try out my porting activity.

---
Linux doesn't support double-wide characters in its
system calls -- it's all in 'glibc'.

Cygwin doesn't need to support unicode anymore than
the linux kernel does.  It's whoever built the gcc/glib
packages that needs to supply that application-level (not
system-level) datatype.

In the same way, gcc/glib supports 64-bit data types
on 32-bit machines and the glib file I/O transparently supports
64-bit file offsets even on 32-bit machines.

But, AFAIK, glib doesn't support calling the standard
*nix file-io calls with 'wchar' comprised wstrings.


--
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: fate/resolution/location of things like "sys/sockio.h"

2008-05-22 Thread Mike Marchywka

> From: [EMAIL PROTECTED]
> Date: Thu, 22 May 2008 16:15:16 +0100

Thanks. If you are interested, let me try to give a chronology of follow on 
events as best as I can
reconstruct:

1:::
> Wrong place to look, surely?
>
> http://cygwin.com/cgi-bin2/package-grep.cgi?grep=sys%2Fsockio.h

Oddly enough, that helped :)
OK, so I copied sockio.h and also needed ioccom.h. Just to be clear,

http://cygwin.com/cgi-bin/cvsweb.cgi/src/newlib/libc/sys/linux/sys/ioccom.h?cvsroot=src

my install is messed up so I'm not sure this problem applies to anyone else
but I'm just being complete incase it matters.

2:::

Then, I encountered a define problem. This seems to have occured elsewhere
so I thought I would post the issue with definition of ssize_t: 

http://code.google.com/p/xdelta/issues/detail?id=56

This turned out to be flagged with __CYGWIN__ and also easy to fix in the 
makefile.

3::

But, then I had a missing definition for IFF_POINTOPOINT which does seem to be 
an issue with cygwin. According to this, the symbol should be defined in if.h: 

https://www.linux-foundation.org/dbadmin/browse/headgroup.php?cmd=list-byheadgroup&HGid=437

my if.h needed to be modified, 

#define IFF_LOOPBACK0x8 /* is a loopback net*/
//
#define IFF_POINTOPOINT0x10/* mjm,*/
// 
https://www.linux-foundation.org/dbadmin/browse/headgroup.php?cmd=list-byheadgroup&HGid=437

#define IFF_NOTRAILERS  0x20/* avoid use of trailers*/

4: 
Next, a problem with INET6_ADDSTRLEN16. I found this and implemented the 
suggestion,


http://viral.media.mit.edu/peers/peers-win.html

#if defined(__CYGWIN__) 
#define INET_ADDRSTRLEN 16 
#define INET6_ADDRSTRLEN 46 
#endif /* __CYGWIN__ */

which again seemed to work but I have no idea what other problems may turn up 
if this isn't right.

5

Then I finally encountered a big link problem and determined that some pieces
were built with and without -mno-cygwin. I was finally able to stop it from 
complaining
by grepping all the libraries for the missing symbols and just randomly adding 
stuff
but, duh, the executable wouldn't run. I can probably figure this out but I've 
never built anything with -mno-cygwin before
so it will probably take a while.



Thanks. 




Mike Marchywka
586 Saint James Walk
Marietta GA 30067-7165
404-788-1216 (C)<- leave message
989-348-4796 (P)<- emergency only
[EMAIL PROTECTED]
Note: If I am asking for free stuff, I normally use for hobby/non-profit
information but may use in investment forums, public and private.
Please indicate any concerns if applicable.
Note: Hotmail is possibly blocking my mom's entire
ISP - try  me on [EMAIL PROTECTED] if no reply
here. Thanks.


> From: [EMAIL PROTECTED]
> To: cygwin@cygwin.com
> Subject: RE: fate/resolution/location of things like "sys/sockio.h"
> Date: Thu, 22 May 2008 16:15:16 +0100
>
> Mike Marchywka wrote on 22 May 2008 16:03:
>
>> but I can't figure out exactly what the status of "sys/sockio.h" is from
>> the results here:
>>
>> http://www.google.com/search?hl=en&q=site%3Acygwin.com++%22sockio.h%22
>
> Wrong place to look, surely?
>
> http://cygwin.com/cgi-bin2/package-grep.cgi?grep=sys%2Fsockio.h
>
>> Is there a definitive way to fix this?
>
> Fix what exactly? The fact that cygwin doesn't supply or support
> ? Well, yes, there is a definitive way to fix it:
>
> http://cygwin.com/acronyms#PTC
>
>
> 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/
>

_
Give to a good cause with every e-mail. Join the i’m Initiative from Microsoft.
http://im.live.com/Messenger/IM/Join/Default.aspx?souce=EML_WL_ GoodCause

--
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: fate/resolution/location of things like "sys/sockio.h"

2008-05-22 Thread Christopher Faylor
On Thu, May 22, 2008 at 05:48:14PM -0400, Mike Marchywka wrote:
>> From: [EMAIL PROTECTED]
>> Date: Thu, 22 May 2008 16:15:16 +0100
>
>Thanks. If you are interested, let me try to give a chronology of follow on 
>events as best as I can
>reconstruct:
>
>1:::
>> Wrong place to look, surely?
>>
>> http://cygwin.com/cgi-bin2/package-grep.cgi?grep=sys%2Fsockio.h
>
>Oddly enough, that helped :)
>OK, so I copied sockio.h and also needed ioccom.h. Just to be clear,
>
>http://cygwin.com/cgi-bin/cvsweb.cgi/src/newlib/libc/sys/linux/sys/ioccom.h?cvsroot=src
>
>my install is messed up so I'm not sure this problem applies to anyone else
>but I'm just being complete incase it matters.

As the sys/linux above implies, this is linux-specific code.  It has no
bearing for cygwin.

>2:::
>
>Then, I encountered a define problem. This seems to have occured elsewhere
>so I thought I would post the issue with definition of ssize_t: 
>
>http://code.google.com/p/xdelta/issues/detail?id=56
>
>This turned out to be flagged with __CYGWIN__ and also easy to fix in the 
>makefile.
>
>3::
>
>But, then I had a missing definition for IFF_POINTOPOINT which does seem to be 
>an issue with cygwin. According to this, the symbol should be defined in if.h: 
>
>https://www.linux-foundation.org/dbadmin/browse/headgroup.php?cmd=list-byheadgroup&HGid=437
>
>my if.h needed to be modified, 
>
>#define IFF_LOOPBACK0x8 /* is a loopback net*/
>//
>#define IFF_POINTOPOINT0x10/* mjm,*/
>// 
>https://www.linux-foundation.org/dbadmin/browse/headgroup.php?cmd=list-byheadgroup&HGid=437
>
>#define IFF_NOTRAILERS  0x20/* avoid use of trailers*/
>
>4: 
>Next, a problem with INET6_ADDSTRLEN16. I found this and implemented the 
>suggestion,
>
>
>http://viral.media.mit.edu/peers/peers-win.html
>
>#if defined(__CYGWIN__) 
>#define INET_ADDRSTRLEN 16 
>#define INET6_ADDRSTRLEN 46 
>#endif /* __CYGWIN__ */
>
>which again seemed to work but I have no idea what other problems may turn up 
>if this isn't right.
>
>5
>
>Then I finally encountered a big link problem and determined that some
>pieces were built with and without -mno-cygwin.  I was finally able to
>stop it from complaining by grepping all the libraries for the missing
>symbols and just randomly adding stuff but, duh, the executable
>wouldn't run.  I can probably figure this out but I've never built
>anything with -mno-cygwin before so it will probably take a while.

Sorry but you're very confused by this point.  Compiling with -mno-cygwin means
that you can't use ANY cygwin headers.  You won't be able to create an 
executable
which works this way.

When Dave said "...cygwin doesn't supply or support " he wasn't
kidding.  It isn't supplied and copying it from a random source and randomly
making changes is not going to work.

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: cscope on cygwin

2008-05-22 Thread Dave & Diane

Hi Eva,

Sorry for the delay in replying - I just checked my cscope mail.

You can do what you want, but you are falling in to the trap of .cmd 
file extensions.


When you set the EDITOR variable to a .cmd file, it will be run as a 
windows script, not a bash script.


Your use of "&" only works in bash scripts, not windows scripts.

I created a script called "cs_edit" and did:

shift
/c/windows/notepad.exe $@ &

Let me explain what this does.When I run mlcscope and pick a line, the 
arguments given to $EDITOR are "+2 filename"


For some reason which I am not sure of right now, +2 is the first 
argument. That isn't right and I'll look at that separately, but for now 
the "shift" causes all the arguments to shift down one place and it 
drops the first arg so the arguments become just the filename,


Then the $@ puts the argument list on the command line as you expected.

I think the reason you tried %2 is to avoid that first argument right?

As you deduced, the '&' runs the command in the background.

Make sure that cs_edit is in your path and is executable (chmod 755 
cs_edit), and you should be up and running.


Let me know if you have any other problems.

Cheers
Dave

Barladeanu Eva-BEB047 wrote:


Hello,

I am a newcomer to cygwin.
I installed "mlcscope-14.1.8-2" on an XP service pack 2 machine.
I built the cscope.out data base and I can run searches on the data
base.
I defined the "EDITOR" variable as follows:

EDITOR="/cygdrive/d/Profiles/myaccount/cs_editor.cmd"

Where the "cs_editor.cmd" files contains:

textpad %2 &


Trying to open a file of the search result, textpad opens the file.

The problem is that while textpad is open I have no access to cscope and
can not open more
files or run subsequent searches.
This behavior is like in UNIX when I open the text editor in foreground.

Can I run somehow the textpad in background?

Thank you,


Eva Barladeanu

Motorola


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


 




--

Diane & Dave
http://www.velvetstarbears.com/  http://www.kringlecottage.com/
Fortune: The difference between America and England is that the
English think 100 miles is a long distance and the Americans
think 100 years is a long time.


--
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: wstring support in GCC 4.1.2 in Cygwin 1.5.25-11

2008-05-22 Thread Eric Blake

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Linda Walsh on 5/22/2008 1:14 PM:
| Linux doesn't support double-wide characters in its
| system calls -- it's all in 'glibc'.
|
| Cygwin doesn't need to support unicode anymore than
| the linux kernel does.  It's whoever built the gcc/glib
| packages that needs to supply that application-level (not
| system-level) datatype.

Please get your terms straight.  glib is something MUCH different than
glibc.  glib is ported to cygwin, glibc is not.  glib is a graphics
library, glibc is an implementation of libc.  Cygwin uses newlib as its
implementation of libc.  And that's why cygwin doesn't support wstring -
because newlib does not have very complete wide character support.

But you are correct that it is the job of libc, and not the kernel, to
provide application-level code that interprets byte sequences as wide
characters.

- --
Don't work too hard, make some time for fun as well!

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

iEYEARECAAYFAkg2IoMACgkQ84KuGfSFAYDXtQCeI20yMSPSKhvW2wdRhiZfSm3V
usIAoKJ/i0GgKQJeVfPJSt92y+fe8VAB
=hwpH
-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: wstring support in GCC 4.1.2 (OS independent)

2008-05-22 Thread Brian Dessent
Linda Walsh wrote:

> So maybe the problem is
> not that cygwin doesn't support unicode, but that the gcc
> libs & compile utils don't support the standard linux
> equivalents?

I can't parse this.

> Whether or not cygwin (or the linux kernel) supports
> "wchar" is not entirely relevant to what the application libraries
> on top of the kernel support -- at least going by the example
> on an x86_64 linux.  It's still the case that the 64-bit
> linux kernel doesn't support wchars any more than cygwin, yet
> the compiler suite does.

Comparing Cygwin to the linux kernel is nonsense.  They serve totally
different purposes -- Cygwin is a user-mode library.  If you want to
make a comparison, compare Cygwin to glibc as they are both libcs.

And again, the compiler suite cannot implement wstring without
underlying libc wide character IO support which does not exist in newlib
and therefore does not exist in Cygwin.  Remember that gcc is divorced
from the target libc because a libc is way too OS-dependent.  gcc relies
on the platform to implement its own libc, and everything gcc implements
builds on top of an existing libc.  If the libc doesn't have the
necessary support there's nothing that libstdc++ can do about it but
disable wstring.

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/