Thanks for the help I apparently am missing something here......

2007-03-16 Thread Kevin Markle

Pedro Alves explained :

Eric Blake wrote:

Pedro Alves  portugalmail.pt> writes:



Dave Korn wrote:

  Ctrl+D is a better way to close the file actually.  If you mean EOF, 
why 


not

*say* EOF? 
  

Unless you type it one time too much, and ... uupps, there goes the shell 
:)




Which is why I have 'set -o ignoreeof' in my ~/.bashrc.



Perfect!
Thanks.

Cheers,
Pedro Alves





Or you could set the IGNOREEOF environment variable.

And you don't like ^D?  Then stty can change EOF to some other sequence.


I recieved some advice about not having a network drive attached to the 
profile I was logging into so I uninstalled cygwin and installed it 
with an account that does not have a network share included with the 
login.


After this I setup cron using cron-config.

I selected yes to netsec if that is okay. I have a general idea of what 
netsec is but don't know how it pertains to this problem.


Is this what all of you guys are saying this file should look like?

[EMAIL PROTECTED] /
$ more cronmail.sh
cat > /cronmail.txt

I keep getting this in the eventvwr:
The description for Event ID ( 0 ) in Source ( /usr/sbin/cron ) cannot 
be found. The local computer may not have the necessary registry 
information or message DLL files to display messages from a remote 
computer. You may be able to use the /AUXSOURCE= flag to retrieve this 
description; see Help and Support for details. The following 
information is part of the event: /usr/sbin/cron: PID 2624: 
(sys-scheduler) RELOAD (tabs/sys-scheduler).


My crontab looks like this:
5   *   *   *   *   /croncheckscript.sh

The croncheckscript.sh looks like this:
[EMAIL PROTECTED] /
$ more croncheckscript.sh
echo are_you_working  >> cronoutput.out

My Permsiions look like this and this :-[ thing still wont' work?
[EMAIL PROTECTED] /
$ ls -al
total 13
drwxrwx---+ 11 sys-scheduler mkgroup-l-d0 Mar 17 00:28 .
drwxrwx---+ 11 sys-scheduler mkgroup-l-d0 Mar 17 00:28 ..
drwxrwx---+  2 sys-scheduler mkgroup-l-d0 Mar 16 23:50 bin
-rwxrwxrwx   1 sys-scheduler mkgroup-l-d0 Mar 17 00:20 
croncheckscript.out
-rwxrwxrwx   1 sys-scheduler mkgroup-l-d   40 Mar 17 00:04 
croncheckscript.sh

-rwxrwxrwx   1 sys-scheduler mkgroup-l-d   20 Mar 17 00:28 cronmail.sh
-rwxrwxrwx   1 sys-scheduler mkgroup-l-d3 Mar 17 00:27 cronmail.txt
-rwxrwxrwx   1 sys-scheduler mkgroup-l-d   32 Mar 17 00:31 
cronoutput.out

dr-xr-xr-x   1 0 root   0 Dec 31  1969 cygdrive
-rwxr-x---+  1 sys-scheduler mkgroup-l-d   70 Mar 16 23:52 cygwin.bat
-rwxr-x---+  1 sys-scheduler mkgroup-l-d 7022 Mar 16 23:52 cygwin.ico
drwxrwx---+ 34 sys-scheduler mkgroup-l-d0 Mar 16 23:57 etc

The link is:
[EMAIL PROTECTED] /usr/sbin
$ ls -al | grep sendmail
lrwxrwxrwx   1 sys-scheduler mkgroup-l-d  12 Mar 17 00:03 sendmail 
-> /cronmail.sh





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



Re: pthread question - should this program run - does on Linux

2007-03-16 Thread alex
I got this (cygwin):

$ ./a
Starting main now
Creating thread 0

0: hello world!
Creating thread 1

1: hello world!
Creating thread 2

2: hello world!
Creating thread 3

3: hello world!
Creating thread 4

4: hello world!

then the program exit

On Fri, Mar 16, 2007 at 02:14:40PM -0400, Brian Keener wrote:
> I have been trying to get a grasp on some pthread usage starting with a 
> couple 
> simple programs.  I found this one and tried on Cygwin and didn't get what I 
> expected so I tried in Linux and it worked there.  I know I have seen a lot 
> on 
> the archives about thread usage and that some things do not work (like stack 
> size and stack addr) but I have also seen comments on if used properly then 
> threads do work.  
> 
> I have compiled my simple program in Cygwin and Linux as 
> 
> g++ mythread_simple.cpp -o mythread_simple.exe
> 
> In Cygwin I when I compile I get this 
> 
> [EMAIL PROTECTED] /usr/tmp
> $ ./mythread_simple
> Starting main now
> Creating thread 0
> 
> 0: hello world!
> Creating thread 1
> Creating thread 2
> Creating thread 3
> Creating thread 4
> 
> At this point I have to hit CTRL-C to break out.  And when I run in in linux 
> I 
> get 
> 
> Starting main now
> Creating thread 0
> Creating thread 1
> Creating thread 2
> Creating thread 3
> Creating thread 4
> 
> 0: hello world!
> 
> 1: hello world!
> 
> 2: hello world!
> 
> 3: hello world!
> 
> 4: hello world!
> 
> Which is what I would expect.  I have attached the program and my cygcheck 
> log. 
> Any information, confirmation or assistance greatly appreciated.
> 
> bk
> 
> 
> 



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

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



Re: Accessing remote PC (ssh?)

2007-03-16 Thread Larry Hall (Cygwin)

Matthew Woehlke wrote:

Larry Hall (Cygwin) wrote:

Matthew Woehlke wrote:

Larry Hall (Cygwin) wrote:
Ok, Larry, I have to ask... does your $50 appliance really have a DNS 
server in it too?


No.  But it will happen someday. ;-)  But your question reminds me that
I forgot to mention that the router should be set up to point to your
ISP's DNS.  But as I recall, I didn't have complete success with name
resolution of local machines until I switched to using static DHCP IPs
and adding the names and IPs to my /etc/host files.  It's really the
best way to go if one's router supports it.


That's what I thought. I find it unlikely that your ISP allows you to 
register with their DNS. :-)


They've had no complaints in the last 8 years that I've been using them.
But as I believe I've mentioned before, I think this line of inquiry is
getting pretty off the OP's topic so I believe it's best to drop it.

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



Re: HELP!!!!!!!!!!!!

2007-03-16 Thread Larry Hall (Cygwin)

Curt wrote:

http://cygwin.com/ml/cygwin/2005-10/msg01040.html

This is the only thing I could find regarding the issue that only admin 
group can access the server via sshd.


Unfortunately, it still DON'T WORK!



Curt, you really need to get a grip on yourself.  It's clear that you're
frustrated by the problems you've seen but venting to the list repeatedly
doesn't inspire people to volunteer their time to get involved with you
on your problems.  Also, I would recommend that you choose subjects to
convey more about your issue.  "NEWBIE" and "HELP" don't
really convey much information and may cause readers of this list to
simply pass over the whole thread based on the assumption that if the
subject doesn't grab their interest, there's no need to view the contents.


I swear I don't recall having this problem with my 2K install but maybe 
I just let them into the admin group like a moron.


Probably why that server crashed in the end.

Anyway, any sugestions?



Sorry, I don't have W2K3 SBS.  I can say that I was able to create a
restricted user on both W2K and XP with which I could ssh into localhost
with just fine.  I, of course, had to regenerate my '/etc/passwd' and
'/etc/group' files.  But otherwise, it worked just as expected, even when
I logged in as that user for the first time through 'ssh'.  I didn't need
to change permissions of any files anywhere in my file system to make
this work.

If you're having trouble with the users you're creating, I'd recommend
that you start from the beginning and document the minimal set of steps
you take.  Perhaps if you post that, someone here may be willing to
follow them and see if there's a missing step or two in the process
that you're missing.


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



Re: Accessing remote PC (ssh?)

2007-03-16 Thread Matthew Woehlke

Larry Hall (Cygwin) wrote:

Matthew Woehlke wrote:

Larry Hall (Cygwin) wrote:
Ok, Larry, I have to ask... does your $50 appliance really have a DNS 
server in it too?


No.  But it will happen someday. ;-)  But your question reminds me that
I forgot to mention that the router should be set up to point to your
ISP's DNS.  But as I recall, I didn't have complete success with name
resolution of local machines until I switched to using static DHCP IPs
and adding the names and IPs to my /etc/host files.  It's really the
best way to go if one's router supports it.


That's what I thought. I find it unlikely that your ISP allows you to 
register with their DNS. :-)


To Charles:

Unless you are unable to resolve normal Internet addresses like 
gmane.org and cygwin.com (which seems unlikely), then (unless your 
router /does/ function as a DNS server) forget all the stuff about 
playing with your DNS configurations (unless you intend to actually set 
up a DNS server ;-)). It Ain't Broke.


Being able to tell your router to hand out addresses based on MAC's 
would be useful, but probably you want to do one of three things:


- Forget about names and memorize a few IP's
- Add some convenient entries to /etc/hosts
- Use Windows' 'ping' any time you need to know a host's IP

...and in either case, update /etc/hosts or your brain when/if your DHCP 
leases expire. IOW, keep doing what (if I followed the thread right) 
you're currently doing. :-)


--
Matthew
"Have you tried that new mixed drink, 'GDR'"?
"What is it?"
"Gin, Duck and Rum. It tastes fowl."


--
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: Accessing remote PC (ssh?)

2007-03-16 Thread Larry Hall (Cygwin)

Matthew Woehlke wrote:

Larry Hall (Cygwin) wrote:

I can try.  Go to "Start"->"Settings"->"Network Connections".  Click on
"Local Area Connecton".  RMB down and choose "Properties".  Look in the
box called "This connection uses the following items:".  Make sure you
have "Internet Protocol (TCP/IP)" and that it is checked.  Select it and
hit the "Properties" button.  In the "General" tab, make sure
"Obtain an IP address automatically" is selected.  Also check that
"Obtain DNS server address automatically" is selected.  Hit the 
"Advanced"
button and the "DNS" tab.  Make sure "Register this connection's 
addresses

in DNS".  If you must, you can enter your router's IP in "DNS server
addresses, in order of use:" box, though that shouldn't be required.
That should be enough.  If you don't have some of these things, with
the exception of the your router's IP address listed as a DNS server,
you want to fix all those other things first.


Ok, Larry, I have to ask... does your $50 appliance really have a DNS 
server in it too?



No.  But it will happen someday. ;-)  But your question reminds me that
I forgot to mention that the router should be set up to point to your
ISP's DNS.  But as I recall, I didn't have complete success with name
resolution of local machines until I switched to using static DHCP IPs
and adding the names and IPs to my /etc/host files.  It's really the
best way to go if one's router supports it.

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



Re: Most recent update broke BZR (?)

2007-03-16 Thread Yaakov (Cygwin Ports)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Jeff Dooley wrote:
> I tried reinstalling bzr and the problem persists. Any help would be
> appreciated. Thanks!

python was just updated to 2.5, but everything else in the distro (and
in Ports) is still compiled for python-2.4.  Besides the different
install paths (/usr/lib/python2.{4,5}), any binary extensions will not
work at all, as the libpython libraries have different sonames.

Would the python maintainer consider creating parallel-installable
python2.x packages, amd use alternatives for the /usr/bin commands?
This would help ease the transition, as well as account for those
packages that work with some but not all versions of python.


Yaakov

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF+yPIpiWmPGlmQSMRCKFLAJ9YkaAsXnoebupKdu63NYBw5KWy5wCfY/J7
w2QHgKIoalwhS8g3J1ykGkg=
=sVDy
-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/



HELP!!!!!!!!!!!!

2007-03-16 Thread Curt

http://cygwin.com/ml/cygwin/2005-10/msg01040.html

This is the only thing I could find regarding the issue that only admin 
group can access the server via sshd.


Unfortunately, it still DON'T WORK!
I swear I don't recall having this problem with my 2K install but maybe I 
just let them into the admin group like a moron.


Probably why that server crashed in the end.

Anyway, any sugestions?

Please see my other e-mail dated 3-16-07

THANKS!

Curt


--
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: Bug Report: Purging Old and Invalid User Names With Spaces

2007-03-16 Thread Christopher Faylor
On Fri, Mar 16, 2007 at 10:49:36PM -, Thorsten Kampe wrote:
>* Robert Peaslee (Fri, 16 Mar 2007 16:52:40 -0400)
>> Actually, this information is incorrect.
>> 
>> Windows XP stores the first username you choose and will associate your 
>> current username to it regardless of what you change it to. Cygwin 
>> stores nothing, it is asking Windows what your username is and getting a 
>> response of what Windows tells it.
>
>Cygwin asks Windows at first install about the user names and creates 
>/etc/passwd. The problem is (or can be) that this list never gets updated 
>even if the user names change or new user are added.
>
>As Keith wrote:
>"Subsequent installations of CygWin utilize the aforementioned out of 
>date username list, even though those usernames have been changed and 
>are no longer valid."
>
>The secret is to run
>
>mkpasswd -l -c > /etc/passwd
>and
>mkgroup -l -c > /etc/group
>
>Also you have to run this if you're in a domain (because Cygwin retrieves 
>only the local user names, not the domain names).

Given that the OP admitted to wiping out his whole Cygwin installation, I
think it's a safe bet that he wiped out and regenerated his /etc/passwd.

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: Bug Report: Purging Old and Invalid User Names With Spaces

2007-03-16 Thread Thorsten Kampe
* Robert Peaslee (Fri, 16 Mar 2007 16:52:40 -0400)
> Actually, this information is incorrect.
> 
> Windows XP stores the first username you choose and will associate your 
> current username to it regardless of what you change it to. Cygwin 
> stores nothing, it is asking Windows what your username is and getting a 
> response of what Windows tells it.

Cygwin asks Windows at first install about the user names and creates 
/etc/passwd. The problem is (or can be) that this list never gets updated 
even if the user names change or new user are added.

As Keith wrote:
"Subsequent installations of CygWin utilize the aforementioned out of 
date username list, even though those usernames have been changed and 
are no longer valid."

The secret is to run

mkpasswd -l -c > /etc/passwd
and
mkgroup -l -c > /etc/group

Also you have to run this if you're in a domain (because Cygwin retrieves 
only the local user names, not the domain names).


Thorsten


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



Re: NEWBIE

2007-03-16 Thread Curt
OK hours later and two re-installs I have come to the conclusion that none 
of the online tutorials are 100% accurate.
More to the point: they are really lacking important informations regarding 
adding users.
I know for a fact that the problem is related to permisions, but I have yet 
to track it down completley.
The ONLY way i am able to have users log in successfully is if they are part 
of the admin group (MS SBS 2003) which is really not what I want at all.
That gives them rights to the whole cygwin folder and that's just not going 
to work.
I have read that the user needs to be able to WRITE to some files in the ETC 
folder, but there is so much bad information about this project, I am not 
sure what to think.  I have had to log on locally with the user accounts in 
order to get cwgwin to add a home folder for my clients which is a pain 
becasue you have to change permissions to let the user log on locally and 
then log in and create a damn profile for them.  Then run the bash... OMG
Anyway, even after I did all that (I did resolve the passwrod error issue by 
doing that) it still give me the "cannot initialize SFTP protocol. Is the 
host running an SFTP server?" ERROR.  So I guess the standard domain user 
does not have the rights to run something (maybe as a process?)
Anyway, I have searched and SEARCHED for answers but have found non  on the 
cygwin site or Google, and frankly, I think there is so much DIS-information 
out there, I am afraid to ask the wrong person.  So if you can help me I 
would appreciate it.

Can I add users WITHOUT them being in the admin group?
Thanks

Curt


- Original Message - 
From: "Igor Peshansky" <[EMAIL PROTECTED]>

To: "Curt" <[EMAIL PROTECTED]>
Cc: 
Sent: Thursday, March 15, 2007 7:33 AM
Subject: Re: NEWBIE



On Wed, 14 Mar 2007, Curt wrote:


Sorry to bother you with this.

I think the cygwin stuff is great, and I used to run it on a 2000 server
build without issue.  Now that I have 2003 SBS running I am running into
an issue were I can only log on remotely with the admin accnt that was
ceated from start up.  If I add users to the admin group I can log on
but they just have desktop access and they don't go into the user
folders I created manually (the script did not work)  I see you have a
work around here: http://www.cygwin.com/ml/cygwin/2003-09/msg00312.html

But I am too much of a rookie to implement the fix.

If it's not too much trouble, could you PLEASE do a step by step for me.

Again, I am running SBS 2003 with all the updates.

I feel like a moron for asking, but I have tried for the last 3 hours to
make this work.

I really appreciate your help!
Curt


Did you happen to notice that this "workaround" is 3.5 years old?  The
ssh-host-config script has since been augmented to work OOTB on 2003.

Please describe precisely the steps you took, the results you got, and
what exactly doesn't work in your setup.  You might also want to review


Problem reports:   http://cygwin.com/problems.html


and provide the information requested there (in particular, the output of
"cygcheck -svr" on your system as an uncompressed text attachment).
Without this information, we cannot really help.
Igor
--
http://cs.nyu.edu/~pechtcha/
 |\  _,,,---,,_ [EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_ Igor Peshansky, Ph.D. (name changed!)
|,4-  ) )-,_. ,\ (  `'-' old name: Igor Pechtchanski
   '---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Freedom is just another word for "nothing left to lose"...  -- Janis 
Joplin 



--
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: Most recent update broke BZR (?)

2007-03-16 Thread Jeff Dooley

* Jeff Dooley (Fri, 16 Mar 2007 11:03:31 -0700)
> bzr: ERROR: Couldn't import bzrlib and dependencies.
> Please check bzrlib is on your PYTHONPATH.

Well, is it there or not? Which python are you using? Is bzr in site-
packages?


now working again when I copied bzrlib from the python2.4 to python2.5
site-packages directories.

--
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: Bug Report: Purging Old and Invalid User Names With Spaces

2007-03-16 Thread Robert Peaslee

Thrall, Bryan wrote:

Yes, WinXP stores your username twice ("Full name" and "User Name") and
Cygwin uses the "hidden" one ("User Name"), but I'm pretty sure you
don't have to reinstall XP to change it!

IIRC, you can change the username from Control Panel->User
Accounts->Advanced tab->Advanced button->Users->right click on the user
and select "Rename". You might need to be Administrator to do this,
though (and it only works for local users, so if you're on a domain, you
need to contact the domain admin).

Also, as someone already said, it is trivial to replace the
names-with-spaces in the /etc/passwd file with names that have no
spaces, as long as you don't mess with the SID.

  

That is good information to have. Thanks for your reply, Bryan.

I no longer have XP installed, but found the same can be done in Vista 
by opening the computer management window (Right click on my computer -> 
manage ), expanding the "Local Users and Groups" tree, and clicking on 
"Users." Then the instructions are the same as Bryan's, right click on 
the user and hit 'rename' to set a new username.


--Robert Peaslee

--
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: Bug Report: Purging Old and Invalid User Names With Spaces

2007-03-16 Thread Thrall, Bryan
Robert Peaslee wrote on Friday, March 16, 2007 3:53 PM:
> Windows XP stores the first username you choose and will associate
> your current username to it regardless of what you change it to.
> Cygwin stores nothing, it is asking Windows what your username is and
> getting a response of what Windows tells it. I can't verify this
> right now, but I do believe that if you navigate to C:\Documents and
> Settings\ you should find that your old usernames still exist in
> place of your new usernames. That should be verification that it is
> Windows that is acting strangely, and is not a Cygwin problem.
> 
> You can get around this by either reinstalling XP and setting up new
> usernames that are correct from the start, creating new users
> completely (not changing the names of existing users) and migrate
> your personal information to the new user profiles, or finally, just
> get used to typing quotes around your usernames or escaping the
> spaces when using Cygwin.

Yes, WinXP stores your username twice ("Full name" and "User Name") and
Cygwin uses the "hidden" one ("User Name"), but I'm pretty sure you
don't have to reinstall XP to change it!

IIRC, you can change the username from Control Panel->User
Accounts->Advanced tab->Advanced button->Users->right click on the user
and select "Rename". You might need to be Administrator to do this,
though (and it only works for local users, so if you're on a domain, you
need to contact the domain admin).

Also, as someone already said, it is trivial to replace the
names-with-spaces in the /etc/passwd file with names that have no
spaces, as long as you don't mess with the SID.

-- 
Bryan Thrall
FlightSafety International
[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: Bug Report: Purging Old and Invalid User Names With Spaces

2007-03-16 Thread Robert Peaslee

Keith Mitchell wrote:
Problem: Virgin Installs of CygWin on Windows XP work fine but a total 
purge (deletion of all CygWin files and directories) and a fresh 
reinstall with different set of usernames do not work properly, i.e., 
usernames that have been CHANGED using the XP user manager to new 
usernames. This problem occurred as a result of my changing all my 
usernames with spaces to usernames without spaces to make them Linux 
compatible.


I wanted to thank all for the responses. After many reinstallations of 
CygWin, I finally identified the problem and got things working. This 
is just a bug report documenting my discoveries and what I believe is 
going on.


1. A virgin install of CygWin makes a list of all user names on the 
system. This list is reflected in /etc/passwd after any reinstall. I 
am guessing this list is stored in the Windows XP registry as this 
list does not exist on the drive where CygWin is installed, in my 
case, the D drive. This list is NEVER updated on subsequent CygWin 
installs. This is the REAL problem: no updates on subsequent installs.


2. Subsequent installations of CygWin utilize the aforementioned out 
of date username list, even though those usernames have been changed 
and are no longer valid


3. My problems occurred as a result of a conflict between the list of 
original usernames that are no longer valid created by the first 
virgin install of CygWin and usernames that currently valid after user 
manager changes. This registry entry (or whatever the source of the 
invalid usernames) entry needs either to either be purged before or 
updated as a result of subsequent CygWin installs.


Again thanks to all.

Keith Mitchell 

Actually, this information is incorrect.

Windows XP stores the first username you choose and will associate your 
current username to it regardless of what you change it to. Cygwin 
stores nothing, it is asking Windows what your username is and getting a 
response of what Windows tells it. I can't verify this right now, but I 
do believe that if you navigate to C:\Documents and Settings\ you should 
find that your old usernames still exist in place of your new usernames. 
That should be verification that it is Windows that is acting strangely, 
and is not a Cygwin problem.


You can get around this by either reinstalling XP and setting up new 
usernames that are correct from the start, creating new users completely 
(not changing the names of existing users) and migrate your personal 
information to the new user profiles, or finally, just get used to 
typing quotes around your usernames or escaping the spaces when using 
Cygwin.


--Robert Peaslee

--
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: Bug Report: Purging Old and Invalid User Names With Spaces

2007-03-16 Thread Gustavo Seabra

Keith Mitchell wrote:
Problem: Virgin Installs of CygWin on Windows XP work fine but a total 
purge (deletion of all CygWin files and directories) and a fresh 
reinstall with different set of usernames do not work properly, i.e., 
usernames that have been CHANGED using the XP user manager to new 
usernames. This problem occurred as a result of my changing all my 
usernames with spaces to usernames without spaces to make them Linux 
compatible.


I wanted to thank all for the responses. After many reinstallations of 
CygWin, I finally identified the problem and got things working. This 
is just a bug report documenting my discoveries and what I believe is 
going on.


1. A virgin install of CygWin makes a list of all user names on the 
system. This list is reflected in /etc/passwd after any reinstall. I 
am guessing this list is stored in the Windows XP registry as this 
list does not exist on the drive where CygWin is installed, in my 
case, the D drive. This list is NEVER updated on subsequent CygWin 
installs. This is the REAL problem: no updates on subsequent installs.


2. Subsequent installations of CygWin utilize the aforementioned out 
of date username list, even though those usernames have been changed 
and are no longer valid


3. My problems occurred as a result of a conflict between the list of 
original usernames that are no longer valid created by the first 
virgin install of CygWin and usernames that currently valid after user 
manager changes. This registry entry (or whatever the source of the 
invalid usernames) entry needs either to either be purged before or 
updated as a result of subsequent CygWin installs.


Again thanks to all.

Keith Mitchell

Hi Keith,

In the end, you didn't mention HOW you solved the problem...

BTW, I had one problem with WinXP a lng time ago that could be 
related to that. I don't remember the details anymore, but the point is 
that after changing a username in WindowsXP, apparently the changes were 
made only "on the outside", meaning that I would "see" a different name 
but, internally, windows would still use the old one. Maybe what you are 
describing is really related to the way Windows handles the username 
changes, not Cygwin. (You can notice how much I "know" about that stuff, 
right :-) )


Gustavo.

--
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: sshd-started sessions don't see system environment?

2007-03-16 Thread Brian Dessent
Shankar Unni wrote:

> Ping? Has anyone else seen anything like this?

http://www.cygwin.com/ml/cygwin/2006-10/msg00729.html
http://www.cygwin.com/ml/cygwin/2006-11/msg00397.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/



Re: sshd-started sessions don't see system environment?

2007-03-16 Thread Shankar Unni

Shankar Unni wrote on 2007-03-13:


I have a very odd situation here on my Win2K3 box.

I have sshd set up, using privilege separation. I can log in as a local 
user, but the environment I see is not the same as the environment I see 
when I log in on the main desktop.


Ping? Has anyone else seen anything like this?

Is there any other information I could generate that would help debug this?

I know sshd (on Linux, etc.) tries really hard *not* to source any of 
the standard setup files like /etc/profile, etc., and quite probably 
also forces a standard environment on children it spawns.


Is this what is going on here, too?  Somehow the code ignores the system 
environment, and just copies some "well-known" subset of its environment 
to its children, or something?



--
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: mdemo ltdl failure

2007-03-16 Thread Charles Wilson

Charles Wilson wrote:


I'll whip up a patch and post it to the newlib list.


FYI, the patch is here:
http://sourceware.org/ml/newlib/2007/msg00271.html

Rebuilt cygwin-1.5.24-2 with this change, and it does fix the problem.

--
Chuck

--
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: Installing Cron on Windows 2003 Server...

2007-03-16 Thread Pedro Alves

Eric Blake wrote:

Pedro Alves  portugalmail.pt> writes:

  

Dave Korn wrote:

  Ctrl+D is a better way to close the file actually.  If you mean EOF, why 
  

not
  
*say* EOF? 
  
  

Unless you type it one time too much, and ... uupps, there goes the shell :)



Which is why I have 'set -o ignoreeof' in my ~/.bashrc.

  

Perfect!
Thanks.

Cheers,
Pedro Alves





Or you could set the IGNOREEOF environment variable.

And you don't like ^D?  Then stty can change EOF to some other sequence.

  




--
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: Bug Report: Purging Old and Invalid User Names With Spaces

2007-03-16 Thread Christopher Faylor
On Fri, Mar 16, 2007 at 04:19:35PM -0400, Keith Mitchell wrote:
>Problem: Virgin Installs of CygWin on Windows XP work fine but a total 
>purge (deletion of all CygWin files and directories) and a fresh 
>reinstall with different set of usernames do not work properly, i.e., 
>usernames that have been CHANGED using the XP user manager to new 
>usernames. This problem occurred as a result of my changing all my 
>usernames with spaces to usernames without spaces to make them Linux 
>compatible.
>
>I wanted to thank all for the responses. After many reinstallations of 
>CygWin, I finally identified the problem and got things working. This is 
>just a bug report documenting my discoveries and what I believe is going on.
>
>1. A virgin install of CygWin makes a list of all user names on the 
>system. This list is reflected in /etc/passwd after any reinstall. I am 
>guessing this list is stored in the Windows XP registry as this list 
>does not exist on the drive where CygWin is installed, in my case, the D 
>drive. This list is NEVER updated on subsequent CygWin installs. This is 
>the REAL problem: no updates on subsequent installs.

Just in case it isn't clear: *Cygwin* does not store a list of usernames
in the registry.

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/



Bug Report: Purging Old and Invalid User Names With Spaces

2007-03-16 Thread Keith Mitchell
Problem: Virgin Installs of CygWin on Windows XP work fine but a total 
purge (deletion of all CygWin files and directories) and a fresh 
reinstall with different set of usernames do not work properly, i.e., 
usernames that have been CHANGED using the XP user manager to new 
usernames. This problem occurred as a result of my changing all my 
usernames with spaces to usernames without spaces to make them Linux 
compatible.


I wanted to thank all for the responses. After many reinstallations of 
CygWin, I finally identified the problem and got things working. This is 
just a bug report documenting my discoveries and what I believe is going on.


1. A virgin install of CygWin makes a list of all user names on the 
system. This list is reflected in /etc/passwd after any reinstall. I am 
guessing this list is stored in the Windows XP registry as this list 
does not exist on the drive where CygWin is installed, in my case, the D 
drive. This list is NEVER updated on subsequent CygWin installs. This is 
the REAL problem: no updates on subsequent installs.


2. Subsequent installations of CygWin utilize the aforementioned out of 
date username list, even though those usernames have been changed and 
are no longer valid


3. My problems occurred as a result of a conflict between the list of 
original usernames that are no longer valid created by the first virgin 
install of CygWin and usernames that currently valid after user manager 
changes. This registry entry (or whatever the source of the invalid 
usernames) entry needs either to either be purged before or updated as a 
result of subsequent CygWin installs.


Again thanks to all.

Keith Mitchell

--
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: Installing Cron on Windows 2003 Server...

2007-03-16 Thread Eric Blake
Pedro Alves  portugalmail.pt> writes:

> 
> Dave Korn wrote:
> >   Ctrl+D is a better way to close the file actually.  If you mean EOF, why 
not
> > *say* EOF? 
> >   
> 
> Unless you type it one time too much, and ... uupps, there goes the shell :)

Which is why I have 'set -o ignoreeof' in my ~/.bashrc.

Or you could set the IGNOREEOF environment variable.

And you don't like ^D?  Then stty can change EOF to some other sequence.

-- 
Eric Blake



--
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: Installing Cron on Windows 2003 Server...

2007-03-16 Thread Pedro Alves

Dave Korn wrote:

  Ctrl+D is a better way to close the file actually.  If you mean EOF, why not
*say* EOF? :-)
  


Unless you type it one time too much, and ... uupps, there goes the shell :)

Cheers,
Pedro Alves



--
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: mdemo ltdl failure

2007-03-16 Thread Charles Wilson
Well, once I got the cygwin1.dbg stuff worked out, it was pretty easy to 
track down: it is a bug in newlib's argz_insert:


Charles Wilson wrote:

Here's the code from newlib's argz_insert:

error_t
_DEFUN (argz_insert, (argz, argz_len, before, entry),
   char **argz _AND
   size_t *argz_len _AND
   char *before _AND
   const char *entry)
{
  int len = 0;

  if (before == NULL)
return argz_add(argz, argz_len, entry);

  if (before < *argz || before >= *argz + *argz_len)
return EINVAL;



Note that before is always either NULL or points to some location within 
the existing *argz buffer.



  while (before != *argz && before[-1])
before--;


Because *argz contains NULL-delimited strings one after the other, if 
the user calls this function with a before that points into the middle 
of one of those strings, the preceeding two lines just back up to the 
beginning of that string (or to the beginning of the current argz, 
whichever comes first).



  len = strlen(entry) + 1;


In the failing call, we actually do a realloc...


  if(!(*argz = (char *)realloc(*argz, *argz_len + len)))
return ENOMEM;


But if we realloc the *argz buffer, then a non-NULL 'before' pointer 
will be pointing into the old, freed, *argz buffer.  So the following is 
clearly wrong, because we are copying stuff _from_ the new *argz to a 
modified location in the old (shorter) *argz -- which will overrun the 
end of the old buffer by exactly strlen(entry), and clobber stuff. 
Depending on the actual allocated locations of malloced data, this could 
include (1) like some of the the memory held by entry, or (2) some of 
the memory held by the new *argz buffer.  In this case, it is (1).



  memmove(before + len, before, *argz + *argz_len - before);


Then, we copy this clobbered entry data into the front of (the freed, 
old *argz buffer)



  memcpy(before, entry, len);

  *argz_len += len;


meanwhile, the actual (newly realloc'ed) *argz buffer just contains 
whatever was in *argz prior to the call to this function.  Worse, with 
upward malloc movement, the too-large memove above might also have 
clobbered the first several bytes of the new *argz buffer, as well.


And that's what's happening in this case.

The eventual FREE(buf) error is because the first few bytes in the 
malloc-managed memory for buf (e.g. just below *buf) which contain 
malloc bookkeeping info, are also clobbered.



  return 0;
}


I'll whip up a patch and post it to the newlib list.

--
Chuck

--
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: Using cygwin1.dbg

2007-03-16 Thread Brian Dessent
Charles Wilson wrote:

> Err, ok.  But shouldn't I be able to do source-level debugging, rather
> than asm-only?  (That is one difference between using cygwin1.dll alone,
> and with cygwin1.dbg: in the former case, cygwin calls are simply
> stepped over, even in I try to step into.  In the latter case, I can
> step into, but I get asm not source)

Yes, you should, but that's orthogonal to the popup messages.

> Hmmm--I just thought of something: do I need to replicate the source
> code path structure in the .dbg file:
> 
>/ext/build/netrel/src/cygwin-1.5.24-2/...
> 
> perhaps by using a symlink, pointing to the location that setup.exe
> actually unpacked cygwin-1.5.24-2-src.tar.bz2?
> 
>/usr/src/cygwin-1.5.24-2/...
> 
> Yep, that works.  I vaguely recall something in the gdb docs about
> overriding src paths, so that'll probably work too if I drag out TFM and
> actually R it.

Ah, that would do it.

In gdb >= 6.6 there is the "set/show substitute-path" feature for this
case.  But unfortunately the current packaged gdb is too old to contain
this.

Brian

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



Re: Accessing remote PC (ssh?)

2007-03-16 Thread Matthew Woehlke

Larry Hall (Cygwin) wrote:

I can try.  Go to "Start"->"Settings"->"Network Connections".  Click on
"Local Area Connecton".  RMB down and choose "Properties".  Look in the
box called "This connection uses the following items:".  Make sure you
have "Internet Protocol (TCP/IP)" and that it is checked.  Select it and
hit the "Properties" button.  In the "General" tab, make sure
"Obtain an IP address automatically" is selected.  Also check that
"Obtain DNS server address automatically" is selected.  Hit the "Advanced"
button and the "DNS" tab.  Make sure "Register this connection's addresses
in DNS".  If you must, you can enter your router's IP in "DNS server
addresses, in order of use:" box, though that shouldn't be required.
That should be enough.  If you don't have some of these things, with
the exception of the your router's IP address listed as a DNS server,
you want to fix all those other things first.


Ok, Larry, I have to ask... does your $50 appliance really have a DNS 
server in it too?


--
Matthew
"Have you tried that new mixed drink, 'GDR'"?
"What is it?"
"Gin, Duck and Rum. It tastes fowl."


--
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: Using cygwin1.dbg

2007-03-16 Thread Charles Wilson

Brian Dessent wrote:


This is just a bug in insight.  It has existed for some time.  There is
code in gdb to supress these errors when loading the debug file, but
when running under insight the plumbing for messages is different and so
they get displayed.  I've been meaning to look into this for quite some
time but it's just an annoyance so I never got around to it.


Err, ok.  But shouldn't I be able to do source-level debugging, rather 
than asm-only?  (That is one difference between using cygwin1.dll alone, 
and with cygwin1.dbg: in the former case, cygwin calls are simply 
stepped over, even in I try to step into.  In the latter case, I can 
step into, but I get asm not source)


Hmmm--I just thought of something: do I need to replicate the source 
code path structure in the .dbg file:


  /ext/build/netrel/src/cygwin-1.5.24-2/...

perhaps by using a symlink, pointing to the location that setup.exe 
actually unpacked cygwin-1.5.24-2-src.tar.bz2?


  /usr/src/cygwin-1.5.24-2/...

Yep, that works.  I vaguely recall something in the gdb docs about 
overriding src paths, so that'll probably work too if I drag out TFM and 
actually R it.


--
Chuck



--
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: Accessing remote PC (ssh?)

2007-03-16 Thread Larry Hall (Cygwin)

Charles D. Russell wrote:

Larry Hall (Cygwin) wrote:

  You

could check your network settings under Windows to see if it properly
points to your router for DNS.


Can this advice be reduced to a simple instruction for someone who
doesn't understand what he is doing?  One reason I use Cygwin is to
avoid having to learn anything about Windows.



I can try.  Go to "Start"->"Settings"->"Network Connections".  Click on
"Local Area Connecton".  RMB down and choose "Properties".  Look in the
box called "This connection uses the following items:".  Make sure you
have "Internet Protocol (TCP/IP)" and that it is checked.  Select it and
hit the "Properties" button.  In the "General" tab, make sure
"Obtain an IP address automatically" is selected.  Also check that
"Obtain DNS server address automatically" is selected.  Hit the "Advanced"
button and the "DNS" tab.  Make sure "Register this connection's addresses
in DNS".  If you must, you can enter your router's IP in "DNS server
addresses, in order of use:" box, though that shouldn't be required.
That should be enough.  If you don't have some of these things, with
the exception of the your router's IP address listed as a DNS server,
you want to fix all those other things first.

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



Re: Accessing remote PC (ssh?)

2007-03-16 Thread Karl M

Hi All...


From: "Charles D. Russell" Subject: Re: Accessing remote PC (ssh?)
Date: Fri, 16 Mar 2007 10:29:11 -0600

Larry Hall (Cygwin) wrote:

  You

could check your network settings under Windows to see if it properly
points to your router for DNS.


Can this advice be reduced to a simple instruction for someone who
doesn't understand what he is doing?  One reason I use Cygwin is to
avoid having to learn anything about Windows.

Simply killing known_hosts when necessary is a pretty good solution for
me, since the IP adresses seem stable for weeks at a time, perhaps until
I go out of town for a while and leases run out. I don't know whether
these leases come from Windows or from the router. If I understand
correctly, Windows XP can support a LAN even without a router.



You could also create a config file in your .ssh directory and suppress 
storing the ip address in the known_hosts file for the addresses that change 
from time to time. Try


man ssh_config

for details.

...Karl

_
Live Search Maps – find all the local information you need, right when you 
need it. http://maps.live.com/?icid=hmtag2&FORM=MGAC01



--
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: Using cygwin1.dbg

2007-03-16 Thread Brian Dessent
Charles Wilson wrote:

> When I launched gdb/insight (gdb-20060706-2) on my target app, and ran
> the target, I got two popup windows:
> 
> "section .text not found in /usr/bin/cygwin1.dbg"
> "no loadable sections found in added symbol-file /usr/bin/cygwin1.dbg"

This is just a bug in insight.  It has existed for some time.  There is
code in gdb to supress these errors when loading the debug file, but
when running under insight the plumbing for messages is different and so
they get displayed.  I've been meaning to look into this for quite some
time but it's just an annoyance so I never got around to it.

Brian

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



Re: Accessing remote PC (ssh?)

2007-03-16 Thread Charles D. Russell

Larry Hall (Cygwin) wrote:

  You

could check your network settings under Windows to see if it properly
points to your router for DNS.


Can this advice be reduced to a simple instruction for someone who
doesn't understand what he is doing?  One reason I use Cygwin is to
avoid having to learn anything about Windows.

Simply killing known_hosts when necessary is a pretty good solution for
me, since the IP adresses seem stable for weeks at a time, perhaps until
I go out of town for a while and leases run out. I don't know whether
these leases come from Windows or from the router. If I understand
correctly, Windows XP can support a LAN even without a router.

If this is a cleaner message, it is thanks to Matthew Woehlke, who
pointed me to news.gmane.org.


--
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: Most recent update broke BZR (?)

2007-03-16 Thread Thorsten Kampe
* Jeff Dooley (Fri, 16 Mar 2007 11:03:31 -0700)
> bzr: ERROR: Couldn't import bzrlib and dependencies.
> Please check bzrlib is on your PYTHONPATH.
> 
> Traceback (most recent call last):
>   File "/usr/bin/bzr", line 48, in 
> import bzrlib
> ImportError: No module named bzrlib
> 
> 
> I tried reinstalling bzr and the problem persists. Any help would be
> appreciated. Thanks!

Well, is it there or not? Which python are you using? Is bzr in site-
packages?


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



pthread question - should this program run - does on Linux

2007-03-16 Thread Brian Keener
I have been trying to get a grasp on some pthread usage starting with a couple 
simple programs.  I found this one and tried on Cygwin and didn't get what I 
expected so I tried in Linux and it worked there.  I know I have seen a lot on 
the archives about thread usage and that some things do not work (like stack 
size and stack addr) but I have also seen comments on if used properly then 
threads do work.  

I have compiled my simple program in Cygwin and Linux as 

g++ mythread_simple.cpp -o mythread_simple.exe

In Cygwin I when I compile I get this 

[EMAIL PROTECTED] /usr/tmp
$ ./mythread_simple
Starting main now
Creating thread 0

0: hello world!
Creating thread 1
Creating thread 2
Creating thread 3
Creating thread 4

At this point I have to hit CTRL-C to break out.  And when I run in in linux I 
get 

Starting main now
Creating thread 0
Creating thread 1
Creating thread 2
Creating thread 3
Creating thread 4

0: hello world!

1: hello world!

2: hello world!

3: hello world!

4: hello world!

Which is what I would expect.  I have attached the program and my cygcheck log. 
Any information, confirmation or assistance greatly appreciated.

bk





mythread_simple.cpp
Description: Binary data


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

Most recent update broke BZR (?)

2007-03-16 Thread Jeff Dooley

bzr: ERROR: Couldn't import bzrlib and dependencies.
Please check bzrlib is on your PYTHONPATH.

Traceback (most recent call last):
 File "/usr/bin/bzr", line 48, in 
   import bzrlib
ImportError: No module named bzrlib


I tried reinstalling bzr and the problem persists. Any help would be
appreciated. Thanks!

-Jeff

--
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: Using cygwin1.dbg

2007-03-16 Thread Christopher Faylor
On Fri, Mar 16, 2007 at 12:49:10PM -0500, Charles Wilson wrote:
>Christopher Faylor wrote:
>>On Fri, Mar 16, 2007 at 11:46:21AM -0500, Charles Wilson wrote:
>>>Or should I just build the kernel unstripped using cygwin-1.5.24-2-src, 
>>>and debug against that?
>>
>>Corinna has been responsible for the last few cygwin 1.5.2x releases and
>>she has a different way of generating a release than mine.  It's
>>possible that the .dbg file isn't working right or created correctly.
>
>This seems to be the case.  I finished a build of cygwin-1.5.24-2 (with 
>CFLAGS="-g -O0") but
>
> (1) the build process seems automatically to strip the dll, and 
>produce a detached .dbg file.
>
> (2) I got the similar behavior using my .dll/.dbg combo as I got with 
>the "official" pair from 1.5.24-2: popups -- but then insight died on 
>me.  FWIW, my .dbg file is much smaller than the official one: 350k vs. 
>9.5M.
>
>Is it even possible anymore to create an "old-style" debugging 
>cygwin1.dll, with integrated rather than detached debug symbols?

No.

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: Using cygwin1.dbg

2007-03-16 Thread Charles Wilson

Christopher Faylor wrote:

On Fri, Mar 16, 2007 at 11:46:21AM -0500, Charles Wilson wrote:
Or should I just build the kernel unstripped using cygwin-1.5.24-2-src, 
and debug against that?


Corinna has been responsible for the last few cygwin 1.5.2x releases and
she has a different way of generating a release than mine.  It's
possible that the .dbg file isn't working right or created correctly.


This seems to be the case.  I finished a build of cygwin-1.5.24-2 (with 
CFLAGS="-g -O0") but


 (1) the build process seems automatically to strip the dll, and 
produce a detached .dbg file.


 (2) I got the similar behavior using my .dll/.dbg combo as I got with 
the "official" pair from 1.5.24-2: popups -- but then insight died on 
me.  FWIW, my .dbg file is much smaller than the official one: 350k vs. 
9.5M.


Is it even possible anymore to create an "old-style" debugging 
cygwin1.dll, with integrated rather than detached debug symbols?



I'm generating a snapshot now.  If you try that and it doesn't work I
can look into fixing it.  I can't fix the 1.5.24 dbg problem, however,
and Corinna isn't available to look into it right now.  So, if the
snapshot works for you, you might want to just stick with that.  It's
closer to mainline CVS anyway.


OK, I'll wait for that.  It does not appear that the argz_* stuff in 
newlib has had any significant changes in the last year or so, so if I 
find the bug in 1.7.0pre it'll apply to 1.5.24-3 as well.


--
Chuck

--
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: Using cygwin1.dbg

2007-03-16 Thread Christopher Faylor
On Fri, Mar 16, 2007 at 11:46:21AM -0500, Charles Wilson wrote:
>I'm attempting to debug an issue with libtool, and it seems to be 
>related to the implementation of argz_insert and/or realloc within 
>newlib/cygwin.
>
>I'm using cygwin kernel 1.5.24-2, so I downloaded cygwin-1.5.24-2-src, 
>and copied the cygwin1.dbg file from there into /usr/bin/
>
>When I launched gdb/insight (gdb-20060706-2) on my target app, and ran 
>the target, I got two popup windows:
>
>"section .text not found in /usr/bin/cygwin1.dbg"
>"no loadable sections found in added symbol-file /usr/bin/cygwin1.dbg"
>
>After dismissing those two popups, I tried to go ahead and debug my 
>libtool problem.  However, if I try to step into cygwin kernel functions 
>-- like argz_insert or realloc -- I do not see source-level info in the 
>insight window -- I only get assembly.
>
>Is this normal/expected, and if not, what am I doing wrong and how can I 
>do source-level debugging of cygwin kernel functions using the 
>distributed .dll/.dbg files?
>
>Or should I just build the kernel unstripped using cygwin-1.5.24-2-src, 
>and debug against that?

Corinna has been responsible for the last few cygwin 1.5.2x releases and
she has a different way of generating a release than mine.  It's
possible that the .dbg file isn't working right or created correctly.

I'm generating a snapshot now.  If you try that and it doesn't work I
can look into fixing it.  I can't fix the 1.5.24 dbg problem, however,
and Corinna isn't available to look into it right now.  So, if the
snapshot works for you, you might want to just stick with that.  It's
closer to mainline CVS anyway.

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: scp doesn't copy - neither returns an error message

2007-03-16 Thread Dave Korn
On 16 March 2007 16:55, Thomas Wiedmann wrote:

>> Looks like you have a rebase problem.  Interesting that you see it with
>> 'ssh'.  Anyway, install the rebase package, read its README in
>> /usr/share/doc/Cygwin, and run 'rebaseall' as outlined there.
> 
> What is and what dows the 'rebase' package and where can I download it?

  The exact same way you get *any* cygwin package: run setup.exe and choose it
in the package selection screen/


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: scp doesn't copy - neither returns an error message

2007-03-16 Thread Thomas Wiedmann

Looks like you have a rebase problem.  Interesting that you see it with
'ssh'.  Anyway, install the rebase package, read its README in
/usr/share/doc/Cygwin, and run 'rebaseall' as outlined there.


What is and what dows the 'rebase' package and where can I download it?
I found the link http://cygwin.com/packages/rebase/, but this only contains 
some lines with directories.


Thomas Wiedmann 




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



Using cygwin1.dbg

2007-03-16 Thread Charles Wilson
I'm attempting to debug an issue with libtool, and it seems to be 
related to the implementation of argz_insert and/or realloc within 
newlib/cygwin.


I'm using cygwin kernel 1.5.24-2, so I downloaded cygwin-1.5.24-2-src, 
and copied the cygwin1.dbg file from there into /usr/bin/


When I launched gdb/insight (gdb-20060706-2) on my target app, and ran 
the target, I got two popup windows:


"section .text not found in /usr/bin/cygwin1.dbg"
"no loadable sections found in added symbol-file /usr/bin/cygwin1.dbg"

After dismissing those two popups, I tried to go ahead and debug my 
libtool problem.  However, if I try to step into cygwin kernel functions 
-- like argz_insert or realloc -- I do not see source-level info in the 
insight window -- I only get assembly.


Is this normal/expected, and if not, what am I doing wrong and how can I 
do source-level debugging of cygwin kernel functions using the 
distributed .dll/.dbg files?


Or should I just build the kernel unstripped using cygwin-1.5.24-2-src, 
and debug against that?


--
Chuck

--
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: mdemo ltdl failure

2007-03-16 Thread Charles Wilson

Dave Korn wrote:


What's odd is that this bug in argz_insert() is very ticklish: it
triggers on "tests/mdemo/Makefile", but not when argz_insert is called
with "./tests/mdemo/Makefile".


  Isn't that just exactly what you would expect, given that you're talking
about sorting things in ascii order?  The period collates very early in ascii
sort order, whereas a lower-case t comes much later; hence if you specify the
'.' you get the makefile at the start of the list instead of the end.


Ah, but in the ./ case, the sequence is:

"./tests/mdemo/config", NULL
"./tests/mdemo/foo1", NULL
"./tests/mdemo/foo2", NULL
"./tests/mdemo/libfoo2", NULL
"./tests/mdemo/libmlib", NULL
"./tests/mdemo/libsub", NULL
"./tests/mdemo/libtool", NULL
"./tests/mdemo/main", NULL
"./tests/mdemo/Makefile", == *pargz

So again, the sort order is exactly the same: everything gets 
argz_append()ed, until entry=="/Makefile" comes along, which 
needs to be argz_insert()ed.



I need to verify this using a debug-built cygwin kernel, but it looks
like within newlib's argz_insert(), the call to realloc() is not
operating correctly in this instance.


  Sounds like it should be quite easy to PPAST then.


Not really.  I remembered the business with the detached .dbg info, so 
I'm trying to use that (without success -- more in a separate thread).


--
Chuck


--
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: can't run cygrunsrv -S sshd : win32 error 1058

2007-03-16 Thread Larry Hall (Cygwin)

Yohann Rebattu wrote:

The service cannot be started, either because it is disabled or because
it has no enabled devices associated with it.The service cannot be
started, either because it is disabled or because it has no enabled
devices associated with it.

to get here i fallowed the aboves steps:

run ms-dos command line windows
type: change user /install

install cygwin with all admin tools, openssh openssl tcp wrapper, vim,
rsync.

then run ssh-host-config.

here i notice the fisrt odd thing: the sshd user is created but
disabled.
the cygwin ssh service is created.

then i run cygrunsrv -S sshd
and i got the error.

i didn't dare just activate sshd user because:
1) last time i did this it didn't correct the error
2) i just reinstall cygwin, "from scratch" (i ran cygrunsrv -R sshd,
then i deleted the entire e:\cygwin directory, and i deleted the entries
HKEY-LOCAL-MACHINE/Software cygnus solution and
HKEY/local-user/software/cygnus solution before to reinstall cygwin)

and so i still get the error.
please help me, i really don't know what to do more know, 
is there a spécial way to activate the user sshd?

doe someone know why the sshd user have been created disabled?

i'm a bit disapointed because since my first installation where i didn't
know what to do to set the ssh server up, i did install cygwin on 3
other servers with no problem, and on this particular one it doesn't
seems to work, could it be because it is a W2k server and the others
were W2k3 windows server?



Maybe.  I suggest enabling the sshd user first.  If that doesn't work,
modify the ssh-host-config script to create a user to run 'sshd' as,
which is what happens on W2K3.


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



Re: scp doesn't copy - neither returns an error message

2007-03-16 Thread Larry Hall (Cygwin)

Thomas Wiedmann wrote:

Hello,

when I tried to copy a file from a remote PC, where Suse Linux is 
installed, to my local PC, where Windows XP prof. is installed (and 
there ssh and scp on the directory C:\Programme\OpenSSH\bin\), according 
to the pattern
scp [EMAIL PROTECTED]:/dir/test.txt D:\test.txt ("user", "ip" and "dir" are 
values, changed for this newsgroup ...),


the file test.txt was not copied, but neither any error message was 
returned.



If I call the statement with the verbose option -vvv:
scp -vvv [EMAIL PROTECTED]:/dir/test.txt D:\test.txt

additionally I get the message
Executing: /usr/bin/ssh -v -x -o'ClearAllForwardings yes' -n -l user ip 
scp -v /dir/test/test.txt 'D:\test.txt'


without copying the file test.txt.



You'll experience less troubles with Cygwin tools if you use Posix-style
paths ('/' rather than '\' and use '/cygdrive/' for drive names as
required).



In the log file C:\Programme\OpenSSH\var\log\OpenSSHd.log
there is for every attempt an entry
18501265 [main] sshd 580 fork_copy: linked dll data/bss pass 0 failed,
0x3DB000..0x3DC200, done 0, windows pid 2892, Win32 error 487

1) What could be the reason for this behaviour and how can this problem 
beresolved, so that the scp command works ?

2) Which prerequisites must be met, that copying with scp works?




Looks like you have a rebase problem.  Interesting that you see it with
'ssh'.  Anyway, install the rebase package, read its README in
/usr/share/doc/Cygwin, and run 'rebaseall' as outlined there.

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



RE: mdemo ltdl failure

2007-03-16 Thread Dave Korn
On 16 March 2007 15:35, Charles Wilson wrote:

> Well, it's failing all the time for me, but I'm not sure it's a >
>>> segfault. What does "Hangup" mean, when reported by the shell after >
>>> executing the app: Good question, I don't know.

  It means SIGHUP.

> I've (almost) tracked down the error: it is caused by yet another bug in
> newlib's argz_insert() (or possibly realloc()! ), as called by
> lt_argz_insert:

  This thread should probably be on the newlib list then.

> What's odd is that this bug in argz_insert() is very ticklish: it
> triggers on "tests/mdemo/Makefile", but not when argz_insert is called
> with "./tests/mdemo/Makefile".

  Isn't that just exactly what you would expect, given that you're talking
about sorting things in ascii order?  The period collates very early in ascii
sort order, whereas a lower-case t comes much later; hence if you specify the
'.' you get the makefile at the start of the list instead of the end.

> I need to verify this using a debug-built cygwin kernel, but it looks
> like within newlib's argz_insert(), the call to realloc() is not
> operating correctly in this instance.

  Sounds like it should be quite easy to PPAST then.


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: Need help using glibmm libraries in source codes

2007-03-16 Thread Gerry Tan



Matthew Woehlke-3 wrote:
> 
> Gerry Tan wrote:
>> I've installed gtkmm-2.4 package (using cygwin installer) from which I
>> need
>> to use glibmm library in my source code, but I don't know how can I use
>> it.
>> #include doesn't work. It always says 'header file not found'
>> when
>> compiled.
> 
> Usually you need the gtkmm-devel package. Try installing that.
> 
> -- 
> Matthew
> "Have you tried that new mixed drink, 'GDR'"?
> "What is it?"
> "Gin, Duck and Rum. It tastes fowl."
> 
> 
> --
> 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/
> 
> 
> 

Thank you very much Matthew, it works now! Now I see what package with
'devel' ending means. My Unix life has just got more interesting.
-- 
View this message in context: 
http://www.nabble.com/Need-help-using-glibmm-libraries-in-source-codes-tf3414858.html#a9517290
Sent from the Cygwin Users mailing list archive at Nabble.com.


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



can't run cygrunsrv -S sshd : win32 error 1058

2007-03-16 Thread Yohann Rebattu
The service cannot be started, either because it is disabled or because
it has no enabled devices associated with it.The service cannot be
started, either because it is disabled or because it has no enabled
devices associated with it.

to get here i fallowed the aboves steps:

run ms-dos command line windows
type: change user /install

install cygwin with all admin tools, openssh openssl tcp wrapper, vim,
rsync.

then run ssh-host-config.

here i notice the fisrt odd thing: the sshd user is created but
disabled.
the cygwin ssh service is created.

then i run cygrunsrv -S sshd
and i got the error.

i didn't dare just activate sshd user because:
1) last time i did this it didn't correct the error
2) i just reinstall cygwin, "from scratch" (i ran cygrunsrv -R sshd,
then i deleted the entire e:\cygwin directory, and i deleted the entries
HKEY-LOCAL-MACHINE/Software cygnus solution and
HKEY/local-user/software/cygnus solution before to reinstall cygwin)

and so i still get the error.
please help me, i really don't know what to do more know, 
is there a spécial way to activate the user sshd?
doe someone know why the sshd user have been created disabled?

i'm a bit disapointed because since my first installation where i didn't
know what to do to set the ssh server up, i did install cygwin on 3
other servers with no problem, and on this particular one it doesn't
seems to work, could it be because it is a W2k server and the others
were W2k3 windows server?

thank you
Yohann



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



scp doesn't copy - neither returns an error message

2007-03-16 Thread Thomas Wiedmann

Hello,

when I tried to copy a file from a remote PC, where Suse Linux is installed, 
to my local PC, where Windows XP prof. is installed (and there ssh and scp 
on the directory C:\Programme\OpenSSH\bin\), according to the pattern
scp [EMAIL PROTECTED]:/dir/test.txt D:\test.txt ("user", "ip" and "dir" are values, 
changed for this newsgroup ...),


the file test.txt was not copied, but neither any error message was 
returned.



If I call the statement with the verbose option -vvv:
scp -vvv [EMAIL PROTECTED]:/dir/test.txt D:\test.txt

additionally I get the message
Executing: /usr/bin/ssh -v -x -o'ClearAllForwardings yes' -n -l user ip 
scp -v /dir/test/test.txt 'D:\test.txt'


without copying the file test.txt.


In the log file C:\Programme\OpenSSH\var\log\OpenSSHd.log
there is for every attempt an entry
18501265 [main] sshd 580 fork_copy: linked dll data/bss pass 0 failed,
0x3DB000..0x3DC200, done 0, windows pid 2892, Win32 error 487

1) What could be the reason for this behaviour and how can this problem 
beresolved, so that the scp command works ?

2) Which prerequisites must be met, that copying with scp works?


Remarks:

The remote Linux PC was accessible by the Ip address, used and the user 
entry was ok, too.

ssh also works without problems.

I know, that there is also the tool WinSCP for these purposes - regularly I 
use that.

But WinSCP fails, when a directory contains too many files (thousands ...).
By the way: In the directory, used for the statement, mentioned above, the 
directory only contains a few files.



Thanks for all good hints.


Thomas Wiedmann 




--
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: Installing Cron on Windows 2003 Server...

2007-03-16 Thread Matthew Woehlke

Dave Korn wrote:

On 15 March 2007 22:10, Matthew Woehlke wrote:


Pierre A. Humblet wrote:

It's working because we know it's trying to mail you something.
To find out what,  remove MAILTO="" and install a poor man's mailer as
follows. It will write the mail output to /cronmail.txt

~: cd /
/: cat > cronmail.sh
cat > /cronmail.txt

(NOTE: type CTRL-C after typing the above line)


  Ctrl+D is a better way to close the file actually.  If you mean EOF, why not
*say* EOF? :-)


...because CTRL-D doesn't work on all platforms, and I was too lazy to 
check if it did on Cygwin. :-)



...and shouldn't that be 'cat >> ...' instead of 'cat > ...'?


  Well, the difference would be whether you (or in this case, Kevin) want(s)
all the 'mails' to get appended to an ever-growing cronmail.txt, or want each
new 'mail' to overwrite the previous one.  For cron jobs, you often do only
care about the results from the most recent run.

  Think of it as a very simple form of logfile rotation!


I was thinking if there was more than one job, you never see the logs 
from one of them. :-) So I guess the right answer to this is situational.


--
Matthew
"Have you tried that new mixed drink, 'GDR'"?
"What is it?"
"Gin, Duck and Rum. It tastes fowl."


--
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: Need help using glibmm libraries in source codes

2007-03-16 Thread Matthew Woehlke

Gerry Tan wrote:

I've installed gtkmm-2.4 package (using cygwin installer) from which I need
to use glibmm library in my source code, but I don't know how can I use it.
#include doesn't work. It always says 'header file not found' when
compiled.


Usually you need the gtkmm-devel package. Try installing that.

--
Matthew
"Have you tried that new mixed drink, 'GDR'"?
"What is it?"
"Gin, Duck and Rum. It tastes fowl."


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



Need help using glibmm libraries in source codes

2007-03-16 Thread Gerry Tan

I've installed gtkmm-2.4 package (using cygwin installer) from which I need
to use glibmm library in my source code, but I don't know how can I use it.
#include doesn't work. It always says 'header file not found' when
compiled.

I've googled & searched docs for about 2hr but still stuck in this. I also
read that I should do 'pkg-config gtkmm-2.4 --libs --cflags' but it always
says :

Package gtkmm-2.4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtkmm-2.4.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtkmm-2.4' found

I don't know which directory is gtkmm-2.4.pc is located. I've tried search
the whole Cygwin directory but can't find it. I'm 100% sure cygwin package
manager said I've got gtkmm-2.4 installed. Please help. Thanks

Gerry Tan
-- 
View this message in context: 
http://www.nabble.com/Need-help-using-glibmm-libraries-in-source-codes-tf3414858.html#a9515714
Sent from the Cygwin Users mailing list archive at Nabble.com.


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



Re: Escape sequences are not interpreted

2007-03-16 Thread Vinod Gupta

On 2007-03-15 23:46, Igor Peshansky wrote:

On Thu, 15 Mar 2007, Vinod Gupta wrote:

  

When I look at a man page in a bash window under cygwin, I see that
video escape sequences are not interpreted. My TERM is set to "xterm" in
an xterm window and "cygwin" in a DOS window. LANG variables are set to
en_US. As an example, here are a few lines from the screen dump of "man
cygwin"

INTRO(3)CygwinINTRO(3)

ESC[1mNAMEESC[0m
ESC[1mintro ESC[22m- Introduction to the Cygwin API

ESC[1mDESCRIPTIONESC[0m
ESC[1mCygwin  ESC[22mis  a  Linux-like  environment  for Windows. It
consists of two parts:
...
...

If I "echo ${ESCSEQ} some-text" then the escape sequence is correctly
interpreted. Problem occurs only during man pages.

Any suggestions?



Sure.  A Google search for "cygwin man esc" produces quite a few hits with
a fix for this.  In particular, the most recent suggestions are to check
the values of PAGER and MANPAGER (which we would have seen had you
followed
  



My PAGER variable was set to "less" I have changed it to "less -r" that 
fixed the problem.


Thanks,
Vinod


--
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: Installing Cron on Windows 2003 Server...

2007-03-16 Thread Dave Korn
On 15 March 2007 22:10, Matthew Woehlke wrote:

> Pierre A. Humblet wrote:
>> It's working because we know it's trying to mail you something.
>> To find out what,  remove MAILTO="" and install a poor man's mailer as
>> follows. It will write the mail output to /cronmail.txt
>> 
>> ~: cd /
>> /: cat > cronmail.sh
>> cat > /cronmail.txt
> 
> (NOTE: type CTRL-C after typing the above line)

  Ctrl+D is a better way to close the file actually.  If you mean EOF, why not
*say* EOF? :-)

> 
> ...and shouldn't that be 'cat >> ...' instead of 'cat > ...'?

  Well, the difference would be whether you (or in this case, Kevin) want(s)
all the 'mails' to get appended to an ever-growing cronmail.txt, or want each
new 'mail' to overwrite the previous one.  For cron jobs, you often do only
care about the results from the most recent run.

  Think of it as a very simple form of logfile rotation!


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/