[Nautilus-list] Re: Build problems with eel (eel-background.c) on RH Linux Alpha



Hello,

Okay, I applied your solution and the problem was resolved for me. Thanks
so much for your help.

Here's the short diff:

--- eel/configure.in.backup         Thu Apr 25 14:18:23 2002
+++ eel/configure.in           Thu Apr 25 14:18:33 2002
@@ -167,7 +167,7 @@
           -Wall \
           -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
           -Wnested-externs -Wpointer-arith \
-          -Wcast-align -Wsign-compare \
+          -Wsign-compare \
           -Werror \
           $CFLAGS"

Without this patch, eel will not build on Linux Alpha. Is this the right
group to send it to?

Joe



                                                                                                                  
                    Darin Adler                                                                                   
                    <darin bentsp        To:     Joe Pranevich corp terralycos com                                
                    oon.com>             cc:     andersca gnu org, michael ximian com, Alex Larsson               
                                         <alexl redhat com>, nautilus-list lists eazel com                        
                    04/25/02             Subject:     Re: Build problems with eel (eel-background.c) on RH Linux  
                    11:31 AM             Alpha                                                                    
                                                                                                                  
                                                                                                                  





On Thursday, April 25, 2002, at 06:44 AM,
Joe Pranevich corp terralycos com wrote:

> Using the latest vicious installed and pulling from CVS, I get this
> error
> while building eel. On first glance, it looks like a int / pointer size
> problem with a 64-bit system, but I haven't look too closely. Looking at
> the erroring line, it appears that we're casting guchar * to
> guint16 * --
> but that shouldn't have a problem, I don't think...

That is a problem on some platforms. If you don't know if the char* is
2-byte aligned, then casting it to guint16* can be a problem.

> /usr/include/bits/socket.h: In function `__cmsg_nxthdr':
> /usr/include/bits/socket.h:271: warning: cast increases required
> alignment
> of target type

Unfortunately, there's not necessarily we can do about this one besides
turning the warning level down. The warning in question is -Wcast-align,
and one option is to turn it off for eel altogether.

> eel-background.c: In function `eel_background_receive_dropped_color':
> eel-background.c:1386: warning: cast increases required alignment of
> target

This one can probably be fixed by casting to void* first or something
like that, but turning off -Wcast-align should deal with this too.

     -- Darin









[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]