Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Sep 2006 19:43:30 -0300
From:      Rainer Alves <rainer.alves@gmail.com>
To:        Kevin Oberman <oberman@es.net>
Cc:        ports@freebsd.org
Subject:   Re: avifile will not compile on -current
Message-ID:  <45146712.1050402@gmail.com>
In-Reply-To: <20060922211055.E8B584506A@ptavv.es.net>
References:  <20060922211055.E8B584506A@ptavv.es.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Kevin Oberman wrote:
> avifile has not built on current since the update of gcc to the latest
> 3.4.6 fixes back on Aug. 25.

It also doesn't compile here, for 2 reasons:
1) since `pcvt` was removed from CURRENT around May or so, avifile no 
longer finds the header "pcvt_ioctl.h" and the build breaks here:

cc -DHAVE_CONFIG_H -I. -I. -I../../include -I/usr/local/include 
-I/usr/local/include -I/usr/X11R6/include -D_GETOPT_H -Wall -Wno-unused 
-I../../include -O2 -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -pipe -c ports.c  -fPIC -DPIC -o .libs/ports.o
In file included from ports.c:73:
sysdep/pci_freebsd.c:11:32: machine/pcvt_ioctl.h: No such file or directory

The fix is trivial: the replacement of "machine/pcvt_ioctl.h" by 
"sys/kbio.h" (which also contains KDENABIO from the defunct pcvt).


2) As for the error you pointed out, here is a quick patch which fixes 
things for me:

--- ReadFile.cpp.orig   Fri Sep 22 19:40:20 2006
+++ ReadFile.cpp        Fri Sep 22 19:41:19 2006
@@ -8,7 +8,7 @@

  AVM_BEGIN_NAMESPACE;

-avm::IReadFile::~IReadFile() {}
+IReadFile::~IReadFile() {}

  class ReadFile: public IReadFile
  {
@@ -125,7 +125,7 @@
  };


-avm::IReadFile* avm::CreateReadFile(const char* name, unsigned int flags)
+IReadFile* CreateReadFile(const char* name, unsigned int flags)
  {
      ReadFile* r = new ReadFile(name, flags);
      return r;


--
Rainer Alves




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