Message: previous - next
Month: July 2012

kima - ftbfs - error: 'list' in namespace 'std' does not name a type

From: "David C. Rankin" <drankinatty@...>
Date: Sun, 15 Jul 2012 01:03:50 -0500
Tim, All,

  This is the last of the 'used-to-build-but-fails-now' list. kima built fine on
6/5, but not won't build. It looks like some c++ namespace semantic that needs
fixing in the kima header for gcc 4.7.1. The error is:

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../src/cpufreqd
-I../src/sources -I/opt/trinity/include -I/opt/tqt3/include -I. -include tqt.h
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -Wno-long-long -Wundef -ansi
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W
-Wpointer-arith -fno-builtin -g3 -fno-inline -march=x86-64 -mtune=generic -O2
-pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2
-fpermissive -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor
-fno-exceptions -fno-check-new -fno-common -I/usr/include/tqt -MT kima.moc.lo
-MD -MP -MF .deps/kima.moc.Tpo -c kima.moc.cpp  -fPIC -DPIC -o .libs/kima.moc.o
In file included from kima.moc.cpp:9:0:
./kima.h:177:24: error: 'list' in namespace 'std' does not name a type
./kima.h:177:29: warning: ISO C++ forbids declaration of 'parameter' with no
type [-fpermissive]
./kima.h:177:33: error: expected ',' or '...' before '<' token

  Any of you gurus know what needs fixing at line 177. I'll do the patch, I just
need to know how to fix it :)

David C. Rankin, J.D.,P.E.