delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/07/28/09:46:07

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Wed, 28 Jul 2004 09:45:47 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: linda w <cygwin AT tlinx DOT org>
cc: cygwin AT cygwin DOT com
Subject: Re: making cygwin.dll less than str8-forward; should I be doing something differently?
In-Reply-To: <41075DB1.7050906@tlinx.org>
Message-ID: <Pine.GSO.4.58.0407280930110.2519@slinky.cs.nyu.edu>
References: <41075DB1 DOT 7050906 AT tlinx DOT org>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

Linda,

On Wed, 28 Jul 2004, linda w wrote:

> Decided to try my luck in building the cygwin.dll runtime, etc.
>
> Found source, config'ed and make'd.
>
> Went quite a ways until stoplight #1:
> c++ -L[lots of stuff snipped] -c -o ./dump_setup.o -g -O2 -fno-exceptions -fno-rtti -DHAVE_DECL_GETOPT=0 -mno-cygwin -I/usr/src/cygwin-1.5.9-1/winsup/mingw/include  ../../.././winsup/utils/dump_setup.cc
                                                                                                           ^^^^^^^^^^^
> <command line>:269594768:45288: /include/zconf.h: No such file or directory
> <command line>:269594768:45288: /include/zlib.h: No such file or directory
> make[2]: *** [dump_setup.o] Error 1
> make[2]: Leaving directory `/usr/src/cygwin-1.5.9-1/i686-pc-cygwin/winsup/utils'
> make[1]: *** [utils] Error 1
> make[1]: Leaving directory `/usr/src/cygwin-1.5.9-1/i686-pc-cygwin/winsup'
> make: *** [all-target-winsup] Error 2

First off, you're using an old source.  The current source is 1.5.10.
Plus, there are other source package dependencies, e.g. "zlib", "mingw",
"w32api", etc.  Speaking of mingw, did you install the "gcc-mingw" and
"g++-mingw" packages?  How about "mingw-runtime"?

In any case, you're really better off compiling from CVS.  The following
worked for me:

export CVSROOT :pserver:anoncvs AT sources DOT redhat DOT com:/cvs/src
cvs login
cvs checkout winsup
mkdir build && cd build && ../src/configure -v --enable-debugging && make -k all

> So I unpacked source for zlib and found what appeared to be the include
> files it wanted.  Created /include directory and put them in /include.
> Reran make. Much spun by with 'nothing to do' got to the zlib part and
> zipped through that too...yeah!

Why "/include"?

> Then this crash which is a bit more messy:
> c++ -L[lots of stuff snipped] -c -o parse_pe.o -I/usr/src/cygwin-1.5.9-1/bfd -I/usr/src/cygwin-1.5.9-1/include ../../.././winsup/utils/parse_pe.cc
> ../../../winsup/utils/parse_pe.cc: In function `void select_data_section(bfd*, asection*, void*)': ../../../winsup/utils/parse_pe.cc:67: error: 'struct bfd_section' has no member named '_raw_size'
> ../../../winsup/utils/parse_pe.cc:69: error: 'struct bfd_section' has no member named '_raw_size'
> ../../../winsup/utils/parse_pe.cc:70: error: 'struct bfd_section' has no member named '_raw_size'
> make[2]: *** [parse_pe.o] Error 1
> make[2]: Leaving directory `/usr/src/cygwin-1.5.9-1/i686-pc-cygwin/winsup/utils'
> make[1]: *** [utils] Error 1
> make[1]: Leaving directory `/usr/src/cygwin-1.5.9-1/i686-pc-cygwin/winsup'
> make: *** [all-target-winsup] Error 2
>
> Not a simple case of a missing file...I must have some other
> in-compatible include file or package installed though I have latest
> released packages installed.
>
> Am I missing a package or library?

You need the latest bfd if you wish to compile this part.  Otherwise, use
"make -k" and ignore this error.

> Any idea why it is looking for the include files in /include instead of
> /usr/include?  Copies of the file do appear to exist in /usr/include.

See above for CVS compilation instructions.
HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019