James Darpinian | 3 Jun 06:51 2007
Picon

Re: msys on VISTA 64

OK, I've tested the patch for the Vista 64 crashing bug and fixed an issue with it; I've submitted the fixed patch to the tracker.  With this patch MSYS seems to work fine; I am currently compiling Mozilla Firefox with it.  What's the next step in getting the patch committed?

James
--
main(c,r){for(r=32;r;)printf(++c>31?c=!r--,"\n":c<r?" ":~c&r?" `":" #");}

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mingw-msys mailing list
Mingw-msys@...
https://lists.sourceforge.net/lists/listinfo/mingw-msys
Oscar Bonilla | 4 Jun 19:58 2007

Re: msys on VISTA 64

Just so that the list knows, I'm working with Keith and James on
getting something done about Vista64. My original patch seems to have
issues with windows XP (it makes some processes hang every once in a
while). I think I have a better patch, but it needs testing.

Cheers,

-Oscar

On Sat, Jun 02, 2007 at 09:51:26PM -0700, James Darpinian wrote:
> OK, I've tested the patch for the Vista 64 crashing bug and fixed an issue
> with it; I've submitted the fixed patch to the tracker.  With this patch
> MSYS seems to work fine; I am currently compiling Mozilla Firefox with it.
> What's the next step in getting the patch committed?
> 
> James
> -- 
> main(c,r){for(r=32;r;)printf(++c>31?c=!r--,"\n":c<r?" ":~c&r?" `":" #");}

> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Mingw-msys mailing list
> Mingw-msys@...
> https://lists.sourceforge.net/lists/listinfo/mingw-msys

--

-- 
pgp fingerprint: BC64 2E7A CAEF 39E1 9544  80CA F7D5 784D FB46 16C1

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Michael Chen | 5 Jun 23:55 2007
Picon

etags behaves differently under MSYS

I am trying to use etags to generate tag files for emacs, and the
following command works under linux environment, but failed under MSYS
1.0

etags --language=none --regex='/[ t]*param[ \t]+\([^ \t]+\)/\1/'
blendingexample.mod

Error Msg:

e:\chen\programs\emacs\emacs-21.3\bin\etags.exe:
E:/chen/programs/msys/1.0/[ t]*param[ /t]+/([^ /t]+/)//1/:
unterminated regexp

And I tried quite a while to make it work, following are interesting tries:

(1)
etags --language=none --regex=' /[ t]*param[ \t]+\([^ \t]+\)/\1/'
blendingexample.mod

note the space after ='

MSYS doesn't complain  "unterminated regexp" for this one. but the
produced TAGS file has no match at all.

(2)
etags --language=none --regex=' [ t]*param[ \t]+\([^ \t]+\)/\1'
blendingexample.mod

note the space after ='   and the two "/" being removed. Same result as in (1)

Can anybody help?

Michael

===============
blendingexample.mod
===============
var v {1..4};
param y {1..2};
minimize Obj:
5*v[1]+13*v[2]+26*v[3]+45*v[4]-2;
subject to Con1:
y[1]+2*y[2]=v[2]+2*v[3]+3*v[4];
subject to Con2:
y[1]+3*y[2]-1=v[2]+4*v[3]+10*v[4];
subject to Con3:
v[1]+v[2]+v[3]+v[4]>=0;
subject to Con4:
v[1]+2*v[2]+3*v[3]+4*v[4]>=0;
subject to Con5:
v[1]+3*v[2]+6*v[3]+10*v[4]>=0;
subject to Con6:
v[1]+4*v[2]+10*v[3]+20*v[4]>=0;

data;
param y:=
1 3
2 -1
;

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Keith MARSHALL | 6 Jun 14:42 2007

Re: etags behaves differently under MSYS


Michael Chen wrote:
> I am trying to use etags to generate tag files for emacs, and the
> following command works under linux environment, but failed under
> MSYS 1.0
>
> etags --language=none --regex='/[ t]*param[ \t]+\([^ \t]+\)/\1/' \
>  blendingexample.mod
>
> Error Msg:
>
> e:\chen\programs\emacs\emacs-21.3\bin\etags.exe:
> E:/chen/programs/msys/1.0/[ t]*param[ /t]+/([^ /t]+/)//1/:
> unterminated regexp

This appears to be yet another manifestation of the automatic path
name translation, performed by MSYS when passing arguments to native
Woe32 programs, interfering with your intended purpose.  In this
case, MSYS is mistaking your --regex expression for a path name,
expressed in MSYS-POSIX form, and is "helpfully" converting it
to native Woe32 form.

Unfortunately there is no way, with existing MSYS implementations,
to override this behaviour, beyond the existing double slash hack
for passing options to brain dead M$ style programs, which don't
recognise `-' as a SWITCHAR; (and unfortunately, this hack doesn't
seem to help, in this particular case, since the reduction of the
initial slashes doesn't occur when another slash appears later in
the argument):

  $ cmd //c echo --regex='/[ t]*param[ \t]+\([^ \t]+\)/\1/'
  "--regex=D:/usr/MSYS-1.0.11/[ t]*param[ /t]+/([^ /t]+/)//1/"

  $ cmd //c echo --regex='//[ t]*param[ \t]+\([^ \t]+\)/\1/'
  "--regex=//[ t]*param[ /t]+/([^ /t]+/)//1/"

Notice how doubling the initial slash avoids the substitution of
the MSYS root path, but still leaves a malformed regex because the
extra slash is not removed; I'm convinced this is a bug in the
MSYS path translation logic.

Also notable is that the backslash of the `\1' substitution term
has been transliterated, becoming `/1', and similarly for the `\t'
substitutions, becoming `/t'; yet another bug.

Do notice that this same problem affects sed regexes, if you use
a non-MSYS implementation of sed.  In that case, it is often
possible to work around the issue, by choosing an alternative
delimiter character to `/', for regexes; e.g. parsing the text of
this message, (before pasting in this example):

  $ sed -n '\?trans?p' mail.txt
  name translation, performed by MSYS when passing ...
  MSYS path translation logic.
  has been transliterated, becoming `/1', ...

I'm not an emacs user, so I don't know if a similar workaround is
possible with etags:

  $ cmd //c echo --regex='\?[ t]*param[ \t]+\([^ \t]+\)?\1?'
  "--regex=\?[ t]*param[ \t]+\([^ \t]+\)?\1?"

If not, then I don't think you are going to have much success
using etags in MSYS, until we can develop a suitable fix for this
long-standing bug, unless you can build etags as an msys-1.0.dll
dependent application.

Regards,
Keith.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Jean-Marc BOUCHE | 14 Jun 17:11 2007

Explanations about POSIX path conversion

Hi,

I am facing a problem that disturbs me as I can't explain it ;-)
Let's consider this C file:
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
  int i = 0;
  char *p = NULL;
  for (i = 1 ; i < argc; i++) {
    p = getenv(argv[i]);
    fprintf(stdout, "var = %s\nval = %s\n\n", argv[i], p);
  }
  return 0;
}

I have a makefile I currently use on Unix-like platforms (solaris, 
linux, cygwin):
XCFLAGS =
OPT=${DEVPACKROOTPATH}
export CFLAGS = -I. $(OPT)
export LDFLAGS = $(OTHER_X_LDFLAGS) $(OPT)
HOST_CC=gcc
HOST_CFLAGS=-O0
%.exe: %.c
    $(HOST_CC) $(HOST_CFLAGS) $< -o $ <at> 
all: driver
driver: expand.exe
    ./$< CFLAGS LDFLAGS

 From a msys windows, I define the DEVPACKROOTPATH environment variable:
'export DEVPACKROOTPATH=y:/ScDevTools/v2.1'
and type:
'make all'
then I obtain:
var = CFLAGS
val = -I. y:/ScDevTools/v2.1

var = LDFLAGS
val =  y;C:\msys\1.0\ScDevTools\v2.1

Why the first expansion is correct and why not the secund one?

After reading the MSYS readme, I currently work around this problem by 
setting the DEVPACKROOTPATH variable to /y/ScDevTools/v2.1.
But that doesn't explain why the first expansion is correct and why not 
the secund one!

Any ideas?

I am using MSYS 1.0.11 with sh 2.04.0, make 3.79.1 and gcc 3.4.2.

Thank you in advance for your support.

-- JM

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Michael Chen | 15 Jun 07:05 2007
Picon

how to generate header files for CEPHES Math Library

Dear there,

I am compiling CEPHES Math Library, http://www.moshier.net/double.zip.
With slight change of the given default unix makefile, I can compile
the library. however I don't know how to  generate its header file.
Any suggestions? Thanks in advance.

--
Michael Chen

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Tuomo Latto | 15 Jun 09:44 2007
Picon
Picon

Re: how to generate header files for CEPHES Math Library

Michael Chen wrote:
> Dear there,

"There"?

> I am compiling CEPHES Math Library, http://www.moshier.net/double.zip.
> With slight change of the given default unix makefile, I can compile
> the library. however I don't know how to  generate its header file.
> Any suggestions? Thanks in advance.

How about http://www.moshier.net/cephes-math-28.tar.gz ?

Anyway, this has probably nothing to do with MinGW.
See the end of http://www.moshier.net/index.html.
There's contact info for some guy named Steve there. I suspect he may
be able to assist you further.

--

-- 
Tuomo

... Verbosity leads to unclear, inarticulate things

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Andrzej Ziarkowski | 19 Jun 17:56 2007
Picon
Picon

Problems with directory path in batch file and sed

Hallo,

i'm totally newbie with sed/MSYS. I tried to madofy one simply batch file, but i got problems with path convertion.

I have "small problem" with sed in my windows batch file: the output file is not included any slash in the file path.
I mean that from my variable UNLOADFILE "C:\Temp\biblio.001" sed is making "C:Tempbiblio.001".

How i can stoping this behavior of sed?

****** BATCHFILE test.bat *******
REM %1 = Databasename
REM %2 = Unloadfile

 <at> ECHO OFF
CLS
SETLOCAL
SET DBNAME=ISLAND
SET SERVERNAME=SERVICE
SET TEMP=C:\TEMP
SET UNLOADFILE=C:\TEMP\BIBLIO.001
IF NOT "%1" == "" SET DBNAME=%1
IF NOT "%2" == "" SET UNLOADFILE=%2

sed -e "s/<dbname>/%DBNAME%/" -e "s/<unloadfile>/%UNLOADFILE%/" -e
"s#<servername>#%SERVERNAME%#" N:\Service\DB\load_DBS.sql >%temp%\%DBNAME%.in

TYPE %TEMP%\%DBNAME%.in
ENDLOCAL
****** END OF BATCHFILE test.bat *******

And this is a badly generated file %DBNAME%.in :
******** BAD FILE *********
<cutted>
LOAD SQL C:TEMPbiblio.sql ON SERVER LOG k1234.LOG
<cutted>
******** END OF BAD FILE *********

Thx in advance
Andrzej
--

-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Tim Stahlhut | 19 Jun 18:03 2007
Picon
Picon

Re: Problems with directory path in batch file and sed

Andrzej Ziarkowski wrote:

> Hallo,
>
> i'm totally newbie with sed/MSYS. I tried to madofy one simply batch file, but i got problems with path convertion.
>
> I have "small problem" with sed in my windows batch file: the output file is not included any slash in the
file path.
> I mean that from my variable UNLOADFILE "C:\Temp\biblio.001" sed is making "C:Tempbiblio.001".
>

I suggest these things to try instead of  "C:\Temp\biblio.001"

1.  "C:\\Temp\\biblio.001"
2.  "C:/Temp/biblio.001"
3.  "/C/Temp/biblio.001"
4.  "/C:/Temp/biblio.001"

Tim S

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Keith MARSHALL | 19 Jun 18:25 2007

Re: Problems with directory path in batch file and sed


Andrzej Ziarkowski wrote:
> i'm totally newbie with sed/MSYS. I tried to madofy one simply
> batch file, but i got problems with path convertion.

Are you trying to run windows batch files from the MSYS prompt?
If so, you really need to know a lot about what you are doing, for
this is not straightforward -- not something for newbies to try!

> I have "small problem" with sed in my windows batch file: the
> output file is not included any slash in the file path.

Or, are you trying to run MSYS commands, (sed in this case), from
a cmd.exe prompt?  (This would be the same as using MSYS commands
within a Woe32 batch file).  This is more achievable, but again,
it helps if you know what you are doing.

> I mean that from my variable UNLOADFILE "C:\Temp\biblio.001" sed
> is making "C:Tempbiblio.001".
>
> How i can stoping this behavior of sed?

sed is a POSIX command, and it uses backslashes as literal escapes;
if you want to pass them through, so they can be seen as dir/file
name separators in Woe32's dyslexic manner, then you have to escape
them; (POSIX uses a regular slash as the dir/file name separator).
Thus, you need "C:\\Temp\\biblio.001".

Since you profess to be a newbie, I'd really recommend *not* trying
to mix MSYS/POSIX and Woe32/cmd.exe syntax in the same environment;
use MSYS commands with POSIX syntax from the MSYS bash prompt, or in
sh scripts, and don't try to use them from cmd.exe.

HTH,
Keith.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

Gmane