Skip to content

Error compiling ffmpegdirect #334

@Darkbcn

Description

@Darkbcn

Hi,

I'm trying to compile ffmpegdirect on arch linux Endevour flavour.

i proceed to execute all commands for linux, but step 5, the make. fails,

.config.status: executing libtool commands
[ 75%] Performing build step for 'iconv'
libtool: compile: gcc -I. -I. -I.. -I./.. -I../include -g -O2 -fvisibility=hidden -DBUILDING_LIBCHARSET -DHAVE_CONFIG_H -c ./localcharset.c -fPIC -DPIC -o localcharset.o
libtool: compile: gcc -I. -I. -I.. -I./.. -I../include -g -O2 -fvisibility=hidden -DBUILDING_LIBCHARSET -DHAVE_CONFIG_H -c ./relocatable-stub.c -fPIC -DPIC -o relocatable-stub.o
libtool: link: ar cr .libs/libcharset.a localcharset.o relocatable-stub.o
libtool: link: ranlib .libs/libcharset.a
libtool: link: ( cd ".libs" && rm -f "libcharset.la" && ln -s "../libcharset.la" "libcharset.la" )
libtool: install: /usr/bin/install -c .libs/libcharset.lai /home/dark/inputstream.ffmpegdirect/build/build/iconv/src/iconv/lib/libcharset.la
libtool: install: /usr/bin/install -c .libs/libcharset.a /home/dark/inputstream.ffmpegdirect/build/build/iconv/src/iconv/lib/libcharset.a
libtool: install: chmod 644 /home/dark/inputstream.ffmpegdirect/build/build/iconv/src/iconv/lib/libcharset.a
libtool: install: ranlib /home/dark/inputstream.ffmpegdirect/build/build/iconv/src/iconv/lib/libcharset.a
libtool: warning: remember to run 'libtool --finish /home/dark/inputstream.ffmpegdirect/build/build/depends/lib'
libtool: compile: gcc -I. -I. -I../include -I./../include -I.. -I./.. -g -O2 -fvisibility=hidden -DLIBDIR="/home/dark/inputstream.ffmpegdirect/build/build/depends/lib" -DBUILDING_LIBICONV -DBUILDING_LIBCHARSET -DBUILDING_DLL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR="/home/dark/inputstream.ffmpegdirect/build/build/depends/lib" -DNO_XMALLOC -Dset_relocation_prefix=libiconv_set_relocation_prefix -Drelocate=libiconv_relocate -Drelocate2=libiconv_relocate2 -DHAVE_CONFIG_H -c ./iconv.c -fPIC -DPIC -o iconv.o
In file included from ./loops.h:23,
from ./iconv.c:148:
./loop_wchar.h:39:17: error: conflicting types for 'mbrtowc'; have 'size_t(void)' {aka 'long unsigned int(void)'}
39 | extern size_t mbrtowc ();
| ^~~~~~~
In file included from ../include/iconv.h:118,
from ./iconv.c:20:
/usr/include/wchar.h:321:15: note: previous declaration of 'mbrtowc' with type 'size_t(wchar_t * restrict, const char * restrict, size_t, mbstate_t * restrict)' {aka 'long unsigned int(int * restrict, const char * restrict, long unsigned int, mbstate_t * restrict)'}
321 | extern size_t mbrtowc (wchar_t *__restrict __pwc,
| ^~~~~~~
./loop_wchar.h: In function 'wchar_to_loop_convert':
./loop_wchar.h:356:15: error: too many arguments to function 'mbrtowc'; expected 0, have 4
356 | res = mbrtowc(&wc,buf,bufcount,&state);
| ^~~~~~~ ~~~
./loop_wchar.h:39:17: note: declared here
39 | extern size_t mbrtowc ();
| ^~~~~~~
make[7]: *** [Makefile:87: iconv.lo] Error 1
make[6]: *** [Makefile:33: all] Error 2
make[5]: *** [CMakeFiles/iconv.dir/build.make:86: iconv-prefix/src/iconv-stamp/iconv-build] Error 2
make[4]: *** [CMakeFiles/Makefile2:87: CMakeFiles/iconv.dir/all] Error 2
make[3]: *** [Makefile:136: all] Error 2
make[2]: *** [CMakeFiles/iconv.dir/build.make:86: build/iconv/src/iconv-stamp/iconv-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:411: CMakeFiles/iconv.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions