Re: compile error on Windows XP

2007-07-17 Thread Eli Zaretskii
 Cc: emacs-pretest-bug@gnu.org
 From: Zhang Wei [EMAIL PROTECTED]
 Date: Tue, 17 Jul 2007 13:26:53 +0800
 
 Eli Zaretskii [EMAIL PROTECTED] writes:
 
  I suspect that this is some strange interaction between MSYS and MinGW
  (you do use MSYS Bash and maybe MSYS Make, right?).  You didn't
  upgrade any of them together with MinGW, did you?  Maybe you should
  downgrade back to the older versions, and if MinGW is the only one you
  upgraded, try an older version, maybe 3.9.
 
 I uninstalled MSYS completely and use GnuWin32 CoreUtils-5.3.0 instead,
 now it compiles.

Ah, great.  Thanks for working on this.

If you ever need a Windows port of Bash or some other Unixy shell,
there are a few non-MSYS, non-Cygwin ports floating around.  Although
they are generally quite old and sometimes buggy (and thus most of
them cannot run a reasonably elaborate configure script), they should
do fine for running typical commands one finds in Makefile's.


___
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug


Re: compile error on Windows XP

2007-07-16 Thread Zhang Wei
Eli Zaretskii [EMAIL PROTECTED] writes:

 From: Zhang Wei [EMAIL PROTECTED]
 Cc: Zhang Wei [EMAIL PROTECTED],  [EMAIL PROTECTED],  
 emacs-pretest-bug@gnu.org
 Date: Mon, 16 Jul 2007 05:55:47 +0800
 
 Eli Zaretskii [EMAIL PROTECTED] writes:
 
  Can you please tell what version of MinGW do you have installed?  (You
  should be able to see it in the _mingw.h header file in your include
  directory; look for the definition of __MINGW32_VERSION there.)
 
 #define __MINGW32_VERSION 3.1

 This explains everything -- it's a very old version.  (Current one is
 3.12.)

I upgraded MinGW to version 3.12, but run into another compilation error:

--8---cut here---start-8---
gcc -I. -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0501 -D_X86_=1 -c  -mno-cygwin -m
tune=pentium4 -O2  -Di386 -D_CRTAPI1=_cdecl   -DWINDOWSNT -DDOS_NT -DSTDC_HEADER
S=1 -DNO_LDAV=1 -DNO_ARCHIVES=1 -DHAVE_CONFIG_H=1 -I../nt/inc -I../src -DHAVE_GE
TCWD -DHAVE_STRERROR -DVERSION=\22.1.50\ -o oo-spd/i386/emacsclient.o emacsc
lient.c
gcc.exe: no input files
make[2]: *** [oo-spd/i386/emacsclient.o] Error 1
make[2]: Leaving directory `D:/emacs-gbk/lib-src'
make[1]: *** [all-other-dirs-gmake] Error 2
make[1]: Leaving directory `D:/emacs-gbk/nt'
make: *** [bootstrap] Error 2
--8---cut here---end---8---



___
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug


Re: compile error on Windows XP

2007-07-16 Thread Eli Zaretskii
 Cc: emacs-pretest-bug@gnu.org
 From: Zhang Wei [EMAIL PROTECTED]
 Date: Mon, 16 Jul 2007 21:33:34 +0800
 
 I upgraded MinGW to version 3.12, but run into another compilation error:

I'm sorry that I caused you trouble.

 gcc -I. -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0501 -D_X86_=1 -c  -mno-cygwin 
 -mtune=pentium4 -O2  -Di386 -D_CRTAPI1=_cdecl   -DWINDOWSNT -DDOS_NT 
 -DSTDC_HEADERS=1 -DNO_LDAV=1 -DNO_ARCHIVES=1 -DHAVE_CONFIG_H=1 -I../nt/inc 
 -I../src -DHAVE_GETCWD -DHAVE_STRERROR -DVERSION=\22.1.50\ -o 
 oo-spd/i386/emacsclient.o emacsclient.c
 gcc.exe: no input files

Could you please add -v to the compiler switches, and show here what
it displays for this failing command?  I'd like to know what arguments
GCC sees, because the input file (emacsclient.c) is clearly there.


___
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug


Re: compile error on Windows XP

2007-07-16 Thread Zhang Wei
Eli Zaretskii [EMAIL PROTECTED] writes:

 Could you please add -v to the compiler switches, and show here what
 it displays for this failing command?  I'd like to know what arguments
 GCC sees, because the input file (emacsclient.c) is clearly there.

I added the -v switch, but it seems the error message is still the same,
and I rechecked the emacsclient.c file, it is there.

--8---cut here---start-8---
D:\emacs-gbk\ntmake
[Please ignore a syntax error on the next line - it is intentional]
/usr/bin/sh: -c: line 1: unexpected EOF while looking for matching `'
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
Using C:/MinGW/bin/sh.exe as shell.
make   -C ../lib-src all
[Please ignore a syntax error on the next line - it is intentional]
/usr/bin/sh: -c: line 1: unexpected EOF while looking for matching `'
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
make[1]: Entering directory `D:/emacs-gbk/lib-src'
gcc -v -I. -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0501 -D_X86_=1 -c  -mno-cygwin
 -mtune=pentium4 -O2  -Di386 -D_CRTAPI1=_cdecl   -DWINDOWSNT -DDOS_NT -DSTDC_HEA
DERS=1 -DNO_LDAV=1 -DNO_ARCHIVES=1 -DHAVE_CONFIG_H=1 -I../nt/inc -I../src -DHAVE
_GETCWD -DHAVE_STRERROR -DVERSION=\22.1.50\ -o oo-spd/i386/emacsclient.o ema
csclient.c
gcc.exe: no input files
make[1]: *** [oo-spd/i386/emacsclient.o] Error 1
make[1]: Leaving directory `D:/emacs-gbk/lib-src'
make: *** [all-other-dirs-gmake] Error 2
--8---cut here---end---8---



___
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug


Re: compile error on Windows XP

2007-07-16 Thread Eli Zaretskii
 Cc: emacs-pretest-bug@gnu.org
 From: Zhang Wei [EMAIL PROTECTED]
 Date: Tue, 17 Jul 2007 05:57:47 +0800
 
 and I rechecked the emacsclient.c file, it is there.

That's expected: the error message says that GCC didn't see any input
files on its command line, not that the file is not found.  Looks like
the command line is somehow truncated before it gets to GCC.

I suspect that this is some strange interaction between MSYS and MinGW
(you do use MSYS Bash and maybe MSYS Make, right?).  You didn't
upgrade any of them together with MinGW, did you?  Maybe you should
downgrade back to the older versions, and if MinGW is the only one you
upgraded, try an older version, maybe 3.9.

 gcc -v -I. -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0501 -D_X86_=1 -c  
 -mno-cygwin

Something strange goes on here: the value of WIN32_WINNT should be
0x0400, not 0x0501.  Can you find out why the difference?


___
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug


Re: compile error on Windows XP

2007-07-16 Thread Zhang Wei
Eli Zaretskii [EMAIL PROTECTED] writes:

[...]

 I suspect that this is some strange interaction between MSYS and MinGW
 (you do use MSYS Bash and maybe MSYS Make, right?).  You didn't
 upgrade any of them together with MinGW, did you?  Maybe you should
 downgrade back to the older versions, and if MinGW is the only one you
 upgraded, try an older version, maybe 3.9.

Yes, I use MSYS bash and mingw32-make(renamed to make). 

 gcc -v -I. -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0501 -D_X86_=1 -c  
 -mno-cygwin

 Something strange goes on here: the value of WIN32_WINNT should be
 0x0400, not 0x0501.  Can you find out why the difference?

I changed the value from 0x400 to 0x501, no problem with the older MinGW.


___
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug


Re: compile error on Windows XP

2007-07-16 Thread Zhang Wei
Eli Zaretskii [EMAIL PROTECTED] writes:

 I suspect that this is some strange interaction between MSYS and MinGW
 (you do use MSYS Bash and maybe MSYS Make, right?).  You didn't
 upgrade any of them together with MinGW, did you?  Maybe you should
 downgrade back to the older versions, and if MinGW is the only one you
 upgraded, try an older version, maybe 3.9.

I uninstalled MSYS completely and use GnuWin32 CoreUtils-5.3.0 instead,
now it compiles. May be the MSYS I'm using is outdated, it's installed
from MSYS-1.0.10.exe.


___
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug


compile error on Windows XP

2007-07-15 Thread Zhang Wei

make   -C ../src all
make[1]: Entering directory `D:/emacs-gbk/src'
gcc -I. -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0501 -D_X86_=1 -c  -mno-cygwin
cpu=i686 -O2  -Di386 -D_CRTAPI1=_cdecl   -Demacs=1 -DWINDOWSNT -DDOS_NT -DHAVE
ONFIG_H -I../nt/inc -D_UCHAR_T -DHAVE_NTGUI=1 -DUSE_CRT_DLL=1 -o oo-spd/i386/p
cess.o process.c
process.c: In function `conv_sockaddr_to_lisp':
process.c:2307: `uint16_t' undeclared (first use in this function)
process.c:2307: (Each undeclared identifier is reported only once
process.c:2307: for each function it appears in.)
process.c:2307: `ip6' undeclared (first use in this function)
process.c:2307: parse error before ')' token
process.c: In function `conv_lisp_to_sockaddr':
process.c:2422: `uint16_t' undeclared (first use in this function)
process.c:2422: `ip6' undeclared (first use in this function)
process.c:2422: parse error before ')' token
process.c: In function `server_accept_connection':
process.c:4052: `uint16_t' undeclared (first use in this function)
process.c:4052: `ip6' undeclared (first use in this function)
process.c:4052: parse error before ')' token
make[1]: *** [oo-spd/i386/process.o] Error 1
make[1]: Leaving directory `D:/emacs-gbk/src'
make: *** [all-other-dirs-gmake] Error 2


If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
`bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
c:/Emacs/etc/DEBUG for instructions.


In GNU Emacs 22.1.50.1 (i386-mingw-nt5.1.2600)
 of 2007-07-14 on BREPHOME
modified by Zhangwei [EMAIL PROTECTED].
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.2)'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: CHS
  locale-coding-system: cp936
  default-enable-multibyte-characters: t

Major mode: Group

Minor modes in effect:
  shell-dirtrack-mode: t
  gnus-topic-mode: t
  gnus-undo-mode: t
  auto-image-file-mode: t
  display-time-mode: t
  show-paren-mode: t
  delete-selection-mode: t
  pc-selection-mode: t
  encoded-kbd-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
e C-e return tab ( b backspace g b k SPC . SPC 
B ) C-x C-s C-x C-f C-g C-x C-b down down return 
down v C-s g b return C-x b return C-x b C-s 
C-s return g v q up up up up up up up 
up up up up up up up up up up up 
up up up up up up up up up up up 
up up up up up up up up up up up 
up up up up up up up up up up down 
down down down down down down down up 
v SPC SPC C-s g b k return q prior prior ^ down 
C-s w 3 2 - f n return v C-s g b return q up 
up up up up up up up up up up up 
up up up up up up up up up up up 
up up up up up up up up up up down-mouse-1 
mouse-1 ^ C-s n t return C-s C-s return v down 
down down down down down down down down 
down down down down down down down down 
down C-s g b backspace m a k C-r C-r C-g g C-g 
C-g g C-p C-p C-p C-p v C-s 4 0 0 return C-b C-b 
C-b e C-d C-d C-d 5 0 1 1 backspace C-x C-s help-echo 
down-mouse-1 mouse-1 C-x b C-s C-g C-x b C-x C-b 
C-g x b C-/ C-x b g r return C-x b C-g C-x C-b p 
p p p p d d d d d d d d d d C-n C-n d d d d x y n n 
n n p return g n return return q g M-x r e p 
o r t - e m tab return

Recent messages:
Suppressing duplicates...done
Scoring...done
Generating summary...done
No more unread newsgroups
Checking new news...
nnml: Reading incoming mail from pop...
nnml: Reading incoming mail (no new mail)...done
Checking new news...done
No gnus is bad news
Loading emacsbug...done


___
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug


Re: compile error on Windows XP

2007-07-15 Thread Jason Rumney
Zhang Wei wrote:
 process.c: In function `conv_sockaddr_to_lisp':
 process.c:2307: `uint16_t' undeclared (first use in this function)
   
Please check if it compiles now. I checked in a Windows specific fix,
since there have never been reports of this in the past, and that code
has been there some time, but the same compilation error should happen
on any platform where the system headers do not support the new size
specific types introduced in ISO C99. Perhaps it is a safe assumption on
other platforms that if IPv6 is supported, so is C99?



___
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug


Re: compile error on Windows XP

2007-07-15 Thread Zhang Wei
Jason Rumney [EMAIL PROTECTED] writes:

 Zhang Wei wrote:
 process.c: In function `conv_sockaddr_to_lisp':
 process.c:2307: `uint16_t' undeclared (first use in this function)
   
 Please check if it compiles now. I checked in a Windows specific fix,
 since there have never been reports of this in the past, and that code
 has been there some time, but the same compilation error should happen
 on any platform where the system headers do not support the new size
 specific types introduced in ISO C99. Perhaps it is a safe assumption on
 other platforms that if IPv6 is supported, so is C99?

It compiles now.


___
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug


Re: compile error on Windows XP

2007-07-15 Thread Eli Zaretskii
 From: Zhang Wei [EMAIL PROTECTED]
 Date: Sun, 15 Jul 2007 20:58:16 +0800
 Cc: emacs-pretest-bug@gnu.org
 
 Jason Rumney [EMAIL PROTECTED] writes:
 
  Zhang Wei wrote:
  process.c: In function `conv_sockaddr_to_lisp':
  process.c:2307: `uint16_t' undeclared (first use in this function)

  Please check if it compiles now. I checked in a Windows specific fix,
  since there have never been reports of this in the past, and that code
  has been there some time, but the same compilation error should happen
  on any platform where the system headers do not support the new size
  specific types introduced in ISO C99. Perhaps it is a safe assumption on
  other platforms that if IPv6 is supported, so is C99?
 
 It compiles now.

Can you please tell what version of MinGW do you have installed?  (You
should be able to see it in the _mingw.h header file in your include
directory; look for the definition of __MINGW32_VERSION there.)

TIA


___
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug


Re: compile error on Windows XP

2007-07-15 Thread Zhang Wei
Eli Zaretskii [EMAIL PROTECTED] writes:

 Can you please tell what version of MinGW do you have installed?  (You
 should be able to see it in the _mingw.h header file in your include
 directory; look for the definition of __MINGW32_VERSION there.)

#define __MINGW32_VERSION 3.1



___
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug


Re: compile error on Windows XP

2007-07-15 Thread Eli Zaretskii
 From: Zhang Wei [EMAIL PROTECTED]
 Cc: Zhang Wei [EMAIL PROTECTED],  [EMAIL PROTECTED],  
 emacs-pretest-bug@gnu.org
 Date: Mon, 16 Jul 2007 05:55:47 +0800
 
 Eli Zaretskii [EMAIL PROTECTED] writes:
 
  Can you please tell what version of MinGW do you have installed?  (You
  should be able to see it in the _mingw.h header file in your include
  directory; look for the definition of __MINGW32_VERSION there.)
 
 #define __MINGW32_VERSION 3.1

This explains everything -- it's a very old version.  (Current one is
3.12.)

Thanks.


___
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug