Can't compile glib with cygwin: Error 139 in make

Andres Moya Andres.Moya@hispalinux.es
Fri Feb 7 15:04:00 GMT 2003


Hello.

I'm trying to compile glib 2.2.0 or 2.2.1 in Cygwin, and had some
problems. The last one is one that I cannot handle :-P

1) At first place, the compiler complained about not finding
libkernel32.a and libuser32.a. I fixed it by declaring the environment
variable LDFLAGS=-L/lib/w32api

2) Then, it gave an error in module "glib" about an undefined reference
to _WinMain@16. The Cygwin FAQ tells to try adding an empty main()
function. I added it to some source file of glib, and apparently worked.

Is there any other way to solve these two by changing Cygwin settings,
and without affecting glib?

3) In module gobject, the make stops with a strange error. Here is the
extracted output:

-----------------------------------------------------------------------
Making all in gobject
make[2]: Entering directory `/home/andres/glib-2.2.0-linux/gobject'

[...some stuff...]

creating glib-genmarshal.exe
echo "#ifndef __G_MARSHAL_H__" > xgen-gmh \
&& echo "#define __G_MARSHAL_H__" >> xgen-gmh \
&& ./glib-genmarshal --nostdinc --prefix=g_cclosure_marshal
./gmarshal.list --header >> xgen-gmh \
&& echo "#endif /* __G_MARSHAL_H__ */" >> xgen-gmh \
&& (cmp -s xgen-gmh ./gmarshal.h || cp xgen-gmh ./gmarshal.h) \
&& rm -f xgen-gmh xgen-gmh~ \
&& echo timestamp > stamp-gmarshal.h
make[2]: *** [stamp-gmarshal.h] Error 139
make[2]: Leaving directory `/home/andres/glib-2.2.0-linux/gobject'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/andres/glib-2.2.0-linux'
make: *** [all-recursive-am] Error 2
-----------------------------------------------------------------------


The Error 139 is caused by the executable ./glib-genmarshal doing a core
dump (I have executed it by hand, and also does the core dump).

Actually, glib-genmarshal is a generated script, that in turn executes
./.libs/lt-glib-genmarshal.exe.exe (with two ".exe") :-?. This
executable has been compiled from the source by the same makefile.

What can I do to continue investigating?

I attach the output of cygcheck -s -v -r. I'm executing Windows XP
inside a vmware box, on Linux Mandrake 9.0.

-- 
Andres Moya <Andres.Moya@hispalinux.es>
Hispalinux
-------------- next part --------------

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Fri Feb 07 15:02:23 2003

Windows XP Professional Ver 5.1 Build 2600 

Path:	C:\cygwin\usr\local\bin
	C:\cygwin\bin
	C:\cygwin\bin
	c:\WINDOWS\system32
	c:\WINDOWS
	c:\WINDOWS\System32\Wbem
	c:\Archivos de programa\Microsoft SQL Server\80\Tools\Binn\
	c:\archivos de programa\python21
	c:\Archiv~1\MySQL\bin

SysDir: C:\WINDOWS\System32
WinDir: C:\WINDOWS

HOME = `C:\cygwin\home\andres'
MAKE_MODE = `unix'
PWD = `/home/andres/glib-2.2.1'
USER = `andres'

ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\andres\Datos de programa'
CLIENTNAME = `Console'
COMMONPROGRAMFILES = `C:\Archivos de programa\Archivos comunes'
COMPUTERNAME = `TOCINO'
COMSPEC = `C:\WINDOWS\system32\cmd.exe'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\andres'
LDFLAGS = `-L/lib/w32api'
LOGONSERVER = `\\TOCINO'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/home/andres/glib-2.2.1/glib'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 4 Stepping 2, AuthenticAMD'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0402'
PROGRAMFILES = `C:\Archivos de programa'
PROMPT = `$P$G'
PS1 = `\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ '
SESSIONNAME = `Console'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINDOWS'
TEMP = `c:\DOCUME~1\andres\CONFIG~1\Temp'
TERM = `cygwin'
TMP = `c:\DOCUME~1\andres\CONFIG~1\Temp'
USERDOMAIN = `TOCINO'
USERNAME = `andres'
USERPROFILE = `C:\Documents and Settings\andres'
WINDIR = `C:\WINDOWS'
_ = `/usr/bin/cygcheck'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x00000022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:\cygwin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:\cygwin/bin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:\cygwin/lib'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

a:  fd           N/A    N/A                    
c:  hd  NTFS    4988Mb  76% CP CS UN PA FC     
d:  cd           N/A    N/A                    
e:  cd  CDFS     753Mb 100%    CS UN           BACKUP DOCS
x:  net FAT     7711Mb  90% CP    UN           
y:  net NTFS    7798Mb  94%          PA        ???
z:  net NTFS    7798Mb  94%          PA        ???

C:\cygwin      /          system  binmode
C:\cygwin/bin  /usr/bin   system  binmode
C:\cygwin/lib  /usr/lib   system  binmode
.              /cygdrive  user    binmode,cygdrive

Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\gcc.exe
Not Found: gdb
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\sh.exe

   58k 2002/05/07 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2002/5/7 8:33
    6k 2002/06/24 C:\cygwin\bin\cygcharset-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygcharset-1.dll" v0.0 ts=2002/6/24 20:23
  136k 2002/10/17 C:\cygwin\bin\cygexpat-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygexpat-0.dll" v0.0 ts=2002/10/17 17:21
   45k 2001/04/25 C:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
                  "cygform5.dll" v0.0 ts=2001/4/25 7:28
   35k 2002/01/09 C:\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0
                  "cygform6.dll" v0.0 ts=2002/1/9 7:03
   19k 2002/02/20 C:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm.dll" v0.0 ts=2002/2/20 4:05
   17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory4.dll" v0.0 ts=2001/1/7 5:34
   20k 2002/10/10 C:\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory5.dll" v0.0 ts=2002/10/10 19:28
  929k 2002/06/24 C:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2002/6/24 20:24
   22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-1.dll" v0.0 ts=2001/12/13 10:28
   28k 2002/09/20 C:\cygwin\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-2.dll" v0.0 ts=2002/9/20 5:13
   32k 2003/01/04 C:\cygwin\bin\cygltdl-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygltdl-3.dll" v0.0 ts=2003/1/4 8:47
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu5.dll" v0.0 ts=2001/4/25 7:27
   20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu6.dll" v0.0 ts=2002/1/9 7:03
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++5.dll" v0.0 ts=2001/4/25 7:29
  175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++6.dll" v0.0 ts=2002/1/9 7:03
  226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses5.dll" v0.0 ts=2001/4/25 7:17
  202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses6.dll" v0.0 ts=2002/1/9 7:03
   15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel5.dll" v0.0 ts=2001/4/25 7:27
   12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel6.dll" v0.0 ts=2002/1/9 7:03
   40k 2001/11/21 C:\cygwin\bin\cygpcre.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre.dll" v0.0 ts=2001/11/21 23:15
   39k 2001/11/21 C:\cygwin\bin\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix.dll" v0.0 ts=2001/11/21 23:15
  108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline4.dll" v0.0 ts=2001/1/7 5:34
  127k 2002/10/10 C:\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline5.dll" v0.0 ts=2002/10/10 19:28
  633k 2002/07/22 C:\cygwin\bin\cygxml2-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygxml2-2.dll" v0.0 ts=2002/7/22 8:29
   50k 2002/03/12 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2002/3/12 5:38
  885k 2003/01/24 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2003/1/24 3:31
    Cygwin DLL version info:
        DLL version: 1.3.19
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 71
        Shared data: 3
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix: 
        Build date: Thu Jan 23 21:31:48 EST 2003
        CVS tag: cygwin-1-3-19-1
        Shared id: cygwin1S3

  653k 1998/10/30 c:\Archiv~1\MySQL\bin\cygwinb19.dll - os=4.0 img=1.0 sys=4.0
                  "cygwinb19.dll" v0.0 ts=1998/7/15 19:50

Cygwin Package Information
Last downloaded files to: c:\temp\cygwin
Last downloaded files from: ftp://ftp.rediris.es/mirror/cygwin

Package             Version             
_update-info-dir    00130-1             
ash                 20020731-1          
autoconf            2.54-1              
autoconf-devel      2.57-1              
autoconf-stable     2.13-4              
automake            1.7.1-1             
automake-devel      1.7.2-1             
automake-stable     1.4p5-5             
base-files          1.1-1               
base-passwd         1.0-1               
bash                2.05b-8             
binutils            20021117-1          
bzip2               1.0.2-2             
cygwin              1.3.19-1            
diff                1.0-1               
diffutils           2.8.1-1             
expat               1.95.5-1            
file                3.37-1              
fileutils           4.1-1               
findutils           4.1.7-4             
gawk                3.1.1-5             
gcc                 3.2-3               
gcc-mingw           20020817-5          
gdbm                1.8.0-4             
gettext             0.11.5-1            
gettext-devel       0.11.5-1            
grep                2.5-1               
gzip                1.3.3-4             
less                378-1               
libbz2_1            1.0.2-2             
libcharset1         1.8-2               
libiconv            1.8-2               
libiconv2           1.8-2               
libintl1            0.10.40-1           
libintl2            0.11.5-1            
libltdl3            20030103-1          
libncurses5         5.2-1               
libncurses6         5.2-8               
libreadline4        4.1-2               
libreadline5        4.3-2               
libtool             20020705-1          
libtool-devel       20030103-1          
libtool-stable      1.4.3-1             
libxml2             2.4.23-1            
login               1.7-1               
m4                  1.4-1               
make                3.79.1-7            
mingw-runtime       2.3-1               
mktemp              1.4-1               
ncurses             5.2-8               
pcre                3.7-1               
perl                5.6.1-2             
pkgconfig           0.14.0-1            
readline            4.3-2               
sed                 4.0.5-1             
sh-utils            2.0.15-3            
tar                 1.13.25-1           
termcap             20020930-1          
terminfo            5.2-3               
texinfo             4.2-4               
textutils           2.0.21-1            
vim                 6.1-2               
w32api              2.1-1               
which               1.5-1               
zlib                1.1.4-1             

Use -h to see help about each section

-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list