Subject: Cygwin compile fails
From: "Michael Labhard" <[email-masked]>
To: [email-masked]
Date: Fri, 10 May 2002 08:30:42 -0700
Newsgroups: gmane.os.cygwin

All:

    My question is, "How do I build cygwin?"

    An application I built entirely in the cygwin environment repeatedly seg
faults and gdb shows the stack 8 frames into cygwin at the seg fault.  It
would appear necessary to build a debugging version of cygwin in order to
resolve this problem and this may be useful to cygwin development as well.
So I have downloaded cygwin from cvs and followed Peter Buckley's
instructions for building it:

Then you need to creat a parrallel build directory:

bash$ cd /winsup

bash$ mkdir build

bash$ cd build

Now run the cygwin-build script (below).

etc...

However the compilation does not complete ending with the following error:

make[2]: Entering directory
`/home/mel/projects/winsup/build/i686-pc-cygwin/winsup/cygwin'
c++ -L/home/mel/projects/winsup/build/i686-pc-cygwin/winsup -L/home/mel/proj
ects/winsup/build/i686-pc-cygwin/winsup/cygwin -L/home/mel/projects/winsup/b
uild/i686-pc-cygwin/winsup/w32api/lib -isystem
/home/mel/projects/winsup/src/winsup/include -isystem
/home/mel/projects/winsup/src/winsup/cygwin/include -isystem
/home/mel/projects/winsup/src/winsup/w32api/include -isystem
/home/mel/projects/winsup/src/newlib/libc/sys/cygwin -isystem
/home/mel/projects/winsup/src/newlib/libc/sys/cygwin32 -B/home/mel/projects/
winsup/build/i686-pc-cygwin/newlib/ -isystem
/home/mel/projects/winsup/build/i686-pc-cygwin/newlib/targ-include -isystem
/home/mel/projects/winsup/src/newlib/libc/include -c -nostdinc++ -nostdinc -
DHAVE_CONFIG_H  -g -O2 -Wall -Wwrite-strings -fno-common -pipe -Winline -fbu
iltin  -I.  -I/home/mel/projects/winsup/src/winsup/cygwin    -I/home/mel/pro
jects/winsup/src/newlib/libc/sys/cygwin/include  -I/home/mel/projects/winsup
/src/winsup/cygwin/config/i386 -I/latest/bin/../lib/gcc-lib/i686-pc-cygwin/2
.95.3-5//include -fno-rtti -fno-exceptions -o ./shm.o
/home/mel/projects/winsup/src/winsup/cygwin/shm.cc
/home/mel/projects/winsup/src/winsup/cygwin/shm.cc:81: syntax error before
`*'
/home/mel/projects/winsup/src/winsup/cygwin/shm.cc:83: syntax error before
`*'
/home/mel/projects/winsup/src/winsup/cygwin/shm.cc:88: `filemap' was not
declared in this scope
/home/mel/projects/winsup/src/winsup/cygwin/shm.cc:90: parse error before
`if'
/home/mel/projects/winsup/src/winsup/cygwin/shm.cc:93: `hattachmap' was not
declared in this scope
/home/mel/projects/winsup/src/winsup/cygwin/shm.cc:93: ANSI C++ forbids
declaration `CloseHandle' with no type
/home/mel/projects/winsup/src/winsup/cygwin/shm.cc:93: `int CloseHandle'
redeclared as different kind of symbol
/home/mel/projects/winsup/src/winsup/w32api/include/winbase.h:977: previous
declaration of `BOOL CloseHandle(void *)'

Any assistance resolving this problem would be appreciated.  Thanks.

-- Michael

cygcheck:

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Fri May 10 08:29:54 2002

Windows XP Professional Ver 5.1 Build 2600

Path: C:\cygwin\latest\bin
 C:\cygwin\usr\local\xmlrpc_libwww\bin
 C:\cygwin\usr\local\bin
 C:\cygwin\bin
 C:\cygwin\bin
 C:\cygwin\bin
 c:\Tcl\bin
 c:\WINDOWS\system32
 c:\WINDOWS
 c:\WINDOWS\System32\Wbem
 .
 C:\cygwin\bin
 C:\cygwin\lib\python2.2\site-packages\wxPython

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

CYGWIN = `tty ntsec notitle glob'
HOME = `C:\cygwin\home\mel'
LIBRARY_PATH = `/latest/lib/mingw:/latest/lib:/lib:/usr/local/lib'
MAKE_MODE = `unix'
PWD = `/home/mel'
USER = `mel'

Use `-r' to scan registry

a:  fd           N/A    N/A
c:  hd  NTFS   39252Mb  14% CP CS UN PA FC
d:  cd           N/A    N/A

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

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

   56k 2000/12/03 C:\cygwin\latest\bin\cygbz21.0.dll
  621k 2002/01/16 C:\cygwin\latest\bin\cygcrypto.dll
   81k 2000/12/05 C:\cygwin\latest\bin\cygitcl30.dll
   35k 2000/12/05 C:\cygwin\latest\bin\cygitk30.dll
   19k 2002/01/13 C:\cygwin\latest\bin\cygltdl-3.dll
  156k 2002/01/16 C:\cygwin\latest\bin\cygssl.dll
  390k 2000/12/05 C:\cygwin\latest\bin\cygtcl80.dll
    5k 2000/12/05 C:\cygwin\latest\bin\cygtclpip80.dll
   10k 2000/12/05 C:\cygwin\latest\bin\cygtclreg80.dll
  623k 2000/12/05 C:\cygwin\latest\bin\cygtk80.dll
   54k 2002/01/27 C:\cygwin\bin\cygbz21.0.dll
  621k 2002/01/16 C:\cygwin\bin\cygcrypto.dll
  108k 2002/04/15 C:\cygwin\bin\cygcurl-2.dll
   50k 2002/03/17 C:\cygwin\bin\cygexslt-0.dll
   45k 2001/04/25 C:\cygwin\bin\cygform5.dll
   35k 2002/01/09 C:\cygwin\bin\cygform6.dll
   19k 2002/02/20 C:\cygwin\bin\cyggdbm.dll
   17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll
   20k 2002/01/13 C:\cygwin\bin\cyghistory5.dll
   22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll
   21k 2001/06/20 C:\cygwin\bin\cygintl.dll
   81k 2000/12/05 C:\cygwin\bin\cygitcl30.dll
   35k 2000/12/05 C:\cygwin\bin\cygitk30.dll
   25k 2002/03/17 C:\cygwin\bin\cygltdl-3.dll
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll
   20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll
  175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll
  226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll
  202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll
   15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll
   12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll
   40k 2001/11/21 C:\cygwin\bin\cygpcre.dll
   39k 2001/11/21 C:\cygwin\bin\cygpcreposix.dll
  171k 2002/04/19 C:\cygwin\bin\cygpng10.dll
  170k 2002/01/21 C:\cygwin\bin\cygpng2.dll
  108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll
  121k 2002/01/13 C:\cygwin\bin\cygreadline5.dll
  156k 2002/01/16 C:\cygwin\bin\cygssl.dll
  390k 2000/12/05 C:\cygwin\bin\cygtcl80.dll
    5k 2000/12/05 C:\cygwin\bin\cygtclpip80.dll
   10k 2000/12/05 C:\cygwin\bin\cygtclreg80.dll
  623k 2000/12/05 C:\cygwin\bin\cygtk80.dll
 1248k 2002/03/17 C:\cygwin\bin\cygxml2-2.dll
  152k 2002/03/17 C:\cygwin\bin\cygxslt-1.dll
   15k 2002/03/17 C:\cygwin\bin\cygxsltbreakpoint-1.dll
   50k 2002/03/12 C:\cygwin\bin\cygz.dll
  751k 2002/02/25 C:\cygwin\bin\cygwin1.dll
    Cygwin DLL version info:
        DLL version: 1.3.10
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 51
        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: Mon Feb 25 11:14:34 EST 2002
        Shared id: cygwin1S3

Cygwin Package Information
Package             Version
ash                 20020131-1
autoconf            2.53-1
autoconf-devel      2.53-1
autoconf-stable     2.13-4
automake            1.6a-1
automake-devel      1.6-1
automake-stable     1.4p5-5
bash                2.05a-3
bc                  1.06-1
binutils            20011002-1
bzip2               1.0.2-1
clear               1.0-1
compface            1.4-5
cron                3.0.1-6
curl                7.9.6-1
cvs                 1.11.0-1
cygrunsrv           0.95-1
cygutils            1.0.0-1
cygwin              1.3.10-1
diff                0.0
expect              20010117-1
file                3.37-1
fileutils           4.1-1
findutils           4.1
gawk                3.0.4-1
gdbm                1.8.0-4
ghostscript         6.51-4
grep                2.5-1
groff               1.17.2-1
gzip                1.3.2-1
inetutils           1.3.2-17
irc                 20010101-1
less                374-1
libbz2_0            1.0.2-1
libintl             0.10.38-3
libintl1            0.10.40-1
libncurses5         5.2-1
libncurses6         5.2-8
libpng              1.0.13-1
libpng10            1.0.13-1
libpng2             1.0.12-1
libreadline4        4.1-2
libreadline5        4.2a-1
libtool             20020202a-1
libtool-devel       20020316-1
libtool-stable      1.4.2-2
libxml2             2.4.17-1
libxslt             1.0.13-1
login               1.4-3
m4                  0.0
man                 1.5g-2
mktemp              1.4-1
ncftp               3.1.3-1
ncurses             5.2-8
newlib-man          20001118-1
opengl              1.1.0-6
openssh             3.1p1-1
openssl             0.9.6c-3
openssl-devel       0.9.6c-2
patch               2.5-3
pcre                3.7-1
perl                5.6.1-2
popt                1.6.2-1
postgresql          7.2.1-1
python              2.2-1
rcs                 5.7-3
readline            4.2a-1
rsync               2.5.5-1
sed                 3.02-1
sh-utils            2.0-2
tar                 1.13.19-1
tcltk               20001125-1
termcap             20020403-1
terminfo            5.2-1
texmf-doc           20000804-2
textutils           2.0.21-1
time                1.7-1
units               1.77-1
unzip               5.41-1
vim                 6.1-2
w32api              1.3-2
wget                1.8.1-1
which               1.5-1
zip                 2.3-1
zlib                1.1.4-1

Use -h to see help about each section

--
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/