Welcome and thanks for the report.

I am working with gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2 and I cannot
reproduce the error. Any light on the problem? patches?

Two guesses:
1 - TIME_UTC is defined anywhere else in system headers
2 - Some problem with anonymous enums in your gcc version

Two things to try:
1- Placing #undefine TIME_UTC just before the first complaining line.
2- Try giving the enum a name: enum myweirdname { ...

David.


Al 10/03/13 19:10, En/na Dominique Michel ha escrit:
> Hi all,
>
> This is my first message here.
>
> I contribute to the gentoo pro-audio overlay, among other things, the
> CLAM related ebuilds.
>
> When compiling libclam from your svn repository using the live ebuild
> from the overlay, I get the following error. It was working before.
> This is with gcc-4.7.2. It also look the same than this debian bug:
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=701257
>
> I am not sure if this is related to the gcc version, because gcc-4.7
> work on debian but not here with gcc.4.7.2
>
> == Compiling shared
> scons/libs/core/src/FileSystem.cxx In file included from
> scons/libs/core/include/CLAM/Lock.hxx:26:0, from
> scons/libs/core/include/CLAM/Mutex.hxx:26, from
> scons/libs/core/include/CLAM/FileSystem.hxx:27, from
> scons/libs/core/src/FileSystem.cxx:22:
> scons/libs/core/include/CLAM/xtime.hxx:38:3: error: expected identifier
> before numeric constant scons/libs/core/include/CLAM/xtime.hxx:38:3:
> error: expected ‘}’ before numeric constant
> scons/libs/core/include/CLAM/xtime.hxx:38:3: error: expected
> unqualified-id before numeric constant In file included from
> scons/libs/core/include/CLAM/Lock.hxx:26:0, from
> scons/libs/core/include/CLAM/Mutex.hxx:26, from
> scons/libs/core/include/CLAM/FileSystem.hxx:27, from
> scons/libs/core/src/FileSystem.cxx:22:
> scons/libs/core/include/CLAM/xtime.hxx:156:1: error: expected
> declaration before ‘}’ token scons: ***
> [scons/libs/core/src/FileSystem.os] Error 1 scons: building terminated
> because of errors.
>
> I can send a complete build log if wanted.
> With gcc-4.6.3, I get the same error.
>
> Best,
> Dominique
>

_______________________________________________
clam-devel mailing list
clam-devel@lists.clam-project.org
http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org

Reply via email to