pan-users
[Top][All Lists]
Advanced

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

[Pan-users] Re: Anyone get pan compiling with gcc 4.3 yet?


From: Duncan
Subject: [Pan-users] Re: Anyone get pan compiling with gcc 4.3 yet?
Date: Sat, 22 Mar 2008 21:06:47 +0000 (UTC)
User-agent: Pan/0.132 (Waxed in Black)

Rhialto <address@hidden> posted
address@hidden, excerpted below, on  Sat, 22 Mar 2008
14:25:24 +0100:

> On Sat 22 Mar 2008 at 05:01:17 +0000, Duncan wrote:
>> Among other things, it needs #include <cstring> now, based on the
>> errors
> 
> <cstring> is the C++ name for the C header file <string.h>. It may
> possibly do something extra like wrap an extern "C" {} around it.
> Something like
> 
> <cstring>:
> extern "C" {
> #include <string.h>
> }
> 
> Maybe if you create files like that, it helps? Strange though that you
> would not be having those files, they have been included with g++ for a
> while, I think.

That's the thing, gcc/g++ 4.3, as is the established gcc pattern, gets a 
bit stricter toward the standards.  string.h (among others) as such has 
apparently been deprecated for awhile, spitting warnings if they were 
turned on, in favor of referencing it elsewise (basically, without 
the .h).  Additionally, default includes were streamlined somewhat, with 
the normal includes not now packing the extra baggage of some of the 
additional includes with them, so they must be specified separately if 
they are in fact needed.  Where they aren't needed, it'll reduce compile 
time (and perhaps final binary space used, the docs weren't quite as 
clear on that and I don't know enough about it to say for sure).  The 
tradeoff is that they must be specified individually where needed now, 
and because that's a change from before, the porting is a bit of a pain.

See the gcc 4.3 series porting doc (link below) for more information; you 
can probably make rather more of it than I did, but I /think/ I got and 
conveyed the gist of things in context.  I just don't have the practical 
knowledge necessary to do much with it, except by (slightly informed) 
trial and error.  (I run amarok-1.4.9999, the Gentoo notation for the 1.4 
branch live build, and devised and implemented a one-line patch to get it 
working with gcc-4.3 since the initial post, but pan appears to be rather 
more complicated than that!)

http://gcc.gnu.org/gcc-4.3/porting_to.html

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman





reply via email to

[Prev in Thread] Current Thread [Next in Thread]