public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* Build failure on Cygwin
@ 2010-01-02 20:49 Jon Beniston
  2010-01-04 20:18 ` Keith Seitz
  0 siblings, 1 reply; 6+ messages in thread
From: Jon Beniston @ 2010-01-02 20:49 UTC (permalink / raw)
  To: insight

Hi,

I'm trying to build insight (6.8 or 7.0 snapshot) on Cygwin (1.7.1), but it
is failing with:

make[3]: Entering directory `/home/Jon/t/import/build/tcl/win'
gcc -c -g -O2 -Wall -Wconversion  -I"../../../src/tcl/win/../generic"
-I"../../../src/tcl/win" -mwin32  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DHAVE_NO_SEH=1 -DEXCEPTION_DISPOSITION=int -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1  -DBUILD_tcl ../../../src/tcl/win/../generic/tclAlloc.c -o
tclAlloc.o
In file included from
../../../src/tcl/win/../generic/../win/tclWinPort.h:72,
                 from ../../../src/tcl/win/../generic/tclPort.h:22,
                 from ../../../src/tcl/win/../generic/tclAlloc.c:29:
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winsock2.h:103:
2: warning: #warning "fd_set and associated macros have been defined in
sys/types.      This may cause runtime problems with W32 sockets"
In file included from
../../../src/tcl/win/../generic/../win/tclWinPort.h:72,
                 from ../../../src/tcl/win/../generic/tclPort.h:22,
                 from ../../../src/tcl/win/../generic/tclAlloc.c:29:
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winsock2.h:632:
error: conflicting types for 'select'
/usr/include/sys/select.h:31: error: previous declaration of 'select' was
here

I've just been running configure with no options (which used to work for
Cygwin 1.5.x). Is there a magic option to get it to work, or does something
need fixing? 

Thanks,
Jon



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Build failure on Cygwin
  2010-01-02 20:49 Build failure on Cygwin Jon Beniston
@ 2010-01-04 20:18 ` Keith Seitz
  2010-01-11 18:20   ` Jon Beniston
  2011-04-28 16:39   ` mizo_hazem_2
  0 siblings, 2 replies; 6+ messages in thread
From: Keith Seitz @ 2010-01-04 20:18 UTC (permalink / raw)
  To: Jon Beniston; +Cc: insight

On 01/02/2010 12:44 PM, Jon Beniston wrote:
> make[3]: Entering directory `/home/Jon/t/import/build/tcl/win'
> gcc -c -g -O2 -Wall -Wconversion  -I"../../../src/tcl/win/../generic"
> -I"../../../src/tcl/win" -mwin32  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
> -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
> -DHAVE_NO_SEH=1 -DEXCEPTION_DISPOSITION=int -DSTDC_HEADERS=1
> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
> -DHAVE_UNISTD_H=1  -DBUILD_tcl ../../../src/tcl/win/../generic/tclAlloc.c -o
> tclAlloc.o
> In file included from
> ../../../src/tcl/win/../generic/../win/tclWinPort.h:72,
>                   from ../../../src/tcl/win/../generic/tclPort.h:22,
>                   from ../../../src/tcl/win/../generic/tclAlloc.c:29:
> /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winsock2.h:103:
> 2: warning: #warning "fd_set and associated macros have been defined in
> sys/types.      This may cause runtime problems with W32 sockets"
> In file included from
> ../../../src/tcl/win/../generic/../win/tclWinPort.h:72,
>                   from ../../../src/tcl/win/../generic/tclPort.h:22,
>                   from ../../../src/tcl/win/../generic/tclAlloc.c:29:
> /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winsock2.h:632:
> error: conflicting types for 'select'
> /usr/include/sys/select.h:31: error: previous declaration of 'select' was
> here

I haven't seen this one yet, but I admit, I don't really use much other 
than linux nowadays... I'm going to update my cygwin box and kick off a 
build. It should be done in a few hours. [It's a 500MHz P3!]
>
> I've just been running configure with no options (which used to work for
> Cygwin 1.5.x). Is there a magic option to get it to work, or does something
> need fixing?

I'll get back to you on this...

Keith

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Build failure on Cygwin
  2010-01-04 20:18 ` Keith Seitz
@ 2010-01-11 18:20   ` Jon Beniston
  2011-04-28 16:39   ` mizo_hazem_2
  1 sibling, 0 replies; 6+ messages in thread
From: Jon Beniston @ 2010-01-11 18:20 UTC (permalink / raw)
  To: 'Keith Seitz'; +Cc: insight

> I'll get back to you on this...

Thanks. 

By the way, configuring with:

CC=gcc-3

Reduced the number of issues I had to hack past.

Cheers,
Jon



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Build failure on Cygwin
  2010-01-04 20:18 ` Keith Seitz
  2010-01-11 18:20   ` Jon Beniston
@ 2011-04-28 16:39   ` mizo_hazem_2
  2011-04-28 16:53     ` Christopher Faylor
  1 sibling, 1 reply; 6+ messages in thread
From: mizo_hazem_2 @ 2011-04-28 16:39 UTC (permalink / raw)
  To: insight


Hi, 

I have faced the same problem and I have solved it by adding the following
line to the Makefile
CFLAGS		=  -D__WIN32__  -D__INSIDE_CYGWIN__

Hope this can help

Hossam


Keith Seitz wrote:
> 
> On 01/02/2010 12:44 PM, Jon Beniston wrote:
>> make[3]: Entering directory `/home/Jon/t/import/build/tcl/win'
>> gcc -c -g -O2 -Wall -Wconversion  -I"../../../src/tcl/win/../generic"
>> -I"../../../src/tcl/win" -mwin32  -DPACKAGE_NAME=\"\"
>> -DPACKAGE_TARNAME=\"\"
>> -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
>> -DHAVE_NO_SEH=1 -DEXCEPTION_DISPOSITION=int -DSTDC_HEADERS=1
>> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
>> -DHAVE_STRING_H=1
>> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
>> -DHAVE_STDINT_H=1
>> -DHAVE_UNISTD_H=1  -DBUILD_tcl ../../../src/tcl/win/../generic/tclAlloc.c
>> -o
>> tclAlloc.o
>> In file included from
>> ../../../src/tcl/win/../generic/../win/tclWinPort.h:72,
>>                   from ../../../src/tcl/win/../generic/tclPort.h:22,
>>                   from ../../../src/tcl/win/../generic/tclAlloc.c:29:
>> /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winsock2.h:103:
>> 2: warning: #warning "fd_set and associated macros have been defined in
>> sys/types.      This may cause runtime problems with W32 sockets"
>> In file included from
>> ../../../src/tcl/win/../generic/../win/tclWinPort.h:72,
>>                   from ../../../src/tcl/win/../generic/tclPort.h:22,
>>                   from ../../../src/tcl/win/../generic/tclAlloc.c:29:
>> /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winsock2.h:632:
>> error: conflicting types for 'select'
>> /usr/include/sys/select.h:31: error: previous declaration of 'select' was
>> here
> 
> I haven't seen this one yet, but I admit, I don't really use much other 
> than linux nowadays... I'm going to update my cygwin box and kick off a 
> build. It should be done in a few hours. [It's a 500MHz P3!]
>>
>> I've just been running configure with no options (which used to work for
>> Cygwin 1.5.x). Is there a magic option to get it to work, or does
>> something
>> need fixing?
> 
> I'll get back to you on this...
> 
> Keith
> 
> 

-- 
View this message in context: http://old.nabble.com/Build-failure-on-Cygwin-tp26996349p31498339.html
Sent from the Sourceware - insight list mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Build failure on Cygwin
  2011-04-28 16:39   ` mizo_hazem_2
@ 2011-04-28 16:53     ` Christopher Faylor
  0 siblings, 0 replies; 6+ messages in thread
From: Christopher Faylor @ 2011-04-28 16:53 UTC (permalink / raw)
  To: mizo_hazem_2, insight

On Thu, Apr 28, 2011 at 09:38:50AM -0700, mizo_hazem_2 wrote:
>
>Hi, 
>
>I have faced the same problem and I have solved it by adding the following
>line to the Makefile
>CFLAGS		=  -D__WIN32__  -D__INSIDE_CYGWIN__
>
>Hope this can help

Please don't do this.  It is definitely not the correct fix.  You should
never ever add __INSIDE_CYGWIN__ to a build that isn't building the
Cygwin DLL itself.

cgf

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Build failure on Cygwin
@ 2010-01-15 16:53 Matthias Andree
  0 siblings, 0 replies; 6+ messages in thread
From: Matthias Andree @ 2010-01-15 16:53 UTC (permalink / raw)
  To: insight

Sorry for breaking the threading, I've only just subscribed because I am  
facing the same issue as Jon (reported on Jan 2).

This seems to be an imported issue as we get failures from including both  
winsock2.h or thereabouts (unconditionally) and sys/select.h.
I don't know why/how exactly sys/select.h gets pulled in, I haven't seen  
obvious offending files under tcl/ - so it might be a change and/or bug in  
Cygwin headers, too.

Is there a particular reason why Insight compiles its own Tcl, rather than  
grab the system default if there is one? Or is there a way to talk Insight  
into using a system Tcl?
Cygwin has a Tcl/Tk package after all, why not use that?

TIA

-- 
Matthias Andree

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-04-28 16:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-02 20:49 Build failure on Cygwin Jon Beniston
2010-01-04 20:18 ` Keith Seitz
2010-01-11 18:20   ` Jon Beniston
2011-04-28 16:39   ` mizo_hazem_2
2011-04-28 16:53     ` Christopher Faylor
2010-01-15 16:53 Matthias Andree

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).