Re: avifile will not compile on -current

From: Wolfram Fenske <Wolfram.Fenske_at_Student.Uni-Magdeburg.DE>
Date: Fri, 22 Sep 2006 23:38:54 +0200
Hello!

"Kevin Oberman" <oberman_at_es.net> writes:

> Not sure if this was best to current or ports, but I suspect current is
> the best starting point. It is beyond my VERY limited C++ skills to
> decipher. 
>
> When I try building avifile on either of my current systems, I get the
> error:
>  c++ -DHAVE_CONFIG_H -I. -I. -I../../include -I./../common -I./../../ffmpeg/libavformat -I./../../ffmpeg/libavcodec -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 ReadFile.cpp  -fPIC -DPIC -o .libs/ReadFile.o
> ReadFile.cpp:129: error: explicit qualification in declaration of `avm::IReadFile* avm::CreateReadFile(const char*, unsigned int)'
> gmake[2]: *** [ReadFile.lo] Error 1
> gmake[2]: Leaving directory `/usr/ports/multimedia/avifile/work/avifile-0.7-0.7.43/lib/aviread'
>
> This compiles fine on a 6.2-PRERELEASE system.
>
> Any idea what might be causing this? I don't see any other reports of
> problem, so it may be a problem on my system, but I don't see what it

I don't know what the problem really is, but I found some bug reports
with the message »error: explicit qualification in declaration«. [1]
Apparently, they can be fixed by removing the namespace qualifier.  So
replacing line 129 with one of

--8<---------------cut here---------------start------------->8---
avm::IReadFile* CreateReadFile(const char*, unsigned int)
IReadFile* avm::CreateReadFile(const char*, unsigned int)
IReadFile* CreateReadFile(const char*, unsigned int)
--8<---------------cut here---------------end--------------->8---

might work.


Footnotes: 
[1]
<http://www.reactos.org/pipermail/ros-diffs/2006-August/013549.html>
<http://www.bincimap.andreas.hanssen.name/archive/?1::637>        
<http://lists.gnucash.org/pipermail/gnucash-de/2005-September/003420.html>

-- 
Wolfram Fenske

A: Yes.
>Q: Are you sure?
>>A: Because it reverses the logical flow of conversation.
>>>Q: Why is top posting frowned upon?
Received on Fri Sep 22 2006 - 19:42:14 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:00 UTC