Re: Help understanding why a mount command is not working and how to fix it

2024-09-13 Thread Eliot Moss via Cygwin

On 9/9/2024 4:39 PM, René Berber via Cygwin wrote:

On 9/9/2024 12:23 PM, Eliot Moss via Cygwin wrote:


Dear Cygwiners --

For convenience, I would like to mount my OneDrive folder under / cygdrive/o.

I put this line in my /etc/fstab:

c:/Users/Eliot\040Moss/OneDrive /cygdrive/o ntfs binary,noacl,posix=0,user 0 0

However, /cygdrive/o is not created.  Manually doing this:

   mount -obinary,noacl,posix=0,user "/c/Users/Eliot Moss/OneDrive" /foo

results in this output if /foo does not exist:

mount: warning - /foo does not exist.
mount: /foo: Invalid argument


Just tested this, I get the warning and /foo is created anyway and the 
directory is mounted there.

I do not get the second line (invalid agument).

Check if mount did its job.

I'm using ...

$ mount -V
mount (cygwin) 3.5.4
Mount filesystem utility

$ uname -a
CYGWIN_NT-10.0-22631 XPS-8930 3.5.4-1.x86_64 2024-08-25 16:52 UTC x86_64 Cygwin



and this output if I do mkdir /foo first:

mount: /foo: Invalid argument

Using \040 instead of the space for the quoted command line argument
gives the same behavior.

Hints on how to make this mount work?

Best wishes - Eliot Moss






I ended up creating a binding from O: to this network drive:

\\localhost\c$\users\Eliot Moss\OneDrive

Then drive o appeared in cygdrive.  It was the Windows part of this that was
obscure.  (Seems strange to set up a *network* drive to a local file system.)

Best - Eliot

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


Re: Help understanding why a mount command is not working and how to fix it

2024-09-10 Thread Andrey Repin via Cygwin
Greetings, Eliot Moss!

> Dear Cygwiners --

> For convenience, I would like to mount my OneDrive folder under /cygdrive/o.

> I put this line in my /etc/fstab:

> c:/Users/Eliot\040Moss/OneDrive /cygdrive/o ntfs binary,noacl,posix=0,user 0 0

/cygdrive is a system entry point. Manually placing anything there is asking
for trouble down the road.

> However, /cygdrive/o is not created.  Manually doing this:

I've yet to see a system, where `ls -l /cygdrive` lists the drives, but they
do work if pointed directly at.

>mount -obinary,noacl,posix=0,user "/c/Users/Eliot Moss/OneDrive" /foo

subst O: "C:\Users\Eliot Moss\OneDrive"

Then you could simply access it as /cygdrive/o as you wished.

> results in this output if /foo does not exist:

> mount: warning - /foo does not exist.
> mount: /foo: Invalid argument

> and this output if I do mkdir /foo first:

> mount: /foo: Invalid argument

`-o binary,…`

> Hints on how to make this mount work?


-- 
With best regards,
Andrey Repin
Tuesday, September 10, 2024 11:11:23

Sorry for my terrible english...

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


Re: Help understanding why a mount command is not working and how to fix it

2024-09-09 Thread José Isaías Cabrera via Cygwin


On Monday, September 9, 2024 02:23 PM, Eliot Moss expressed:
>
> Dear Cygwiners --
>
> For convenience, I would like to mount my OneDrive folder under /cygdrive/o.

If mount does not work, what I did was to map it to a Windows drive (O:) and 
then use cygdrive (/cygdrive/o/) to do my rsync calls. Ihth.

josé

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


Re: Help understanding why a mount command is not working and how to fix it

2024-09-09 Thread René Berber via Cygwin

On 9/9/2024 12:23 PM, Eliot Moss via Cygwin wrote:


Dear Cygwiners --

For convenience, I would like to mount my OneDrive folder under / 
cygdrive/o.


I put this line in my /etc/fstab:

c:/Users/Eliot\040Moss/OneDrive /cygdrive/o ntfs 
binary,noacl,posix=0,user 0 0


However, /cygdrive/o is not created.  Manually doing this:

   mount -obinary,noacl,posix=0,user "/c/Users/Eliot Moss/OneDrive" /foo

results in this output if /foo does not exist:

mount: warning - /foo does not exist.
mount: /foo: Invalid argument


Just tested this, I get the warning and /foo is created anyway and the 
directory is mounted there.


I do not get the second line (invalid agument).

Check if mount did its job.

I'm using ...

$ mount -V
mount (cygwin) 3.5.4
Mount filesystem utility

$ uname -a
CYGWIN_NT-10.0-22631 XPS-8930 3.5.4-1.x86_64 2024-08-25 16:52 UTC x86_64 
Cygwin




and this output if I do mkdir /foo first:

mount: /foo: Invalid argument

Using \040 instead of the space for the quoted command line argument
gives the same behavior.

Hints on how to make this mount work?

Best wishes - Eliot Moss




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


Help understanding why a mount command is not working and how to fix it

2024-09-09 Thread Eliot Moss via Cygwin

Dear Cygwiners --

For convenience, I would like to mount my OneDrive folder under /cygdrive/o.

I put this line in my /etc/fstab:

c:/Users/Eliot\040Moss/OneDrive /cygdrive/o ntfs binary,noacl,posix=0,user 0 0

However, /cygdrive/o is not created.  Manually doing this:

  mount -obinary,noacl,posix=0,user "/c/Users/Eliot Moss/OneDrive" /foo

results in this output if /foo does not exist:

mount: warning - /foo does not exist.
mount: /foo: Invalid argument

and this output if I do mkdir /foo first:

mount: /foo: Invalid argument

Using \040 instead of the space for the quoted command line argument
gives the same behavior.

Hints on how to make this mount work?

Best wishes - Eliot Moss

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


this might help if it is actually broken in the meantime (from chatgpt)

2024-08-29 Thread Jim McNamara via Cygwin
Method 3: Edit the setup.ini File Manually
Download the Latest Cygwin Setup Files:

Obtain the setup.ini file from the Cygwin repository or mirror.
Edit setup.ini:

Open setup.ini in a text editor and manually ensure that the package version 
you want to keep is correctly listed and not marked for update.
Run Cygwin Setup:

Use the modified setup.ini to install or update packages according to your 
requirements.
Example Workflow Using apt-cyg and Cygwin Setup
Here is a step-by-step approach to managing packages with apt-cyg:

Install apt-cyg:

bash
Copy code
wget https://github.com/apt-cyg/apt-cyg/raw/master/apt-cyg
install apt-cyg /bin
Check Installed Packages:

bash
Copy code
apt-cyg list
Avoid Upgrades:

Avoid running apt-cyg update and apt-cyg upgrade if you want to maintain 
current versions.
Use Cygwin Setup for Pinning:

Run the setup executable, select the "Keep" option for the packages you want to 
prevent from upgrading, and reconfigure Cygwin as needed.
Summary
Direct Pinning: apt-cyg does not directly support version pinning.
Workaround: Use the Cygwin setup tool to select "Keep" for specific packages to 
prevent them from being upgraded.
Manual Management: Avoid running apt-cyg upgrade commands to maintain current 
package versions.
While apt-cyg simplifies package management, leveraging Cygwin's setup tool and 
manual methods are necessary to effectively control package versions and 
prevent unwanted updates.



You said:
how to install with apt-cyg and how to avoid upgrade with apt-cyg
ChatGPT said:
ChatGPT
apt-cyg is a command-line package manager for Cygwin that simplifies the 
process of installing, updating, and removing packages. However, it does not 
directly support pinning or holding packages to prevent them from being 
upgraded, similar to apt-mark hold in Debian-based systems. Here’s a guide on 
how to use apt-cyg to install packages and avoid upgrades:

Installing Packages with apt-cyg
Install apt-cyg:

First, you need to install apt-cyg if you haven't already:

bash
Copy code
wget https://github.com/apt-cyg/apt-cyg/raw/master/apt-cyg
install apt-cyg /bin
Update Package List:

Before installing, update the package list to ensure you have the latest 
package information:

bash
Copy code
apt-cyg update
Search for Packages:

If you are unsure of the exact package name, you can search for it:

bash
Copy code
apt-cyg search package-name
Install a Package:

Install a package using the install command. For example, to install wget:

bash
Copy code
apt-cyg install wget
Avoiding Package Upgrades with apt-cyg
apt-cyg does not have a direct mechanism to prevent specific packages from 
being upgraded. Here’s how you can manage this situation:

Method 1: Avoid Running Upgrade Commands
Avoid Upgrade Command:

Simply avoid using the apt-cyg upgrade command, which updates all installed 
packages to the latest versions. If you don’t run this command, your installed 
packages will not be updated.

bash
Copy code
apt-cyg upgrade
Manually Manage Updates:

If you need to update other packages but want to avoid updating specific ones, 
you’ll need to manually handle package management.

Method 2: Use Cygwin Setup Tool for Pinning
To effectively hold specific package versions, you might need to use the Cygwin 
setup tool instead of apt-cyg:

Download Cygwin Setup:

Go to the Cygwin website and download the Cygwin setup executable 
(setup-x86_64.exe or setup-x86.exe).
Run Cygwin Setup:

Execute the setup program.
Set Packages to "Keep":

In the package selection step, locate the packages you want to pin.
Set these packages to "Keep" instead of "Default" or "Install."
Complete the Installation:

Continue with the setup process to apply these changes. The "Keep" option 
ensures that these packages are not upgraded.
Method 3: Manually Prevent Upgrades
Use setup.ini for Manual Management:

Download or locate the setup.ini file from your Cygwin repository.
Edit this file to ensure that the package versions you want to keep are listed 
as you desire.
Run Cygwin Setup with Modified setup.ini:

Use the modified setup.ini to run the Cygwin setup and maintain your package 
versions.
Summary
Installing Packages: Use apt-cyg install package-name to install packages.
Avoiding Upgrades: To prevent upgrades, avoid running apt-cyg upgrade. For more 
precise control, use the Cygwin setup tool to pin packages by selecting "Keep."
Manual Management: Edit the setup.ini file or use Cygwin's setup program for 
detailed package version management.

thanks,
jim




Sent with Proton Mail secure email.

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


Re: Need help in getting the Cygwin 2.8.0 and 2.8.1 sources packages

2024-08-27 Thread Eliot Moss via Cygwin

On 8/26/2024 11:40 PM, Takashi Yano via Cygwin wrote:

On Mon, 26 Aug 2024 07:25:55 +
"Krishna, Chaitra via Cygwin"  wrote:

In 2017, we qualified our programs using Cygwin 2.8.1. Unfortunately, we no 
longer have the source code packages and have been unable to locate them 
online. Could you please assist us by providing any links, sites, or 
repositories where we can download the source packages for Cygwin 2.8.0 and 
2.8.1?


git clone https://cygwin.com/git/newlib-cygwin.git --depth 1 -b 
cygwin-2_8_0-release
git clone https://cygwin.com/git/newlib-cygwin.git --depth 1 -b 
cygwin-2_8_1-release



This answers the question if it was just about the cygwin dll.  If you,
Chaitra, were referring to source for *all* the packages, they are not grouped
into releases.  Each package is updated on its own schedule by the volunteer
managing it.  Thus the whole system is one of rolling releases.  You would
need to know the specific version number of each package.  The time machine
can help with with, I believe.  It is kept here:

http://www.crouchingtigerhiddenfruitbat.org/Cygwin/timemachine.html

You can scroll down a little in that page to find the "Dead Simple
Instructions".  HTH

Eliot Moss

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


Re: Need help in getting the Cygwin 2.8.0 and 2.8.1 sources packages

2024-08-26 Thread Takashi Yano via Cygwin
On Mon, 26 Aug 2024 07:25:55 +
"Krishna, Chaitra via Cygwin"  wrote:
> In 2017, we qualified our programs using Cygwin 2.8.1. Unfortunately, we no 
> longer have the source code packages and have been unable to locate them 
> online. Could you please assist us by providing any links, sites, or 
> repositories where we can download the source packages for Cygwin 2.8.0 and 
> 2.8.1?

git clone https://cygwin.com/git/newlib-cygwin.git --depth 1 -b 
cygwin-2_8_0-release
git clone https://cygwin.com/git/newlib-cygwin.git --depth 1 -b 
cygwin-2_8_1-release

-- 
Takashi Yano 

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


Need help in getting the Cygwin 2.8.0 and 2.8.1 sources packages

2024-08-26 Thread Krishna, Chaitra via Cygwin
Hi,


In 2017, we qualified our programs using Cygwin 2.8.1. Unfortunately, we no 
longer have the source code packages and have been unable to locate them 
online. Could you please assist us by providing any links, sites, or 
repositories where we can download the source packages for Cygwin 2.8.0 and 
2.8.1?

Your help would be greatly appreciated.

Thanks & Regards,
Chaitra
"FINASTRA" is the trade name of the FINASTRA group of companies. This email and 
any attachments have been scanned for known viruses using multiple scanners. 
This email message is intended for the named recipient only. It may be 
privileged and/or confidential. If you are not the named recipient of this 
email please notify us immediately and do not copy it or use it for any 
purpose, nor disclose its contents to any other person. This email does not 
constitute the commencement of legal relations between you and FINASTRA. Please 
refer to the executed contract between you and the relevant member of the 
FINASTRA group for the identity of the contracting party with which you are 
dealing.

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


Re: When displaying Chinese help information in Cygwin setup, the program does not respond. The code enters a dead loop.

2024-03-28 Thread Brian Inglis via Cygwin

On 2024-03-28 09:26, 赵伟 via Cygwin wrote:

When displaying Chinese help information, the program does not respond.
The code enters a dead loop in file 
"libgetopt++/include/getopt++/DefaultFormatter.h",

because some Chinese help information does not contain spaces.
diff --git a/libgetopt++/include/getopt++/DefaultFormatter.h 
b/libgetopt++/include/getopt++/DefaultFormatter.h
index ee2397f5..19ac67e1 100644
--- a/libgetopt++/include/getopt++/DefaultFormatter.h
+++ b/libgetopt++/include/getopt++/DefaultFormatter.h
@@ -64,6 +64,7 @@ class DefaultFormatter {
{
  // TODO: consider using a line breaking strategy here.
  int pos = helpmsg.substr(0,h_len).find_last_of(" ");
+ if (pos <= 0) break;
  theStream << helpmsg.substr(0,pos)
<< std::endl << std::string (o_len, ' ');
  helpmsg.erase (0,pos+1);


It seems that the best approach for Chinese translations would be to:

- add spaces at sentence or word breaks in translations before 35 or 45 bytes, 
if that is the length unit, worth of characters are output in each column; or


- add a language dependent line breaking strategy, to honour characters not to 
be placed at the beginning or ends of lines or split; or


- split between characters, as with long strings in other languages.

--
Take care. Thanks, Brian Inglis  Calgary, Alberta, Canada

La perfection est atteinte   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut
-- Antoine de Saint-Exupéry


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


When displaying Chinese help information, the program does not respond. The code enters a dead loop.

2024-03-28 Thread 赵伟 via Cygwin
When displaying Chinese help information, the program does not respond. 
The code enters a dead loop in file 
"libgetopt++/include/getopt++/DefaultFormatter.h"??Because some Chinese help 
information does not contain spaces.
diff --git a/libgetopt++/include/getopt++/DefaultFormatter.h 
b/libgetopt++/include/getopt++/DefaultFormatter.h
index ee2397f5..19ac67e1 100644
--- a/libgetopt++/include/getopt++/DefaultFormatter.h
+++ b/libgetopt++/include/getopt++/DefaultFormatter.h
@@ -64,6 +64,7 @@ class DefaultFormatter {
    {
      // TODO: consider using a 
line breaking strategy here.
      int pos = 
helpmsg.substr(0,h_len).find_last_of(" ");
+     if(pos<=0)break;
      theStream << 
helpmsg.substr(0,pos)
 
   << std::endl << std::string (o_len, ' ');
      helpmsg.erase (0,pos+1);

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


When displaying Chinese help information, the program does not respond. The code enters a dead loop.

2024-03-28 Thread 赵伟 via Cygwin
When displaying Chinese help information, the program does not respond. 
The code enters a dead loop in file 
"libgetopt++/include/getopt++/DefaultFormatter.h"??Because some Chinese help 
information does not contain spaces.
diff --git a/libgetopt++/include/getopt++/DefaultFormatter.h 
b/libgetopt++/include/getopt++/DefaultFormatter.h
index ee2397f5..19ac67e1 100644
--- a/libgetopt++/include/getopt++/DefaultFormatter.h
+++ b/libgetopt++/include/getopt++/DefaultFormatter.h
@@ -64,6 +64,7 @@ class DefaultFormatter {
    {
  // TODO: consider using 
a line breaking strategy here.
  int pos = 
helpmsg.substr(0,h_len).find_last_of(" ");
+ if(pos<=0)break;
  theStream << 
helpmsg.substr(0,pos)
   
 << std::endl << std::string (o_len, ' ');
  helpmsg.erase (0,pos+1);

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


Re: Help with use of pgrep or pkill commands with full name options

2024-03-23 Thread Henry S. Thompson via Cygwin
J M via Cygwin writes:

> Help with use of pgrep or pkill commands with full name options.
>
> I trying to use pgrep or pkill utility commands to find processes but using
> the full path names, by example, find /usr/bin/bash (package procps-ng):
>
> Then, if I use pgrep -f /usr/bin/bash, don't find nothing.

I note that on Cygwin:

  pgrep -f /bin/bash

finds some but not all of my running bash processes.

  pgrep -a bash

finds all of them.

I leave it to others to explain why /usr/bin/bash doesn't work.

I note that on (Debian) Linux the results of the above alternatives
_also_ differ, but that pgrep -f /usr/bin/bash and pgrep -f /bin/bash
both work and give the same results.

ht
-- 
   Henry S. Thompson, School of Informatics, University of Edinburgh
10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND
   e-mail: h...@inf.ed.ac.uk
  URL: https://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]

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


Re: Help with use of pgrep or pkill commands with full name options

2024-03-22 Thread Eliot Moss via Cygwin

On 3/22/2024 11:56 AM, J M via Cygwin wrote:

Help with use of pgrep or pkill commands with full name options.

I trying to use pgrep or pkill utility commands to find processes but using
the full path names, by example, find /usr/bin/bash (package procps-ng):

Then, if I use pgrep -f /usr/bin/bash, don't find nothing.

Using pkill -f /usr/bin/bash don't get the task.

If I use pidof /usr/bin/bash, this works.

How do I get it to do use pgrep, pkill, etc?


Seems to use the name without the full path, e.g.,
bash as opposed to /bin/bash, etc.  Not sure why ...

EM

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


Re: Help with use of pgrep or pkill commands with full name options

2024-03-22 Thread Brian Inglis via Cygwin

On 2024-03-22 09:56, J M via Cygwin wrote:

Help with use of pgrep or pkill commands with full name options.

I trying to use pgrep or pkill utility commands to find processes but using
the full path names, by example, find /usr/bin/bash (package procps-ng):

Then, if I use pgrep -f /usr/bin/bash, don't find nothing.

Using pkill -f /usr/bin/bash don't get the task.

If I use pidof /usr/bin/bash, this works.

How do I get it to do use pgrep, pkill, etc?


Look at the proc names using `procps -ae` - if it does not show a path, do not 
use `-f, --fullname /path/name`, just use `name`, and you may have to experiment 
if you want to use `-x, --exact`, and possibly other options.


--
Take care. Thanks, Brian Inglis  Calgary, Alberta, Canada

La perfection est atteinte   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut
-- Antoine de Saint-Exupéry


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


Help with use of pgrep or pkill commands with full name options

2024-03-22 Thread J M via Cygwin
Help with use of pgrep or pkill commands with full name options.

I trying to use pgrep or pkill utility commands to find processes but using
the full path names, by example, find /usr/bin/bash (package procps-ng):

Then, if I use pgrep -f /usr/bin/bash, don't find nothing.

Using pkill -f /usr/bin/bash don't get the task.

If I use pidof /usr/bin/bash, this works.

How do I get it to do use pgrep, pkill, etc?

Regards,
Cesar Jorge

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


problems using luarocks in cygwin, please help...

2023-12-31 Thread Usmar Padow via Cygwin
hi, I am having trouble using luarocks in cygwin, it says that LUA_LIBDIR
is not found when i invoke just luarocks(after I make installed it ofcourse)

I think the following terminal commands will explain better than what I can
explain in words...

https://gist.github.com/amigojapan/543b0d44f698cc03a61d7ec57ef968be

for the future, maybe cygwin could include a luarocks package? and
eliminate this problem? just a suggestion...

here is a screenshot of the lua packages I have installed:

https://usercontent.irccloud-cdn.com/file/ho72wlIb/image.png

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


Re: SINGULAR Help Needed

2023-11-29 Thread Brian Inglis via Cygwin

On 2023-11-28 21:36, Marco Atzeri via Cygwin wrote:

On 29.11.2023 02:53, Brian Inglis via Cygwin wrote:

On 2023-11-27 10:41, Marco Atzeri via Cygwin wrote:

On 03.10.2023 11:10, Rambiz Khalili via Cygwin wrote:

Since the SINGULAR forum has stopped operating, I do not know how to get
help with regards to my programming problems. Please let me know where I
could direct my questions to. Is there a dedicated google group out there,
please?



general support should be requested upstream

https://www.singular.uni-kl.de/index.php.html

If the Forum is not working I suggest you to use the mailing list or open a 
bug report.


You need to better develop your research skills, as it looks like Singular has 
moved to:


https://www.computeralgebra.de/sfb/projects/singular-a-new-level-of-abstraction-and-performance/

 https://www.oscar-system.org/

See bottom of that home page for Slack group



Doh !

I was using my cache of links for packages that I handle :-(

It is the lower priority package that I handle,
partially to the upstream uncooperative way..


Sorry Marco, I was addressing the remark to the OP not you! ;^>

--
Take care. Thanks, Brian Inglis  Calgary, Alberta, Canada

La perfection est atteinte   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut
-- Antoine de Saint-Exupéry

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


Re: SINGULAR Help Needed

2023-11-28 Thread Marco Atzeri via Cygwin

On 29.11.2023 02:53, Brian Inglis via Cygwin wrote:

On 2023-11-27 10:41, Marco Atzeri via Cygwin wrote:

On 03.10.2023 11:10, Rambiz Khalili via Cygwin wrote:

Since the SINGULAR forum has stopped operating, I do not know how to get
help with regards to my programming problems. Please let me know where I
could direct my questions to. Is there a dedicated google group out 
there,

please?



general support should be requested upstream

https://www.singular.uni-kl.de/index.php.html

If the Forum is not working I suggest you to use the mailing list or 
open a bug report.


You need to better develop your research skills, as it looks like 
Singular has moved to:


https://www.computeralgebra.de/sfb/projects/singular-a-new-level-of-abstraction-and-performance/

 https://www.oscar-system.org/

See bottom of that home page for Slack group



Doh !

I was using my cache of links for packages that I handle :-(

It is the lower priority package that I handle,
partially to the upstream uncooperative way..

Regards
Marco

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


Re: SINGULAR Help Needed

2023-11-28 Thread Brian Inglis via Cygwin

On 2023-11-27 10:41, Marco Atzeri via Cygwin wrote:

On 03.10.2023 11:10, Rambiz Khalili via Cygwin wrote:

Since the SINGULAR forum has stopped operating, I do not know how to get
help with regards to my programming problems. Please let me know where I
could direct my questions to. Is there a dedicated google group out there,
please?



general support should be requested upstream

https://www.singular.uni-kl.de/index.php.html

If the Forum is not working I suggest you to use the mailing list or open a bug 
report.


You need to better develop your research skills, as it looks like Singular has 
moved to:


https://www.computeralgebra.de/sfb/projects/singular-a-new-level-of-abstraction-and-performance/

https://www.oscar-system.org/

See bottom of that home page for Slack group

--
Take care. Thanks, Brian Inglis  Calgary, Alberta, Canada

La perfection est atteinte   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut
-- Antoine de Saint-Exupéry

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


Re: SINGULAR Help Needed

2023-11-27 Thread Marco Atzeri via Cygwin

On 03.10.2023 11:10, Rambiz Khalili via Cygwin wrote:

Dear Madam or Sir,

Since the SINGULAR forum has stopped operating, I do not know how to get
help with regards to my programming problems. Please let me know where I
could direct my questions to. Is there a dedicated google group out there,
please?

Best Regards
Rambiz Khalili



general support should be requested upstream

https://www.singular.uni-kl.de/index.php.html

If the Forum is not working I suggest you to use the mailing list or 
open a bug report.


Regards
Marco

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


SINGULAR Help Needed

2023-10-03 Thread Rambiz Khalili via Cygwin
Dear Madam or Sir,

Since the SINGULAR forum has stopped operating, I do not know how to get
help with regards to my programming problems. Please let me know where I
could direct my questions to. Is there a dedicated google group out there,
please?

Best Regards
Rambiz Khalili

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


Re: REQUESTING FOR A HELP

2023-08-10 Thread cygwinautoreply--- via Cygwin
> Couldn't compute FAST_CWD pointer


https://cygwin.com/faq.html#faq.using.fixing-find_fast_cwd-warnings

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


REQUESTING FOR A HELP

2023-08-10 Thread Mphatso Tawakali via Cygwin
 Couldn't compute FAST_CWD pointer

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


Re: Previously-functional Octave software routine now mysteriously failing - Please help!

2023-07-17 Thread Brian Inglis via Cygwin

On 2023-07-17 15:43, Takashi Yano via Cygwin wrote:

On Mon, 17 Jul 2023 17:27:37 -0400
Bryan VanSchouwen wrote:

Hello.

I just tried performing a correlation matrix calculation with
Cygwin's Octave software (having successfully performed this calculation
previously on other similar data sets) using the following commands within
Cygwin:
*(start of commands)*
[vansc@LAPTOP-OHN2RCVM
~/PKG_domB_CHESCA_analysis_-_apo-cG-cA-RpcG-RpcA_4_Rp-ligs_manu_-_Jul_2023]$
octave
GNU Octave, version 5.2.0
Copyright (C) 2020 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.

Octave was configured for "x86_64-pc-cygwin".

Additional information about Octave is available at https://www.octave.org.

Please contribute if you find this software useful.
For more information, visit https://www.octave.org/get-involved.html

Read https://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.

octave:1> load dm
octave:2> cdmt = cor(dm.')
octave:3> save dm.octave
*(end of commands)*


However, when I tried executing the "cdmt = cor(dm.')" command, I got the
following error message:
octave:2> cdmt = cor(dm.')
error: 'cor' undefined near line 1 column 8
octave:2>

For reference, I have attached a copy of the input "dm" matrix data file
that I was trying to use in the calculations within Octave (see attached
file).

Do you have any idea what is going on here, and if there is a way to fix it
(or work around it)??


I do not really understand what you want to do, but
corr() or corrcoef(), not cor()?


Is the OP getting confused between cov() and corr()?

--
Take care. Thanks, Brian Inglis  Calgary, Alberta, Canada

La perfection est atteinte   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut
-- Antoine de Saint-Exupéry

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


Re: Previously-functional Octave software routine now mysteriously failing - Please help!

2023-07-17 Thread Takashi Yano via Cygwin
On Mon, 17 Jul 2023 17:27:37 -0400
Bryan VanSchouwen wrote:
> Hello.
> 
> I just tried performing a correlation matrix calculation with
> Cygwin's Octave software (having successfully performed this calculation
> previously on other similar data sets) using the following commands within
> Cygwin:
> *(start of commands)*
> [vansc@LAPTOP-OHN2RCVM
> ~/PKG_domB_CHESCA_analysis_-_apo-cG-cA-RpcG-RpcA_4_Rp-ligs_manu_-_Jul_2023]$
> octave
> GNU Octave, version 5.2.0
> Copyright (C) 2020 John W. Eaton and others.
> This is free software; see the source code for copying conditions.
> There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
> FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.
> 
> Octave was configured for "x86_64-pc-cygwin".
> 
> Additional information about Octave is available at https://www.octave.org.
> 
> Please contribute if you find this software useful.
> For more information, visit https://www.octave.org/get-involved.html
> 
> Read https://www.octave.org/bugs.html to learn how to submit bug reports.
> For information about changes from previous versions, type 'news'.
> 
> octave:1> load dm
> octave:2> cdmt = cor(dm.')
> octave:3> save dm.octave
> *(end of commands)*
> 
> 
> However, when I tried executing the "cdmt = cor(dm.')" command, I got the
> following error message:
> octave:2> cdmt = cor(dm.')
> error: 'cor' undefined near line 1 column 8
> octave:2>
> 
> For reference, I have attached a copy of the input "dm" matrix data file
> that I was trying to use in the calculations within Octave (see attached
> file).
> 
> Do you have any idea what is going on here, and if there is a way to fix it
> (or work around it)??

I do not really understand what you want to do, but
corr() or corrcoef(), not cor()?

-- 
Takashi Yano 

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


Previously-functional Octave software routine now mysteriously failing - Please help!

2023-07-17 Thread Bryan VanSchouwen via Cygwin
Hello.

I just tried performing a correlation matrix calculation with
Cygwin's Octave software (having successfully performed this calculation
previously on other similar data sets) using the following commands within
Cygwin:
*(start of commands)*
[vansc@LAPTOP-OHN2RCVM
~/PKG_domB_CHESCA_analysis_-_apo-cG-cA-RpcG-RpcA_4_Rp-ligs_manu_-_Jul_2023]$
octave
GNU Octave, version 5.2.0
Copyright (C) 2020 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.

Octave was configured for "x86_64-pc-cygwin".

Additional information about Octave is available at https://www.octave.org.

Please contribute if you find this software useful.
For more information, visit https://www.octave.org/get-involved.html

Read https://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.

octave:1> load dm
octave:2> cdmt = cor(dm.')
octave:3> save dm.octave
*(end of commands)*


However, when I tried executing the "cdmt = cor(dm.')" command, I got the
following error message:
octave:2> cdmt = cor(dm.')
error: 'cor' undefined near line 1 column 8
octave:2>

For reference, I have attached a copy of the input "dm" matrix data file
that I was trying to use in the calculations within Octave (see attached
file).

Do you have any idea what is going on here, and if there is a way to fix it
(or work around it)??


dm
Description: Binary data

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


Re: help needed - transition from 32bits to 64bits

2023-06-15 Thread ASSI via Cygwin
gh via Cygwin writes:
> Currently, cygwin is in C:\cygwin, which I have moved to
> C:\cygwin-bck. I then want to install in the now almost empty
> C:\cygwin, but copying there the necessary config files so that
> setup-x86_64.exe knows which packages to download.

Create the new target directory (or just do a base installation) and
copy over /etc/setup/installed.db from your backup.  Then make sure the
versions in that file are all out-of-date w.r.t. the mirrors:

sed -i.bak -re 's/( .*-)[0-9.]+-[0-9]+\.tar/\10-0.tar/' /etc/setup/installed.db

Then run setup again and (modulo obsolete and removed packages) it will
install all those packages that your old installation was having.  Of
course you will then also have to copy / re-create any customizations
that you did directly in the installation tree (like in fstab.d or sshd
keys from your old installation).


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptations for KORG EX-800 and Poly-800MkII V0.9:
http://Synth.Stromeko.net/Downloads.html#KorgSDada

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


Re: help needed - transition from 32bits to 64bits

2023-06-15 Thread marco atzeri via Cygwin
On Thu, Jun 15, 2023 at 2:59 PM Dan Harkless via Cygwin  wrote:
>
> On 6/15/2023 5:47 AM, marco atzeri via Cygwin wrote:
> > On Thu, Jun 15, 2023 at 12:15 PM gh via Cygwin  wrote:
> > > Currently, cygwin is in C:\cygwin, which I have moved to C:\cygwin-bck. I 
> > > then want to install in the now almost empty C:\cygwin,
> >
> > No need to rename the directory as the Cygwin 64 bit will be installed
> > in C:\Cygwin64 folder
>
> Right, but the OP _wanted_ to keep their old paths.  Gilbert, you can
> change the install path of Cygwin64 at install-time to be C:\cygwin.
> There's no requirement for the 64-bit version to be installed in a
> "cygwin64" directory.
>
> Alternatively, you could let it install into C:\cygwin64 and then make a
> Junction or Symbolic Link (e.g. using mklink in a Command Prompt) from
> cygwin to cygwin64, but if it were me I'd probably go with your original
> intention.
>
> --
> Dan Harkless

just renaming the current c:\Cygwin folder to anything (e.g c:\Cygwin32 )
will leave a working Cygwin 32 installation, except any services installed
that of course will have the broken links and broken windows shortcut

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


RE: help needed - transition from 32bits to 64bits

2023-06-15 Thread gh via Cygwin
Thanks Marco, I will read and adapt the script if necessary.

Gilbert
PS: I don't want the cygwin64 directory, so as to avoid looking for everywhere 
I have used a hard cygwin path.

-Original Message-
From: marco atzeri [mailto:marco.atz...@gmail.com] 
Sent: 15 June 2023 14:48
To: gh
Cc: cygwin@cygwin.com
Subject: Re: help needed - transition from 32bits to 64bits

On Thu, Jun 15, 2023 at 12:15 PM gh via Cygwin  wrote:
>
> Dear all,
>
> Sorry if this question was already answered somewhere in the FAQ.
>
>
>
> I am running a deprecated 32bits version, and want to switch to 
> 64bits. Install procedure is easy, but does not cover one thing : I 
> would like to preserve the list of packages I have installed, and minimize 
> the change of paths in my windows environment (did not change anything for 
> the last 10 years, so I don't want to dig into where are things).
>
>
>
> Currently, cygwin is in C:\cygwin, which I have moved to 
> C:\cygwin-bck. I then want to install in the now almost empty C:\cygwin, but 
> copying there the necessary config files so that setup-x86_64.exe knows which 
> packages to download.
>
>
>
> Thanks in advance,
>
>
>
> Gilbert
>
Hi Gilbert,

No need to rename the directory as the Cygwin 64 bit will be installed in 
C:\Cygwin64 folder

Attached the script that I use to reinstall my system on different computers.
It can be adapted to duplicate the 32bit in a 64 bit installation

Assuming your file list is not longer than 32K, this should work :

  chmod + x cyg-reinstall.sh
   sed -e "1d"  /etc/setup/installed.db | sed -e "s/ .*$//" > filelist.txt
  ./cyg-reinstall.sh -f  filelist.txt
  cp cyg-reinstall-x86.bat cyg-reinstall-x86_64.bat
  sed -i -e "s/setup-x86.exe/setup-x86_64.exe/" cyg-reinstall-x86_64.bat

if the  "filelist.txt" is too long you can split in multiple chunks, like:

   grep -v "^lib" filelist.txt > nolib-list.txt
   grep "^lib" filelist.txt > lib-list.txt

I usually need to split mine, as my installation hit the 32K limit of command 
line

 wc -l *.txt
  2608 filelist.txt
  1297 lib-list.txt
  1311 nolib-list.txt

 ls -1s *.txt
40K filelist.txt
20K lib-list.txt
20K nolib-list.txt

Regards
Marco


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


Re: help needed - transition from 32bits to 64bits

2023-06-15 Thread Dan Harkless via Cygwin

On 6/15/2023 5:47 AM, marco atzeri via Cygwin wrote:

On Thu, Jun 15, 2023 at 12:15 PM gh via Cygwin  wrote:
> Currently, cygwin is in C:\cygwin, which I have moved to C:\cygwin-bck. I 
then want to install in the now almost empty C:\cygwin,

No need to rename the directory as the Cygwin 64 bit will be installed
in C:\Cygwin64 folder


Right, but the OP _wanted_ to keep their old paths.  Gilbert, you can 
change the install path of Cygwin64 at install-time to be C:\cygwin.  
There's no requirement for the 64-bit version to be installed in a 
"cygwin64" directory.


Alternatively, you could let it install into C:\cygwin64 and then make a 
Junction or Symbolic Link (e.g. using mklink in a Command Prompt) from 
cygwin to cygwin64, but if it were me I'd probably go with your original 
intention.


--
Dan Harkless
http://harkless.org/dan/


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


Re: help needed - transition from 32bits to 64bits

2023-06-15 Thread marco atzeri via Cygwin
On Thu, Jun 15, 2023 at 12:15 PM gh via Cygwin  wrote:
>
> Dear all,
>
> Sorry if this question was already answered somewhere in the FAQ.
>
>
>
> I am running a deprecated 32bits version, and want to switch to 64bits. 
> Install procedure is easy, but does not cover one thing : I
> would like to preserve the list of packages I have installed, and minimize 
> the change of paths in my windows environment (did not
> change anything for the last 10 years, so I don't want to dig into where are 
> things).
>
>
>
> Currently, cygwin is in C:\cygwin, which I have moved to C:\cygwin-bck. I 
> then want to install in the now almost empty C:\cygwin,
> but copying there the necessary config files so that setup-x86_64.exe knows 
> which packages to download.
>
>
>
> Thanks in advance,
>
>
>
> Gilbert
>
Hi Gilbert,

No need to rename the directory as the Cygwin 64 bit will be installed
in C:\Cygwin64 folder

Attached the script that I use to reinstall my system on different computers.
It can be adapted to duplicate the 32bit in a 64 bit installation

Assuming your file list is not longer than 32K, this should work :

  chmod + x cyg-reinstall.sh
   sed -e "1d"  /etc/setup/installed.db | sed -e "s/ .*$//" > filelist.txt
  ./cyg-reinstall.sh -f  filelist.txt
  cp cyg-reinstall-x86.bat cyg-reinstall-x86_64.bat
  sed -i -e "s/setup-x86.exe/setup-x86_64.exe/" cyg-reinstall-x86_64.bat

if the  "filelist.txt" is too long you can split in multiple chunks, like:

   grep -v "^lib" filelist.txt > nolib-list.txt
   grep "^lib" filelist.txt > lib-list.txt

I usually need to split mine, as my installation hit the 32K limit of
command line

 wc -l *.txt
  2608 filelist.txt
  1297 lib-list.txt
  1311 nolib-list.txt

 ls -1s *.txt
40K filelist.txt
20K lib-list.txt
20K nolib-list.txt

Regards
Marco
#!/bin/bash
#Copyright (c) 2021, 2023 Marco Atzeri
#All rights reserved.

#Redistribution and use in source and binary forms, with or without
#modification, are permitted provided that the following conditions are met:
#1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
#2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
#3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by Marco Atzeri.
#4. Neither the name of the Marco Atzeri nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

#THIS SOFTWARE IS PROVIDED BY MARCO ATZERI ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MARCO ATZERI BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
#SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# Create a batch file to reinstall using setup-{ARCH}.exe
# all packages or the ones reported as incomplete
# or install from a list or remove from a list

# If you hit the length limit of command line in bash or CMD
#
# https://devblogs.microsoft.com/oldnewthing/20031210-00/?p=41553
# https://learn.microsoft.com/en-us/troubleshoot/windows-client/shell-experience/command-line-string-limitation
#
# the best way is to split the installation in multiples chunks

print_error=1

if [ $# -eq 1 ]
  then
if [ $1 == "-I" ]
then
  lista=$(mktemp)
  cygcheck -c | grep "Incomplete" > $lista
  print_error=0
fi
if [ $1 == "-A" ]
then
  lista=$(mktemp)
  cygcheck -cd | sed -e "1,2d" > $lista
  print_error=0
fi
fi

if [ $# -eq 2 ]
  then
if [ $1 == "-f" -o $1 == "-r" ]
then
  lista=$2
  print_error=0
fi
fi

# error message if options are incorrect.
if [ $print_error -eq 1 ]
then
echo -n "Usage : " $(basename $0)
echo " [ -A | -I | -f filelist | -r filelist ]"
echo "  create cyg-reinstall-{ARC}.bat from"
echo "  options"
echo "-A  :  install All packages as reported by cygcheck"
echo "-I  :  install Incomplete packages as reported by cygcheck"
echo "-f  :  install packages in filelist (one per row)"
echo "-r  :  remove packages in filelist (one per row)"
exit 1
fi

if [ $(arch) == "x86_64" ]
then
  A="x86_64"
else
  A="x86"
fi

# writing header
echo -n -e "setup-${A}.exe  " > cyg-reinstall-${A}.bat

# opt

help needed - transition from 32bits to 64bits

2023-06-15 Thread gh via Cygwin
Dear all,

 

Sorry if this question was already answered somewhere in the FAQ.

 

I am running a deprecated 32bits version, and want to switch to 64bits. Install 
procedure is easy, but does not cover one thing : I
would like to preserve the list of packages I have installed, and minimize the 
change of paths in my windows environment (did not
change anything for the last 10 years, so I don't want to dig into where are 
things).

 

Currently, cygwin is in C:\cygwin, which I have moved to C:\cygwin-bck. I then 
want to install in the now almost empty C:\cygwin,
but copying there the necessary config files so that setup-x86_64.exe knows 
which packages to download.

 

Thanks in advance,

 

Gilbert


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


Re: command please help me

2023-03-24 Thread Mark Hansen via Cygwin

On 3/24/2023 6:23 AM, blockold wolf uchiwa via Cygwin wrote:

I don't know how to crack a .rar file please help me




https://lmgtfy.app/#gsc.tab=0&gsc.q=RAR%20file%20extractor

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


command please help me

2023-03-24 Thread blockold wolf uchiwa via Cygwin
I don't know how to crack a .rar file please help me

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


Re: [QUERY] Help With Semaphore Error on Windows : Cygwin

2023-02-17 Thread Takashi Yano via Cygwin
On Fri, 17 Feb 2023 12:56:06 +0800
Yeo Kai Wei wrote:
> Hi All,
> 
> Thanks for the help.
> 
> It works now.
> 
> So, the 2 things that were required
> 
> 1. Adding the '/' in front of the semaphore name so that Cygwin can 
> recognise it
> 
> #define SemaphoreName "/mysemaphore"
> 
> 2. Changing the if check from if(semptr == (void*) -1) to if(semptr == 
> (sem_t*) 0)

No. You should use:
  if (semptr == SEM_FAILED)

-- 
Takashi Yano 

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


Re: [QUERY] Help With Semaphore Error on Windows : Cygwin

2023-02-16 Thread Yeo Kai Wei via Cygwin

Hi All,

Thanks for the help.

It works now.

So, the 2 things that were required

1. Adding the '/' in front of the semaphore name so that Cygwin can 
recognise it


#define SemaphoreName "/mysemaphore"

2. Changing the if check from if(semptr == (void*) -1) to if(semptr == 
(sem_t*) 0)



Thank you very much, Takashi and Corinna.

Kind Regards,
YEO Kai Wei

On 16/2/2023 10:59 pm, Corinna Vinschen wrote:

Hi Kai,

Apart from what Takashi already wrote, there's another bug in this code:

On Feb 16 12:04, Yeo Kai Wei via Cygwin wrote:

#define ByteSize 512
#define BackingFile "/shMemEx"
#define AccessPerms 0644
#define SemaphoreName "mysemaphore"

 

What Takashi wrote.  The reason that you don't notice that sem_open
actuially failed is...


//Create the semaphore
sem_t* semptr = sem_open(   SemaphoreName,//name
O_CREAT, //create semaphore
AccessPerms, //protection permissions
0); //Initial value

//ERROR
if(semptr == (void*) -1)

  ^^
  This.

Why do you test for -1?  If you read the POSIX man page for sem_open,
you'll see this:

   Upon successful completion, the sem_open() function shall return the
   address of the semaphore. Otherwise, it shall return a value of
   SEM_FAILED [...]
   ^^

SEM_FAILED is not necessarily -1.  On Cygwin it's defined as

   #define SEM_FAILED ((sem_t *) 0)

in /usr/include/semaphore.h.

So your code just seems to fail in sem_post, but actually that's
because sem_open failed and your code checks for the wrong return
value.


HTH,
Corinna


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


Re: [QUERY] Help With Semaphore Error on Windows : Cygwin

2023-02-16 Thread Corinna Vinschen via Cygwin
Hi Kai,

Apart from what Takashi already wrote, there's another bug in this code:

On Feb 16 12:04, Yeo Kai Wei via Cygwin wrote:
> #define ByteSize 512
> #define BackingFile "/shMemEx"
> #define AccessPerms 0644
> #define SemaphoreName "mysemaphore"


What Takashi wrote.  The reason that you don't notice that sem_open
actuially failed is...

>   //Create the semaphore
>   sem_t* semptr = sem_open(   SemaphoreName,//name 
>   O_CREAT, //create semaphore
>   AccessPerms, //protection permissions
>   0); //Initial value
> 
>   //ERROR
>   if(semptr == (void*) -1)
 ^^
 This.

Why do you test for -1?  If you read the POSIX man page for sem_open,
you'll see this:

  Upon successful completion, the sem_open() function shall return the
  address of the semaphore. Otherwise, it shall return a value of
  SEM_FAILED [...]
  ^^

SEM_FAILED is not necessarily -1.  On Cygwin it's defined as

  #define SEM_FAILED ((sem_t *) 0)

in /usr/include/semaphore.h.

So your code just seems to fail in sem_post, but actually that's
because sem_open failed and your code checks for the wrong return
value.


HTH,
Corinna

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


Re: [QUERY] Help With Semaphore Error on Windows : Cygwin

2023-02-16 Thread Takashi Yano via Cygwin
On Thu, 16 Feb 2023 12:04:01 +0800
Yeo Kai Wei wrote:
> Hi All,
> 
> Could I request for some help on some code?
> 
> I ran into an error with semaphores with some book code using Cygwin on 
> Windows.
> 
> The code will throw an error with sem_post().
> 
> I compiled it with gcc -o memwriter memwriter.c -lrt -lpthread
> 
> $ ./memwriter
> Shared memory address: 0x6fff [0..511]
> backing file: /dev/shm/shMemEx
> semptr is address 0x7cc18 with value 0
> SEM_VALUE_MAX is 1147483648
> sem_post: Invalid argument <--- ERROR
> 
> 
> According to feedback, the above error does not turn up on Linux.
> 
> May I know if this is supposed to happen on Cygwin on Windows?
> 
> If not, how can I solve this?
> 
> I've also attached the code for reference.

Semaphore name which does not begin with slash (/) is not
portable.

See:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/sem_open.html

Cygwin disallows that.

-- 
Takashi Yano 

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


[QUERY] Help With Semaphore Error on Windows : Cygwin

2023-02-15 Thread Yeo Kai Wei via Cygwin

Hi All,

Could I request for some help on some code?

I ran into an error with semaphores with some book code using Cygwin on 
Windows.


The code will throw an error with sem_post().

I compiled it with gcc -o memwriter memwriter.c -lrt -lpthread

$ ./memwriter
Shared memory address: 0x6fff [0..511]
backing file: /dev/shm/shMemEx
semptr is address 0x7cc18 with value 0
SEM_VALUE_MAX is 1147483648
sem_post: Invalid argument <--- ERROR


According to feedback, the above error does not turn up on Linux.

May I know if this is supposed to happen on Cygwin on Windows?

If not, how can I solve this?

I've also attached the code for reference.


Thank you.


Kind regards,

YEO Kai Wei

#define ByteSize 512
#define BackingFile "/shMemEx"
#define AccessPerms 0644
#define SemaphoreName "mysemaphore"
#define MemContents "This is the way the world ends...\n"
//gcc -o memwriter memwriter.c -lrt -lpthread

#include 

#include 

#include 

#include 

#include 

#include 

#include 

#include 

#include  //SEM_VALUE_MAX

#include "shmem.h"

void report_and_exit(const char* msg)
{
perror(msg);

exit(-1);
}

int main()
{

//Create file descriptor
int fd = shm_open(  BackingFile, 
O_RDWR | O_CREAT,   //Read, write, create 
if needed
AccessPerms);   //Access permission 0644

//ERROR
if(fd<0)
report_and_exit("Can't open shared mem segment ... ");

//Get the bytes
ftruncate(fd, ByteSize);

//Let system pick where to put the segments
caddr_t memptr = mmap(  NULL,   //Let system pick
ByteSize,   //How many bytes
PROT_READ | PROT_WRITE, //Access protections
MAP_SHARED, //Mapping visible 
fd, //file descriptor
0); //offset 0, start from 
1st byte


if((caddr_t) -1 == memptr)
report_and_exit("Can't get segment...");

fprintf(stderr, "Shared memory address: %p [0..%d]\n", memptr, ByteSize 
-1);

fprintf(stderr, "backing file: /dev/shm%s\n", BackingFile);

//Create the semaphore
sem_t* semptr = sem_open(   SemaphoreName,//name 
O_CREAT, //create semaphore
AccessPerms, //protection permissions
0); //Initial value

//ERROR
if(semptr == (void*) -1)
report_and_exit("sem_open");

//Copy some ASCII Bytes to the memory segment
strcpy(memptr, MemContents);

printf("semptr is address %p with value %i\n", &semptr, semptr);

printf("SEM_VALUE_MAX is %i\n", SEM_VALUE_MAX);

//sem_post increments the semaphore -1 ERROR, 0 success
if(sem_post(semptr) < 0) 
report_and_exit("sem_post");

//Sleep
sleep(12);

//Cleanup. Unmap the storage
munmap(memptr, ByteSize);

close(fd);

sem_close(semptr);

//Unlink from backing file
shm_unlink(BackingFile);

return 0;
}



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


Re: setup-*.exe --help default explanation re -D/-L options [Was: [ANNOUNCEMENT] Updated: setup (2.917)]

2022-02-03 Thread Andrey Repin
Greetings, Jon Turney!

>>  If neither --download nor --local-install is specified, the default
>>  is to repeat the same action as from the previous run.  If no
>>  previous run can be found, the default is to perform both actions,
>>  and both actions can be explicitly requested by specifying both
>>  --download and --local-install.

> Note that I tweaked the behaviour of this a bit in [1]

> [1] 
> https://cygwin.com/git/?p=cygwin-apps/setup.git;a=commit;h=147fc15d0222e050779b18a209991c258d85944f

> I think that makes the current help text accurately describe 
> non-interactive mode.

> There are some cases in interactive mode which are obscure (e.g. '-M' 
> without '-D' or '-L' gets you whatever mode you used last time without 
> showing you what it was, but I'm not sure if that needs to be here.

>> In particular, the fact that the two options currently say they will
>> "only" do their action, and that the default is to perform both, lead me
>> to believe (a) the options were mutually exclusive and one would
>> presumably override the other, (b) this was probably a legacy from
>> before setup.rc stored the previous action, and therefore (c) if I was
>> running setup with `-q` or `-M`, there was no way to get the supposedly
>> default "do both" behaviour; I'd instead need to go through the full
>> GUI.
>> 
>> Having now seen how this setting is stored, I've realised I can just
>> call setup with `-DL` and it'll perform both actions again.  But I think
>> my assumption that "default" was supposed to mean "default always" not
>> "default only on first run" wasn't *entirely* PEBCAK (even if it mostly
>> was), so that help text would definitely benefit from being made a bit
>> more explicit.
>> 
>> (I'm aware my suggestion above is decidedly wordy; it's not intended to
>> be exactly what I think is required, only a first pass at clarifying the
>> key details I think are missing.)

> Perhaps the best thing would be to have something like 
> '--mode={download, install, somebetterwordforboth}' and document '-D' 
> and '-L' as short aliases for forms of that (which makes the modality 
> clear).

Definitely no. You'd have to invent a "better word" first and that would be
a whole new layer of explanation.
I'd vote for removal of -M for unattended operations instead. (I.e. make -q
and -M mutually exclusive.)
I mean, this is an unattended operation, right? You HAVE TO be explicit in
what results are expected from it.


-- 
With best regards,
Andrey Repin
Thursday, February 3, 2022 11:35:30

Sorry for my terrible english...


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


Re: setup-*.exe --help default explanation re -D/-L options [Was: [ANNOUNCEMENT] Updated: setup (2.917)]

2022-02-01 Thread Adam Dinwoodie
On Tue, Feb 01, 2022 at 04:53:47PM +, Jon Turney wrote:
> On 31/01/2022 22:11, Adam Dinwoodie wrote:
> > On  Mon, 31 Jan 2022 12:56:13 -0700, Brian Inglis wrote:
> > > On 2022-01-31 08:46, Andrey Repin wrote:
> > > > Greetings, Jon Turney!
> > > > 
> > > > > Probably what's wanted is to remember the state of those checkboxes, 
> > > > > if
> > > > > this isn't the first time setup has been run?
> > > > 
> > > > That's a feature silently longed for for a loong time. :) But this is 
> > > > such a
> > > > low priority, very few people actually mentioned it in the past years.
> > > 
> > > It could usefully be added similarly to last-action:
> > > 
> > >   $ fgrep -A1 action /etc/setup/setup.rc
> > >   last-action
> > >   Download,Install
> > > 
> > > last-shortcut:
> > >   Desktop|StartMenu|none,...
> > 
> > This reminded me of a bug report I've been meaning to properly
> > characterise and report for a while, and also pointed me at a
> > workaround...
> > 
> > Currently, running `setup-*.exe --help` produces output that includes
> > the following:
> > 
> >  -D --download   Download packages from internet only
> >  -L --local-install  Install packages from local directory only
> > 
> >  The default is to both download and install packages, unless either
> >  --download or --local-install is specified.
> > 
> > I think the descriptions for the `-D` and `-L` options are misleading,
> > at least in combination with that final line, which is definitely wrong.
> > As I understand it, the actual behaviour would be better described by
> > something like the below:
> > 
> >  -D --download   Download packages from internet only, unless -L
> >  is also specified
> >  -L --local-install  Install packages from local directory only,
> >  unless -D is also specified
> 
> One could just remove the word 'only'?

...yes, that would in fact work, and is clear.

> >  If neither --download nor --local-install is specified, the default
> >  is to repeat the same action as from the previous run.  If no
> >  previous run can be found, the default is to perform both actions,
> >  and both actions can be explicitly requested by specifying both
> >  --download and --local-install.
> 
> Note that I tweaked the behaviour of this a bit in [1]
> 
> [1] 
> https://cygwin.com/git/?p=cygwin-apps/setup.git;a=commit;h=147fc15d0222e050779b18a209991c258d85944f
> 
> I think that makes the current help text accurately describe non-interactive
> mode.
> 
> There are some cases in interactive mode which are obscure (e.g. '-M'
> without '-D' or '-L' gets you whatever mode you used last time without
> showing you what it was, but I'm not sure if that needs to be here.

Ah, okay.  I think I hit this with `-M` and assumed -- evidently
incorrectly -- that the same behaviour would exist for `-q`.  I agree
the current text is entirely accurate for the fully non-interactive
mode.

I think this caught me out because I frequently run with `-M` -- I don't
care about most of the options, but I do want to see what packages are
about to be updated -- and I almost never want to use the download-only
or install-only modes.  But I used `-L` as a one-off when I was
uninstalling and reinstalling a bunch of packages and didn't want to hit
the network every time, then forgot about it.  And it wasn't until I was
musing about the fact that I hadn't seen any package updates for a few
weeks when trying to do my regular updates with `-M` that I realised
what had happened...

Given all that, I think everything seems sensible except for the fact
that `-M` doesn't follow the same behaviour as `-q`.

> > In particular, the fact that the two options currently say they will
> > "only" do their action, and that the default is to perform both, lead me
> > to believe (a) the options were mutually exclusive and one would
> > presumably override the other, (b) this was probably a legacy from
> > before setup.rc stored the previous action, and therefore (c) if I was
> > running setup with `-q` or `-M`, there was no way to get the supposedly
> > default "do both" behaviour; I'd instead need to go through the full
> > GUI.
> > 
> > Having now seen how this setting is stored, I've realised I can just
> > call setup with `-DL` and it'll perform both actions again.  But I th

Re: setup-*.exe --help default explanation re -D/-L options [Was: [ANNOUNCEMENT] Updated: setup (2.917)]

2022-02-01 Thread Jon Turney

On 31/01/2022 22:11, Adam Dinwoodie wrote:

On  Mon, 31 Jan 2022 12:56:13 -0700, Brian Inglis wrote:

On 2022-01-31 08:46, Andrey Repin wrote:

Greetings, Jon Turney!


Probably what's wanted is to remember the state of those checkboxes, if
this isn't the first time setup has been run?


That's a feature silently longed for for a loong time. :) But this is such a
low priority, very few people actually mentioned it in the past years.


It could usefully be added similarly to last-action:

$ fgrep -A1 action /etc/setup/setup.rc
last-action
Download,Install

last-shortcut:
Desktop|StartMenu|none,...


This reminded me of a bug report I've been meaning to properly
characterise and report for a while, and also pointed me at a
workaround...

Currently, running `setup-*.exe --help` produces output that includes
the following:

 -D --download   Download packages from internet only
 -L --local-install  Install packages from local directory only

 The default is to both download and install packages, unless either
 --download or --local-install is specified.

I think the descriptions for the `-D` and `-L` options are misleading,
at least in combination with that final line, which is definitely wrong.
As I understand it, the actual behaviour would be better described by
something like the below:

 -D --download   Download packages from internet only, unless -L
 is also specified
 -L --local-install  Install packages from local directory only,
 unless -D is also specified


One could just remove the word 'only'?



 If neither --download nor --local-install is specified, the default
 is to repeat the same action as from the previous run.  If no
 previous run can be found, the default is to perform both actions,
 and both actions can be explicitly requested by specifying both
 --download and --local-install.


Note that I tweaked the behaviour of this a bit in [1]

[1] 
https://cygwin.com/git/?p=cygwin-apps/setup.git;a=commit;h=147fc15d0222e050779b18a209991c258d85944f


I think that makes the current help text accurately describe 
non-interactive mode.


There are some cases in interactive mode which are obscure (e.g. '-M' 
without '-D' or '-L' gets you whatever mode you used last time without 
showing you what it was, but I'm not sure if that needs to be here.



In particular, the fact that the two options currently say they will
"only" do their action, and that the default is to perform both, lead me
to believe (a) the options were mutually exclusive and one would
presumably override the other, (b) this was probably a legacy from
before setup.rc stored the previous action, and therefore (c) if I was
running setup with `-q` or `-M`, there was no way to get the supposedly
default "do both" behaviour; I'd instead need to go through the full
GUI.

Having now seen how this setting is stored, I've realised I can just
call setup with `-DL` and it'll perform both actions again.  But I think
my assumption that "default" was supposed to mean "default always" not
"default only on first run" wasn't *entirely* PEBCAK (even if it mostly
was), so that help text would definitely benefit from being made a bit
more explicit.

(I'm aware my suggestion above is decidedly wordy; it's not intended to
be exactly what I think is required, only a first pass at clarifying the
key details I think are missing.)


Perhaps the best thing would be to have something like 
'--mode={download, install, somebetterwordforboth}' and document '-D' 
and '-L' as short aliases for forms of that (which makes the modality 
clear).



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


setup-*.exe --help default explanation re -D/-L options [Was: [ANNOUNCEMENT] Updated: setup (2.917)]

2022-01-31 Thread Adam Dinwoodie
On  Mon, 31 Jan 2022 12:56:13 -0700, Brian Inglis wrote:
> On 2022-01-31 08:46, Andrey Repin wrote:
> > Greetings, Jon Turney!
> > 
> > > Probably what's wanted is to remember the state of those checkboxes, if
> > > this isn't the first time setup has been run?
> > 
> > That's a feature silently longed for for a loong time. :) But this is such a
> > low priority, very few people actually mentioned it in the past years.
> 
> It could usefully be added similarly to last-action:
> 
>   $ fgrep -A1 action /etc/setup/setup.rc
>   last-action
>   Download,Install
> 
> last-shortcut:
>   Desktop|StartMenu|none,...

This reminded me of a bug report I've been meaning to properly
characterise and report for a while, and also pointed me at a
workaround...

Currently, running `setup-*.exe --help` produces output that includes
the following:

-D --download   Download packages from internet only
-L --local-install  Install packages from local directory only

The default is to both download and install packages, unless either
--download or --local-install is specified.

I think the descriptions for the `-D` and `-L` options are misleading,
at least in combination with that final line, which is definitely wrong.
As I understand it, the actual behaviour would be better described by
something like the below:

-D --download   Download packages from internet only, unless -L
is also specified
-L --local-install  Install packages from local directory only,
unless -D is also specified

If neither --download nor --local-install is specified, the default
is to repeat the same action as from the previous run.  If no
previous run can be found, the default is to perform both actions,
and both actions can be explicitly requested by specifying both
--download and --local-install.

In particular, the fact that the two options currently say they will
"only" do their action, and that the default is to perform both, lead me
to believe (a) the options were mutually exclusive and one would
presumably override the other, (b) this was probably a legacy from
before setup.rc stored the previous action, and therefore (c) if I was
running setup with `-q` or `-M`, there was no way to get the supposedly
default "do both" behaviour; I'd instead need to go through the full
GUI.

Having now seen how this setting is stored, I've realised I can just
call setup with `-DL` and it'll perform both actions again.  But I think
my assumption that "default" was supposed to mean "default always" not
"default only on first run" wasn't *entirely* PEBCAK (even if it mostly
was), so that help text would definitely benefit from being made a bit
more explicit.

(I'm aware my suggestion above is decidedly wordy; it's not intended to
be exactly what I think is required, only a first pass at clarifying the
key details I think are missing.)

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


Re: Help with standalone samba SID-uid mapping

2022-01-17 Thread Chris Roehrig


On Mon Jan 17 2022, at 4:04 AM, Corinna Vinschen  
wrote:

> On Jan 14 11:57, Chris Roehrig wrote:
>> On Fri Jan 14 2022, at 2:04 AM, Corinna Vinschen  
>> wrote:
>>> These look like your standard Windows SIDs, so they are your SIDs for
>>> users cristina and croehrig on Windows.  They should show up as such in
>>> ls -l output, unless the SID is actuall wrong, e. g., they map to your
>>> accounts on another machine or something like that.
>> 
>> No those are the SIDs supplied by the Samba server (see below for my local 
>> Windows SIDs).   Here they are directly on the Linux machine:
>> housesrv[11]% smbcacls --numeric //housesrv/Users croehrig
>> Enter WORKGROUP\croehrig's password: 
>> REVISION:1
>> CONTROL:0x9004
>> OWNER:S-1-5-21-751087815-2087572193-42305691-1000
>> GROUP:S-1-22-2-601
>> ACL:S-1-5-21-751087815-2087572193-42305691-1000:0/0x0/0x001f01ff
>> ACL:S-1-22-2-601:0/0x0/0x001200a9
>> ACL:S-1-1-0:0/0x0/0x001200a9
>> 
>> (I think that Samba now uses a more complex IDMAP algorithm than when
>> the Cygwin document above was written and now provides a full domain
>> component to its SIDs.)
> 
> That may be so, but in my installation, Samba reports the Unix User ID
> as owner, i. e.
> 
>  $ icacls server\\corinna\\foo
>  \\server\corinna\foo S-1-22-1-500:(R,W,D,WDAC,WO)
>   S-1-22-2-11125:(R)
>   Everyone:(R)
> 
> and that's with Samba 4.15.3.  I'm doing the mapping via the AD
> uidNumber and gidNumber fields.  I'm using this setup for so long that I
> don't remember if I ever saw a "normal", Windows-like SID for the user
> returned by Samba.  I never ran winbindd, up until Samba 4.15.3, which
> was the first one forcing me to do so when using AD support.

I'm no Samba expert, but maybe your /var/lib/samba/private/secrets.tdb file 
predates that IDMAP change...?
What does 'net getdomainsid' say on your samba host?
housesrv[2]% sudo net getdomainsid
SID for local machine HOUSESRV is: S-1-5-21-751087815-2087572193-42305691
SID for domain WORKGROUP is: S-1-5-21-..


> 
>> I just added those SIDs to  /etc/passwd and /etc/groups (double
>> entries now) and it now works for the user, but (oddly) not the group:
>> 
>> tyto[6]% ls -l //housesrv/Users/ ## NB: this is 
>> a UNC path to the samba share
>> total 0
>> drwxr-xr-x 1 cristina Unix_Group+603 0 Jan 12 16:06 cristina
>> drwxr-xr-x 1 croehrig Unix_Group+601 0 Jan 14 09:18 croehrig
>> [...]
>> tyto[10]% cat /etc/group
>> croehrig:S-1-22-2-601:601:
>> cristina:S-1-22-2-603:603:
>> croehrig:S-1-5-21-1290748074-662758565-4273641972-1006:601:
>> cristina:S-1-5-21-1290748074-662758565-4273641972-1008:603:
> 
> Hmm, that's weird.  I just tried this myself.  First I created a stock
> /etc/group file with all local and AD accounts.  Next I changed
> /etc/nsswitch.conf:
> 
>  - group: db
>  + group: files
> 
> Exit/restart Cygwin. `ls -l' now prints
> 
>  -rw-r--r-- 1 corinna Unknown+Group 13342 Jan 17 10:46 //calimero/corinna/foo
> 
> Now I add this line to /etc/group:
> 
>  mygroup:S-1-22-2-11125:11125:
> 
> Exit/restart Cygwin.  Now `ls -l' prints
> 
>  -rw-r--r-- 1 corinna mygroup 13342 Jan 17 10:46 //calimero/corinna/foo
> 
> So it works, apparently.  Did you set `group: db' in /etc/nsswitch.conf,
> by any chance?

That did the trick.   My nsswitch.conf was the default (no lines; only 
comments), but everything works great now once I change it to
group: files
Seems odd that changing it back to 'group: files db' causes the groups to 
revert to the Unix_Group+601 form (as if the files weren't resolving it 
satisfactorily).

Thanks for your help looking into this!

[Update:   cygsshd service no longer permits logins (closes connection 
immediately) when using 'group: files' (but it does work when running as 
/var/sbin/sshd -Dd).I'll have to get syslog-ng set up to try do debug this 
further...]



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


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


Re: Help with standalone samba SID-uid mapping

2022-01-17 Thread Corinna Vinschen
On Jan 14 11:57, Chris Roehrig wrote:
> On Fri Jan 14 2022, at 2:04 AM, Corinna Vinschen  
> wrote:
> > These look like your standard Windows SIDs, so they are your SIDs for
> > users cristina and croehrig on Windows.  They should show up as such in
> > ls -l output, unless the SID is actuall wrong, e. g., they map to your
> > accounts on another machine or something like that.
> 
> No those are the SIDs supplied by the Samba server (see below for my local 
> Windows SIDs).   Here they are directly on the Linux machine:
> housesrv[11]% smbcacls --numeric //housesrv/Users croehrig
> Enter WORKGROUP\croehrig's password: 
> REVISION:1
> CONTROL:0x9004
> OWNER:S-1-5-21-751087815-2087572193-42305691-1000
> GROUP:S-1-22-2-601
> ACL:S-1-5-21-751087815-2087572193-42305691-1000:0/0x0/0x001f01ff
> ACL:S-1-22-2-601:0/0x0/0x001200a9
> ACL:S-1-1-0:0/0x0/0x001200a9
> 
> (I think that Samba now uses a more complex IDMAP algorithm than when
> the Cygwin document above was written and now provides a full domain
> component to its SIDs.)

That may be so, but in my installation, Samba reports the Unix User ID
as owner, i. e.

  $ icacls server\\corinna\\foo
  \\server\corinna\foo S-1-22-1-500:(R,W,D,WDAC,WO)
   S-1-22-2-11125:(R)
   Everyone:(R)

and that's with Samba 4.15.3.  I'm doing the mapping via the AD
uidNumber and gidNumber fields.  I'm using this setup for so long that I
don't remember if I ever saw a "normal", Windows-like SID for the user
returned by Samba.  I never ran winbindd, up until Samba 4.15.3, which
was the first one forcing me to do so when using AD support.

> I just added those SIDs to  /etc/passwd and /etc/groups (double
> entries now) and it now works for the user, but (oddly) not the group:
> 
> tyto[6]% ls -l //housesrv/Users/  ## NB: this is 
> a UNC path to the samba share
> total 0
> drwxr-xr-x 1 cristina Unix_Group+603 0 Jan 12 16:06 cristina
> drwxr-xr-x 1 croehrig Unix_Group+601 0 Jan 14 09:18 croehrig
> [...]
> tyto[10]% cat /etc/group
> croehrig:S-1-22-2-601:601:
> cristina:S-1-22-2-603:603:
> croehrig:S-1-5-21-1290748074-662758565-4273641972-1006:601:
> cristina:S-1-5-21-1290748074-662758565-4273641972-1008:603:

Hmm, that's weird.  I just tried this myself.  First I created a stock
/etc/group file with all local and AD accounts.  Next I changed
/etc/nsswitch.conf:

  - group: db
  + group: files

Exit/restart Cygwin. `ls -l' now prints

  -rw-r--r-- 1 corinna Unknown+Group 13342 Jan 17 10:46 //calimero/corinna/foo

Now I add this line to /etc/group:

  mygroup:S-1-22-2-11125:11125:

Exit/restart Cygwin.  Now `ls -l' prints

  -rw-r--r-- 1 corinna mygroup 13342 Jan 17 10:46 //calimero/corinna/foo

So it works, apparently.  Did you set `group: db' in /etc/nsswitch.conf,
by any chance?


Corinna

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


Re: Help with standalone samba SID-uid mapping

2022-01-14 Thread Chris Roehrig
On Fri Jan 14 2022, at 2:04 AM, Corinna Vinschen  
wrote:

> On Jan 13 14:39, Chris Roehrig wrote:
>> I'm trying to set up samba (standalone) following these instructions:
>>  https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-samba
>> 
>> but I'm having no luck getting my samba user/groups to appear correctly 
>> using the  comment field as described in the document.
>> 
>> I'm using samba 4.13.14 on Ubuntu 20.04 with security = user (smbpasswd).   
>> winbindd is not installed and I'm not using any LDAP or AD anywhere.
>> 
>> E.g. here is what is on the server (croehrig:croehrig = 601:601; 
>> cristina:cristina = 603:603)
>> housesrv[3]% ls -l /House/Users
>> total 17
>> drwxr-xr-x  9 cristina cristina 22 Jan 12 16:06 cristina
>> drwxr-xr-x 30 croehrig croehrig 53 Jan 13 09:47 croehrig
>> 
>> 
>> Here are the ACLs and SIDs when looking on the windows client:
>> tyto[5]% icacls housesrv\\Users\\\*
>> \\housesrv\Users\cristina S-1-5-21-751087815-2087572193-42305691-1001:(F)
>>  S-1-22-2-603:(RX)
>>  Everyone:(RX)
>> 
>> \\housesrv\Users\croehrig S-1-5-21-751087815-2087572193-42305691-1000:(F)
>>  S-1-22-2-601:(RX)
>>  Everyone:(RX)
>> 
>> As you can see, the gid is mapping to the S-1-22-2- as described
>> in the document above, but the uid is using a domain-specific SID with
>> different RIDs. 
> 
> These look like your standard Windows SIDs, so they are your SIDs for
> users cristina and croehrig on Windows.  They should show up as such in
> ls -l output, unless the SID is actuall wrong, e. g., they map to your
> accounts on another machine or something like that.

No those are the SIDs supplied by the Samba server (see below for my local 
Windows SIDs).   Here they are directly on the Linux machine:
housesrv[11]% smbcacls --numeric //housesrv/Users croehrig
Enter WORKGROUP\croehrig's password: 
REVISION:1
CONTROL:0x9004
OWNER:S-1-5-21-751087815-2087572193-42305691-1000
GROUP:S-1-22-2-601
ACL:S-1-5-21-751087815-2087572193-42305691-1000:0/0x0/0x001f01ff
ACL:S-1-22-2-601:0/0x0/0x001200a9
ACL:S-1-1-0:0/0x0/0x001200a9

(I think that Samba now uses a more complex IDMAP algorithm than when the 
Cygwin document above was written and now provides a full domain component to 
its SIDs.)


I just added those SIDs to  /etc/passwd and /etc/groups (double entries now) 
and it now works for the user, but (oddly) not the group:

tyto[6]% ls -l //housesrv/Users/## NB: this is 
a UNC path to the samba share
total 0
drwxr-xr-x 1 cristina Unix_Group+603 0 Jan 12 16:06 cristina
drwxr-xr-x 1 croehrig Unix_Group+601 0 Jan 14 09:18 croehrig

NB: I'm only having issues with the files on the samba share.   All my local 
files work fine and correctly show the user/group.

Here are the SIDs on my local Windows machine (they are different on each of my 
Windows clients):
tyto[7]% wmic useraccount get name,sid | grep cr
cristinaS-1-5-21-1290748074-662758565-4273641972-1007  
croehrigS-1-5-21-1290748074-662758565-4273641972-1002 
tyto[8]% wmic group get name,sid | grep cr
grp-cristina 
S-1-5-21-1290748074-662758565-4273641972-1008  
grp-croehrig 
S-1-5-21-1290748074-662758565-4273641972-1006  

tyto[9]% cat /etc/passwd
croehrig:*:601:601:HOUSESRV\croehrig,S-1-5-21-751087815-2087572193-42305691-1000:/home/croehrig:/bin/bash
cristina:*:603:603:HOUSESRV\cristina,S-1-5-21-751087815-2087572193-42305691-1001:/home/cristina:/bin/bash
croehrig:*:601:601:U-TYTO\croehrig,S-1-5-21-1290748074-662758565-4273641972-1002:/home/croehrig:/bin/bash
cristina:*:603:603:U-TYTO\cristina,S-1-5-21-1290748074-662758565-4273641972-1007:/home/cristina:/bin/bash

tyto[10]% cat /etc/group
croehrig:S-1-22-2-601:601:
cristina:S-1-22-2-603:603:
croehrig:S-1-5-21-1290748074-662758565-4273641972-1006:601:
cristina:S-1-5-21-1290748074-662758565-4273641972-1008:603:
admin:S-1-5-21-1290748074-662758565-4273641972-1004:80:
chrises:S-1-5-21-1290748074-662758565-4273641972-1003:1001:
house:S-1-5-21-1290748074-662758565-4273641972-1005:1002:
nobody:S-1-5-21-1290748074-662758565-4273641972-513:99:


Any idea why those first two /etc/group entries are not working?The rest 
work fine (on local files only of course).
I tried temporarily deleting the 3rd and 4th entries in case there was an issue 
with double entries but it made no difference (even after restarting all cygwin 
processes).


> 
>> On the windows client I have the same users and groups set up locally
>> (SAM) with appropriate SID mappings to the same uid/gids (601/603) in
>> the Cygwin /etc/passwd and /etc/group. This has all been working
>> well to ensure e.g. rsync preserves permissions and ownership between
>> cygwin and Linux.  (The windows groups are called 'grp-croehrig' and
>> 'grp-cristina' since windows users and groups share a namespace, but
>> they are mapped to 'croehrig' and 'cristina

Re: Help with standalone samba SID-uid mapping

2022-01-14 Thread Corinna Vinschen
On Jan 13 14:39, Chris Roehrig wrote:
> I'm trying to set up samba (standalone) following these instructions:
>   https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-samba
> 
> but I'm having no luck getting my samba user/groups to appear correctly using 
> the  comment field as described in the document.
> 
> I'm using samba 4.13.14 on Ubuntu 20.04 with security = user (smbpasswd).   
> winbindd is not installed and I'm not using any LDAP or AD anywhere.
> 
> E.g. here is what is on the server (croehrig:croehrig = 601:601; 
> cristina:cristina = 603:603)
> housesrv[3]% ls -l /House/Users
> total 17
> drwxr-xr-x  9 cristina cristina 22 Jan 12 16:06 cristina
> drwxr-xr-x 30 croehrig croehrig 53 Jan 13 09:47 croehrig
> 
> 
> Here are the ACLs and SIDs when looking on the windows client:
> tyto[5]% icacls housesrv\\Users\\\*
> \\housesrv\Users\cristina S-1-5-21-751087815-2087572193-42305691-1001:(F)
>   S-1-22-2-603:(RX)
>   Everyone:(RX)
> 
> \\housesrv\Users\croehrig S-1-5-21-751087815-2087572193-42305691-1000:(F)
>   S-1-22-2-601:(RX)
>   Everyone:(RX)
> 
> As you can see, the gid is mapping to the S-1-22-2- as described
> in the document above, but the uid is using a domain-specific SID with
> different RIDs. 

These look like your standard Windows SIDs, so they are your SIDs for
users cristina and croehrig on Windows.  They should show up as such in
ls -l output, unless the SID is actuall wrong, e. g., they map to your
accounts on another machine or something like that.

> On the windows client I have the same users and groups set up locally
> (SAM) with appropriate SID mappings to the same uid/gids (601/603) in
> the Cygwin /etc/passwd and /etc/group. This has all been working
> well to ensure e.g. rsync preserves permissions and ownership between
> cygwin and Linux.  (The windows groups are called 'grp-croehrig' and
> 'grp-cristina' since windows users and groups share a namespace, but
> they are mapped to 'croehrig' and 'cristina' in /etc/group).
> 
> 
> Here is how the SMB share looks under Cygwin:
> tyto[6]% ls -l //housesrv/Users/
> total 0
> drwxr-xr-x 1 Unknown+User Unix_Group+603 0 Jan 12 16:06 cristina
> drwxr-xr-x 1 Unknown+User Unix_Group+601 0 Jan 13 09:47 croehrig

Sorry, but I don't quite understand.  If you have matching /etc/passwd
and /etc/group files, and your /etc/nsswitch.conf allows reading the
files, this shouldn't happen.  Are the Windows SIDs correct?  Are they
matching your machine?


Corinna

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


Help with standalone samba SID-uid mapping

2022-01-13 Thread Chris Roehrig
I'm trying to set up samba (standalone) following these instructions:
https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-samba

but I'm having no luck getting my samba user/groups to appear correctly using 
the  comment field as described in the document.

I'm using samba 4.13.14 on Ubuntu 20.04 with security = user (smbpasswd).   
winbindd is not installed and I'm not using any LDAP or AD anywhere.

E.g. here is what is on the server (croehrig:croehrig = 601:601; 
cristina:cristina = 603:603)
housesrv[3]% ls -l /House/Users
total 17
drwxr-xr-x  9 cristina cristina 22 Jan 12 16:06 cristina
drwxr-xr-x 30 croehrig croehrig 53 Jan 13 09:47 croehrig


Here are the ACLs and SIDs when looking on the windows client:
tyto[5]% icacls housesrv\\Users\\\*
\\housesrv\Users\cristina S-1-5-21-751087815-2087572193-42305691-1001:(F)
  S-1-22-2-603:(RX)
  Everyone:(RX)

\\housesrv\Users\croehrig S-1-5-21-751087815-2087572193-42305691-1000:(F)
  S-1-22-2-601:(RX)
  Everyone:(RX)

As you can see, the gid is mapping to the S-1-22-2- as described in the 
document above, but
the uid is using a domain-specific SID with different RIDs. 


On the windows client I have the same users and groups set up locally (SAM) 
with appropriate SID mappings to the same uid/gids (601/603) in the Cygwin 
/etc/passwd and /etc/group. This has all been working well to ensure e.g. 
rsync preserves permissions and ownership between cygwin and Linux.  (The 
windows groups are called 'grp-croehrig' and 'grp-cristina' since windows users 
and groups share a namespace, but they are mapped to 'croehrig' and 'cristina' 
in /etc/group).


Here is how the SMB share looks under Cygwin:
tyto[6]% ls -l //housesrv/Users/
total 0
drwxr-xr-x 1 Unknown+User Unix_Group+603 0 Jan 12 16:06 cristina
drwxr-xr-x 1 Unknown+User Unix_Group+601 0 Jan 13 09:47 croehrig
tyto[7]% ls -ln //housesrv/Users/
total 0
drwxr-xr-x 1 4294967295 4278190683 0 Jan 12 16:06 cristina
drwxr-xr-x 1 4294967295 4278190681 0 Jan 13 09:47 croehrig

I have added the SAM desc/comment field as described in the document above:  
i.e.
net localgroup grp-croehrig /comment:''
net user croehrig /comment:''
and restarted all Cygwin processes, but it doesn't seem to have any effect 
('net user croehrig' shows the comment is indeed present). I guess I don't 
understand how that comment field works.


Anyone have any advice? 

Thanks,
-- Chris


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


Re: Need help with Cygwin issue

2022-01-11 Thread cygwinautoreply
>Hi,

>Team surfaced Cygwin issue as follows:

>Cygwin WARNING:
>  Couldn't compute FAST_CWD pointer.  This typically occurs if you're using
>  an older Cygwin version on a newer Windows.  Please update to the latest
>  available Cygwin version from https://cygwin.com/.  If the problem 
> persists,
>  please see https://cygwin.com/problems.html

>Any help towards resolution would be much appreciated.

>Thanks and Regards,
>Harish Jayaram
>Dell EMC | SW Engineering



>Internal Use - Confidential


https://cygwin.com/faq.html#faq.using.fixing-find_fast_cwd-warnings

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


Need help with Cygwin issue

2022-01-11 Thread Jayaram, Harish
Hi,

Team surfaced Cygwin issue as follows:

Cygwin WARNING:
  Couldn't compute FAST_CWD pointer.  This typically occurs if you're using
  an older Cygwin version on a newer Windows.  Please update to the latest
  available Cygwin version from https://cygwin.com/.  If the problem 
persists,
  please see https://cygwin.com/problems.html

Any help towards resolution would be much appreciated.

Thanks and Regards,
Harish Jayaram
Dell EMC | SW Engineering



Internal Use - Confidential

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


Re: w3m displays blank help page

2021-12-29 Thread Marco Atzeri

On 30.12.2021 02:13, Gary Johnson wrote:

On 2021-12-29, Ken Brown wrote:

On 12/29/2021 4:44 PM, Gary Johnson wrote:

So, I have
a workaround for the problem, but I'd really like a proper fix, and
there may be other users with this problem.


w3m currently has no maintainer.  Would you like to take over?


Possibly.  Let me take a look at fixing it properly and if I can
figure that out, I can probably manage maintaining it.

I didn't see any Cygwin-specific docs or maintenance notes among the
package or source files.  That must mean that there's nothing to it.

Regards,
Gary




See
https://cygwin.com/packages/x86_64/w3m-src/w3m-0.5.3-3-src

the cygwin source package has several patches.

I suggest you to try rebuilding it to familiarize with the
cygport tool.
It is possible that the changes in the build tools need
some adjustment after all these years..


After the

   cygport w3m.cygport prep

step, you can add your patch to the "src" subtree and cygport
will produce during packaging phase a new patch that you can rename
and add to the existing one in the w3m.cygport.

You can ask more info in the "cygwin-apps at cygwin dot com"
mailing list.
https://cygwin.com/mailman/listinfo/cygwin-apps




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


Re: w3m displays blank help page

2021-12-29 Thread Gary Johnson
On 2021-12-29, Ken Brown wrote:
> On 12/29/2021 4:44 PM, Gary Johnson wrote:
> >So, I have
> >a workaround for the problem, but I'd really like a proper fix, and
> >there may be other users with this problem.
> 
> w3m currently has no maintainer.  Would you like to take over?

Possibly.  Let me take a look at fixing it properly and if I can
figure that out, I can probably manage maintaining it.

I didn't see any Cygwin-specific docs or maintenance notes among the
package or source files.  That must mean that there's nothing to it.

Regards,
Gary


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


Re: w3m displays blank help page

2021-12-29 Thread Ken Brown

On 12/29/2021 4:44 PM, Gary Johnson wrote:

So, I have
a workaround for the problem, but I'd really like a proper fix, and
there may be other users with this problem.


w3m currently has no maintainer.  Would you like to take over?

Ken

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


w3m displays blank help page

2021-12-29 Thread Gary Johnson
I recently installed the w3m package.  When I tried to display the
help page by typing "H", I got only a blank page with this message
in the status line:

≪ ↑ ↓ Viewing  No Line

I did some poking around, ran w3m with strace, and found that w3m
runs the script /usr/libexec/w3m/cgi-bin/w3mhelp.cgi to generate its
help page.  When I ran that script alone, I got this message (on one
line):

Can't use 'defined(%hash)' (Maybe you should just omit the defined()?) at 
/usr/libexec/w3m/cgi-bin/w3mhelp.cgi line 51.

I did that, as shown in this diff:

$ diff w3mhelp.cgi.orig w3mhelp.cgi
51,53c51
<   if (defined(%funcdesc)) {
<   $lang = $tlang;
<   }
---
>   $lang = $tlang;
>

Having done that, the "H" help function works fine.  So, I have
a workaround for the problem, but I'd really like a proper fix, and
there may be other users with this problem.

I also recently installed w3m onto my Ubuntu 20.04.3 LTS system and
the w3m help page displays fine there with no modification to that
file.

To see the problem:

1.  At the bash prompt, execute
$ w3m -v
2.  Type
H

The package appears to be installed properly:

$ cygcheck -c w3m
Cygwin Package Information
Package  VersionStatus
w3m  0.5.3-3OK

The output of "cygcheck -s -v -r", sanitized, is attached.

Regards,
Gary

Cygwin Configuration Diagnostics
Current System Time: Wed Dec 29 20:34:14 2021

Windows 10 Enterprise Ver 10.0 Build 18363 

Path:   C:\cygwin64\home\MyUserName\bin\cygwin-scripts
C:\cygwin64\home\MyUserName\bin
C:\cygwin64\usr\local\bin
C:\cygwin64\usr\sbin
C:\cygwin64\bin
C:\cygwin64\sbin
C:\WINDOWS\CCM
C:\WINDOWS\system32
C:\WINDOWS
C:\WINDOWS\System32\Wbem
C:\WINDOWS\System32\WindowsPowerShell\v1.0
C:\WINDOWS\System32\OpenSSH

C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
C:\Program Files (x86)\Adaptiva\AdaptivaClient\bin\x32
C:\Program Files (x86)\Adaptiva\AdaptivaClient\bin\x64
C:\Program Files\1E\Client\Extensibility\NomadBranch
C:\Program Files\Git\cmd
C:\Users\MyUserName\AppData\Local\Programs\Python\Python39\Scripts
C:\Users\MyUserName\AppData\Local\Programs\Python\Python39
C:\Users\MyUserName\AppData\Local\Microsoft\WindowsApps
C:\cygwin64\lib\lapack
C:\cygwin64\home\MyUserName\bin\scripts
C:\cygwin64\usr\local\src\git-toolbelt\git-toolbelt
C:\Keil_v5\ARM\ARMCC\bin

Output from C:\cygwin64\bin\id.exe
...

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

USER = 'MyUserName'
PWD = '/home/MyUserName'
HOME = '/home/MyUserName'

USERDOMAIN = 'MYUSERDOMAIN'
OS = 'Windows_NT'
LS_COLORS = 
'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=01;34:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*.3gp=01;35:*.JPG=01;35:*.MOV=01;35:*.vba=01;31:*.vmb=01;31:*.vim=00;33:*.xz=01;31:'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
PROCESSOR_LEVEL = '6'
PSModulePath = 'C:\Program 
Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;C:\Program
 Files (x86)\Adaptiva\AdaptivaClient\data\PSModules'
WCDEXCLUDE = 
'/cygdrive/c/Users/MyUserName/OneDrive:/cygdrive/c/Users/MyUserName/AppData'
CommonProgramW6432 = 'C:\Program Files\Common Files'
CommonProgramFiles(x86) = &#

Re: Help with the prunepaths option with findutils updatedb locate

2021-12-10 Thread Keith Christian
Brian,

Thanks very much for the prunepaths regexes, the /proc/filesystems output,
mount command, and info and man command lines, and the suggestions for
better posting.

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


Re: Help with the prunepaths option with findutils updatedb locate

2021-12-09 Thread Brian Inglis

On 2021-12-09 07:16, Keith Christian wrote:
I'm trying to keep the many directories with "OneDrive" in the 
pathname out of the locatedb file, as I don't care to see them in 
locate's output, nor bloat the locatedb file.
I'd appreciate any insight into the prunepaths option for the test 
case below, (Line 10,) and how to tell prunepaths to ignore paths

with spaces so that the paths in Lines 5 and 6 below will not be
included in the locatedb file.



2. updatedb (GNU findutils) 4.8.0
3. CYGWIN_NT-10.0  3.2.0(0.340/5/3) 2021-03-29 08:42 x86_64 Cygwin


4. Unfortunately, on this Windows 10 PC there are 650 unique 
directory paths with "OneDrive" in them, and these three are the

most numerous:
5. /cygdrive/c/Users/corporatedroid/OneDrive - FoobarCorp/
6. /home/c_users_corporatedroid/corporatedroid/OneDrive - FoobarCorp/
7. /cygdrive/c/Users/corporatedroid/AppData/Local/Microsoft/FoobarCorp/



8. With the one-liner below, we create a small locatedb file
(/var/locatedb_prune_test) and specify that prunepaths omit the
'/cygdrive/c/Users/corporatedroid/AppData/Local/Microsoft/OneDrive/ListSync'
subdirectory:



10. F=/var/locatedb_prune_test; echo ; updatedb
--localpaths='/cygdrive/c/Users/corporatedroid/AppData/Local/Microsoft/OneDrive'
--output=${F} 
--prunepaths='/cygdrive/c/Users/corporatedroid/AppData/Local/Microsoft/OneDrive/ListSync';
 ls -l ${F}
11. -rw-r--r-- 1 corporatedroid Domain Users 26280 Dec 9 06:22 
/var/locatedb_prune_test



13. Here, we see that the path ending with 'ListSync'
incorrectly appears in the /var/locatedb_prune_test output despite the
prunepaths option in line 10:



15. F=/var/locatedb_prune_test;locate -d${F} 'ListSync'|cat -n|tail -3
16. 33 
/cygdrive/c/Users/corporatedroid/AppData/Local/Microsoft/OneDrive/logs/ListSync/Business1/Nucleus-2021-12-09.1317.15440.1.odl
17. 34 
/cygdrive/c/Users/corporatedroid/AppData/Local/Microsoft/OneDrive/logs/ListSync/Business1/microsoftNucleusTelemetryCache.otc
18. 35 
/cygdrive/c/Users/corporatedroid/AppData/Local/Microsoft/OneDrive/logs/ListSync/Business1/telemetry-dll-ramp-value.txt



Any ideas appreciated.


Search:

https://www.mail-archive.com/search?l=cygwin%40cygwin.com&q=updatedb

e.g.

https://www.mail-archive.com/cygwin@cygwin.com/msg146142.html

for operational hints.

For info:

$ info updatedb
/--prunepaths=
$ info -- find -regex

The option --prunepaths takes an argument containing a space separated 
list of find ... -regex (Basic) REs which match *complete* directory 
paths to prune from: if absolute, these start with / and end without 
one; try an argument list where USER=corporatedroid and CORP=FoobarCorp 
like for example:


"/.*[Uu]sers.*$USER.*OneDrive.* /.*[Uu]sers.*$USER.*$CORP.* 
/.*[Uu]sers.*$USER.*ListSync.* /[^[:space:]]*"


or even:

"/.*[Uu]sers.*$USER.*\(OneDrive\|$CORP\|ListSync\).* /[^[:space:]]*"

You may want to be sure those directories are mounted as --localpaths 
rather than --netpaths which have additional requirements:


$ cat /proc/filesystems
vfat
exfat
ntfs
refs
nodev   smbfs
nodev   nfs
nodev   netapp
iso9660
udf
nodev   csc-cache
nodev   unixfs
nodev   mvfs
nodev   cifs
nodev   nwfs
nodev   ncfsd
nodev   afs
nodev   prlfs
$ mount
C:/cygwin/bin on /usr/bin type ntfs (binary,auto)
C:/cygwin/lib on /usr/lib type ntfs (binary,auto)
C:/cygwin on / type ntfs (binary,auto)
C: on /cygdrive/c type ntfs (binary,posix=0,noumount,auto)
...

[Please don't post with extra spaces, step nos (use text refs instead), 
or long command lines, as many devs and some users read with mono fonts 
and short wrap margins e.g 72, 80.

You could use updatedb env vars instead of options for readability.]

--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]

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


Help with the prunepaths option with findutils updatedb locate

2021-12-09 Thread Keith Christian
Fellow Cygwin fans,

I'm trying to keep the many directories with "OneDrive" in the
pathname out of the locatedb file, as I don't care to see them in
locate's output, nor bloat the locatedb file.

I'd appreciate any insight into the prunepaths option for the test
case below, (Line 10,) and how to tell prunepaths to ignore paths with
spaces so that the paths in Lines 5 and 6 below will not be included
in the locatedb file.


 1.   Versions:
 2.   updatedb (GNU findutils) 4.8.0
 3.   CYGWIN_NT-10.0  3.2.0(0.340/5/3) 2021-03-29 08:42 x86_64 Cygwin

 4.   Unfortunately, on this Windows 10 PC there are 650 unique
directory paths with "OneDrive" in them, and these three are the most
numerous:
 5. /cygdrive/c/Users/corporatedroid/OneDrive - FoobarCorp/
 6.
/home/c_users_corporatedroid/corporatedroid/OneDrive - FoobarCorp/
 7.
/cygdrive/c/Users/corporatedroid/AppData/Local/Microsoft/FoobarCorp/


 8.   With the one-liner below, we create a small locatedb file
(/var/locatedb_prune_test) and specify that prunepaths omit the
'/cygdrive/c/Users/corporatedroid/AppData/Local/Microsoft/OneDrive/ListSync'
subdirectory:
 9.   ==
10.   F=/var/locatedb_prune_test; echo ; updatedb
--localpaths='/cygdrive/c/Users/corporatedroid/AppData/Local/Microsoft/OneDrive'
--output=${F} 
--prunepaths='/cygdrive/c/Users/corporatedroid/AppData/Local/Microsoft/OneDrive/ListSync'
; ls -l ${F}

11.   -rw-r--r-- 1 corporatedroid Domain Users 26280 Dec
9 06:22 /var/locatedb_prune_test
12.   ==



13.   Here, we see that the path ending with 'ListSync'
incorrectly appears in the /var/locatedb_prune_test output despite the
prunepaths option in line 10:
14.   ==
15.   F=/var/locatedb_prune_test;locate -d${F} 'ListSync'|cat -n|tail -3
16.   33
/cygdrive/c/Users/corporatedroid/AppData/Local/Microsoft/OneDrive/logs/ListSync/Business1/Nucleus-2021-12-09.1317.15440.1.odl
17.   34
/cygdrive/c/Users/corporatedroid/AppData/Local/Microsoft/OneDrive/logs/ListSync/Business1/microsoftNucleusTelemetryCache.otc
18.   35
/cygdrive/c/Users/corporatedroid/AppData/Local/Microsoft/OneDrive/logs/ListSync/Business1/telemetry-dll-ramp-value.txt
19.   ==

Any ideas appreciated.

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


Re: Error encountered in Octave software - Please help!!

2021-09-16 Thread Takashi Yano via Cygwin
On Thu, 16 Sep 2021 15:44:06 -0400
Bryan VanSchouwen wrote:
> I just tried performing an analysis in the Octave software (GNU Octave,
> version 5.2.0), using the attached "dm" input file, and the following
> commands:
> load dm
> cdmt = cor(dm.')
> 
> However, I encountered the following error message:
> error: 'cor' undefined near line 1 column 8
> 
> What is going on here??

cor() requires package nan. So please install octave-nan
package and run 'pkg load nan' from octave command line.

'pkg load nan' shows many warning messages. However, it
seems to work.

-- 
Takashi Yano 

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


Error encountered in Octave software - Please help!!

2021-09-16 Thread Bryan VanSchouwen via Cygwin
Hello.

I just tried performing an analysis in the Octave software (GNU Octave,
version 5.2.0), using the attached "dm" input file, and the following
commands:
load dm
cdmt = cor(dm.')

However, I encountered the following error message:
error: 'cor' undefined near line 1 column 8

What is going on here??


dm
Description: Binary data

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


Re: Previously-functional gawk script now failing to execute - PLEASE HELP!!!

2021-09-15 Thread Brian Inglis

On 2021-09-15 15:11, Bryan VanSchouwen via Cygwin wrote:

I just tried executing an old, previously-functional awk script using a
version of gawk that I had downloaded last year, and a command of the
following format (as recommended in a previous communication with the
Cygwin mailing list):
gawk -vRS="\r\n" -f data_collect_e_-_FF_4-state.awk
but this time, the script failed to execute!!

Upon closer examination, the script appears to be failing after
successfully reading the first line of data from the input data file, even
though the input file has NOT been modified since it was last used.  (I
should point out that while the files were copied over from my old
computer, another awk script execution that I had attempted recently with
older files worked fine!)


So the script is not failing to execute, it is successfully reading the 
first line: so how is it failing, and what has that to do with the input 
file being modified, and if the input file has not been modified since 
the script was last used, why are you rerunning it?


Package gawk has been updated once a year for the last 4 years, up until 
2020-04, and has not changed recently, so the problem may be with your 
data file, or the script, or your Cygwin installation, and only you can 
really answer that, as they have been "copied" from another computer: 
using what process? How was Cygwin setup on the new computer, and which 
version of gawk was installed to be used?


--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]

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


Re: Previously-functional gawk script now failing to execute - PLEASE HELP!!!

2021-09-15 Thread Lee via Cygwin
On 9/15/21, Bryan VanSchouwen via Cygwin wrote:
> Hello.
>
> I just tried executing an old, previously-functional awk script using a
> version of gawk that I had downloaded last year, and a command of the
> following format (as recommended in a previous communication with the
> Cygwin mailing list):
> gawk -vRS="\r\n" -f data_collect_e_-_FF_4-state.awk
> but this time, the script failed to execute!!

The data file you attached doesn't have "\r\n" line endings:
$ file rpcg_FF_filtrd.txt
rpcg_FF_filtrd.txt: ASCII text

compare with one that does:
$ file test.txt
test.txt: ASCII text, with CRLF line terminators

<.. snip ..>
> What the heck is going on with this software, and is there a way to fix
> it?!

I don't use RS and start my awk scripts off with
  sub("\r$", "", $0)  # fix any \r\n line endings
so my scripts work with either flavor of line endings.

If you don't want to change your script try changing your input
  unix2dos 

Regards,
Lee

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


Previously-functional gawk script now failing to execute - PLEASE HELP!!!

2021-09-15 Thread Bryan VanSchouwen via Cygwin
Hello.

I just tried executing an old, previously-functional awk script using a
version of gawk that I had downloaded last year, and a command of the
following format (as recommended in a previous communication with the
Cygwin mailing list):
gawk -vRS="\r\n" -f data_collect_e_-_FF_4-state.awk
but this time, the script failed to execute!!

Upon closer examination, the script appears to be failing after
successfully reading the first line of data from the input data file, even
though the input file has NOT been modified since it was last used.  (I
should point out that while the files were copied over from my old
computer, another awk script execution that I had attempted recently with
older files worked fine!)

(For reference, I have attached copies of the script and input files.)

What the heck is going on with this software, and is there a way to fix it?!
224 0.595851431 0.09369783
225 0.889062608 0.033480286
226 0.835640914 0.024667245
228 0.926425963 0.100830335
229 1.647598528 0.053075286
230 1.342667163 0.049740591
231 1.23487811 0.303661798
232 0.918372444 0.201229278
233 1.073620187 0.038863171
234 1.282736478 0.092083566
237 1.198194998 0.061451225
238 1.517388582 0.183405758
239 0.777250185 0.042951855
240 1.442106405 0.071534566
242 1.127683833 0.180393161
243 0.75826546 0.10362625
244 0.806582369 0.053810549
245 0.782472863 0.089712654
246 0.7665594 0.063004719
247 1.133027476 0.116433654
248 0.228653463 0.054674445
250 1.03832007 0.057555951
251 0.207643515 0.045497989
252 0.89097942 0.065711892
253 1.382205043 0.041019712
254 1.624161735 0.097996896
255 0.102011133 0.017824426
257 0.243916847 0.030898216
258 1.401842211 0.167043419
259 1.367403732 0.089365097
260 1.011543148 0.241393784
261 0.331122492 0.084430871
262 1.247481409 0.012064997
263 0.164144595 0.015874666
264 0.29124209 0.023159954
265 1.155980147 0.007664518
267 1.327231572 0.088667225
269 1.630417096 0.091432252
272 0.837876582 0.088357396
276 0.126347248 0.021352854
278 0.281248041 0.04460507
279 1.507370692 0.055864662
280 0.099307529 0.023337928
282 0.078283134 0.015679097
285 1.396978738 0.041014414
286 1.639489181 0.021233884
287 1.358795349 0.166693354
290 1.034468946 0.071941536
291 1.042912979 0.161347016
292 1.243638613 0.186114384
294 1.465291389 0.080129079
295 1.498983157 0.261019123
297 1.020960822 0.039127181
298 1.014076358 0.055905146
299 0.10474365 0.025701761
300 1.164509327 0.06490821
301 1.581053193 0.117554464
302 1.198070393 0.279390802
304 1.030638676 0.098787267
306 1.892887325 0.148397402
307 1.180718504 0.269259715
308 1.250687158 0.220505404
309 1.389652687 0.061317639
310 1.071337559 0.071155291
311 0.655741784 0.083834781
312 0.757954775 0.06606795
315 1.861485087 0.302438971
316 1.543650517 0.131453064
317 0.590790541 0.17252546
318 1.360237347 0.017090096
319 0.092471202 0.03160355
322 0.160293668 0.018528699
323 1.498177719 0.063140897
324 1.33747325 0.077138118
325 1.135054625 0.14033561
326 0.106286087 0.010054509
327 0.172350731 0.062090642
332 1.599736857 0.07364121
333 0.719466407 0.104815196
334 0.95050495 0.042289463
335 0.950136142 0.102065088
337 0.930073299 0.164582827
338 0.931813131 0.083700864
339 0.797003512 0.019929439
340 0.948011214 0.025551098
341 1.158923159 0.115968704
342 1.151928768 0.090588751
343 1.558238511 0.070125811
345 1.78478822 0.203931487
346 1.184805052 0.015907815
347 0.918694163 0.016359047
348 0.334625526 0.081083201
349 1.330240541 0.108204132
350 1.23117168 0.128820577
353 0.822391221 0.060853522
354 0.84578441 0.133596858


data_collect_e_-_FF_4-state.awk
Description: Binary data
224 0.509749968 0.177160603
225 0.558302662 0.133600275
226 0.691840552 0.051067741
227 1.233597604 0.283456681
228 0.421856797 0.148593149
229 0.718569048 0.172281526
230 0.873414173 0.141360943
232 0.814583694 0.116116109
233 0.545530204 0.10546754
234 0.99700609 0.169893273
237 1.147039778 0.248435675
238 1.212524735 0.136625425
239 0.815957312 0.154361412
240 1.002183096 0.097622672
242 0.685532137 0.195614404
243 0.690542903 0.177536237
244 1.067802596 0.299976054
245 0.611368407 0.087569393
246 1.294782866 0.320160689
247 1.355992615 0.162978753
249 0.992940868 0.202092716
250 0.837372727 0.104691616
251 0.545193505 0.129523309
252 0.751120079 0.141558128
258 1.596453745 0.293675409
259 0.790301838 0.126762602
260 0.968986106 0.098652785
261 0.842054028 0.073642471
262 1.152477734 0.101408622
265 1.139992142 0.098671518
266 1.338325639 0.216312478
267 1.463659157 0.236418172
268 0.927751272 0.123255266
270 0.86399925 0.138745433
272 0.520219938 0.170853123
278 0.704652944 0.09522493
279 1.890656381 0.499643642
280 0.398963117 0.118476991
284 0.122517329 0.049364492
285 1.134970966 0.106429413
286 1.176698565 0.201348106
287 1.07703454 0.157882271
288 0.969053608 0.147946755
290 0.634496025 0.186587724
291 0.990315215 0.116076617
294 1.315796916 0.222188321
295 1.241466428 0.161521586
296 1.060798921 0.087565525
297 1.331018926 0.110648457
298 1.213718667 0.335101144
300 1.0742

Re: Previously-functional gawk script now failing to execute - PLEASE HELP!!!

2021-09-15 Thread Eliot Moss

On 9/15/2021 5:11 PM, Bryan VanSchouwen via Cygwin wrote:

Hello.

I just tried executing an old, previously-functional awk script using a
version of gawk that I had downloaded last year, and a command of the
following format (as recommended in a previous communication with the
Cygwin mailing list):
gawk -vRS="\r\n" -f data_collect_e_-_FF_4-state.awk
but this time, the script failed to execute!!

Upon closer examination, the script appears to be failing after
successfully reading the first line of data from the input data file, even
though the input file has NOT been modified since it was last used.  (I
should point out that while the files were copied over from my old
computer, another awk script execution that I had attempted recently with
older files worked fine!)


Ignoring the shouting :-) ...

That command line assumes that the program will see \r\n
at the end of each line of input.  That is indeed the usual
line ending on Windows.  However!  Since it is not the usual
line ending on Posix (what Cygwin aims to be like), there
are various options/flags that can affect an internal
translation that effectively changes \r\n to \n, or
something like that.

Others will be able to supply the details more readily
than I, but I would look at the environment variable and
startup options to Cygwin around this point and see where
that leads you.

Regards - Eliot Moss

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


Re: Previously-functional gawk script now failing to execute - PLEASE HELP!!!

2021-09-15 Thread Bill Stewart
On Wed, Sep 15, 2021 at 3:11 PM Bryan VanSchouwen wrote:

WHAT THE HECK IS GOING ON WITH THIS SOFTWARE?!
>

 I don't know what the technical problem is, but I would politely point out:

1. Typing things in all caps is considered shouting

2. Shouting at the people who might be able to help you is probably not the
best way to get help (to put it mildly)

3. Remember that the people who might be able to help you do so on a
volunteer basis (also, see #2 above)

You may be frustrated, but you're not doing yourself any favors by being
rude.

Bill

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


Previously-functional gawk script now failing to execute - PLEASE HELP!!!

2021-09-15 Thread Bryan VanSchouwen via Cygwin
Hello.

I just tried executing an old, previously-functional awk script using a
version of gawk that I had downloaded last year, and a command of the
following format (as recommended in a previous communication with the
Cygwin mailing list):
gawk -vRS="\r\n" -f data_collect_e_-_FF_4-state.awk
but this time, the script failed to execute!!

Upon closer examination, the script appears to be failing after
successfully reading the first line of data from the input data file, even
though the input file has NOT been modified since it was last used.  (I
should point out that while the files were copied over from my old
computer, another awk script execution that I had attempted recently with
older files worked fine!)

WHAT THE HECK IS GOING ON WITH THIS SOFTWARE?!

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


Help using Cygwin on AppVeyor by Apache thrift, any lucky guesses?

2021-08-05 Thread Mario Emmenlauer


Dear Cygwin community,

I know that my report here is not super helpful, but I'm in a
slightly tight spot, and hope that someone can help me with a
lucky guess?!

I'd like to improve the AppVeyor CI build for the Apache thrift
project for Cygwin. Apache thrift builds and tests on Cygwin by
default, but since a while, the builds have failed with cmake
problems. The error message is not too helpful - so I hope that
someone here may just have had the same issue before and can
help?
We use `apt-cyg` to install the packages, could this be related?


Here is a link to a failed build log:
https://ci.appveyor.com/project/ApacheSoftwareFoundation/thrift/builds/40263513/job/a69xt6m4o0y9x1bw?fullLog=true


cmake fails with the (not so helpful) error message:
C:/cygwin64/bin/cmake.exe: error while loading shared libraries: ?: cannot open 
shared object file: No such file or directory

The corresponding Cygwin AppVeyor installation is:
https://github.com/apache/thrift/blob/781143e75cb585c0a88dea3f904c77228531d1d6/build/appveyor/CYGW-appveyor-install.bat


After the install, there is a call to `refreshenv` in the
appveyor.yml, so I think the problem is not due to an incomplete
environment setup.

And the corresponding Cygwin AppVeyor build script is:
https://github.com/apache/thrift/blob/781143e75cb585c0a88dea3f904c77228531d1d6/build/appveyor/CYGW-appveyor-build.bat


Any help would be highly appreciated!

All the best,

Mario Emmenlauer


--
BioDataAnalysis GmbH, Mario Emmenlauer  Tel. Buero: +49-89-74677203
Balanstr. 43   mailto: memmenlauer * biodataanalysis.de
D-81669 München  http://www.biodataanalysis.de/

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


Re: help please

2021-03-07 Thread cygwinautoreply--- via Cygwin
> 1 [main] john 2960 find_fast_cwd: WARNING: Couldn't compute FAST_CWD
>pointer.  Please report this problem to
>the public mailing list cygwin@cygwin.com
>Warning: detected hash type "whirlpool", but the string is also recognized
>as "whirlpool0"
>Use the "--format=whirlpool0" option to force loading these as that type
>instead
>Warning: detected hash type "whirlpool", but the string is also recognized
>as "whirlpool1"
>Use the "--format=whirlpool1" option to force loading these as that type
>instead

https://cygwin.com/faq.html#faq.using.fixing-find_fast_cwd-warnings
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


help please

2021-03-07 Thread COOL BLACKS via Cygwin
 1 [main] john 2960 find_fast_cwd: WARNING: Couldn't compute FAST_CWD
pointer.  Please report this problem to
the public mailing list cygwin@cygwin.com
Warning: detected hash type "whirlpool", but the string is also recognized
as "whirlpool0"
Use the "--format=whirlpool0" option to force loading these as that type
instead
Warning: detected hash type "whirlpool", but the string is also recognized
as "whirlpool1"
Use the "--format=whirlpool1" option to force loading these as that type
instead
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: please help - "No Solution" - solves using astrometry.net

2021-03-06 Thread cygwinautoreply--- via Cygwin
>2021-03-07 00:07:43,891 - astrotortilla.LogFrame - INFO - Log level changed
>to 'Debug'

>2021-03-07 00:08:10,323 - astrotortilla - INFO - Connecting to camera...

>2021-03-07 00:08:10,710 - astrotortilla - INFO - Exposing: 10.00 seconds

>2021-03-07 00:08:10,755 - astrotortilla - INFO - Exposing: 10.0 seconds

>2021-03-07 00:08:11,223 - astrotortilla - INFO - Exposing: 9.5 seconds

>2021-03-07 00:08:11,749 - astrotortilla - INFO - Exposing: 9.0 seconds

>2021-03-07 00:08:12,226 - astrotortilla - INFO - Exposing: 8.5 seconds

>2021-03-07 00:08:12,727 - astrotortilla - INFO - Exposing: 8.0 seconds

>2021-03-07 00:08:13,234 - astrotortilla - INFO - Exposing: 7.5 seconds

>2021-03-07 00:08:13,729 - astrotortilla - INFO - Exposing: 7.0 seconds

>2021-03-07 00:08:14,223 - astrotortilla - INFO - Exposing: 6.5 seconds

>2021-03-07 00:08:14,737 - astrotortilla - INFO - Exposing: 6.0 seconds

>2021-03-07 00:08:15,233 - astrotortilla - INFO - Exposing: 5.5 seconds

>2021-03-07 00:08:15,730 - astrotortilla - INFO - Exposing: 5.0 seconds

>2021-03-07 00:08:16,223 - astrotortilla - INFO - Exposing: 4.5 seconds

>2021-03-07 00:08:16,750 - astrotortilla - INFO - Exposing: 4.0 seconds

>2021-03-07 00:08:17,249 - astrotortilla - INFO - Exposing: 3.5 seconds

>2021-03-07 00:08:17,744 - astrotortilla - INFO - Exposing: 3.0 seconds

>2021-03-07 00:08:18,240 - astrotortilla - INFO - Exposing: 2.5 seconds

>2021-03-07 00:08:18,733 - astrotortilla - INFO - Exposing: 2.0 seconds

>2021-03-07 00:08:19,229 - astrotortilla - INFO - Exposing: 1.5 seconds

>2021-03-07 00:08:19,739 - astrotortilla - INFO - Exposing: 1.0 seconds

>2021-03-07 00:08:20,250 - astrotortilla - INFO - Exposing: 0.5 seconds

>2021-03-07 00:08:21,230 - astrotortilla - INFO - Waiting for camera

>2021-03-07 00:08:21,823 - astrotortilla - INFO - Waiting for camera

>2021-03-07 00:08:22,042 - astrotortilla - INFO - Reading image from camera

>2021-03-07 00:08:22,305 - astrotortilla - INFO - Solving...

>2021-03-07 00:08:22,305 - astrotortilla.AstrometryNetSolver - DEBUG -
>Executing: solve-field -b /etc/astrometry/backend.cfg --sigma 30 --no-plots
>-N -H 40 -L 15 -r --objs 100 -L 15 -H 40 -u arcminwidth -z 2 -D \"`cygpath
>-a \"c:/users/mike/appdata/local/temp/solverj66yl4/0\"`\" \"`cygpath -a
>\"c:/users/mike/appdata/local/temp/camnhl0cj/Maxim.fit\"`\"

>2021-03-07 00:08:22,430 - astrotortilla - INFO -   0 [main] bash 1728
>find_fast_cwd: WARNING: Couldn't compute FAST_CWD pointer.  Please report
>this problem to

> 

>2021-03-07 00:08:22,540 - astrotortilla - INFO - the public mailing list
>cygwin@cygwin.com

> 

>2021-03-07 00:08:22,976 - astrotortilla - INFO - Do you really want to save
>the new FITS file to the file named "-H" ??

> 

>2021-03-07 00:08:23,085 - astrotortilla - INFO - Reading input file 1 of 2:
>"40"...

> 

>2021-03-07 00:08:23,305 - astrotortilla - INFO - ERROR: Image type not
>recognized: Could not determine file type (does the file exist?): 40

> 

>2021-03-07 00:08:24,131 - astrotortilla - INFO -
>ioutils.c:605:run_command_get_outputs Command failed: return value 255

> 

>2021-03-07 00:08:24,135 - astrotortilla - INFO -
>augment-xylist.c:585:backtick Failed to run command:
>/usr/lib/astrometry/bin/image2pnm.py --sanitized-fits-outfile
>/tmp/tmp.sanitized.JY3Q1Q --fix-sdss --infile 40 --uncompressed-outfile
>/tmp/tmp.uncompressed.eR2liK --outfile /tmp/tmp.ppm.DY7vve --ppm

> 

>2021-03-07 00:08:24,142 - astrotortilla.AstrometryNetSolver - DEBUG - Pid
>1728 exit code 255

>2021-03-07 00:08:24,148 - astrotortilla - INFO - No solution in 1.8s


https://cygwin.com/faq.html#faq.using.fixing-find_fast_cwd-warnings
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


please help - "No Solution" - solves using astrometry.net

2021-03-06 Thread Mike
2021-03-07 00:07:43,891 - astrotortilla.LogFrame - INFO - Log level changed
to 'Debug'

2021-03-07 00:08:10,323 - astrotortilla - INFO - Connecting to camera...

2021-03-07 00:08:10,710 - astrotortilla - INFO - Exposing: 10.00 seconds

2021-03-07 00:08:10,755 - astrotortilla - INFO - Exposing: 10.0 seconds

2021-03-07 00:08:11,223 - astrotortilla - INFO - Exposing: 9.5 seconds

2021-03-07 00:08:11,749 - astrotortilla - INFO - Exposing: 9.0 seconds

2021-03-07 00:08:12,226 - astrotortilla - INFO - Exposing: 8.5 seconds

2021-03-07 00:08:12,727 - astrotortilla - INFO - Exposing: 8.0 seconds

2021-03-07 00:08:13,234 - astrotortilla - INFO - Exposing: 7.5 seconds

2021-03-07 00:08:13,729 - astrotortilla - INFO - Exposing: 7.0 seconds

2021-03-07 00:08:14,223 - astrotortilla - INFO - Exposing: 6.5 seconds

2021-03-07 00:08:14,737 - astrotortilla - INFO - Exposing: 6.0 seconds

2021-03-07 00:08:15,233 - astrotortilla - INFO - Exposing: 5.5 seconds

2021-03-07 00:08:15,730 - astrotortilla - INFO - Exposing: 5.0 seconds

2021-03-07 00:08:16,223 - astrotortilla - INFO - Exposing: 4.5 seconds

2021-03-07 00:08:16,750 - astrotortilla - INFO - Exposing: 4.0 seconds

2021-03-07 00:08:17,249 - astrotortilla - INFO - Exposing: 3.5 seconds

2021-03-07 00:08:17,744 - astrotortilla - INFO - Exposing: 3.0 seconds

2021-03-07 00:08:18,240 - astrotortilla - INFO - Exposing: 2.5 seconds

2021-03-07 00:08:18,733 - astrotortilla - INFO - Exposing: 2.0 seconds

2021-03-07 00:08:19,229 - astrotortilla - INFO - Exposing: 1.5 seconds

2021-03-07 00:08:19,739 - astrotortilla - INFO - Exposing: 1.0 seconds

2021-03-07 00:08:20,250 - astrotortilla - INFO - Exposing: 0.5 seconds

2021-03-07 00:08:21,230 - astrotortilla - INFO - Waiting for camera

2021-03-07 00:08:21,823 - astrotortilla - INFO - Waiting for camera

2021-03-07 00:08:22,042 - astrotortilla - INFO - Reading image from camera

2021-03-07 00:08:22,305 - astrotortilla - INFO - Solving...

2021-03-07 00:08:22,305 - astrotortilla.AstrometryNetSolver - DEBUG -
Executing: solve-field -b /etc/astrometry/backend.cfg --sigma 30 --no-plots
-N -H 40 -L 15 -r --objs 100 -L 15 -H 40 -u arcminwidth -z 2 -D \"`cygpath
-a \"c:/users/mike/appdata/local/temp/solverj66yl4/0\"`\" \"`cygpath -a
\"c:/users/mike/appdata/local/temp/camnhl0cj/Maxim.fit\"`\"

2021-03-07 00:08:22,430 - astrotortilla - INFO -   0 [main] bash 1728
find_fast_cwd: WARNING: Couldn't compute FAST_CWD pointer.  Please report
this problem to

 

2021-03-07 00:08:22,540 - astrotortilla - INFO - the public mailing list
cygwin@cygwin.com

 

2021-03-07 00:08:22,976 - astrotortilla - INFO - Do you really want to save
the new FITS file to the file named "-H" ??

 

2021-03-07 00:08:23,085 - astrotortilla - INFO - Reading input file 1 of 2:
"40"...

 

2021-03-07 00:08:23,305 - astrotortilla - INFO - ERROR: Image type not
recognized: Could not determine file type (does the file exist?): 40

 

2021-03-07 00:08:24,131 - astrotortilla - INFO -
ioutils.c:605:run_command_get_outputs Command failed: return value 255

 

2021-03-07 00:08:24,135 - astrotortilla - INFO -
augment-xylist.c:585:backtick Failed to run command:
/usr/lib/astrometry/bin/image2pnm.py --sanitized-fits-outfile
/tmp/tmp.sanitized.JY3Q1Q --fix-sdss --infile 40 --uncompressed-outfile
/tmp/tmp.uncompressed.eR2liK --outfile /tmp/tmp.ppm.DY7vve --ppm

 

2021-03-07 00:08:24,142 - astrotortilla.AstrometryNetSolver - DEBUG - Pid
1728 exit code 255

2021-03-07 00:08:24,148 - astrotortilla - INFO - No solution in 1.8s

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


Help on Unsubscribing

2021-03-05 Thread Brian Inglis

On 2021-03-05 14:22, Kraja, Aldi via Cygwin wrote:

Please remove my email address a...@wustl.edu from your posting lists 
(cygwin@cygwin.com).


If following the links to the instructions at the bottom of the page:

https://cygwin.com/mailman/listinfo/cygwin/

"Cygwin Subscribers
...
To unsubscribe from Cygwin, get a password reminder, or change your subscription 
options enter your subscription email address:

(   )(Unsubscribe or edit options)
If you leave the field blank, you will be prompted for your email address"

does not work, then please try sending a blank email from your subscribed 
address to <mailto:cygwin-requ...@cygwin.com?subject=unsubscribe> as detailed in 
the 4KB of headers in each email you get from cygwin@cygwin.com.


If that does not work you may get help by sending a blank email from your 
subscribed address to: <mailto:cygwin-requ...@cygwin.com?subject=help>


You may also consult the information under:

<https://sourceware.org/lists.html#unsubscribe>

> I have enjoyed your hard work as well as your outstanding contributions. But, 
now the time has arrived that your project is obsolete, because Microsoft has 
introduced ubuntu for windows system on windows 10, which covers everything I 
need. So, I have removed cygwin software from all my computers.
> The installation of UBUNTU on windows 10 is very simple: a) On the search box 
of windows 10, search for "Turn Windows Features On or Off", b) In that list, 
check the box for "Windows Subsystem for Linux", c) Install the latest UBUNTU 
from Microsoft store for free, d) run terminal of Ubuntu from windows as an app: 
first time it will asks to set a username and password.
> e) Follow with sudo ubuntu apt upgrade ; sudo ubuntu apt update. The rest is 
whatever the user wants to do, by installing additional packages, emacs etc. To 
simplify the use of x-win interface one can install VcXsrc for using XLaunch app 
for free.
> Once more thank you for all your efforts in years. It has been a great help 
to use your software in years.


[WSL has been available for a few years now with a number of distros available 
on the Windows app store and github.
There are still many different use cases for each of the alternatives of Cygwin, 
WSL VMs, Unix VMs, Unix on hardware. Interoperability is still best under 
Cygwin; iffy under WSL with limitations and security not integrated: not seeing 
much value from using a common MS kernel under each WSL VM, rather than the 
native distro Linux kernel under an actual VM; somewhat available under VMs via 
mounts, still unsure how much I trust NTFS to manage "local" workstation VM 
Samba shares, although I do a fair amount of read/write from both sides for 
testing.]


--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Fix to help novice users verify cygwin.com downloads

2021-03-02 Thread Bob


Hey 

I was searching for some articles about verifying files today and I
came across this page: Cygwin FAQ (http://www.cygwin.com/faq.html)
on your site.

I noticed you recommend very thorough verification, using hashes and sigs.

But usually the data file is downloaded much more than the hash or sig
files. Users often don't verify.

Just wanted to give you a heads up that we created a free open source
program that both downloads and verifies in one step. So your users always 
verify.

It's like "Cygwin FAQ", but it's a single command that downloads
and verifies thoroughly:

https://denova.com/open/safeget/developer/ 

Might be worth a mention on your page.

Either way, keep up the awesome work!

Cheers,

Bob

P.S. The best way to make sure downloaders verify files is to give them
one command that downloads and verifies in one step. There's a free open
source solution.
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Help with setting Cygwin's Emacs W32 TRAMP to WSL 1

2020-11-28 Thread Oleksandr Gavenko via Cygwin
On 2020-11-27, Eliot Moss wrote:

> On 11/26/2020 3:38 PM, Oleksandr Gavenko via Cygwin wrote:
>
>> I believe that X server under Windows is only to write cool blog posts, that
>> we are able to run "xterm" ))
>
> Not sure what you mean here.  I run Cygwin's X server and run xterm/bash 
> windows and Emacs that way.

On daily basis? Why not mintty and emacs-w32?

Originally (2006-2012) I used native Windows Emacs + cygwin-mount.el. There
were compatibility issues, most struggles came from Emacs dependency on
external utilities to be fully functional (like search across files). Cygwin
environment gave those utilities.

Later in 2016 I had to work with Windows again and I discovered:

https://cygwin.com/packages/summary/emacs-w32.html
  This package provides emacs binaries that use the native Windows GUI for 
display.

Hooray! Good bye "cygwin-mount.el"!

I maintain "e" command to open everything in Emacs:
http://hg.defun.work/utils/file/tip/emacs

It simplifies jump from Windows CLI to Cygwin Emacs.

And recently Gradle 5.2 fixed escape sequence handling in Mintty, making it
great again:

https://docs.gradle.org/5.2/release-notes.html
  Gradle now detects when it is running from Mintty on Windows and enables the
  rich console. Mintty is a popular terminal emulator used by projects such as
  Cygwin and Git for Windows.

> I was just indicating that (provided DISPLAY=:0.0 is set, as you pointed out) 
> WSL X apps play fine 
> with the Cygwin X server.
>
OK. No problem. I was surprised that you are using X Window from Cygwin for
xterm + Emacs when there are stronger alternatives. At least you don't need to
deal with env var DISPLAY.

For "mintty" there is an issue with TERM=mintty which is not supported on most
remote hosts. I fixed it in ~/.bashrc recently by:

case $TERM in
  mintty*) alias ssh='TERM=xterm ssh' ;;
esac

Note that I need TERM=mintty for Gradle to work properly. With TERM=xterm
Gradle sends unprocessible garbage to terminal...

>> Thanks god Cygwin is able to mount WSL's roots via P9 network file system.
>
> Not sure what P9 is :-) ..
>
Here it is:

https://devblogs.microsoft.com/commandline/whats-new-for-wsl-in-windows-10-version-1903/

>> PS. As you haven't CCed me I had to check GNUS + Gmane again. Haven't read
>> news for 3 years, found out that Lars Ingebrigtsen fucked up with domain
>> transfer.
>
> ??  When people post to Cygwin, I assume that are also subscribed and will 
> get a response from
> there, and don't need _two_ emails.  But I am sending this one both places.  
> I also have not read 
> net news in years - shouldn't be necessary if you're willing to receive 
> Cygwin notes by email.
>
I planned to read email archive week later to see responses as I didn't want to
subscribe to any mail list.

So:

* I will know about responses a week later.

* I wouldn't reply to any respond as I have to retrieve/inject Message-Id to
  maintain message chain. For this I used MarkMail WEB form or some other
  offer in the past but experience was confusing.

As I understand it is not possible to specify me as additional recipient via
headers To/Cc/Bcc/Replay-To if you are in a land of email lists.

I remember some articles recommended to ask about inclusion of my email in
addition to list address - the only solution we have ((

Now that I found Gmane bridge working again (I had to alter Gmane connection
endpoint to "news.gmane.io") at least I can reply without issues when not
subscribed to the list!

-- 
http://defun.work/

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


Re: Help with setting Cygwin's Emacs W32 TRAMP to WSL 1

2020-11-27 Thread Eliot Moss

On 11/26/2020 3:38 PM, Oleksandr Gavenko via Cygwin wrote:


I believe that X server under Windows is only to write cool blog posts, that
we are able to run "xterm" ))


Not sure what you mean here.  I run Cygwin's X server and run xterm/bash windows and Emacs that way. 
 I was just indicating that (provided DISPLAY=:0.0 is set, as you pointed out) WSL X apps play fine 
with the Cygwin X server.



Thanks god Cygwin is able to mount WSL's roots via P9 network file system.


Not sure what P9 is :-) ..


PS. As you haven't CCed me I had to check GNUS + Gmane again. Haven't read
news for 3 years, found out that Lars Ingebrigtsen fucked up with domain
transfer.


??  When people post to Cygwin, I assume that are also subscribed and will get a response from 
there, and don't need _two_ emails.  But I am sending this one both places.  I also have not read 
net news in years - shouldn't be necessary if you're willing to receive Cygwin notes by email.


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


Re: Help with setting Cygwin's Emacs W32 TRAMP to WSL 1

2020-11-26 Thread Oleksandr Gavenko via Cygwin
On 2020-11-26, Eliot Moss wrote:

> Lacks UI?  You can run X windows applications in WSL if you have the Cygwin X 
> server running :-) ...
> then you get the X UI.  I can certainly run xterm and emacs that way.
>
I don't need 2 Emacs instances around. Cygwin's Emacs W32 (with native W32 GUI
widgets!) is the only my Emacs on Windows.

I run Emacs server so a visited file list is kept in a one place... It is a
part of my workflow (like quick switching to earlier visited files by fuzzy
name matching/etc).

And not to mention it is extra mental load to pass that DISPLAY=:0 or whatever
around...

I believe that X server under Windows is only to write cool blog posts, that
we are able to run "xterm" ))

Thanks god Cygwin is able to mount WSL's roots via P9 network file system.

PS. As you haven't CCed me I had to check GNUS + Gmane again. Haven't read
news for 3 years, found out that Lars Ingebrigtsen fucked up with domain
transfer.

-- 
http://defun.work/

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


Re: Help with setting Cygwin's Emacs W32 TRAMP to WSL 1

2020-11-26 Thread Oleksandr Gavenko via Cygwin
On Thu, Nov 26, 2020 at 9:22 PM Oleksandr Gavenko  wrote:
> So Emacs tries to make some "smart" locking on dumb FS... Need to
> waste another few hours to make Emacs work.
>
Found the problem: Emacs fails on its "unlock-buffer" call from
emacs/src/filelock.c.

Feature described here:

https://www.gnu.org/software/emacs/manual/html_node/elisp/File-Locks.html

To prevent of special symlink creation I disabled that feature:

(setq create-lockfiles nil)

So no need to waste time on TRAMP mode if it is supported natively by Cygwin!

Thx to Henry for giving me the right spin!
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Help with setting Cygwin's Emacs W32 TRAMP to WSL 1

2020-11-26 Thread Oleksandr Gavenko via Cygwin
On Thu, Nov 26, 2020 at 8:42 PM Henry S. Thompson  wrote:
>
> Oleksandr Gavenko via Cygwin writes:
>
> > ...
> > WSL1 files are "hidden" for regular access.
>
> I probably misunderstand, but I can see my WSL/Ubuntu files via this
> path from Cygwin:
>
>  /c/Users/ht/AppData/Local/Packages/CanonicalGroupLimited.../LocalState/rootfs
>
You are not allowed to edit them from the "Windows" process. Only from LXSS:

https://devblogs.microsoft.com/commandline/do-not-change-linux-files-using-windows-apps-and-tools/

> DO NOT, under ANY circumstances, access, create, and/or modify Linux files 
> inside
> of your `%LOCALAPPDATA%` folder using Windows apps, tools, scripts, consoles, 
> etc.

You'll face:

https://github.com/microsoft/WSL/issues/1524
changes made in Windows File System - not seen in Bash

Though I forgot about their announce of P9 fileserver (dated May 2019
Windows 10 version 1903):

> WSL hosts a new 9P fileserver, which exposes distro filesystems to Windows 
> apps and tools via \\wsl$\\!

Details are here:

https://devblogs.microsoft.com/commandline/whats-new-for-wsl-in-windows-10-version-1903/

I tried in elevated cmd:

cmd# cd \\wsl$\debian\
'\\wsl$\debian\'
CMD does not support UNC paths as current directories.

cmd# net use x: \\wsl$\debian\
System error 67 has occurred.
The network name cannot be found.

It is only available in Explorer and some "cool" editors, like Code.

I do not know if Cygwin allows to "mount" that P9 fileserver...

There is an example of network mounting:
https://cygwin.com/cygwin-ug-net/mount.html

so I tried it:

bash# mount '//wsl$/debian' /mnt
mount: defaulting to 'notexec' mount option for speed since native path
   references a remote share.  Use '-f' option to override.

bash# ls /mnt
ls: cannot access '/mnt/initrd.img': Input/output error
ls: cannot access '/mnt/initrd.img.old': Input/output error
ls: cannot access '/mnt/vmlinuz': Input/output error
ls: cannot access '/mnt/vmlinuz.old': Input/output error
bin  boot  c  d  dev  etc  home  init  initrd.img  initrd.img.old  lib
 lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr
var  vmlinuz  vmlinuz.old

Cool! Let's make it permanent.

$ cat /etc/fstab

//wsl$/debian /wsl/debian  ntfs binary,noacl,posix=0 0 0
//wsl$/ubuntu /wsl/ubuntu  ntfs binary,noacl,posix=0 0 0
//wsl$/alpine /wsl/alpine  ntfs binary,noacl,posix=0 0 0

$ mkdir -p /wsl/{ubuntu,debian,alpine}
$ mount /wsl/debian
$ mount /wsl/ubuntu
$ mount /wsl/wsl

And the final step it testing with Cygwin's Emacs W32:

I can read files, but on save I've got:

Saving file /wsl/debian/opt/sa-batch-am-dbsync/run.env...
basic-save-buffer-2: Unlocking file: Invalid argument,
/wsl/debian/opt/sa-batch-am-dbsync/run.env

Trying in Cygwin's bash:

bash# cd /wsl/debian/home/user/
bash# touch test.txt
bash# ls -l test.txt
-rw-r--r-- 1 user user 0 2020-11-26 21:18 test.txt

bash# echo 123 >test.txt
bash# echo 456 >>test.txt
bash# cat test.txt
123
456

So Emacs tries to make some "smart" locking on dumb FS... Need to
waste another few hours to make Emacs work.

At least I have something!
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Help with setting Cygwin's Emacs W32 TRAMP to WSL 1

2020-11-26 Thread Henry S. Thompson via Cygwin
Oleksandr Gavenko via Cygwin writes:

> ...
> WSL1 files are "hidden" for regular access.

I probably misunderstand, but I can see my WSL/Ubuntu files via this
path from Cygwin:

 /c/Users/ht/AppData/Local/Packages/CanonicalGroupLimited.../LocalState/rootfs

ht
-- 
   Henry S. Thompson, School of Informatics, University of Edinburgh
  10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: h...@inf.ed.ac.uk
   URL: http://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

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


Re: Help with setting Cygwin's Emacs W32 TRAMP to WSL 1

2020-11-26 Thread Eliot Moss

On 11/26/2020 10:18 AM, Oleksandr Gavenko via Cygwin wrote:

> Still WSL 1 lacks UI and integrates less smoothly into my workflow
> to replace Cygwin's amazing Emacs W32.

Lacks UI?  You can run X windows applications in WSL if you have the Cygwin X server running :-) ... 
then you get the X UI.  I can certainly run xterm and emacs that way.


Maybe I am misunderstanding you?

Best wishes - Eliot Moss

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


Help with setting Cygwin's Emacs W32 TRAMP to WSL 1

2020-11-26 Thread Oleksandr Gavenko via Cygwin
I'm using Cygwin for two reasons: mintty + Emacs w32.

Nowadays WSL 1 has become important (vendors provide ready to work
.deb packages,
 I use: Ansible + Google Cloud SDK, if name any).

Still WSL 1 lacks UI and integrates less smoothly into my workflow
to replace Cygwin's amazing Emacs W32.

WSL1 files are "hidden" for regular access.

Emacs has TRAMP mode to access foreign environments:
https://www.gnu.org/software/tramp/

I tried to define configuration that should have allowed to access WSL 1
from Cygwin's Emacs via "wsl sh" jump (the way TRAMP support "su" &
"sudo" jumps):

* 
https://www.reddit.com/r/emacs/comments/jrkgmy/tramp_for_wsl_1_from_cygwin_emacsw32/
* https://github.com/microsoft/WSL/issues/6236
  - wsl.exe periodically sends control characters making impossible "piping"
  via interactive/terminal mode

The problem is that when Cygwin's Emacs invokes "wsl.exe" conhost or
wsl?? thinks
it is in a PTY mode and sends different "clearing" terminal escape
sequences (see WSL issue report).

I reproduce garbage with Elisp code:

(setq xxx (make-process :name "xxx" :buffer "xxx" :command '("wsl"
"echo" "OK") :connection-type 'pty))
(stop-process xxx)

Note that changing the last argument "pty" => "pipe" solves the problem,
but things are a bit complicated...

TRAMP mode has been implemented via call to "sh" by internal API "make-process".
And then TRAMP sends  "wsl ..." to the shell so WSL thinks it is in
PTY and I have no way
to influence that decision ((

I tried stupid tricks like passing everything related to "ws.exe" via
pipe to "cat":

  (with-eval-after-load 'tramp
(setf (alist-get "wsl" tramp-methods nil nil #'equal)
  '((tramp-login-program "sh")
(tramp-login-args (("-c") ("wsl") ("-u" "%u") ("-d" "%h")
("|" "cat")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-login ("-l"))
(tramp-remote-shell-args ("-c"))
(tramp-connection-timeout 10)
(tramp-session-timeout 300

or define a  wrapper script that has "wsl ... | cat"  inside. Nothing helped.
Few experiments with Cygwin's Expect also failed as I forgot
everything about that obscure tech...

So I need to write some wrapper that will bidirectionally pipe to "wsl.exe"
putting wsl into piped instead TTY mode.

It can be that there is a ready solution.

If not please advise which API should I use to write such  a wrapper.

Should it be Cygwin's pipe/dup2/fork/execvp or popen?

Or should it be Windows native CreateChildProcess / WriteToPipe /
ReadFromPipe as here:
https://docs.microsoft.com/en-us/windows/win32/procthread/creating-a-child-process-with-redirected-input-and-output

Please CC me in replies, I'll check the mail archive after a week to
not lose any responses.
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Help with emacs and VC++

2020-09-16 Thread Takashi Yano via Cygwin
On Wed, 16 Sep 2020 17:58:13 +0200
Andrea Venturoli wrote:
> On 2020-09-11 19:40, Takashi Yano wrote:
> 
> > Could you please try the latest snapshot?
> > https://cygwin.com/snapshots/
> > 
> > This problem should be fixed.
> 
> Thanks.
> 
> Looks like this is solved.
> 
> However, I'm getting several messages like:
> "shared_info::initialize: size of shared memory region changed from 
> 46008 to 49080".
> Are these harmful?

Probably, some processes which loaded old cygwin1.dll
still alive.

> I just downloaded cygwin1.dll and replaced the old one.
> Should I have done something else?

The easiest way is rebooting your system.

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


Re: Help with emacs and VC++

2020-09-16 Thread Andrea Venturoli via Cygwin

On 2020-09-11 19:40, Takashi Yano wrote:


Could you please try the latest snapshot?
https://cygwin.com/snapshots/

This problem should be fixed.


Thanks.

Looks like this is solved.

However, I'm getting several messages like:
"shared_info::initialize: size of shared memory region changed from 
46008 to 49080".

Are these harmful?

I just downloaded cygwin1.dll and replaced the old one.
Should I have done something else?

 bye & Thanks
av.
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Help with emacs and VC++

2020-09-11 Thread Takashi Yano via Cygwin
On Fri, 11 Sep 2020 19:35:21 +0200
Andrea Venturoli via Cygwin  wrote:
> Hello.
> 
> I've got a project where I'm using Cygwin's emacs + GNU Make + VC++.
> For some reason, it seems CL.exe colorizes or decorates its output and 
> Emacs does not understand this, so what I get is a lot of control codes 
> (e.g. things like "^[[?25l  Creatin^[[?25h^[[?25l") which make the 
> output very hard to read.
> 
> I looked into cl.exe to suppress this, but found no way; is there any 
> tweak/addon/whatever I can use on Emacs side?

Could you please try the latest snapshot?
https://cygwin.com/snapshots/

This problem should be fixed.

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


Help with emacs and VC++

2020-09-11 Thread Andrea Venturoli via Cygwin

Hello.

I've got a project where I'm using Cygwin's emacs + GNU Make + VC++.
For some reason, it seems CL.exe colorizes or decorates its output and 
Emacs does not understand this, so what I get is a lot of control codes 
(e.g. things like "^[[?25l  Creatin^[[?25h^[[?25l") which make the 
output very hard to read.


I looked into cl.exe to suppress this, but found no way; is there any 
tweak/addon/whatever I can use on Emacs side?


 bye & Thanks
av.
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


cygwin.com, how to grow your ecommerce business. Can i help

2020-09-01 Thread Clark Thompson
Hi, cygwin.com


I hope this email finds you well.

I believe you have bored with traditional SEO practice and with very less
return as compared to spending.

Hopefully, you must be aware of SEO audit, let get clear about the idea.

Auditing your website helps you discover why you are not getting more sales
& enough search traffic. In general terms, auditing is a systematic
examination of a concept, event or a result that is done in order to make
smarter decision where you stand and how to grow your business or sales.

In SEO world, auditing is a technique that will help you attract and retain
more customers. In this technique we are examining your overall site
performance setting new goals based on what you find, and implementing
tactics to reach those goals

If you want to reach your goals & grow your customer & sales, then you can
take this action now.


If you are interested in SEO audit, please reply to this email and one of
our consultants will share the detailed proposal


waiting for your response!!!

Kind Regards,

*Clark Thompson*! (SEO Specialist)

--

*Note:* Reply back with us “Interested” or engage me to send you No
Obligation Audit Report for your site.
[image: beacon]
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Need help building gnu gettext 0.19.8.1 under cygwin

2020-08-11 Thread Marco Atzeri via Cygwin

On 11.08.2020 10:13, Selim Kırpıcı via Cygwin wrote:

Hello friends,

I am running into some linker problems while trying to build gettext.
After configuring with no arguments and running make, after quite some
time, I get this error:

libtool: link: g++ -shared -nostdlib
/usr/lib/gcc/x86_64-pc-cygwin/9.3.0/crtbeginS.o
  .libs/libgettextsrc_la-message.o .libs/libgettextsrc_la-po-error.o
.libs/libgettextsrc_la-po-xerror.o
.libs/libgettextsrc_la-read-catalog-abstract.o
.libs/libgettextsrc_la-po-lex.o .libs/libgettextsrc_la-po-gram-gen.o
.libs/libgettextsrc_la-po-charset.o .libs/libgettextsrc_la-read-po.o
.libs/libgettextsrc_la-read-properties.o
.libs/libgettextsrc_la-read-stringtable.o
.libs/libgettextsrc_la-open-catalog.o .libs/libgettextsrc_la-dir-list.o
.libs/libgettextsrc_la-str-list.o .libs/libgettextsrc_la-read-catalog.o
.libs/libgettextsrc_la-color.o .libs/libgettextsrc_la-write-catalog.o
.libs/libgettextsrc_la-write-properties.o
.libs/libgettextsrc_la-write-stringtable.o
.libs/libgettextsrc_la-write-po.o .libs/libgettextsrc_la-msgl-ascii.o
.libs/libgettextsrc_la-msgl-iconv.o .libs/libgettextsrc_la-msgl-equal.o
.libs/libgettextsrc_la-msgl-cat.o .libs/libgettextsrc_la-msgl-header.o
.libs/libgettextsrc_la-msgl-english.o .libs/libgettextsrc_la-msgl-check.o
.libs/libgettextsrc_la-file-list.o .libs/libgettextsrc_la-msgl-charset.o
.libs/libgettextsrc_la-po-time.o .libs/libgettextsrc_la-plural-exp.o
.libs/libgettextsrc_la-plural-eval.o .libs/libgettextsrc_la-plural-table.o
.libs/libgettextsrc_la-sentence.o
../woe32dll/.libs/libgettextsrc_la-c++format.o
.libs/libgettextsrc_la-format-c.o .libs/libgettextsrc_la-format-sh.o
.libs/libgettextsrc_la-format-python.o
.libs/libgettextsrc_la-format-python-brace.o
.libs/libgettextsrc_la-format-lisp.o .libs/libgettextsrc_la-format-elisp.o
.libs/libgettextsrc_la-format-librep.o
.libs/libgettextsrc_la-format-scheme.o .libs/libgettextsrc_la-format-java.o
.libs/libgettextsrc_la-format-csharp.o .libs/libgettextsrc_la-format-awk.o
.libs/libgettextsrc_la-format-pascal.o .libs/libgettextsrc_la-format-ycp.o
.libs/libgettextsrc_la-format-tcl.o .libs/libgettextsrc_la-format-perl.o
.libs/libgettextsrc_la-format-perl-brace.o
.libs/libgettextsrc_la-format-php.o
.libs/libgettextsrc_la-format-gcc-internal.o
.libs/libgettextsrc_la-format-gfc-internal.o
.libs/libgettextsrc_la-format-qt.o
.libs/libgettextsrc_la-format-qt-plural.o
.libs/libgettextsrc_la-format-kde.o
.libs/libgettextsrc_la-format-kde-kuit.o
.libs/libgettextsrc_la-format-boost.o .libs/libgettextsrc_la-format-lua.o
.libs/libgettextsrc_la-format-javascript.o
.libs/libgettextsrc_la-read-desktop.o
.libs/libgettextsrc_la-locating-rule.o .libs/libgettextsrc_la-its.o
.libs/libgettextsrc_la-search-path.o
../woe32dll/.libs/libgettextsrc_la-gettextsrc-exports.o
-L/home/miles/build-son/gettext-tools/intl/.libs
../gnulib-lib/.libs/libgettextlib.dll.a
/home/miles/build-son/gettext-tools/intl/.libs/libintl.dll.a
../intl/.libs/libintl.dll.a -liconv -L/usr/lib/gcc/x86_64-pc-cygwin/9.3.0
-L/usr/lib/gcc/x86_64-pc-cygwin/9.3.0/../../../../x86_64-pc-cygwin/lib/../lib
-L/usr/lib/gcc/x86_64-pc-cygwin/9.3.0/../../../../lib -L/lib/../lib
-L/usr/lib/../lib
-L/usr/lib/gcc/x86_64-pc-cygwin/9.3.0/../../../../x86_64-pc-cygwin/lib
-L/usr/lib/gcc/x86_64-pc-cygwin/9.3.0/../../.. -lstdc++ -lgcc_s -lgcc
-lcygwin -ladvapi32 -lshell32 -luser32 -lkernel32 -lgcc_s -lgcc
/usr/lib/gcc/x86_64-pc-cygwin/9.3.0/crtend.o  -g -O2
-Wl,--export-all-symbols -Wl,--disable-auto-import   -fopenmp -o
.libs/cyggettextsrc-0-19-8-1.dll -Wl,--enable-auto-image-base -Xlinker
--out-implib -Xlinker .libs/libgettextsrc.dll.a
/usr/lib/gcc/x86_64-pc-cygwin/9.3.0/../../../../x86_64-pc-cygwin/bin/ld:
.libs/libgettextsrc_la-locating-rule.o:locating-rule.c:(.rdata$.refptr.xmlFree[.refptr.xmlFree]+0x0):
undefined reference to `xmlFree'
collect2: error: ld returned 1 exit status

I installed libxml2 via cygwin setup and tried to compile a small C program
that calls xmlFree()
it compiles and links fine using this:
$ gcc -I/usr/include/libxml2 test.c -o test -lxml2

I also tried to configure with:
$ ./configure LIBS="-lxml2"
This didnt work as well.

Any suggestions will be much much appreciated
--


why you need to build something aleady available ?

$ cygcheck -cd |grep gettext
gettext 0.19.8.1-2
gettext-devel   0.19.8.1-2
libgettextpo0   0.19.8.1-2

If you are interested you can look at the cygwin source package
to see about patch and compile methodology used

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


Need help building gnu gettext 0.19.8.1 under cygwin

2020-08-11 Thread Selim Kırpıcı via Cygwin
Hello friends,

I am running into some linker problems while trying to build gettext.
After configuring with no arguments and running make, after quite some
time, I get this error:

libtool: link: g++ -shared -nostdlib
/usr/lib/gcc/x86_64-pc-cygwin/9.3.0/crtbeginS.o
 .libs/libgettextsrc_la-message.o .libs/libgettextsrc_la-po-error.o
.libs/libgettextsrc_la-po-xerror.o
.libs/libgettextsrc_la-read-catalog-abstract.o
.libs/libgettextsrc_la-po-lex.o .libs/libgettextsrc_la-po-gram-gen.o
.libs/libgettextsrc_la-po-charset.o .libs/libgettextsrc_la-read-po.o
.libs/libgettextsrc_la-read-properties.o
.libs/libgettextsrc_la-read-stringtable.o
.libs/libgettextsrc_la-open-catalog.o .libs/libgettextsrc_la-dir-list.o
.libs/libgettextsrc_la-str-list.o .libs/libgettextsrc_la-read-catalog.o
.libs/libgettextsrc_la-color.o .libs/libgettextsrc_la-write-catalog.o
.libs/libgettextsrc_la-write-properties.o
.libs/libgettextsrc_la-write-stringtable.o
.libs/libgettextsrc_la-write-po.o .libs/libgettextsrc_la-msgl-ascii.o
.libs/libgettextsrc_la-msgl-iconv.o .libs/libgettextsrc_la-msgl-equal.o
.libs/libgettextsrc_la-msgl-cat.o .libs/libgettextsrc_la-msgl-header.o
.libs/libgettextsrc_la-msgl-english.o .libs/libgettextsrc_la-msgl-check.o
.libs/libgettextsrc_la-file-list.o .libs/libgettextsrc_la-msgl-charset.o
.libs/libgettextsrc_la-po-time.o .libs/libgettextsrc_la-plural-exp.o
.libs/libgettextsrc_la-plural-eval.o .libs/libgettextsrc_la-plural-table.o
.libs/libgettextsrc_la-sentence.o
../woe32dll/.libs/libgettextsrc_la-c++format.o
.libs/libgettextsrc_la-format-c.o .libs/libgettextsrc_la-format-sh.o
.libs/libgettextsrc_la-format-python.o
.libs/libgettextsrc_la-format-python-brace.o
.libs/libgettextsrc_la-format-lisp.o .libs/libgettextsrc_la-format-elisp.o
.libs/libgettextsrc_la-format-librep.o
.libs/libgettextsrc_la-format-scheme.o .libs/libgettextsrc_la-format-java.o
.libs/libgettextsrc_la-format-csharp.o .libs/libgettextsrc_la-format-awk.o
.libs/libgettextsrc_la-format-pascal.o .libs/libgettextsrc_la-format-ycp.o
.libs/libgettextsrc_la-format-tcl.o .libs/libgettextsrc_la-format-perl.o
.libs/libgettextsrc_la-format-perl-brace.o
.libs/libgettextsrc_la-format-php.o
.libs/libgettextsrc_la-format-gcc-internal.o
.libs/libgettextsrc_la-format-gfc-internal.o
.libs/libgettextsrc_la-format-qt.o
.libs/libgettextsrc_la-format-qt-plural.o
.libs/libgettextsrc_la-format-kde.o
.libs/libgettextsrc_la-format-kde-kuit.o
.libs/libgettextsrc_la-format-boost.o .libs/libgettextsrc_la-format-lua.o
.libs/libgettextsrc_la-format-javascript.o
.libs/libgettextsrc_la-read-desktop.o
.libs/libgettextsrc_la-locating-rule.o .libs/libgettextsrc_la-its.o
.libs/libgettextsrc_la-search-path.o
../woe32dll/.libs/libgettextsrc_la-gettextsrc-exports.o
-L/home/miles/build-son/gettext-tools/intl/.libs
../gnulib-lib/.libs/libgettextlib.dll.a
/home/miles/build-son/gettext-tools/intl/.libs/libintl.dll.a
../intl/.libs/libintl.dll.a -liconv -L/usr/lib/gcc/x86_64-pc-cygwin/9.3.0
-L/usr/lib/gcc/x86_64-pc-cygwin/9.3.0/../../../../x86_64-pc-cygwin/lib/../lib
-L/usr/lib/gcc/x86_64-pc-cygwin/9.3.0/../../../../lib -L/lib/../lib
-L/usr/lib/../lib
-L/usr/lib/gcc/x86_64-pc-cygwin/9.3.0/../../../../x86_64-pc-cygwin/lib
-L/usr/lib/gcc/x86_64-pc-cygwin/9.3.0/../../.. -lstdc++ -lgcc_s -lgcc
-lcygwin -ladvapi32 -lshell32 -luser32 -lkernel32 -lgcc_s -lgcc
/usr/lib/gcc/x86_64-pc-cygwin/9.3.0/crtend.o  -g -O2
-Wl,--export-all-symbols -Wl,--disable-auto-import   -fopenmp -o
.libs/cyggettextsrc-0-19-8-1.dll -Wl,--enable-auto-image-base -Xlinker
--out-implib -Xlinker .libs/libgettextsrc.dll.a
/usr/lib/gcc/x86_64-pc-cygwin/9.3.0/../../../../x86_64-pc-cygwin/bin/ld:
.libs/libgettextsrc_la-locating-rule.o:locating-rule.c:(.rdata$.refptr.xmlFree[.refptr.xmlFree]+0x0):
undefined reference to `xmlFree'
collect2: error: ld returned 1 exit status

I installed libxml2 via cygwin setup and tried to compile a small C program
that calls xmlFree()
it compiles and links fine using this:
$ gcc -I/usr/include/libxml2 test.c -o test -lxml2

I also tried to configure with:
$ ./configure LIBS="-lxml2"
This didnt work as well.

Any suggestions will be much much appreciated
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: help

2020-07-21 Thread Marco Atzeri via Cygwin

On 21.07.2020 18:47, Birane Koundoul wrote:

Hello I have a model with the petri net (I use cpn tools 4.0) but it
sometimes shows me errors like:

1. Error! exception subscript raised when checking enabling
2. cannot bind variable ... from large color-set 
3. un-bound variable in output arc

and what bothers me the most is that when I run the simulation, it executes
the queries but at some point it stops and yet queries are available.
Sincerely
*Birane Koundoul *


Hi Birane,

https://www.chiark.greenend.org.uk/~sgtatham/bugs.html

I do not find any cpn tools on the cygwin available packages:

https://cygwin.com/packages/package_list.html

so if you want our support, you need to be a bit more specific

and provide us a way to replicate your problem.


Regards
Marco


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


Re: help

2020-07-21 Thread Csaba Raduly via Cygwin
Hi Birane,

On Tue, 21 Jul 2020 at 18:50, Birane Koundoul  wrote:
>
> Hello I have a model with the petri net (I use cpn tools 4.0) but it
> sometimes shows me errors like:
>
>1. Error! exception subscript raised when checking enabling
>2. cannot bind variable ... from large color-set 
>3. un-bound variable in output arc
>
> and what bothers me the most is that when I run the simulation, it executes
> the queries but at some point it stops and yet queries are available.
> Sincerely
> *Birane Koundoul *
> Ingénieur en Informatique (système d'Information)

What is your Cygwin question?
Csaba
-- 
You can get very substantial performance improvements
by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler
So if you're looking for a completely portable, 100% standards-conformant way
to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK)
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


help

2020-07-21 Thread Birane Koundoul
Hello I have a model with the petri net (I use cpn tools 4.0) but it
sometimes shows me errors like:

   1. Error! exception subscript raised when checking enabling
   2. cannot bind variable ... from large color-set 
   3. un-bound variable in output arc

and what bothers me the most is that when I run the simulation, it executes
the queries but at some point it stops and yet queries are available.
Sincerely
*Birane Koundoul *
Ingénieur en Informatique (système d'Information)
 Orange: (+221)772714013
Expresso : (+221)706024811
   * koundoul.bir...@hotmail.fr
*
*koundoul.bir...@gmail.com
*
* koundoul.bir...@yahoo.fr
 *

-- 





Ce mail est à l’attention
exclusive des destinataires désignés. Il 
peut contenir des informations
confidentielles. 

Si
vous le recevez par 
erreur, merci de le détruire et d’en informer sans délais l’expéditeur. 



Le
contenu de ce mail ne pourrait engager la responsabilité de l’Université

Alioune DIOP de Bambey que s’il a été émis par une personne dûment 
habilitée,
agissant dans le cadre strict des fonctions auxquelles elle est 
employée et à
des fins non étrangères à ses attributions. 

Toute

diffusion, copie, publication partielle ou totale, ou toute autre 
utilisation
est interdite, sauf autorisation. 


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


Re: Help troubleshooting X

2020-06-16 Thread Marco Atzeri via Cygwin

On 16.06.2020 21:31, Randy Dawson via Cygwin wrote:

Briefly:

X starts a window, (does not matter fluxbox, gnome, or whatever startup).

The mouse pointer does not show up.

This all worked OK with this install at one time.   And yes, I have removed and 
reinstalled several times, seems to work OK after a clean reinstall, but later 
quits working.
I did not change anything.
Is windows messing up with things, like the HOME directory, that cygwin X 
depends on?
What tools or trace debug log files, (and where are they) to track this problem 
down?

Randy



how are you starting X ?
what is the setting visible from

$ grep "^/usr/bin/XWin" /var/log/xwin/XWin.0.log
/usr/bin/XWin :0 -multiwindow -auth


any specific failure on the same /var/log/xwin/XWin.0.log ?
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Help troubleshooting X

2020-06-16 Thread Randy Dawson via Cygwin
Briefly:

X starts a window, (does not matter fluxbox, gnome, or whatever startup).

The mouse pointer does not show up.

This all worked OK with this install at one time.   And yes, I have removed and 
reinstalled several times, seems to work OK after a clean reinstall, but later 
quits working.
I did not change anything.
Is windows messing up with things, like the HOME directory, that cygwin X 
depends on?
What tools or trace debug log files, (and where are they) to track this problem 
down?

Randy

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


Re: help compilation qemu

2020-05-24 Thread Hans-Bernhard Bröker

Am 24.05.2020 um 17:30 schrieb Juan carlos Rebate via Cygwin:

[Can you _please_ cut down on the TOFU? Thanks ]


Hi Caba, I know qemu-system-i386 because the official binary is that

  \


size.As for the command used I use this:x86_64-w64-mingw32- this way it

  ^^

Those two marked details form a mismatch.  If it's the i386 version 
you're trying to build, then the tool chain (equivalent to the --target 
argument in configure) is i686-w64-mingw32.


compiles perfectly except for the file sizes, if I add the option - s 


Add it where?

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


Re: help compilation qemu

2020-05-24 Thread Eliot Moss
Dear Juan Carlos: I think by "command" we mean the full command line, plus information about the 
version of the compiler, etc.


Regards - Eliot Moss

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


Re: help compilation qemu

2020-05-24 Thread Juan carlos Rebate via Cygwin
Hi Caba, I know qemu-system-i386 because the official binary is that
size.As for the command used I use this:x86_64-w64-mingw32- this way it
compiles perfectly except for the file sizes, if I add the option - s the
error Bash option -s unknown, I use 64-bit

El dom., 24 may. 2020 11:32, Csaba Ráduly via Cygwin 
escribió:

>
> Hi Juan Carlos,
>
> On 24/05/2020 02:08, Juan carlos Rebate via Cygwin wrote:
> ...
>
> > 1 the compiler is extremely slow, gcc on Linux is about 10 times
> > faster, How could I speed up the compilation process?.
>
> Unfortunately, Cygwin's emulation of fork() is slow compared to the native
> Linux
> implementation (I've seen 1000x difference once, in a test launching the
> same
> program repeatedly). There's not much you can do about it, except getting
> faster
> hardware. A C++ build involves lots and lots of programs being forked.
>
> > 2 the executables produced are too fat, for example qemu-system-i386 is
> 65
> > MB, but it should be 10.5 MB, if I use the -s option in configure returns
> > an unknown error message, how could I fix it? Thank you
>
> Why do you think qemu-system-i386 "should be 10.5 MB" ?
> Are you using 32-bit or 64-bit Cygwin? 64-bit executables are usually
> bigger
> than their 32-bit counterparts (although rarely six times as big).
>
> You really need to give us more information if you hope to get help, like
> the
> actual commands you used and the exact error message.
>
> Without those, we can only guess, and my crystal ball is not very reliable.
>
> If you want to strip the resulting executables, you could try setting the
> LDFLAGS environment variable to '-s' before running configure
>
> Csaba
> --
> You can get very substantial performance improvements
> by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler
> So if you're looking for a completely portable, 100% standards-conformat
> way
> to get the wrong information: this is what you want. - Scott Meyers
> (C++TDaWYK)
> --
> Problem reports:  https://cygwin.com/problems.html
> FAQ:  https://cygwin.com/faq/
> Documentation:https://cygwin.com/docs.html
> Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
>
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: help compilation qemu

2020-05-24 Thread Csaba Ráduly via Cygwin



Hi Juan Carlos,

On 24/05/2020 02:08, Juan carlos Rebate via Cygwin wrote:
...


1 the compiler is extremely slow, gcc on Linux is about 10 times
faster, How could I speed up the compilation process?.


Unfortunately, Cygwin's emulation of fork() is slow compared to the native Linux 
implementation (I've seen 1000x difference once, in a test launching the same 
program repeatedly). There's not much you can do about it, except getting faster 
hardware. A C++ build involves lots and lots of programs being forked.



2 the executables produced are too fat, for example qemu-system-i386 is 65
MB, but it should be 10.5 MB, if I use the -s option in configure returns
an unknown error message, how could I fix it? Thank you


Why do you think qemu-system-i386 "should be 10.5 MB" ?
Are you using 32-bit or 64-bit Cygwin? 64-bit executables are usually bigger 
than their 32-bit counterparts (although rarely six times as big).


You really need to give us more information if you hope to get help, like the 
actual commands you used and the exact error message.


Without those, we can only guess, and my crystal ball is not very reliable.

If you want to strip the resulting executables, you could try setting the 
LDFLAGS environment variable to '-s' before running configure


Csaba
--
You can get very substantial performance improvements
by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler
So if you're looking for a completely portable, 100% standards-conformat way
to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK)
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


help compilation qemu

2020-05-23 Thread Juan carlos Rebate via Cygwin
Good morning, in a previous post I was debating with some nice users (for
technical reasons I can't retrieve that thread)The point is that although
the qemu wiki says it can't compile with cygwin for 64-bit it actually can,
and for technical reasons I haven't been able to communicate it before,The
case is that making a couple of adjustments when looking for all the mingw
packages if they can be found, but there is a problem,Well, really two
problems.1 the compiler is extremely slow, gcc on Linux is about 10 times
faster, How could I speed up the compilation process?.
2 the executables produced are too fat, for example qemu-system-i386 is 65
MB, but it should be 10.5 MB, if I use the -s option in configure returns
an unknown error message, how could I fix it? Thank you
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: help compilation qemu

2020-05-03 Thread Maarten Hoes via Cygwin
Hi,

On Sun, May 3, 2020 at 4:54 PM Eliot Moss  wrote:

> On 5/3/2020 8:52 AM, Maarten Hoes via Cygwin wrote:
> > Hrm.
> >
> > That's odd. I just installed MSYS2 and followed the instructions provided
> > in the QEMU wiki for MSYS2, and all preparatory steps of running
> > msys2/pacman/git/configure (only excluding the actual 'make' for
> > compilation) work as expected. There must be a difference between our
> > setups/steps/configurations if that doesn't work for you.
>
> I can imagine issues with both MSYS and Cygwin installed, if the order
> of things on paths is not right, e.g., getting the Cygwin version of
> something when trying to run MSYS, or vice versa.
>
> Maybe try to make sure, when building qemu under MSYS, that no Cygwin
> things are in your path?
>
> Best wishes -- Eliot
>


Good point. I tried to verify that, so I did


[1a]
On a cygwin prompt
echo $PATH | grep -i msys

[1b]
On a msys prompt
echo $PATH | grep -i cyg


And got no conflicting results. (msys is not in the cygwin path, and cygwin
is not in the msys path).


[2]
'mount' only showed cygdrive on a cygwin prompt, and only msys on a msys
prompt


[3]
Looked for a 'msys' string in a random binary in the path:

[3a]
On a msys prompt:
strings `which ls.exe` | grep -i msys

gave me msys hits.


[3b]
on a cygwin prompt:
strings `which ls.exe` | grep -i msys

gave me no hits.



So it at least appears to me that the environments are not conflicting for
me personally. Of course, that could very well be the case for the error
results of the original poster.

PS:
if anyone knows of better tests/checks to see if the environments are
intermingled in some way, I'd love to hear it.



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


Re: help compilation qemu

2020-05-03 Thread Eliot Moss

On 5/3/2020 8:52 AM, Maarten Hoes via Cygwin wrote:

Hrm.

That's odd. I just installed MSYS2 and followed the instructions provided
in the QEMU wiki for MSYS2, and all preparatory steps of running
msys2/pacman/git/configure (only excluding the actual 'make' for
compilation) work as expected. There must be a difference between our
setups/steps/configurations if that doesn't work for you.


I can imagine issues with both MSYS and Cygwin installed, if the order
of things on paths is not right, e.g., getting the Cygwin version of
something when trying to run MSYS, or vice versa.

Maybe try to make sure, when building qemu under MSYS, that no Cygwin
things are in your path?

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


  1   2   3   4   5   6   7   8   9   10   >