This is the mail archive of the insight@sources.redhat.com mailing list for the Insight 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: Cygwin Insight 6.1 tclWin32Dll.c Compile Error


> -----Original Message-----
> From: insight-owner On Behalf Of Tim Van De Walle
> Sent: Thursday, October 21, 2004 2:46 PM

> I've been trying to compile Insight 6.1 on a cygwin host and I am
> getting the following error.

> /usr/include/w32api/winsock2.h:95:2: warning: #warning "fd_set and
> associated macros have been defined in sys/types.      This may cause
> runtime problems with W32 sockets"
> ../../../insight-6.1/tcl/win/tclWin32Dll.c:54: error: initializer
> element is not constant
> ../../../insight-6.1/tcl/win/tclWin32Dll.c:54: error: (near
> initialization for `asciiProcs.buildCommDCBProc') .

> I've searched around the source for a solution and can't see anything
> obvious.  I haven't seen any other reports of this either so I'm
> guessing I have a configuration problem.

  <koff>  Haven't seen any other reports of this?  You're the second person
to post about it this week!  Take a look at this line from
http://sources.redhat.com/ml/insight/2004-q4/ :-

2004-10-20 A problem about building Insight under Cygwin 涂? 

and from http://sources.redhat.com/ml/insight/2004-q3/

2004-09-16 A problem about building Insight under Cygwin Kevin Yang 

and from http://sources.redhat.com/ml/insight/2004-q2/

2004-06-02 problem building 6.1 for powerpc on cygwin Marc Schafer 
2004-05-13 Insight 6.1 Cygwin GUI Peter Graf 
2004-04-23 Cygwin problems yyyyy50 

  You need to work on your websearching skills!

http://www.google.com/search?hl=en&q=problem+insight+cygwin+site%3Asources.r
edhat.com

  Hell, some of those are a bit old.  Let's tighten it up a bit by only
searching this year's archives:

http://www.google.com/search?hl=en&lr=&q=problem+insight+cygwin+site%3Asourc
es.redhat.com+inurl%3A2004

> -----Original Message-----
> From: insight-owner On Behalf Of Steven L. Zook
> Sent: 21 October 2004 23:17
> To: Tim Van De Walle; insight
> Subject: RE: Cygwin Insight 6.1 tclWin32Dll.c Compile Error

> The problem occurs because some of the functions in various system
> libraries have been built with the __attribute__((dllimport)). The GCC
> compiler does not allow pointers to these functions. I fixed 
> my build by
> changing ./tcl/win/makefile.in and ./tk/win/makefile.in to 
> add the flag
> -mnop-fun-dllimport to the AC_FLAGS macro. This may not be the optimum
> spot in the makefiles but it worked.

  It is apparently fixed in later versions of the cygwin w32api package.
Check the following posts for details and a suggested fix that works around
it by killing the dllimport attribute:

http://www.cygwin.com/ml/cygwin/2004-10/msg00716.html

You'll also need to use this patch:

http://sources.redhat.com/ml/insight/2004-q2/msg00032.html

and take account of these facts:

http://sources.redhat.com/ml/insight/2004-q3/msg00028.html

    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


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