Cannot build cygwin DLL any more: stddef.h/stdarg.h not found, and MAGIC bad

Gerd Spalink Gerd.Spalink@t-online.de
Sun Jul 18 16:27:00 GMT 2004


Thanks. Things are working fine now. It turned out that I had been using a
self-built broken cygwin dll. Is there a better way to decouple cygwin
development from cygwin? I tried to use the mingw shell to compile the
cygwin DLL, but it only built newlib and not the winsup directory.

A also had to checkout src/bfd manually, then everything built fine.

Gerd Spalink

On Sunday, July 18, 2004 5:07 PM, Igor Pechtchanski [SMTP:pechtcha@cs.nyu.edu] wrote:
> On Sun, 18 Jul 2004, Gerd Spalink wrote:
> 
> > Hello,
> >
> > I am just desperately trying to get my DLL build environment up and running
> > again. I am building cygwin with cygwin on a W2K machine.
> > Needless to say, I started from a clean CVS checkout / configure run.
> > When files from the winsup directory are compiled, the compiler
> > stops because stddef.h and stdarg.h are not being found. One of the compiler
> > flags is
> >
> > -nostdinc++ -nostdinc
> >
> > Is this correct, or does it ring a bell in anyone?
> >
> > For now, I fixed it by copying the two files to
> > .../src/newlib/libc/include
> >
> > But then, I get the following two warnings:
> >
> > *** WARNING WARNING WARNING WARNING WARNING ***
> > *** ../../../../src/winsup/cygwin/shared_info.h: magic number for USER_MAGIC changed old 0x8dc7b1d5U != new 0xefaed2a6U
> > *** WARNING WARNING WARNING WARNING WARNING ***
> > *** WARNING WARNING WARNING WARNING WARNING ***
> > *** ../../../../src/winsup/cygwin/shared_info.h: magic number for SHARED_MAGIC changed old 0x818f75beU != new 0xefaed2a6U
> > *** WARNING WARNING WARNING WARNING WARNING ***
> >
> > Is this related to the first problem?
> >
> > Gerd Spalink
> 
> Gerd,
> 
> FYI,
> 
> cvs -d :pserver:anoncvs@sources.redhat.com:/cvs/src login
> cvs -d :pserver:anoncvs@sources.redhat.com:/cvs/src checkout winsup
> mkdir build && cd build && ../src/configure -v --enable-debugging && make -k all
> 
> just worked for me (from a new empty directory).  This will not build
> dumper.exe, but should build everything else (including the Cygwin dll),
> with debugging.
> 
> 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!
> 
> "I have since come to realize that being between your mentor and his route
> to the bathroom is a major career booster."  -- Patrick Naughton



More information about the Cygwin-developers mailing list