This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: PATCH: Work around dummy AF_INET6 definition on Tru64 UNIX V4.0F


Arnaud Charlet writes:

> > > > /vol/gccsrc/obj/gcc-4.4.0-20090218/4.0f-gcc/./gcc/xgcc -B/vol/gccsrc/obj/gcc-4.4.0-20090218/4.0f-gcc/./gcc/ -B/vol/gcc/alpha-dec-osf4.0f/bin/ -B/vol/gcc/alpha-dec-osf4.0f/lib/ -isystem /vol/gcc/alpha-dec-osf4.0f/include -isystem /vol/gcc/alpha-dec-osf4.0f/sys-include -c -g -O2  -pthread  -W -Wall -gnatpg   g-soccon.ads -o g-soccon.o
> > > > s-oscons.ads:47:01: (style) multiple blank lines
> > > > s-oscons.ads:52:01: (style) multiple blank lines
> > > > s-oscons.ads:57:01: (style) multiple blank lines
> > 
> > These warnings are suspicious and unexpected...
> 
> Well, they are most likely related to the error from s-oscons-tmplt.c

Indeed: due to the missing definition of struct sockaddr_in6

s-oscons-tmplt.c: In function 'main':
s-oscons-tmplt.c:1110: error: invalid application of 'sizeof' to incomplete type 'struct sockaddr_in6' 

the s-oscons-tmplt.s file is almost empty and s-oscons-ads looks like this:

package System.OS_Constants is

   pragma Pure;

   -------------------
   -- System limits --
   -------------------


   ---------------------
   -- File open modes --
   ---------------------


   ----------------------
   -- Fcntl operations --
   ----------------------


   -----------------
   -- Fcntl flags --
   -----------------


   ----------------------
   -- Ioctl operations --
   ----------------------


   ------------------
   -- Errno values --
   ------------------

   --  The following constants are defined from <errno.h>


   ----------------------
   -- Terminal control --
   ----------------------


   ---------------------------------
   -- Terminal control characters --
   ---------------------------------


   --------------
   -- Families --
   --------------


   ------------------
   -- Socket modes --
   ------------------


   -----------------
   -- Host errors --
   -----------------


   --------------------
   -- Shutdown modes --
   --------------------


   ---------------------
   -- Protocol levels --
   ---------------------


   -------------------
   -- Request flags --
   -------------------

   --  Flags set on all send(2) calls

   --------------------
   -- Socket options --
   --------------------


   ----------------------
   -- Type definitions --
   ----------------------

   --  Sizes (in bytes) of the components of struct timeval

   --  Sizes of protocol specific address types (for sockaddr.sa_len)

   --  Size of file descriptor sets

   --  Fields of struct hostent

   ----------------------------------------
   -- Properties of supported interfaces --
   ----------------------------------------

   --  Set False for contexts where socket i/o are process blocking

end System.OS_Constants;

It seems to me that Make-lang.in needs to handle the case that the
compilation step from .i to .s fails.

> > Looks reasonable to me.
> 
> Thanks.

Ok to install then, I assume?

	Rainer

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University


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