zsh-workers
 help / color / mirror / code / Atom feed
* zftp.c doesn't compile on IRIX6.5
@ 2000-05-28 15:53 jarausch
  2000-05-28 15:57 ` Geoff Wing
  2000-05-28 20:50 ` Peter Stephenson
  0 siblings, 2 replies; 7+ messages in thread
From: jarausch @ 2000-05-28 15:53 UTC (permalink / raw)
  To: zsh-workers

The cvs version from today doesn't compile on IRIX 6.5

It seems there is a bug on IRIX.
It uses a type 'n_long' within <netinet/ip.h>
but fails to include <netinet/in_systm.h>
where this is defined.

I had to apply the following (ugly) workaround

*** zftp.c.orig Sun May 28 17:34:38 2000
--- zftp.c      Sun May 28 17:34:39 2000
***************
*** 64,69 ****
--- 64,72 ----
  #ifdef HAVE_NETINET_IN_SYSTM_H
  # include <netinet/in_systm.h>
  #endif
+ #ifdef __sgi
+   #include <netinet/in_systm.h>
+ #endif
  #include <netinet/in.h>
  #include <netinet/ip.h>
  #include <arpa/inet.h>

-- 
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
Institute of Technology, RWTH Aachen
D 52056 Aachen, Germany


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

* Re: zftp.c doesn't compile on IRIX6.5
  2000-05-28 15:53 zftp.c doesn't compile on IRIX6.5 jarausch
@ 2000-05-28 15:57 ` Geoff Wing
  2000-05-28 17:25   ` jarausch
  2000-05-28 20:50 ` Peter Stephenson
  1 sibling, 1 reply; 7+ messages in thread
From: Geoff Wing @ 2000-05-28 15:57 UTC (permalink / raw)
  To: zsh-workers

jarausch@igpm.rwth-aachen.de <jarausch@igpm.rwth-aachen.de> typed:
:The cvs version from today doesn't compile on IRIX 6.5
:It seems there is a bug on IRIX.
:It uses a type 'n_long' within <netinet/ip.h>
:but fails to include <netinet/in_systm.h>
:where this is defined.

Did you rerun  Util/preconfig  and configure?

Regards,
-- 
Geoff Wing : <gcw@pobox.com>     Work URL: http://www.primenet.com.au/
Rxvt Stuff : <gcw@rxvt.org>      Ego URL : http://pobox.com/~gcw/
Zsh Stuff  : <gcw@zsh.org>       Phone   : (Australia) 0413 431 874


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

* Re: zftp.c doesn't compile on IRIX6.5
  2000-05-28 15:57 ` Geoff Wing
@ 2000-05-28 17:25   ` jarausch
  0 siblings, 0 replies; 7+ messages in thread
From: jarausch @ 2000-05-28 17:25 UTC (permalink / raw)
  To: mason; +Cc: zsh-workers

On 28 May, Geoff Wing wrote:
> jarausch@igpm.rwth-aachen.de <jarausch@igpm.rwth-aachen.de> typed:
> :The cvs version from today doesn't compile on IRIX 6.5
> :It seems there is a bug on IRIX.
> :It uses a type 'n_long' within <netinet/ip.h>
> :but fails to include <netinet/in_systm.h>
> :where this is defined.
> 
> Did you rerun  Util/preconfig  and configure?
> 

No, I didn't, but now I have done so, and the problem remains.

Helmut.

-- 
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
Institute of Technology, RWTH Aachen
D 52056 Aachen, Germany


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

* Re: zftp.c doesn't compile on IRIX6.5
  2000-05-28 15:53 zftp.c doesn't compile on IRIX6.5 jarausch
  2000-05-28 15:57 ` Geoff Wing
@ 2000-05-28 20:50 ` Peter Stephenson
  2000-05-28 21:05   ` Bart Schaefer
  2000-05-29  7:42   ` jarausch
  1 sibling, 2 replies; 7+ messages in thread
From: Peter Stephenson @ 2000-05-28 20:50 UTC (permalink / raw)
  To: zsh-workers

jarausch@igpm.rwth-aachen.de wrote:
> The cvs version from today doesn't compile on IRIX 6.5
> 
> It seems there is a bug on IRIX.
> It uses a type 'n_long' within <netinet/ip.h>
> but fails to include <netinet/in_systm.h>
> where this is defined.
> 
> I had to apply the following (ugly) workaround
> 
> *** zftp.c.orig Sun May 28 17:34:38 2000
> --- zftp.c      Sun May 28 17:34:39 2000
> ***************
> *** 64,69 ****
> --- 64,72 ----
>   #ifdef HAVE_NETINET_IN_SYSTM_H
>   # include <netinet/in_systm.h>
>   #endif
> + #ifdef __sgi
> +   #include <netinet/in_systm.h>
> + #endif
>   #include <netinet/in.h>
>   #include <netinet/ip.h>
>   #include <arpa/inet.h>

There's something extremely screwy here.  If <netinet/in_systm.h> exists,
why does configure not detect it?  I looked, and whether for the same
reason or not the test fails on linux, where gcc is outputting a warning
message:

In file included from /usr/include/sys/cdefs.h:24,
                 from /usr/include/netinet/in_systm.h:23,
                 from configure:2634:
/usr/include/features.h:254: warning: `__USE_LARGEFILE' redefined
/usr/include/features.h:198: warning: this is the location of the previous defin
ition

which is enough to make the test fail.

This is hard to fix, since it's not our problem.  For now we can just not
include the file where we know it's missing, and cygwin is the only case I
know, since no-one else every complained.

It would be splendid if this could be tested as soon as possible.

Index: Src/Modules/zftp.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/zftp.c,v
retrieving revision 1.5
diff -u -r1.5 zftp.c
--- Src/Modules/zftp.c	2000/05/26 09:47:28	1.5
+++ Src/Modules/zftp.c	2000/05/28 20:48:01
@@ -61,7 +61,16 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netdb.h>
-#ifdef HAVE_NETINET_IN_SYSTM_H
+/*
+ * For some reason, configure doesn't always detect netinet/in_systm.h.
+ * On some systems, including linux, this seems to be because gcc is
+ * throwing up a warning message about the redefinition of
+ * __USE_LARGEFILE.  This means the problem is somewhere in the
+ * header files where we can't get at it.  For now, revert to
+ * not including this file only on systems where we know it's missing.
+ * Currently this is just cygwin.
+ */
+#ifndef __CYGWIN__
 # include <netinet/in_systm.h>
 #endif
 #include <netinet/in.h>

-- 
Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
Work: pws@CambridgeSiliconRadio.com
Web: http://www.pwstephenson.fsnet.co.uk


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

* Re: zftp.c doesn't compile on IRIX6.5
  2000-05-28 20:50 ` Peter Stephenson
@ 2000-05-28 21:05   ` Bart Schaefer
  2000-05-29  7:35     ` jarausch
  2000-05-29  7:42   ` jarausch
  1 sibling, 1 reply; 7+ messages in thread
From: Bart Schaefer @ 2000-05-28 21:05 UTC (permalink / raw)
  To: zsh-workers; +Cc: jarausch

On May 28,  9:50pm, Peter Stephenson wrote:
} Subject: Re: zftp.c doesn't compile on IRIX6.5
}
} There's something extremely screwy here.  If <netinet/in_systm.h> exists,
} why does configure not detect it?  I looked, and whether for the same
} reason or not the test fails on linux, where gcc is outputting a warning
} message:
} 
} In file included from /usr/include/sys/cdefs.h:24,
}                  from /usr/include/netinet/in_systm.h:23,
}                  from configure:2634:
} /usr/include/features.h:254: warning: `__USE_LARGEFILE' redefined
} /usr/include/features.h:198: warning: this is the location of the previous definition
} 
} which is enough to make the test fail.

This is probably the same autoconf/glibc2 thing that's described in the
Etc/MACHINES file for the RLIM_INFINITY macro.

Helmut, were you compiling with GCC also?  If so, did you try with the native
Irix compiler?

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


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

* Re: zftp.c doesn't compile on IRIX6.5
  2000-05-28 21:05   ` Bart Schaefer
@ 2000-05-29  7:35     ` jarausch
  0 siblings, 0 replies; 7+ messages in thread
From: jarausch @ 2000-05-29  7:35 UTC (permalink / raw)
  To: schaefer; +Cc: zsh-workers

On 28 May, Bart Schaefer wrote:
> On May 28,  9:50pm, Peter Stephenson wrote:
> } Subject: Re: zftp.c doesn't compile on IRIX6.5
> }
> } There's something extremely screwy here.  If <netinet/in_systm.h> exists,
> } why does configure not detect it?  I looked, and whether for the same
> } reason or not the test fails on linux, where gcc is outputting a warning
> } message:
> } 
> } In file included from /usr/include/sys/cdefs.h:24,
> }                  from /usr/include/netinet/in_systm.h:23,
> }                  from configure:2634:
> } /usr/include/features.h:254: warning: `__USE_LARGEFILE' redefined
> } /usr/include/features.h:198: warning: this is the location of the previous definition
> } 
> } which is enough to make the test fail.
> 
> This is probably the same autoconf/glibc2 thing that's described in the
> Etc/MACHINES file for the RLIM_INFINITY macro.
> 
> Helmut, were you compiling with GCC also?  If so, did you try with the native
> Irix compiler?
> 

Yes, I have used GCC. I'll try SGI's CC but not all people have it since
one has to pay for it.
I'll report soon.

Helmut.

-- 
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
Institute of Technology, RWTH Aachen
D 52056 Aachen, Germany


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

* Re: zftp.c doesn't compile on IRIX6.5
  2000-05-28 20:50 ` Peter Stephenson
  2000-05-28 21:05   ` Bart Schaefer
@ 2000-05-29  7:42   ` jarausch
  1 sibling, 0 replies; 7+ messages in thread
From: jarausch @ 2000-05-29  7:42 UTC (permalink / raw)
  To: pws; +Cc: zsh-workers, schaefer

On 28 May, Peter Stephenson wrote:
> jarausch@igpm.rwth-aachen.de wrote:
>> The cvs version from today doesn't compile on IRIX 6.5
>> 
>> It seems there is a bug on IRIX.
>> It uses a type 'n_long' within <netinet/ip.h>
>> but fails to include <netinet/in_systm.h>
>> where this is defined.
>> 
>> I had to apply the following (ugly) workaround
>> 
>> *** zftp.c.orig Sun May 28 17:34:38 2000
>> --- zftp.c      Sun May 28 17:34:39 2000
>> ***************
>> *** 64,69 ****
>> --- 64,72 ----
>>   #ifdef HAVE_NETINET_IN_SYSTM_H
>>   # include <netinet/in_systm.h>
>>   #endif
>> + #ifdef __sgi
>> +   #include <netinet/in_systm.h>
>> + #endif
>>   #include <netinet/in.h>
>>   #include <netinet/ip.h>
>>   #include <arpa/inet.h>
> 
> There's something extremely screwy here.  If <netinet/in_systm.h> exists,
> why does configure not detect it?  I looked, and whether for the same
> reason or not the test fails on linux, where gcc is outputting a warning
> message:
> 
> In file included from /usr/include/sys/cdefs.h:24,
>                  from /usr/include/netinet/in_systm.h:23,
>                  from configure:2634:
> /usr/include/features.h:254: warning: `__USE_LARGEFILE' redefined
> /usr/include/features.h:198: warning: this is the location of the previous defin
> ition
> 
> which is enough to make the test fail.
> 
> This is hard to fix, since it's not our problem.  For now we can just not
> include the file where we know it's missing, and cygwin is the only case I
> know, since no-one else every complained.
> 
> It would be splendid if this could be tested as soon as possible.
> 
> Index: Src/Modules/zftp.c
> ===================================================================
> RCS file: /cvsroot/zsh/zsh/Src/Modules/zftp.c,v
> retrieving revision 1.5
> diff -u -r1.5 zftp.c
> --- Src/Modules/zftp.c	2000/05/26 09:47:28	1.5
> +++ Src/Modules/zftp.c	2000/05/28 20:48:01
> @@ -61,7 +61,16 @@
>  #include <sys/types.h>
>  #include <sys/socket.h>
>  #include <netdb.h>
> -#ifdef HAVE_NETINET_IN_SYSTM_H
> +/*
> + * For some reason, configure doesn't always detect netinet/in_systm.h.
> + * On some systems, including linux, this seems to be because gcc is
> + * throwing up a warning message about the redefinition of
> + * __USE_LARGEFILE.  This means the problem is somewhere in the
> + * header files where we can't get at it.  For now, revert to
> + * not including this file only on systems where we know it's missing.
> + * Currently this is just cygwin.
> + */
> +#ifndef __CYGWIN__
>  # include <netinet/in_systm.h>
>  #endif
>  #include <netinet/in.h>
> 

This works fine on IRIX with GCC.

-- 
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
Institute of Technology, RWTH Aachen
D 52056 Aachen, Germany


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

end of thread, other threads:[~2000-05-29  7:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-28 15:53 zftp.c doesn't compile on IRIX6.5 jarausch
2000-05-28 15:57 ` Geoff Wing
2000-05-28 17:25   ` jarausch
2000-05-28 20:50 ` Peter Stephenson
2000-05-28 21:05   ` Bart Schaefer
2000-05-29  7:35     ` jarausch
2000-05-29  7:42   ` jarausch

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).