[MPlayer-users] Compilation error 'conflicting types for 'swab'
Carl Eugen Hoyos
cehoyos at ag.or.at
Mon Apr 18 02:47:00 CEST 2011
turbos10 <turbos11 <at> gmail.com> writes:
> In file included from libmpdemux/aviheader.h:26,
> from libmpdemux/stheader.h:23,
> from command.c:29:
> ./mpbswap.h:35: error: conflicting types for 'swab'
> i:/mingw/include/string.h:115: error: previous declaration of 'swab' was here
> command.c: In function 'run_command':
> command.c:3457: error: implicit declaration of function 'strsep'
> command.c:3457: warning: assignment makes pointer from integer without a cast
> make: *** [command.o] Error 1
Only suspicions:
swab is defined in string.h instead of unistd.h, but MPlayer configure only
checks in unistd.h
http://sourceware.org/ml/newlib/2000/msg00247.html
Does the following line after the 'define_statement_check' line in the
'echocheck "swab()"' section help?
define_statement_check "A A" "string.h" 'int a, b; swab(&a, &b, 0)' && _swab=yes
(And could you add the 'Checking for swab()' section of config.log?)
> MinGW Build Environment with gcc 4.2.5 is from site
> http://oss.netfarm.it/mplayer-win32.php
> Ffmpeg i get from
> http://www.ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
Why? (configure should pick it up automatically for you.)
Carl Eugen
More information about the MPlayer-users
mailing list