Am Dienstag, 17. Oktober 2006 00:58 schrieb Dan Nicholson:
> On 10/16/06, Dan Nicholson <[EMAIL PROTECTED]> wrote:
> > > I think I might see the problem. I'm not sure this is an issue with
> > > linux-libc-headers (probably not since no one's complained before).
> > > __s64 is defined in asm/types.h and linux/types.h if __STRICT_ANSI__
> > > is not defined. Kopete is being compiled with the -ansi switch to gcc,
> > > which sets this. Try compiling without -ansi. I'm not sure how to do
> > > this on Qt/KDE packages. Maybe there's a configure switch that sets
> > > this. I'm not really familiar with those guys. Try ./configure --help
> > >
> > > | grep -i ansi
> >
> > I'm pretty sure this is the problem. linux-headers-2.6.19 might have
> > this fixed, but I don't see it in git yet. See this mailing post
> > (specifically identifies kopete):
> >
> > http://www.ussg.iu.edu/hypermail/linux/kernel/0609.3/1418.html
>
> Here's a quick workaround from gcc(1) if you can't figure out how to
> turn off -ansi. Add "-std=gnu++98" to CFLAGS or CXXFLAGS. This will
> (should?) restore the default standard for compiling C++ with gcc if
> it comes later in the command line.
>
> --
> Dan

They are funny at KDE, they have an option --enable-strict (./configure --help 
below), but even when I make disable-strict, the -ansi option remains.

Reading the patch you mentioned in the linked posting, I can simply delete 
"&& !defined(__STRICT_ANSI__)" from /usr/include/asm/types.h and live happily 
ever after!?

Anyway, adding -std=gnu++98 to $CXXFLAGS did the trick. Should somebody write 
a mail to lfs-devel, or -support, or write an entry on some wiki page?

Thanks a lot,

Norman


[EMAIL PROTECTED]:/usr/src/blfs/kdenetwork-3.5.5 # ./configure --help
`configure' configures this package to adapt to many kinds of systems.
Usage: ./configure [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.

Optional Features:
  --enable-strict         compiles with strict compiler options (may not
                          work!)

  
-- 
http://www.normiboy.ch
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to