This is the mail archive of the cygwin-xfree@sources.redhat.com 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]

Re: conflicting types for `_cygwin_dll_entry' with fresh cygwin-1.1.4 and latest Xfree


>>>>> "Suhaib" == Suhaib Siddiqi <ssiddiqi@inspirepharm.com> writes:

    Suhaib> Apply the libcygwin.a patch Chris Faylor posted for 1.1.4 or use the
    Suhaib> latest Cygwin DLL snapshot, which 1.1.5s.

If it's the following patch:

  ar cru /usr/lib/libcygwin.a dll_entry.o
  ranlib /usr/lib/libcygwin.a

I have applied it. But I still get the same errors.

    Suhaib> Beside this problem and a few more were fixed in Cygwin/Xfree 
    Suhaib> CVS which were merged into XFree86 main brach.  Please checkout
    Suhaib> http://www.xfree86.org/cvs for the latest source code.  

Sorry I'm behind a firewall.

    Suhaib> You would still need the libcygwin.a fix for 1.1.4 or Cygwin snapshot
    Suhaib> (1.1.5a)

    Suhaib> Suhaib

Ciao
  Volker

    >> -----Original Message-----
    >> From: cygwin-xfree-owner@sources.redhat.com
    >> [mailto:cygwin-xfree-owner@sources.redhat.com]On Behalf Of Dr. Volker
    >> Zell
    >> Sent: Tuesday, August 29, 2000 4:34 AM
    >> To: cygwin-xfree@sources.redhat.com
    >> Subject: conflicting types for `_cygwin_dll_entry' with fresh
    >> cygwin-1.1.4 and latest Xfree
    >> 
    >> 
    >> 
    >> Hi
    >> 
    >> I got the following error when compiling latest XFree source with 
    >> latest cygwin-1.1.4 distribution:
    >> 
    >> Any hints ??
    >> 
    >> 
    >> gcc -c -O2 -pedantic -fno-strength-reduce -fpcc-struct-return 
    >> -fvtable-thunks -m486  -Wall    -I../.. -I../../exports/include  
    >> -D__i386__ -DWIN32_LEAN_AND_MEAN -DX_LOCALE -D_MT -D_X86_ 
    >> -D__STDC__ -DNO_TCP_H -D__CYGWIN__ -D_XOPEN_SOURCE -D_REENTRANT 
    >> -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -D_SVID_SOURCE 
    >> -D_GNU_SOURCE -DX_SOURCE   -DFUNCPROTO=15 -DNARROWPROTO    
    >> -D_XLIBINT_     -D_DLL omXChar.c
    >> echo "#include <cygwin/cygwin_dll.h>"		>junk.c
    >> echo "DECLARE_CYGWIN_DLL(dll_main);"		>>junk.c
    >> echo "int WINAPI dll_main(HANDLE a, DWORD reason, void *q)" >>junk.c
    >> echo "{ return 1; }"				>>junk.c
    >> rm -f junk.o
    >> gcc -c -O2 -pedantic -fno-strength-reduce -fpcc-struct-return 
    >> -fvtable-thunks -m486  -Wall    -I../.. -I../../exports/include  
    >> -D__i386__ -DWIN32_LEAN_AND_MEAN -DX_LOCALE -D_MT -D_X86_ 
    >> -D__STDC__ -DNO_TCP_H -D__CYGWIN__ -D_XOPEN_SOURCE -D_REENTRANT 
    >> -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -D_SVID_SOURCE 
    >> -D_GNU_SOURCE -DX_SOURCE   -DFUNCPROTO=15 -DNARROWPROTO    
    >> -D_XLIBINT_     -D_DLL junk.c
    >> In file included from 
    >> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/windef.h:143,
    >> from 
    >> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/windows.h:96,
    >> from 
    >> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/cygwin/
    >> cygwin_dll.h:14,
    >> from junk.c:1:
    >> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/winnt.h
    >> :1640: warning: ANSI C doesn't support unnamed structs/unions
    >> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/winnt.h
    >> :1648: warning: ANSI C doesn't support unnamed structs/unions
    >> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/winnt.h
    >> :2163: warning: ANSI C doesn't support unnamed structs/unions
    >> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/winnt.h
    >> :2222: warning: ANSI C doesn't support unnamed structs/unions
    >> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/winnt.h
    >> :2260: warning: ANSI C doesn't support unnamed structs/unions
    >> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/winnt.h
    >> :2263: warning: ANSI C doesn't support unnamed structs/unions
    >> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/winnt.h
    >> :2269: warning: ANSI C doesn't support unnamed structs/unions
    >> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/winnt.h
    >> :2270: warning: ANSI C doesn't support unnamed structs/unions
    >> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/winnt.h
    >> :2271: warning: struct has no named members
    >> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/winnt.h
    >> :2387: warning: ANSI C doesn't support unnamed structs/unions
    >> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/winnt.h
    >> :2413: warning: ANSI C doesn't support unnamed structs/unions
    >> In file included from 
    >> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/windows.h:100,
    >> from 
    >> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/cygwin/
    >> cygwin_dll.h:14,
    >> from junk.c:1:
    >> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/winbase
    >> .h:814: warning: ANSI C doesn't support unnamed structs/unions
    >> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/winbase
    >> .h:815: warning: ANSI C doesn't support unnamed structs/unions
    >> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/winbase
    >> .h:910: warning: ANSI C doesn't support unnamed structs/unions
    >> junk.c:2: conflicting types for `_cygwin_dll_entry'
    >> junk.c:2: previous declaration of `_cygwin_dll_entry'
    >> junk.c:2: warning: ANSI C does not allow extra `;' outside of a function
    >> make[4]: *** [junk.o] Error 1
    >> rm -f X11.def
    >> cpp -traditional -D__i386__ -DWIN32_LEAN_AND_MEAN -DX_LOCALE 
    >> -D_MT -D_X86_ -D__STDC__ -DNO_TCP_H -D__CYGWIN__ -D_XOPEN_SOURCE 
    >> -D_REENTRANT -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE 
    >> -D_SVID_SOURCE -D_GNU_SOURCE -DX_SOURCE   -DLIBRARY_VERSION=6.1 
    >> <X11-def.cpp | sed -e '/^#  *[0-9][0-9]*  *.*$/d' -e 
    >> '/^XCOMM$/s//#/' -e '/^XCOMM[^a-zA-Z0-9_]/s/^XCOMM/#/' >X11.def
    >> make[4]: Target `all' not remade because of errors.
    >> make[4]: Leaving directory `/gnu/src/xc/lib/X11'
    >> 
    >> 
    >> Ciao
    >> Volker



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