NetBSD Problem Report #33417

From dauphin@enst.fr  Wed May  3 13:31:52 2006
Return-Path: <dauphin@enst.fr>
Received: from smtp2.enst.fr (revol1.enst.fr [137.194.2.7])
	by narn.netbsd.org (Postfix) with ESMTP id 193A763B882
	for <gnats-bugs@gnats.netbsd.org>; Wed,  3 May 2006 13:31:52 +0000 (UTC)
Message-Id: <1146663106.693@bi.enst.fr>
Date: Wed, 3 May 2006 15:31:46 +0200
From: "Gilles Dauphin" <dauphin@enst.fr>
To: "gnats bugs" <gnats-bugs@netbsd.org>
Subject: multimedia/mjpegtools
X-Send-Pr-Version: gtk-send-pr 0.4.5 
X-GNATS-Notify:

>Number:         33417
>Category:       pkg
>Synopsis:       multimedia/mjpegtools
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 03 13:35:00 +0000 2006
>Last-Modified:  Thu May 04 10:25:00 +0000 2006
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic_Patch_118844-30 i86pc


>Description:


if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/pkg/include -I../utils  -I/usr/pkg/include -DGLX_GLXEXT_LEGACY -I/usr/include -DNDEBUG -finline-functions -fno-PIC -O -I/usr/pkg/include -DGLX_GLXEXT_LEGACY -I/usr/include -D_REENTRANT  -D_REENTRANT -D_REENTRANT  -MT newdenoise.o -MD -MP -MF ".deps/newdenoise.Tpo" -c -o newdenoise.o newdenoise.cc; \
        then mv -f ".deps/newdenoise.Tpo" ".deps/newdenoise.Po"; else rm -f ".deps/newdenoise.Tpo"; exit 1; fi
In file included from MotionSearcher.hh:17,
                 from newdenoise.cc:19:
SearchBorder.hh: In member function `FRAMESIZE SearchBorder<PIXELINDEX, FRAMESIZE>::AddNewMatch(Status_t&, PIXELINDEX, PIXELINDEX)':
SearchBorder.hh:1501: error: there are no arguments to `alloca' that depend on a template parameter, so a declaration of `alloca' must be available
SearchBorder.hh:1501: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
SearchBorder.hh:1503: error: there are no arguments to `alloca' that depend on a template parameter, so a declaration of `alloca' must be available
SearchBorder.hh:1505: error: there are no arguments to `alloca' that depend on a template parameter, so a declaration of `alloca' must be available
SearchBorder.hh:1508: error: there are no arguments to `alloca' that depend on a template parameter, so a declaration of `alloca' must be available
SearchBorder.hh:1511: error: there are no arguments to `alloca' that depend on a template parameter, so a declaration of `alloca' must be available
gmake[2]: *** [newdenoise.o] Error 1
gmake[2]: Leaving directory `/pkg/obj/multimedia/mjpegtools/work/mjpegtools-1.8.0/y4mdenoise'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/pkg/obj/multimedia/mjpegtools/work/mjpegtools-1.8.0'
gmake: *** [all] Error 2
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/multimedia/mjpegtools



>How-To-Repeat:


bmake


>Fix:


d ont know


>Audit-Trail:
From: "Jeremy C. Reed" <reed@reedmedia.net>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/33417: multimedia/mjpegtools
Date: Wed, 3 May 2006 08:32:41 -0700 (PDT)

 On Wed, 3 May 2006, Gilles Dauphin wrote:

 > System: SunOS bi.enst.fr 5.10 Generic_Patch_118844-30 i86pc

 > >Fix:
 > 
 > 
 > d ont know

 Did you report this to the mjpegtools developers also?
 (I saw old emails on the mjpeg-developer list about supporting Solaris.)

  Jeremy C. Reed

From: Gilles Dauphin <Gilles.Dauphin@enst.fr>
To: pkg-manager@netbsd.org, gnats-admin@netbsd.org,
	pkgsrc-bugs@netbsd.org, dauphin@enst.fr, gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/33417: multimedia/mjpegtools
Date: Thu, 4 May 2006 12:20:09 +0200 (CEST)

 > Delivered-To: dauphin@enst.fr
 > X-Virus-Scanned: amavisd-new at enst.fr
 > From: "Jeremy C. Reed" <reed@reedmedia.net>
 > To: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org, 
 "Gilles Dauphin" <dauphin@enst.fr>
 > Subject: Re: pkg/33417: multimedia/mjpegtools
 > X-Gnats-Was-Stupid: no
 > Cc: 
 > 
 > The following reply was made to PR pkg/33417; it has been noted by GNATS.
 > 
 > From: "Jeremy C. Reed" <reed@reedmedia.net>
 > To: gnats-bugs@netbsd.org
 > Cc: 
 > Subject: Re: pkg/33417: multimedia/mjpegtools
 > Date: Wed, 3 May 2006 08:32:41 -0700 (PDT)
 > 
 >  On Wed, 3 May 2006, Gilles Dauphin wrote:
 >  
 >  > System: SunOS bi.enst.fr 5.10 Generic_Patch_118844-30 i86pc
 >  
 >  > >Fix:
 >  > 
 >  > 
 >  > d ont know
 >  
 >  Did you report this to the mjpegtools developers also?
 >  (I saw old emails on the mjpeg-developer list about supporting Solaris.)
 >  
 >   Jeremy C. Reed

 I didn't, but now I know the patch for solaris10 gcc.
 The first is in Makefile with the BUILD_DEPENDS parameter:
 --------
 .if ${MACHINE_ARCH} == "i386"
 BUILD_DEPENDS+=         nasm>=0.98:../../devel/nasm
 .endif
 --------------

 and other (crazy) patch for solaris and maybe other system because
 of __progname is tested in ./configure but not in .c files
 --------------------------------cut here-------------------

 diff -rbu mjpegtools/work/mjpegtools-1.8.0/lavtools/y4mblack.c 
 mjpegtools.save/work/mjpegtools-1.8.0/lavtools/y4mblack.c
 --- mjpegtools/work/mjpegtools-1.8.0/lavtools/y4mblack.c        Fri Jun 17 
 02:30:02 2005
 +++ mjpegtools.save/work/mjpegtools-1.8.0/lavtools/y4mblack.c   Wed May  3 
 15:26:19 2006
 @@ -21,7 +21,7 @@

  #include "yuv4mpeg.h"

 -extern char    *__progname;
 +char   *__progname="progname";

  static void    usage(void);
  static void    chroma_usage(void);

 diff -rbu mjpegtools/work/mjpegtools-1.8.0/lavtools/y4mshift.c 
 mjpegtools.save/work/mjpegtools-1.8.0/lavtools/y4mshift.c
 --- mjpegtools/work/mjpegtools-1.8.0/lavtools/y4mshift.c        Mon Apr  5 
 19:07:34 2004
 +++ mjpegtools.save/work/mjpegtools-1.8.0/lavtools/y4mshift.c   Wed May  3 
 15:24:10 2006
 @@ -29,7 +29,7 @@

  #include "yuv4mpeg.h"

 -extern  char    *__progname;
 +char    *__progname="progname";

  #define HALFSHIFT (shiftnum / SS_H)

 diff -rbu mjpegtools/work/mjpegtools-1.8.0/lavtools/y4mspatialfilter.c 
 mjpegtools.save/work/mjpegtools-1.8.0/lavtools/y4mspatialfilter.c
 --- mjpegtools/work/mjpegtools-1.8.0/lavtools/y4mspatialfilter.c        Mon Jan  
 3 20:03:54 2005
 +++ mjpegtools.save/work/mjpegtools-1.8.0/lavtools/y4mspatialfilter.c   Wed May  
 3 15:25:26 2006
 @@ -23,7 +23,7 @@
  #include "mmx.h"
  #endif

 -extern  char    *__progname;
 +char    *__progname="progname";

  #define MIN(a,b) (((a)<(b))?(a):(b))
  #define MAX(a,b) (((a)>(b))?(a):(b))

 diff -rbu mjpegtools/work/mjpegtools-1.8.0/lavtools/yuv4mpeg.c 
 mjpegtools.save/work/mjpegtools-1.8.0/lavtools/yuv4mpeg.c
 --- mjpegtools/work/mjpegtools-1.8.0/lavtools/yuv4mpeg.c        Wed May 25 
 05:08:59 2005
 +++ mjpegtools.save/work/mjpegtools-1.8.0/lavtools/yuv4mpeg.c   Wed May  3 
 15:27:05 2006
 @@ -61,7 +61,7 @@

  #include "yuv4mpeg.h"

 -extern char    *__progname;
 +char   *__progname="progname";

  static void    usage(void);
  static void    chroma_usage(void);

 diff -rbu mjpegtools/work/mjpegtools-1.8.0/lavtools/yuyvtoy4m.c 
 mjpegtools.save/work/mjpegtools-1.8.0/lavtools/yuyvtoy4m.c
 --- mjpegtools/work/mjpegtools-1.8.0/lavtools/yuyvtoy4m.c       Wed May 25 
 04:28:28 2005
 +++ mjpegtools.save/work/mjpegtools-1.8.0/lavtools/yuyvtoy4m.c  Wed May  3 
 15:27:40 2006
 @@ -45,7 +45,7 @@

  #include "yuv4mpeg.h"

 -extern char    *__progname;
 +char   *__progname="progname";

  static void    usage(void);

 diff -rbu mjpegtools/work/mjpegtools-1.8.0/y4mdenoise/SearchBorder.hh 
 mjpegtools.save/work/mjpegtools-1.8.0/y4mdenoise/SearchBorder.hh
 --- mjpegtools/work/mjpegtools-1.8.0/y4mdenoise/SearchBorder.hh Tue Apr 27 
 22:45:56 2004
 +++ mjpegtools.save/work/mjpegtools-1.8.0/y4mdenoise/SearchBorder.hh    Wed May  
 3 15:52:22 2006
 @@ -12,6 +12,7 @@
  #include "Limits.hh"
  #include "DoublyLinkedList.hh"
  #include "SetRegion2D.hh"
 +#include <alloca.h>

  // HACK: for development error messages.
  #include <stdio.h>

 diff -rbu mjpegtools/work/mjpegtools-1.8.0/y4munsharp/y4munsharp.c 
 mjpegtools.save/work/mjpegtools-1.8.0/y4munsharp/y4munsharp.c
 --- mjpegtools/work/mjpegtools-1.8.0/y4munsharp/y4munsharp.c    Mon Apr 11 
 20:16:42 2005
 +++ mjpegtools.save/work/mjpegtools-1.8.0/y4munsharp/y4munsharp.c       Wed May  
 3 15:53:32 2006
 @@ -50,7 +50,7 @@
  #define MAX(a,b) ((a) >= (b) ? (a) : (b))
  #define ROUND(x) ((int) ((x) + 0.5))

 -extern char *__progname;
 +char *__progname="progname";

  void usage(void);
  void y4munsharp(void);

 ---------------------------cut here--------------

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.