This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: making cygwin.dll less than str8-forward; should I be doing something differently?


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@sources.redhat.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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]