[vlc-devel] Re: vlc: svn commit r19786 (markfm)

Mark Moriarty mfmbusiness at earthlink.net
Mon Apr 16 12:51:18 CEST 2007


Damien --
I've also had it happen with live555.cpp and qt4.cpp.
I've done complete kill-and-fill reinstallations, with reboots in between,
using kernel.org, planetmirror, funet,  and other sites.  I've done this on
my home computer and work machines.  I've used diferent versions of gcc.
Right now I have gcc 3.4.4-3 and mingw-runtime 3.12-4.
I went and tried a different set of C++, the examples out of "The C++
Standard Library - A Tutorial and Reference" -- those code samples compiled
and ran fine, have various sets of includes, inlcuding <iostream>, <string>,
<deque>, etc.
I've also had no problem with building the extras/contrib C++ libs,
including libdirac, libmod, libmatroska, libebml, live (the contrib/src
library source, not the modules), faad, flac,...
So, I have consistency in VLC not building, I have consistency in other code
building without trouble, including the large set of contribs.
Dshow, modules/demux/live555, and modules/gui/qt4 are all exhibiting the
same difficulty, errors of the form:
mfm at Mark ~/vlc-trunk/modules/access/dshow
$ make
make[1]: Entering directory `/home/mfm/vlc-trunk/modules/access/dshow'
g++ -mno-cygwin -DHAVE_CONFIG_H -I. -I../../..   -I/usr/win32/include
-I/usr/win
32/include/ebml -D_OFF_T_ -D_off_t=long -DSYS_MINGW32 -I../../../include
`top_bu
ilddir="../../.." ../../../vlc-config --cxxflags plugin dshow`
-mms-bitfields  -
MT libdshow_plugin_a-dshow.o -MD -MP -MF .deps/libdshow_plugin_a-dshow.Tpo
-c -o
 libdshow_plugin_a-dshow.o `test -f 'dshow.cpp' || echo './'`dshow.cpp
In file included from
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cstring:49,

                 from
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/char_t
raits.h:45,
                 from
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/string:47,
                 from common.h:33,
                 from dshow.cpp:39:
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cstddef:52: error: expected
unqua
lified-id before "long"
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cstddef:52: error: expected
`;' b
efore "long"
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cstddef:52: error:
declaration do
es not declare anything
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cstddef:53: error: expected
unqua
lified-id before "unsigned"
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cstddef:53: error: expected
`;' b
efore "unsigned"
In file included from
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_al
gobase.h:69,
                 from
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/char_t
raits.h:46,
                 from
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/string:47,
                 from common.h:33,
                 from dshow.cpp:39:
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/new:82: error: declaration of
`op
erator new' as non-function
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/new:82: error: expected
unqualifi
ed-id before "unsigned"
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/new:82: error: expected `,'
or `;
' before "throw"

-----Original Message-----
From: vlc-devel-bounce at videolan.org [mailto:vlc-devel-bounce at videolan.org]
On Behalf Of Damien Fouilleul
Sent: Monday, April 16, 2007 5:17 AM
To: vlc-devel at videolan.org
Subject: [vlc-devel] Re: vlc: svn commit r19786 (markfm)

Subversion daemon wrote:
> r19786 | markfm | 2007-04-14 17:04:36 +0200 (Sat, 14 Apr 2007) | 2 
> lines Changed paths:
>    M /trunk/modules/access/dshow/common.h
>
> Fix dshow build on Cygwin -- add size_t and ptrdiff_t undefs
>
>  > http://trac.videolan.org/vlc/changeset/19786
>
>   
I have serious misgivings about the validity of this commit for 2 reasons:
- I haven't had any problems compiling dshow on Cygwin in months (and i
compile it nearly everyday)
- size_t and ptrdiff_t are always typedefs in system headers (hence the
_t) , i.e. cygwin/mingw/g++ headers

therefore i suggest you debug your build, track all those headers inclusions
used when compiling dshow, it is possible that the culprit lies in the
contribs headers, as i do not recompile them as often.

FYI, i'm using:
mingw-runtime 3.12-4
gccc 3.4.4-3

--
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/ To
unsubscribe, please read http://developers.videolan.org/lists.html

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list