On NCR 4.3.03 conflict at compile time using gcc 2.95.3

Brother Tuck brothertuck72@hotmail.com
Thu Apr 5 08:14:00 GMT 2001


I agree with you about this point.
Regards,
Emmanuel Soden

>Brother Tuck wrote:
> > Thanks Tanes for your patch and others comunity members for your help.
> > I'm able to compile and link my project using your patch.
> > It would be interresting if this patch can be include in the next gcc
> > packaging like linux and Sco patch.
>
>Certainly not this patch, since it will break other targets.  You can't
>just remove definitions and declarations becuase they happen to not
>match YOUR target.
>
>The correct way to fix this (which could get accepted into the tree)
>is to add a test in fixincludes like I originally suggested.
>
>RJL
>
>
> >
> > Regards,
> > Emmanuel Soden
> >
> > >
> > >Sorry. I forgot to tell you to apply patch for this. Apparently there
> > >are declarations (and provided functions) of htons, htonl, ... already
> > >in STREAMWare TCP. That's why you got an error. Here is patch I apply 
>on
> > >gcc 2.95.2 and gcc 2.95.3 on file
> > 
> >/usr/local/lib/gcc-lib/i586-ncr-sysv4.3.03/2.95.3/include/sys/byteorder.h.
> > >
> > >
> > >Regards,
> > >Tanes Sriviroolchai
> > >NCR (Thailand) Ltd.
> > >
> > >*** byteorder.h Thu Mar 29 18:16:58 2001
> > >--- ../../../2.95.2/include/sys/byteorder.h     Mon Nov  8 10:14:24 
>1999
> > >***************
> > >*** 26,35 ****
> > >--- 26,37 ----
> > >   #endif
> > >
> > >   #ifdef __STDC__
> > >+ #if 0
> > >   static __inline__ unsigned long htonl (unsigned long);
> > >   static __inline__ unsigned short htons (unsigned int);
> > >   static __inline__ unsigned long ntohl (unsigned long);
> > >   static __inline__ unsigned short ntohs (unsigned int);
> > >+ #endif
> > >   #endif /* defined (__STDC__) */
> > >
> > >   #if defined (__i386__)
> > >***************
> > >*** 38,43 ****
> > >--- 40,46 ----
> > >   #define __BYTE_ORDER__ __LITTLE_ENDIAN__
> > >   #endif
> > >
> > >+ #if 0
> > >   /* Convert a host long to a network long.  */
> > >
> > >   /* We must use a new-style function definition, so that this will 
>also
> > >***************
> > >*** 64,69 ****
> > >--- 67,74 ----
> > >     return __result;
> > >   }
> > >
> > >+ #endif
> > >+
> > >   #elif ((defined (__i860__) && !defined (__i860_big_endian__)) \
> > >          || defined (__ns32k__) || defined (__vax__)            \
> > >          || defined (__spur__) || defined (__arm__))
> > >***************
> > >*** 125,130 ****
> > >--- 130,136 ----
> > >
> > >   #endif /* big-endian */
> > >
> > >+ #if 0
> > >   /* Convert a network long to a host long.  */
> > >
> > >   static __inline__ unsigned long
> > >***************
> > >*** 140,144 ****
> > >--- 146,152 ----
> > >   {
> > >     return htons (__arg);
> > >   }
> > >+
> > >+ #endif
> > >
> > >   #endif /* !defined (_SYS_BYTEORDER_H) */
> > >
> > >
> > >
> > >
> > >__________________________________________________
> > >Do You Yahoo!?
> > >Get email at your own domain with Yahoo! Mail.
> > > http://personal.mail.yahoo.com/
> >
> > 
>_________________________________________________________________________
> > Get Your Private, Free E-mail from MSN Hotmail at 
> http://www.hotmail.com .

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com .



More information about the Gcc mailing list