Re: list_head naming conflict gcc 4.2/perl/solaris - Mailing list pgsql-hackers

From Zdenek Kotala
Subject Re: list_head naming conflict gcc 4.2/perl/solaris
Date
Msg-id 1243889127.1319.62.camel@localhost
Whole thread Raw
In response to Re: list_head naming conflict gcc 4.2/perl/solaris  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: list_head naming conflict gcc 4.2/perl/solaris
List pgsql-hackers
Tom Lane píše v po 01. 06. 2009 v 16:09 -0400:
> Zdenek Kotala <Zdenek.Kotala@Sun.COM> writes:


> What is <sys/list.h>, and why is it being imported by the Perl headers?

It seems that problem is with Perl. It includes sys/mode.h. The new
change for gcc 4.2 is that mode.h includes vnode.h and it finally
sys/list.h which is generic list for kernel structures. 

> Can we do something like "#define list_head solaris_list_head" around 
> the problematic #include?  (Which one is that, anyway?)

I will try it. There is following hack:

CFLAGS="-D_SYS_VNODE_H" 

which disable vnode.h and breaks include chain.

I need to install fresh nightly build of Solaris to test it on live
system.
Thanks Zdenek



pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: User-facing aspects of serializable transactions
Next
From: Jeff Davis
Date:
Subject: Re: Suggested TODO: allow ALTERing of typemods without heap/index rebuild