Bug#614471: marked as done (paraview: FTBFS: common.h:154: error: 'UINT64_C' was not declared in this scope)

2011-03-09 Thread Debian Bug Tracking System
Your message dated Wed, 09 Mar 2011 20:22:38 +
with message-id 
and subject line Bug#614471: fixed in paraview 3.8.1-3
has caused the Debian Bug report #614471,
regarding paraview: FTBFS: common.h:154: error: 'UINT64_C' was not declared in 
this scope
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
614471: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614471
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: paraview
Version: 3.8.1-2
Severity: serious
Tags: squeeze sid
User: debian...@lists.debian.org
Usertags: qa-ftbfs-20110221 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part:
> make[3]: Entering directory 
> `/build/user-paraview_3.8.1-2-amd64-4Wj_N7/paraview-3.8.1/obj-x86_64-linux-gnu'
> [ 29%] Building CXX object 
> VTK/Imaging/CMakeFiles/vtkImagingPythonD.dir/vtkBooleanTexturePython.cxx.o
> [ 29%] Building CXX object 
> Utilities/VTKClientServer/Imaging/CMakeFiles/vtkImagingCS.dir/vtkImageGridSourceClientServer.cxx.o
> [ 29%] Building CXX object VTK/IO/CMakeFiles/vtkIO.dir/vtkXYZMolReader.cxx.o
> [ 29%] Building CXX object 
> Utilities/VTKClientServer/Imaging/CMakeFiles/vtkImagingCS.dir/vtkImageHSIToRGBClientServer.cxx.o
> [ 29%] Building CXX object 
> VTK/Imaging/CMakeFiles/vtkImagingPythonD.dir/vtkExtractVOIPython.cxx.o
> [ 29%] Building CXX object 
> VTK/Graphics/CMakeFiles/vtkGraphics.dir/vtkLinearSubdivisionFilter.cxx.o
> [ 29%] Building CXX object 
> Utilities/VTKClientServer/Imaging/CMakeFiles/vtkImagingCS.dir/vtkImageHSVToRGBClientServer.cxx.o
> [ 29%] Building CXX object 
> VTK/IO/CMakeFiles/vtkIO.dir/vtkZLibDataCompressor.cxx.o
> [ 29%] Building CXX object 
> Utilities/VTKClientServer/Imaging/CMakeFiles/vtkImagingCS.dir/vtkImageHybridMedian2DClientServer.cxx.o
> [ 29%] Building CXX object VTK/IO/CMakeFiles/vtkIO.dir/vtkFFMPEGWriter.cxx.o
> [ 29%] Building CXX object 
> VTK/Graphics/CMakeFiles/vtkGraphics.dir/vtkLineSource.cxx.o
> [ 29%] Building CXX object 
> VTK/Imaging/CMakeFiles/vtkImagingPythonD.dir/vtkFastSplatterPython.cxx.o
> [ 29%] Building CXX object 
> Utilities/VTKClientServer/Imaging/CMakeFiles/vtkImagingCS.dir/vtkImageIdealHighPassClientServer.cxx.o
> [ 29%] Building CXX object 
> Utilities/VTKClientServer/Imaging/CMakeFiles/vtkImagingCS.dir/vtkImageIdealLowPassClientServer.cxx.o
> [ 29%] Building CXX object 
> VTK/IO/CMakeFiles/vtkIO.dir/vtkPostgreSQLDatabase.cxx.o
> [ 29%] Building CXX object 
> VTK/IO/CMakeFiles/vtkIO.dir/vtkPostgreSQLQuery.cxx.o
> In file included from /usr/include/libavutil/avutil.h:81,
>  from /usr/include/libavcodec/avcodec.h:30,
>  from /usr/include/libavformat/avformat.h:56,
>  from 
> /build/user-paraview_3.8.1-2-amd64-4Wj_N7/paraview-3.8.1/VTK/IO/vtkFFMPEGWriter.cxx:27:
> /usr/include/libavutil/common.h: In function 'int32_t 
> av_clipl_int32(int64_t)':
> /usr/include/libavutil/common.h:154: error: 'UINT64_C' was not declared in 
> this scope
> /build/user-paraview_3.8.1-2-amd64-4Wj_N7/paraview-3.8.1/VTK/IO/vtkFFMPEGWriter.cxx:
>  In member function 'int vtkFFMPEGWriterInternal::Start()':
> /build/user-paraview_3.8.1-2-amd64-4Wj_N7/paraview-3.8.1/VTK/IO/vtkFFMPEGWriter.cxx:117:
>  warning: 'AVFormatContext* av_alloc_format_context()' is deprecated 
> (declared at /usr/include/libavformat/avformat.h:947)
> /build/user-paraview_3.8.1-2-amd64-4Wj_N7/paraview-3.8.1/VTK/IO/vtkFFMPEGWriter.cxx:117:
>  warning: 'AVFormatContext* av_alloc_format_context()' is deprecated 
> (declared at /usr/include/libavformat/avformat.h:947)
> /build/user-paraview_3.8.1-2-amd64-4Wj_N7/paraview-3.8.1/VTK/IO/vtkFFMPEGWriter.cxx:126:
>  warning: 'AVOutputFormat* guess_format(const char*, const char*, const 
> char*)' is deprecated (declared at /usr/include/libavformat/avformat.h:787)
> /build/user-paraview_3.8.1-2-amd64-4Wj_N7/paraview-3.8.1/VTK/IO/vtkFFMPEGWriter.cxx:126:
>  warning: 'AVOutputFormat* guess_format(const char*, const char*, const 
> char*)' is deprecated (declared at /usr/include/libavformat/avformat.h:787)
> make[3]: *** [VTK/IO/CMakeFiles/vtkIO.dir/vtkFFMPEGWriter.cxx.o] Error 1

The full build log is available from:
   
http://people.debian.org/~lucas/logs/2011/02/21/paraview_3.8.1-2_lsid64.buildlog

A list of current common problems a

Bug#614471:

2011-02-22 Thread Lifeng Sun
Hello,

On 09:38 Tue 02/22/11 Feb , Mathieu Malaterre wrote:
> reassign 614471 ffmpeg
> thanks
> 
> > [ 29%] Building CXX object 
> > VTK/IO/CMakeFiles/vtkIO.dir/vtkPostgreSQLQuery.cxx.o
> > In file included from /usr/include/libavutil/avutil.h:81,
> >  from /usr/include/libavcodec/avcodec.h:30,
> >  from /usr/include/libavformat/avformat.h:56,
> >  from 
> > /build/user-paraview_3.8.1-2-amd64-4Wj_N7/paraview-3.8.1/VTK/IO/vtkFFMPEGWriter.cxx:27:
> > /usr/include/libavutil/common.h: In function 'int32_t 
> > av_clipl_int32(int64_t)':
> > /usr/include/libavutil/common.h:154: error: 'UINT64_C' was not declared in 
> > this scope
> 
> Clearly the issue is in the libavutil.h code (not in paraview)

This is an issue of paraview. Paraview is written in C++ while
libavutil is written in C. The ISO C99 standard (7.18.4) specifies
that C++ implementations should define UINT64_C only when
__STDC_CONSTANT_MACROS is defined, so even when stdint.h is included,
UINT64_C may be not in scope in C++ programs, but this never happens
in C programs.



Regards,
Lifeng

> 
> 
> /**
>  * Clips a signed 64-bit integer value into the -2147483648,2147483647 range.
>  * @param a value to clip
>  * @return clipped value
>  */
> static inline av_const int32_t av_clipl_int32(int64_t a)
> {
> if ((a+0x8000u) & ~UINT64_C(0x)) return (a>>63) ^ 0x7FFF;
> else return a;
> }
> 
> 
> Thanks
> 
> 
> 
> --
> debian-science-maintainers mailing list
> debian-science-maintain...@lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/debian-science-maintainers

-- 
--- a/VTK/IO/vtkFFMPEGWriter.cxx
+++ b/VTK/IO/vtkFFMPEGWriter.cxx
@@ -21,6 +21,10 @@
 #include "vtkFFMPEGConfig.h"
 
 extern "C" {
+#ifndef __STDC_CONSTANT_MACROS
+# define __STDC_CONSTANT_MACROS
+#endif
+
 #ifdef VTK_FFMPEG_HAS_OLD_HEADER
 # include 
 #else


signature.asc
Description: GnuPG digital signature
___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-multimedia-maintainers