Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jun 2010 11:50:40 +0300 (EEST)
From:      Andriy Gapon <avg@icyb.net.ua>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        multimedia@freebsd.org
Subject:   [PATCH] multimedia/mkvtoolnix: fix compilation with gcc44
Message-ID:  <201006070850.o578oe6Q078059@trant.local.>

next in thread | raw e-mail | index | archive | help

>Submitter-Id:	current-users
>Originator:	Andriy Gapon
>Organization:	
>Confidential:	no 
>Synopsis:	[PATCH] multimedia/mkvtoolnix: fix compilation with gcc44
>Severity:	non-critical
>Priority:	low
>Category:	ports 
>Class:		change-request
>Release:	FreeBSD 9.0-CURRENT amd64
>Environment:
>Description:
I am trying to use lang/gcc44 to build as much of my ports as possible.
Many ports including this one have problems outlined here:
http://gcc.gnu.org/gcc-4.3/porting_to.html
under section "Header dependency cleanup"

Added file(s):
- files/patch-src_common_strings_editing.h

Port maintainer (multimedia@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
Patchfile created via update-patches target.

Testing note:
To test this change a patch from ports/147639 is need as a prerequisite
and LDFLAGS should have -Wl,-rpath-link=/usr/local/lib/gcc44:/lib:/usr/lib
in them.  Otherwise configure target would not succeed.
This is because software's configure script uses C compiler (gcc44) to
link a program with a shared library compiled from C++ code.
This works only by chance with a base compiler.

>How-To-Repeat:
>Fix:

--- mkvtoolnix-3.3.0_2.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/multimedia/mkvtoolnix.orig/files/patch-src_common_strings_editing.h /usr/ports/multimedia/mkvtoolnix/files/patch-src_common_strings_editing.h
--- /usr/ports/multimedia/mkvtoolnix.orig/files/patch-src_common_strings_editing.h	1970-01-01 03:00:00.000000000 +0300
+++ /usr/ports/multimedia/mkvtoolnix/files/patch-src_common_strings_editing.h	2010-06-07 11:43:38.995345630 +0300
@@ -0,0 +1,10 @@
+--- src/common/strings/editing.h.orig	2010-06-07 11:37:20.115133180 +0300
++++ src/common/strings/editing.h	2010-06-07 11:37:40.477006374 +0300
+@@ -16,6 +16,7 @@
+ 
+ #include "common/os.h"
+ 
++#include <cstdarg>
+ #include <string>
+ #include <vector>
+ 
--- mkvtoolnix-3.3.0_2.patch ends here ---




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006070850.o578oe6Q078059>