From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Dec 3 07:10:59 2014 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E60F26BE for ; Wed, 3 Dec 2014 07:10:58 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CC1FF89A for ; Wed, 3 Dec 2014 07:10:58 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sB37AwFn097782 for ; Wed, 3 Dec 2014 07:10:58 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 195600] New: [patch] multimedia/ffmpegthumbnailer 2.0.9 build fails on FreeBSD 8.4 Date: Wed, 03 Dec 2014 07:10:58 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: truckman@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2014 07:10:59 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195600 Bug ID: 195600 Summary: [patch] multimedia/ffmpegthumbnailer 2.0.9 build fails on FreeBSD 8.4 Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: truckman@FreeBSD.org CC: clutton@zoho.com CC: clutton@zoho.com Flags: maintainer-feedback?(clutton@zoho.com) Created attachment 150133 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=150133&action=edit patch to fix ffmpegthumbnailer build on FreeBSD 8.4 The multimedia/ffmpegthumbnailer port version 2.0.9 build fails on FreeBSD 8.4. I suspect that FreeBSD 9.x is also affected since the base compiler is still gcc 4.2.1. ===> Building for ffmpegthumbnailer-2.0.9 /usr/bin/make all-recursive Making all in man depbase=`echo main.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; c++ -DHAVE_CONFIG_H -I. -I/usr/local/include -D__STDC_CONSTANT_MACROS -O2 -pipe -fno-strict-aliasing -std=c++11 -MT main.o -MD -MP -MF $depbase.Tpo -c -o main.o main.cpp && mv -f $depbase.Tpo $depbase.Po /bin/sh ./libtool --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -I/usr/local/include -D__STDC_CONSTANT_MACROS -I/usr/local/include -I/usr/local/include/libpng15 -O2 -pipe -fno-strict-aliasing -std=c++11 -MT libffmpegthumbnailer/libffmpegthumbnailer_la-moviedecoder.lo -MD -MP -MF libffmpegthumbnailer/.deps/libffmpegthumbnailer_la-moviedecoder.Tpo -c -o libffmpegthumbnailer/libffmpegthumbnailer_la-moviedecoder.lo `test -f 'libffmpegthumbnailer/moviedecoder.cpp' || echo './'`libffmpegthumbnailer/moviedecoder.cpp /bin/sh ./libtool --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -I/usr/local/include -D__STDC_CONSTANT_MACROS -I/usr/local/include -I/usr/local/include/libpng15 -O2 -pipe -fno-strict-aliasing -std=c++11 -MT libffmpegthumbnailer/libffmpegthumbnailer_la-stringoperations.lo -MD -MP -MF libffmpegthumbnailer/.deps/libffmpegthumbnailer_la-stringoperations.Tpo -c -o libffmpegthumbnailer/libffmpegthumbnailer_la-stringoperations.lo `test -f 'libffmpegthumbnailer/stringoperations.cpp' || echo './'`libffmpegthumbnailer/stringoperations.cpp /bin/sh ./libtool --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -I/usr/local/include -D__STDC_CONSTANT_MACROS -I/usr/local/include -I/usr/local/include/libpng15 -O2 -pipe -fno-strict-aliasing -std=c++11 -MT libffmpegthumbnailer/libffmpegthumbnailer_la-videothumbnailer.lo -MD -MP -MF libffmpegthumbnailer/.deps/libffmpegthumbnailer_la-videothumbnailer.Tpo -c -o libffmpegthumbnailer/libffmpegthumbnailer_la-videothumbnailer.lo `test -f 'libffmpegthumbnailer/videothumbnailer.cpp' || echo './'`libffmpegthumbnailer/videothumbnailer.cpp cc1plus: error: unrecognized command line option "-std=c++11" libtool: compile: c++ -DHAVE_CONFIG_H -I. -I/usr/local/include -D__STDC_CONSTANT_MACROS -I/usr/local/include -I/usr/local/include/libpng15 -O2 -pipe -fno-strict-aliasing -std=c++11 -MT libffmpegthumbnailer/libffmpegthumbnailer_la-moviedecoder.lo -MD -MP -MF libffmpegthumbnailer/.deps/libffmpegthumbnailer_la-moviedecoder.Tpo -c libffmpegthumbnailer/moviedecoder.cpp -fPIC -DPIC -o libffmpegthumbnailer/.libs/libffmpegthumbnailer_la-moviedecoder.o cc1plus: error: unrecognized command line option "-std=c++11" *** Error code 1 *** Error code 1 libtool: compile: c++ -DHAVE_CONFIG_H -I. -I/usr/local/include -D__STDC_CONSTANT_MACROS -I/usr/local/include -I/usr/local/include/libpng15 -O2 -pipe -fno-strict-aliasing -std=c++11 -MT libffmpegthumbnailer/libffmpegthumbnailer_la-videothumbnailer.lo -MD -MP -MF libffmpegthumbnailer/.deps/libffmpegthumbnailer_la-videothumbnailer.Tpo -c libffmpegthumbnailer/videothumbnailer.cpp -fPIC -DPIC -o libffmpegthumbnailer/.libs/libffmpegthumbnailer_la-videothumbnailer.o libtool: compile: c++ -DHAVE_CONFIG_H -I. -I/usr/local/include -D__STDC_CONSTANT_MACROS -I/usr/local/include -I/usr/local/include/libpng15 -O2 -pipe -fno-strict-aliasing -std=c++11 -MT libffmpegthumbnailer/libffmpegthumbnailer_la-stringoperations.lo -MD -MP -MF libffmpegthumbnailer/.deps/libffmpegthumbnailer_la-stringoperations.Tpo -c libffmpegthumbnailer/stringoperations.cpp -fPIC -DPIC -o libffmpegthumbnailer/.libs/libffmpegthumbnailer_la-stringoperations.o cc1plus: error: unrecognized command line option "-std=c++11" cc1plus: error: unrecognized command line option "-std=c++11" *** Error code 1 *** Error code 1 4 errors *** Error code 1 1 error *** Error code 2 1 error ===> Compilation failed unexpectedly. My first attempt at fixing was to add "USES= compiler:c++11-lib" to the Makefile. That got the build to go a bit further: libtool: compile: g++48 -DHAVE_CONFIG_H -I. -I/usr/local/include -D__STDC_CONSTANT_MACROS -I/usr/local/include -I/usr/local/include/libpng15 -O2 -pipe -Wl,-rpath=/usr/local/lib/gcc48 -fno-strict-aliasing -Wl,-rpath=/usr/local/lib/gcc48 -std=c++11 -MT libffmpegthumbnailer/libffmpegthumbnailer_la-filmstripfilter.lo -MD -MP -MF libffmpegthumbnailer/.deps/libffmpegthumbnailer_la-filmstripfilter.Tpo -c libffmpegthumbnailer/filmstripfilter.cpp -o libffmpegthumbnailer/libffmpegthumbnailer_la-filmstripfilter.o >/dev/null 2>&1 mv -f libffmpegthumbnailer/.deps/libffmpegthumbnailer_la-filmstripfilter.Tpo libffmpegthumbnailer/.deps/libffmpegthumbnailer_la-filmstripfilter.Plo In file included from libffmpegthumbnailer/jpegwriter.h:24:0, from libffmpegthumbnailer/jpegwriter.cpp:17: /usr/local/include/jpeglib.h:954:30: error: 'FILE' has not been declared EXTERN(void) jpeg_stdio_dest JPP((j_compress_ptr cinfo, FILE * outfile)); ^ /usr/local/include/jpeglib.h:955:29: error: 'FILE' has not been declared EXTERN(void) jpeg_stdio_src JPP((j_decompress_ptr cinfo, FILE * infile)); ^ In file included from libffmpegthumbnailer/jpegwriter.cpp:17:0: libffmpegthumbnailer/jpegwriter.h:48:5: error: 'FILE' does not name a type FILE* m_pFile; ^ libtool: compile: g++48 -DHAVE_CONFIG_H -I. -I/usr/local/include -D__STDC_CONSTANT_MACROS -I/usr/local/include -I/usr/local/include/libpng15 -O2 -pipe -Wl,-rpath=/usr/local/lib/gcc48 -fno-strict-aliasing -Wl,-rpath=/usr/local/lib/gcc48 -std=c++11 -MT libffmpegthumbnailer/libffmpegthumbnailer_la-pngwriter.lo -MD -MP -MF libffmpegthumbnailer/.deps/libffmpegthumbnailer_la-pngwriter.Tpo -c libffmpegthumbnailer/pngwriter.cpp -o libffmpegthumbnailer/libffmpegthumbnailer_la-pngwriter.o >/dev/null 2>&1 libffmpegthumbnailer/jpegwriter.cpp: In constructor 'ffmpegthumbnailer::JpegWriter::JpegWriter(const string&)': libffmpegthumbnailer/jpegwriter.cpp:44:3: error: class 'ffmpegthumbnailer::JpegWriter' does not have any field named 'm_pFile' , m_pFile(NULL) ^ libffmpegthumbnailer/jpegwriter.cpp:48:2: error: 'm_pFile' was not declared in this scope m_pFile = outputFile == "-" ? stdout : fopen(outputFile.c_str(), "wb"); ^ libffmpegthumbnailer/jpegwriter.cpp: In constructor 'ffmpegthumbnailer::JpegWriter::JpegWriter(std::vector&)': libffmpegthumbnailer/jpegwriter.cpp:60:3: error: class 'ffmpegthumbnailer::JpegWriter' does not have any field named 'm_pFile' , m_pFile(NULL) ^ libffmpegthumbnailer/jpegwriter.cpp: In destructor 'virtual ffmpegthumbnailer::JpegWriter::~JpegWriter()': libffmpegthumbnailer/jpegwriter.cpp:76:9: error: 'm_pFile' was not declared in this scope if (m_pFile) ^ *** Error code 1 mv -f libffmpegthumbnailer/.deps/libffmpegthumbnailer_la-pngwriter.Tpo libffmpegthumbnailer/.deps/libffmpegthumbnailer_la-pngwriter.Plo mv -f libffmpegthumbnailer/.deps/libffmpegthumbnailer_la-videothumbnailer.Tpo libffmpegthumbnailer/.deps/libffmpegthumbnailer_la-videothumbnailer.Plo 1 error *** Error code 1 1 error *** Error code 2 1 error ===> Compilation failed unexpectedly. I found a patch for the latter problem here: With those two changes, I can now build ffmpegthumbnailer on FreeBSD 8.4. The build on FreeBSD 10.1 appears to be unaffected. --- Comment #1 from Bugzilla Automation --- Maintainer CC'd -- You are receiving this mail because: You are the assignee for the bug.