Re: Cannot exec() program outside of /bin if PATH is unset

2014-09-14 Thread Csaba Raduly
On Fri, Sep 12, 2014 at 9:33 PM, Eric Blake  wrote:
> On 09/12/2014 11:02 AM, Christian Franke wrote:
(snip)
>>
>> int main()
>> {
>>   unsetenv("PATH");
>
> This is undefined behavior, per POSIX.  POSIX recommends that you always
> leave PATH defined to at least a bare minimum of the results of
> confstr(_CS_PATH, ...); it also states that implementations are free to
> do what they want (in this case, crash) if you don't follow the
> recommendation:
>
> http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html
> "If PATH is unset or is set to null, the path search is
> implementation-defined."

Nitpick: undefined != implementation-defined

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

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



Re: Using DLL compiled with Cygwin inside Visual Studio 2010

2014-09-14 Thread איציק בק
>>I've read already tremendous amount of articles, tutorials, and
>>instructions about how to solve my problem - but still - no gain. I
>>just can't put it into work.

>>My goal is pretty simple: I want to compile a DLL file using Cygwin
>>gcc tool, and then use it within MSVC2010.

>see https://cygwin.com/faq.html#faq.programming.msvcrt-and-cygwin

Ok, so I guess my problem is linking against cygwin1.dll *and*
msvcrt.dll together. right?
A. How do I solve that? I assume I should link only against
cygwin1.dll, since I need it for my dll, right?
But how do I prevent Visual Studio to link against msvcrt.dll as well?

B. **OFF-TOPIC**: How can I reply to a specific message in the mailing list?
I'm pretty sure that just mention the same title won't be enough. even
tho that what I'm trying to do right now...
I'm not subscribed to the list, so I can't just hit the "Reply" in my
mail (http gmail).
I've tried to look everywhere, got even for several mailing-list FAQ's
(non-cygwin related), but found nothing.

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



Re: Using DLL compiled with Cygwin inside Visual Studio 2010

2014-09-14 Thread Csaba Raduly
Hi,

On Sun, Sep 14, 2014 at 11:40 AM, איציק בק  wrote:
>
> B. **OFF-TOPIC**: How can I reply to a specific message in the mailing list?
> I'm pretty sure that just mention the same title won't be enough. even
> tho that what I'm trying to do right now...
> I'm not subscribed to the list, so I can't just hit the "Reply" in my
> mail (http gmail).

You could try hitting Reply and manually adding the mailing list
address (c...@c... . com),  or replacing the list of recipients with
it.

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

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



[ANNOUNCEMENT] Updated: fossil 20140612172556-3 -- DVCS with built-in wiki, http server and issue tracker

2014-09-14 Thread Jari Aalto

PACKAGE DESCRIPTION
===

Homepage: http://freecode.com/projects/fossil
License : BSD-2-Clause

A single binary distributed version control which utilizes
SQLite database backend for storage metadata. The self contained
binary includes also issue tracker, wiki enginea and built in web
server to serve everything; including the repositories. Fossil uses
plain HTTP, with proxy support, for all network communications.
Autosync feature helps to keep repositories and ther distributed issue
trackers up to date without need for separate merging.

CHANGES SINCE LAST RELEASE
==

Cygwin: add sqlite dependency to setup.hint
(Thanks: Scott Robison scott casaderobison com)

See http://www.fossil-scm.org/index.html/timeline

INSTALL OR UPGRADE NOTES


Standard install.

CYGWIN INSTALLATION INFORMATION
===

To install this package, click on the "Install Cygwin now" link on the
 web page. This downloads setup.exe to your
system. Then, run setup and answer all of the questions. You'll find
the package listed in the "All" category. After installation, read the
documentation at directories:

/usr/share/doc//*
/usr/share/doc/Cygwin/.README

If you have questions or comments, please send them to the Cygwin
mailing list at .

CYGWIN-ANNOUNCE UNSUBSCRIBE INFO


This message has been sent to cygwin-announce list.

If you want to unsubscribe from the mailing list, look at the
"List-Unsubscribe: " tag in the email header of this message. Send
email to the address specified there. It will be in the format:

cygwin-announce-unsubscribe-you=yourdomain.com(at)cygwin.com

More information on unsubscribing can be found:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at the above URL.

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



/usr/bin/install doesn't install files from Makefile

2014-09-14 Thread Michael Osipov

Hi,

I am trying to install an application which autoconf. While configure 
and make run fine, make install does it's job but no files and 
directories are created at the end. As if no action has happened.


I am building asciidoc-8.6.9 from source. I am on Windows XP SP3.

How can I figure out why install is silently failing?

Thanks,

Michael

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



Re: /usr/bin/install doesn't install files from Makefile

2014-09-14 Thread Marco Atzeri



On 14/09/2014 13:16, Michael Osipov wrote:

Hi,

I am trying to install an application which autoconf. While configure
and make run fine, make install does it's job but no files and
directories are created at the end. As if no action has happened.

I am building asciidoc-8.6.9 from source. I am on Windows XP SP3.

How can I figure out why install is silently failing?

Thanks,

Michael


Is eventually installing in /usr/local ?

Marco


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



Re: Using DLL compiled with Cygwin inside Visual Studio 2010

2014-09-14 Thread Andrey Repin
Greetings, Csaba Raduly!

>> B. **OFF-TOPIC**: How can I reply to a specific message in the mailing list?
>> I'm pretty sure that just mention the same title won't be enough. even
>> tho that what I'm trying to do right now...
>> I'm not subscribed to the list, so I can't just hit the "Reply" in my
>> mail (http gmail).

> You could try hitting Reply and manually adding the mailing list
> address (c...@c... . com),  or replacing the list of recipients with
> it.

Reply to what?… He's not subscribed.


--
WBR,
Andrey Repin (anrdae...@yandex.ru) 14.09.2014, <18:23>

Sorry for my terrible english...

Re: Re: /usr/bin/install doesn't install files from Makefile

2014-09-14 Thread Michael Osipov
> On 14/09/2014 13:16, Michael Osipov wrote:
> > Hi,
> >
> > I am trying to install an application which autoconf. While configure
> > and make run fine, make install does it's job but no files and
> > directories are created at the end. As if no action has happened.
> >
> > I am building asciidoc-8.6.9 from source. I am on Windows XP SP3.
> >
> > How can I figure out why install is silently failing?
> >
> > Thanks,
> >
> > Michael
> 
> Is eventually installing in /usr/local ?

It is indeed. I have also changed --prefix=$HOME/asciidoc. No avail also.

Michael

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



Re: /usr/bin/install doesn't install files from Makefile

2014-09-14 Thread Marco Atzeri



On 14/09/2014 19:28, Michael Osipov wrote:

On 14/09/2014 13:16, Michael Osipov wrote:

Hi,

I am trying to install an application which autoconf. While configure
and make run fine, make install does it's job but no files and
directories are created at the end. As if no action has happened.

I am building asciidoc-8.6.9 from source. I am on Windows XP SP3.

How can I figure out why install is silently failing?

Thanks,

Michael


Is eventually installing in /usr/local ?


It is indeed. I have also changed --prefix=$HOME/asciidoc. No avail also.


that should work at configure step

look on config.log for  "prefix= .." setting



Michael


MArco


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



Re: Using DLL compiled with Cygwin inside Visual Studio 2010

2014-09-14 Thread Mark Geisert
איציק בק writes:
> B. **OFF-TOPIC**: How can I reply to a specific message in the mailing list?
> I'm pretty sure that just mention the same title won't be enough. even
> tho that what I'm trying to do right now...
> I'm not subscribed to the list, so I can't just hit the "Reply" in my
> mail (http gmail).
> I've tried to look everywhere, got even for several mailing-list FAQ's
> (non-cygwin related), but found nothing.

Use a gateway such as http://news.gmane.org.  The main Cygwin mailing list
can be read under gmane.os.cygwin there.  You can followup individual posts
and the subject threading is done correctly.  Works great except for
occasional delays in seeing list traffic show up there.

..mark


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



Fwd: Need help port forwarding with ssh and cygwin...

2014-09-14 Thread Steven Dennis
Hello,

I am having trouble using rsync and ssh from a ubuntu server.  Right
now I have cynwin64 on my windows 8.1 x64 machine.  Right now I have
no problems using the rsync command from my local machine to get files
from the ubuntu server back to my windows machine, however I would
like to have the files "pushed" from my ubuntu machine to my local
machine via an opened port over ssh.

I know the IP address of my computer running cygwin and I have set up
my router to forward a single port and a range of ports to this
machine.  I have also changed the windows firewall settings to allow
stuff in bound for these ports.  I can use my public IP address to
access my router web page so this confirms that I am using the correct
IP address.  I am just not sure if cynwin64 can be used this way.

So here is what I am having trouble with:
I ssh over the typical port (22 I think) into my ubuntu server which
is ~ 4000 miles away and I run the following command

rsync --update --ignore-existing --progress -vure 'ssh -p 29501'
/home/username/downloads/1/ /k...@xxx.xxx.xxx.xxx/cygdrive/e/1

This usually gives me the following error

rsync: mkdir "/k...@xxx.xxx.xxx.xxx/cygdrive/e/1" failed: No such file
or directory (2)

Thanks
-S

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



Re: Fwd: Need help port forwarding with ssh and cygwin...

2014-09-14 Thread David Rothenberger
On 9/14/2014 4:24 PM, Steven Dennis wrote:
> rsync --update --ignore-existing --progress -vure 'ssh -p 29501'
> /home/username/downloads/1/ /k...@xxx.xxx.xxx.xxx/cygdrive/e/1
> 
> This usually gives me the following error
> 
> rsync: mkdir "/k...@xxx.xxx.xxx.xxx/cygdrive/e/1" failed: No such file
> or directory (2)

Leave off the / before kira.

rsync --update --ignore-existing --progress -vure 'ssh -p 29501'
/home/username/downloads/1/ k...@xxx.xxx.xxx.xxx/cygdrive/e/1

If that doesn't work, ensure that you can ssh: ssh k...@xxx.xxx.xxx.xxx.

-- 
David Rothenberger    daver...@acm.org

toilet toup'

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



Fwd: Re: Fwd: Need help port forwarding with ssh and cygwin...

2014-09-14 Thread Steven Dennis
> Thanks.  What does ssh: ssh k...@xxx.xxx.xxx.xxx do?
>
> On Sep 14, 2014 4:50 PM, "David Rothenberger"  wrote:
>>
>> On 9/14/2014 4:24 PM, Steven Dennis wrote:
>> > rsync --update --ignore-existing --progress -vure 'ssh -p 29501'
>> > /home/username/downloads/1/ /k...@xxx.xxx.xxx.xxx/cygdrive/e/1
>> >
>> > This usually gives me the following error
>> >
>> > rsync: mkdir "/k...@xxx.xxx.xxx.xxx/cygdrive/e/1" failed: No such file
>> > or directory (2)
>>
>> Leave off the / before kira.
>>
>> rsync --update --ignore-existing --progress -vure 'ssh -p 29501'
>> /home/username/downloads/1/ k...@xxx.xxx.xxx.xxx/cygdrive/e/1
>>
>> If that doesn't work, ensure that you can ssh: ssh k...@xxx.xxx.xxx.xxx.
>>
>> --
>> David Rothenberger    daver...@acm.org
>>
>> toilet toup'
>>
>> --
>> Problem reports:   http://cygwin.com/problems.html
>> FAQ:   http://cygwin.com/faq/
>> Documentation: http://cygwin.com/docs.html
>> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
>>

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



Re: Fwd: Need help port forwarding with ssh and cygwin...

2014-09-14 Thread Steven Dennis
Ok so I think that the problem is with connecting from my server to my
local computer over ssh.  I ssh to my server and then issued a ssh
k...@xxx.xxx.xxx.xxx and got the following error.

ssh: connect to host XXX.XXX.XXX.XXX port 22: Connection timed out

On Sun, Sep 14, 2014 at 4:50 PM, David Rothenberger  wrote:
> On 9/14/2014 4:24 PM, Steven Dennis wrote:
>> rsync --update --ignore-existing --progress -vure 'ssh -p 29501'
>> /home/username/downloads/1/ /k...@xxx.xxx.xxx.xxx/cygdrive/e/1
>>
>> This usually gives me the following error
>>
>> rsync: mkdir "/k...@xxx.xxx.xxx.xxx/cygdrive/e/1" failed: No such file
>> or directory (2)
>
> Leave off the / before kira.
>
> rsync --update --ignore-existing --progress -vure 'ssh -p 29501'
> /home/username/downloads/1/ k...@xxx.xxx.xxx.xxx/cygdrive/e/1
>
> If that doesn't work, ensure that you can ssh: ssh k...@xxx.xxx.xxx.xxx.
>
> --
> David Rothenberger    daver...@acm.org
>
> toilet toup'
>
> --
> Problem reports:   http://cygwin.com/problems.html
> FAQ:   http://cygwin.com/faq/
> Documentation: http://cygwin.com/docs.html
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
>

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



Re: Fwd: Need help port forwarding with ssh and cygwin...

2014-09-14 Thread David Rothenberger
On 9/14/2014 6:35 PM, Steven Dennis wrote:
> Ok so I think that the problem is with connecting from my server to my
> local computer over ssh.  I ssh to my server and then issued a ssh
> k...@xxx.xxx.xxx.xxx and got the following error.
> 
> ssh: connect to host XXX.XXX.XXX.XXX port 22: Connection timed out

Have you setup the ssh server on your local computer by running
"ssh-host-config" as an admin user? If so, is the sshd service running?

The first thing to get working is the ssh server. Make sure you can do
"ssh localhost" from your Cygwin computer. If that works, then there is
some firewall blocking the connection. If that doesn't, look at
/var/log/sshd.log to see why the sshd service didn't start.

-- 
David Rothenberger    daver...@acm.org

"Buy land.  They've stopped making it."
-- Mark Twain

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



Re: Fwd: Need help port forwarding with ssh and cygwin...

2014-09-14 Thread Steven Dennis
Thank you so much.  I didn't realize that I needed to do this.  This
is a little over my head so thanks for the help.  I did a
ssh-host-config and followed the instructions, rebooted the computer
and then did a ssh localhost.

Here is what I got
$ ssh localhost
The authenticity of host 'localhost (::1)' can't be established.
ECDSA key fingerprint is 12:e6:5d:c7:e0:2a:5f:60:dd:2c:69:8e:40:26:25:63.
Are you sure you want to continue connecting (yes/no)?

On Sun, Sep 14, 2014 at 7:16 PM, David Rothenberger  wrote:
> On 9/14/2014 6:35 PM, Steven Dennis wrote:
>> Ok so I think that the problem is with connecting from my server to my
>> local computer over ssh.  I ssh to my server and then issued a ssh
>> k...@xxx.xxx.xxx.xxx and got the following error.
>>
>> ssh: connect to host XXX.XXX.XXX.XXX port 22: Connection timed out
>
> Have you setup the ssh server on your local computer by running
> "ssh-host-config" as an admin user? If so, is the sshd service running?
>
> The first thing to get working is the ssh server. Make sure you can do
> "ssh localhost" from your Cygwin computer. If that works, then there is
> some firewall blocking the connection. If that doesn't, look at
> /var/log/sshd.log to see why the sshd service didn't start.
>
> --
> David Rothenberger    daver...@acm.org
>
> "Buy land.  They've stopped making it."
> -- Mark Twain
>
> --
> Problem reports:   http://cygwin.com/problems.html
> FAQ:   http://cygwin.com/faq/
> Documentation: http://cygwin.com/docs.html
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
>

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



Re: Fwd: Need help port forwarding with ssh and cygwin...

2014-09-14 Thread Steven Dennis
Forgot to include this

Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
Write failed: Broken pipe

On Sun, Sep 14, 2014 at 7:16 PM, David Rothenberger  wrote:
> On 9/14/2014 6:35 PM, Steven Dennis wrote:
>> Ok so I think that the problem is with connecting from my server to my
>> local computer over ssh.  I ssh to my server and then issued a ssh
>> k...@xxx.xxx.xxx.xxx and got the following error.
>>
>> ssh: connect to host XXX.XXX.XXX.XXX port 22: Connection timed out
>
> Have you setup the ssh server on your local computer by running
> "ssh-host-config" as an admin user? If so, is the sshd service running?
>
> The first thing to get working is the ssh server. Make sure you can do
> "ssh localhost" from your Cygwin computer. If that works, then there is
> some firewall blocking the connection. If that doesn't, look at
> /var/log/sshd.log to see why the sshd service didn't start.
>
> --
> David Rothenberger    daver...@acm.org
>
> "Buy land.  They've stopped making it."
> -- Mark Twain
>
> --
> Problem reports:   http://cygwin.com/problems.html
> FAQ:   http://cygwin.com/faq/
> Documentation: http://cygwin.com/docs.html
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
>

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



Re: Fwd: Need help port forwarding with ssh and cygwin...

2014-09-14 Thread Steven Dennis
So I went to

http://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.htm

and I am kind of stuck at 5.4.4 where it recommends

Backup the c:\cygwin\etc\passwd file and then use any editor to open
the file in edit mode. Remove only those entries of the user that you
will use to connect to the host on which you want to install a
Management Agent. Ask the user to make a backup of the
c:\cygwin\etc\passwd file before editing.

I am over my head with this.  Which ones do I remove?  And then the
next step leaves me even deeper under water.

Waiting for your help.  Thanks

On Sun, Sep 14, 2014 at 8:06 PM, Steven Dennis  wrote:
> Forgot to include this
>
> Are you sure you want to continue connecting (yes/no)? yes
> Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
> Write failed: Broken pipe
>
> On Sun, Sep 14, 2014 at 7:16 PM, David Rothenberger  wrote:
>> On 9/14/2014 6:35 PM, Steven Dennis wrote:
>>> Ok so I think that the problem is with connecting from my server to my
>>> local computer over ssh.  I ssh to my server and then issued a ssh
>>> k...@xxx.xxx.xxx.xxx and got the following error.
>>>
>>> ssh: connect to host XXX.XXX.XXX.XXX port 22: Connection timed out
>>
>> Have you setup the ssh server on your local computer by running
>> "ssh-host-config" as an admin user? If so, is the sshd service running?
>>
>> The first thing to get working is the ssh server. Make sure you can do
>> "ssh localhost" from your Cygwin computer. If that works, then there is
>> some firewall blocking the connection. If that doesn't, look at
>> /var/log/sshd.log to see why the sshd service didn't start.
>>
>> --
>> David Rothenberger    daver...@acm.org
>>
>> "Buy land.  They've stopped making it."
>> -- Mark Twain
>>
>> --
>> Problem reports:   http://cygwin.com/problems.html
>> FAQ:   http://cygwin.com/faq/
>> Documentation: http://cygwin.com/docs.html
>> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
>>

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