ericmckean / webm

Automatically exported from code.google.com/p/webm
0 stars 0 forks source link

webmenc.c:116:6: error: conflicting types for `write_webm_seek_element' #660

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
x86_64-w64-mingw32-gcc -I../libvpx/vp8 -I../libvpx/vp8 -I../libvpx/vp9 
-I../libvpx/vp9 -fno-common -m64 -O3 -Wall -Wdeclaration-afte
r-statement -Wdisabled-optimization -Wpointer-arith -Wtype-limits -Wcast-qual 
-Wvla -Wimplicit-function-declaration -Wuninitialized
-Wunused-variable -Wunused-but-set-variable -Wno-unused-function -I. 
-I"../libvpx" -c -o vpxdec.c.o ../libvpx/vpxdec.c
x86_64-w64-mingw32-gcc -L. -m64 -o vpxdec.exe md5_utils.c.o args.c.o 
tools_common.c.o nestegg/halloc/src/halloc.c.o nestegg/src/nest
egg.c.o third_party/libyuv/source/scale.c.o 
third_party/libyuv/source/cpu_id.c.o vpxdec.c.o -lvpx -lm
x86_64-w64-mingw32-gcc -I../libvpx/vp8 -I../libvpx/vp8 -I../libvpx/vp9 
-I../libvpx/vp9 -fno-common -m64 -O3 -Wall -Wdeclaration-afte
r-statement -Wdisabled-optimization -Wpointer-arith -Wtype-limits -Wcast-qual 
-Wvla -Wimplicit-function-declaration -Wuninitialized
-Wunused-variable -Wunused-but-set-variable -Wno-unused-function -I. 
-I"../libvpx" -c -o y4minput.c.o ../libvpx/y4minput.c
x86_64-w64-mingw32-gcc -I../libvpx/vp8 -I../libvpx/vp8 -I../libvpx/vp9 
-I../libvpx/vp9 -fno-common -m64 -O3 -Wall -Wdeclaration-afte
r-statement -Wdisabled-optimization -Wpointer-arith -Wtype-limits -Wcast-qual 
-Wvla -Wimplicit-function-declaration -Wuninitialized
-Wunused-variable -Wunused-but-set-variable -Wno-unused-function -I. 
-I"../libvpx" -c -o webmenc.c.o ../libvpx/webmenc.c
../libvpx/webmenc.c:116:6: error: conflicting types for 
`write_webm_seek_element'
../libvpx/webmenc.h:71:6: note: previous declaration of 
`write_webm_seek_element' was here
make[1]: [webmenc.c.o] Error 1 (ignored)
x86_64-w64-mingw32-gcc -I../libvpx/vp8 -I../libvpx/vp8 -I../libvpx/vp9 
-I../libvpx/vp9 -fno-common -m64 -O3 -Wall -Wdeclaration-afte

Original issue reported on code.google.com by fbarch...@google.com on 9 Nov 2013 at 3:59

GoogleCodeExporter commented 9 years ago
To reproduce
git clone http://git.chromium.org/webm/libvpx.git
mkdir win64
cd win64
CROSS=x86_64-w64-mingw32- ../libvpx/configure --target=x86_64-win64-gcc 
--enable-static-msvcrt --disable-install-docs --disable-unit-tests 
--disable-docs
make -i V=1

Original comment by fbarch...@google.com on 9 Nov 2013 at 4:04

GoogleCodeExporter commented 9 years ago
libvpx/webmenc.h

change

#if defined(_MSC_VER)
/* MSVS doesn't define off_t */
typedef __int64 off_t;
#else
#include <stdint.h>
#endif

to

#if defined(_MSC_VER)
/* MSVS uses _f{seek,tell}i64 */
#define fseeko _fseeki64
#define ftello _ftelli64
/* MSVS doesn't define off_t */
typedef __int64 off_t;
#elif defined(_WIN32)
/* MinGW defines off_t as long, and uses f{seek,tell}o64/off64_t for large
 * files */
#define fseeko fseeko64
#define ftello ftello64
#define off_t off64_t
#else
#include <stdint.h>
#endif

Original comment by fbarch...@google.com on 9 Nov 2013 at 4:18

GoogleCodeExporter commented 9 years ago
Tom, do your upcoming refactor patches deal with this issue?

Frank, can you post your fix in the form of a patch?

Original comment by johannko...@google.com on 11 Nov 2013 at 6:44

GoogleCodeExporter commented 9 years ago
I already have a patchset that deals with this:
https://gerrit.chromium.org/gerrit/#/c/67786/

Original comment by tomfine...@google.com on 11 Nov 2013 at 6:50

GoogleCodeExporter commented 9 years ago

Original comment by tomfine...@google.com on 11 Nov 2013 at 8:00