Meanwhile I changed kernel (from 2.4.20 to 2.4.21, both vanilla)
I installed manually the kernel and the relative links in /usr/include
(I don't like the copy of include directories, like emerge do)
My flags are:
Code: Select all
USE="-cups dvd sse -ldap"
CFLAGS="-march=athlon-xp -O3 -fomit-frame-pointer -funroll-loops -pipe"
CXXFLAGS="${CFLAGS}"
Code: Select all
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.1/include -I/usr/qt/3/include -I/usr/X11R6/include -static -Wall -DDATADIR=\"/usr/kde/3.1/share/apps/kaudiocreator\" -DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/X11R6/include,esd -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -march=athlon-xp -O2 -fomit-frame-pointer -funroll-loops -pipe -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -c -o cdconfigimp.o `test -f 'cdconfigimp.cpp' || echo './'`cdconfigimp.cpp
In file included from /usr/include/linux/cdrom.h:14,
from cdconfigimp.cpp:78:
/usr/include/asm/byteorder.h:38: syntax error before `(' token
/usr/include/asm/byteorder.h:42: '__u64' is used as a type, but is not defined as a type.
/usr/include/asm/byteorder.h:43: parse error before `}' token
/usr/include/asm/byteorder.h:44: syntax error before `.' token
/usr/include/asm/byteorder.h:50: syntax error before `.' token
/usr/include/asm/byteorder.h:51: syntax error before `.' token
/usr/include/asm/byteorder.h:52: parse error before `:' token
In file included from /usr/include/linux/byteorder/little_endian.h:11,
from /usr/include/asm/byteorder.h:65,
from /usr/include/linux/cdrom.h:14,
from cdconfigimp.cpp:78:
/usr/include/linux/byteorder/swab.h:199: syntax error before `(' token
/usr/include/linux/byteorder/swab.h:209: syntax error before `(' token
/usr/include/linux/byteorder/swab.h:213: `__u64' was not declared in this scope
/usr/include/linux/byteorder/swab.h:213: `addr' was not declared in this scope
/usr/include/linux/byteorder/swab.h:214: variable or field `__swab64s' declared void
/usr/include/linux/byteorder/swab.h:214: `__swab64s' declared as an `inline' variable
/usr/include/linux/byteorder/swab.h:214: syntax error before `{' token
cdconfigimp.cpp:81: parse error before `}' token
make[3]: *** [cdconfigimp.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdemultimedia-3.1.2-r1/work/kdemultimedia-3.1.2/kaudiocreator'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdemultimedia-3.1.2-r1/work/kdemultimedia-3.1.2/kaudiocreator'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdemultimedia-3.1.2-r1/work/kdemultimedia-3.1.2'
make: *** [all] Error 2
!!! ERROR: kde-base/kdemultimedia-3.1.2-r1 failed.
!!! Function kde_src_compile, Line 123, Exitcode 2
!!! died running emake, kde_src_compile:make
EDIT -- I noticed the problem is "-ansi" ... but how to solve the problem?

