Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Apr 2003 09:29:34 +0200
From:      Miguel Mendez <flynn@energyhq.homeip.net>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        ports@FreeBSD.org
Subject:   Re: mpegedit broken on 5.0
Message-ID:  <20030408092934.0d738565.flynn@energyhq.homeip.net>
In-Reply-To: <20030407220114.GA58961@rot13.obsecurity.org>
References:  <20030407220114.GA58961@rot13.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--=.5hoxNd?qRqQ+9h
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

On Mon, 7 Apr 2003 15:01:14 -0700
Kris Kennaway <kris@obsecurity.org> wrote:

> http://bento.freebsd.org/errorlogs/i386-5-latest/mpegedit-2.2.log
> 
> Can someone please investigate/fix?

Yet another broken C++ problem. I've started fixing it, it currently
breaks in another file. This is what I've done so far, if I have time
before leaving for university, I'll resend a more proper fix. Maybe our
friend Simon Schubert can have a go at it too, since I'm not C++ guru by
any means.

diff -ruN mpegedit.old/files/patch-ad mpegedit/files/patch-ad
--- mpegedit.old/files/patch-ad	Sat Feb 12 20:17:19 2000
+++ mpegedit/files/patch-ad	Tue Apr  8 09:07:48 2003
@@ -1,6 +1,17 @@
 --- editor/mono_window.C.orig	Sat May 20 17:47:32 1995
-+++ editor/mono_window.C	Thu Feb  3 21:27:07 2000
-@@ -24,6 +24,8 @@
++++ editor/mono_window.C	Tue Apr  8 09:07:32 2003
+@@ -19,11 +19,19 @@
+    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+ 
++#if __GNUC__>=3
++#include <iostream>
++using namespace std;
++#endif
++
++
+ #include "mono_window.H"
+ #include "yuv.H"
  #include <assert.h>
  #include <stdlib.h>
  
@@ -9,7 +20,7 @@
  MonoWindow::MonoWindow(UI_Globals *parent,world_c x,world_c y,
  		       unsigned int height,unsigned int width,
  		       void (*cb)(void) )
-@@ -137,7 +139,7 @@
+@@ -137,7 +145,7 @@
        
        ximage=XCreateImage(DispPointer(),None,8,ZPixmap,0,&dummy,
  			  width,height,8,0);
@@ -18,7 +29,7 @@
        assert(ximage->data!=NULL);
  #ifdef SH_MEM
      }
-@@ -154,7 +156,7 @@
+@@ -154,7 +162,7 @@
    for(int j = 0; j < GRAY_RANGE; j ++)
      {
        tmp_pixel = col_array[j];
@@ -27,7 +38,7 @@
      }
    XFreeGC(DispPointer(),gc);
  
-@@ -222,7 +224,7 @@
+@@ -222,7 +230,7 @@
  	  for(int j = 0; j < i; j ++)
  	    {
  	      tmp_pixel = col_array[j];
@@ -36,7 +47,7 @@
  	    }
  	  cerr << "Unable to allocate the colours required to make the\n"
  	       << "monochrome window.  Please re-run with the option "
-@@ -254,7 +256,7 @@
+@@ -254,7 +262,7 @@
  {
    assert(Frame.width()==ximage->width);
    assert(Frame.height()==ximage->height);
diff -ruN mpegedit.old/files/patch-ae mpegedit/files/patch-ae
--- mpegedit.old/files/patch-ae	Sat Feb 12 20:17:19 2000
+++ mpegedit/files/patch-ae	Tue Apr  8 09:09:45 2003
@@ -1,6 +1,17 @@
 --- editor/bw_window.C.orig	Mon May  8 16:15:00 1995
-+++ editor/bw_window.C	Thu Feb  3 21:29:23 2000
-@@ -24,6 +24,8 @@
++++ editor/bw_window.C	Tue Apr  8 09:09:08 2003
+@@ -19,11 +19,19 @@
+    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+ 
++#if __GNUC__>=3
++#include <iostream>
++using namespace std;
++#endif
++
++
+ #include "bw_window.H"
+ #include "yuv.H"
  #include <assert.h>
  #include <stdlib.h>
  
@@ -9,7 +20,7 @@
  BwWindow::BwWindow(UI_Globals *parent,world_c x,world_c y,unsigned int height,
  		   unsigned int width, void (*cb)(void) )
  : YUV_Window(parent,x,y,height,width,this, ButtonPressMask |
-@@ -143,7 +145,7 @@
+@@ -143,7 +151,7 @@
  			  height,8,0);
        ximage->byte_order = MSBFirst;
        ximage->bitmap_bit_order = MSBFirst;
@@ -18,7 +29,7 @@
        assert(ximage->data!=NULL);
  #ifdef SH_MEM
      }
-@@ -213,7 +215,7 @@
+@@ -213,7 +221,7 @@
  {
    assert(Frame.width()==ximage->width);
    assert(Frame.height()==ximage->height);


-- 
        Miguel Mendez - flynn@energyhq.homeip.net
        GPG Public Key :: http://energyhq.homeip.net/files/pubkey.txt
        EnergyHQ :: http://www.energyhq.tk
	Tired of Spam? -> http://www.trustic.com

--=.5hoxNd?qRqQ+9h
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (NetBSD)

iD8DBQE+knpenLctrNyFFPERAq13AJ9ETt56dQ6PklXXmDgD8F7OUwObTACfQD19
NCdvwscnG3s8uuXRksAlGb4=
=0s0D
-----END PGP SIGNATURE-----

--=.5hoxNd?qRqQ+9h--



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