[MPlayer-users] SVN compiling problem - resolved!

JonY 10walls at gmail.com
Wed Sep 5 16:59:51 CEST 2007


Alexander Bokovikov wrote:
> John Brown wrote:
> 
>> bash -x ./version.sh `gcc -dumpversion`
>> and you should get a better idea about what it is trying to do. On my
>> system, I get the following output:
>>
>> $ bash -x ./version.sh
>> + test ''
>> ++ LC_ALL=C
>> ++ svn info
>> ++ grep Revision
>> ++ cut '-d ' -f2
>> + svn_revision=24064
>> + test 24064
>> + test 24064
>> + test 24064
>> + NEW_REVISION='#define VERSION "dev-SVN-r24064"'
>> ++ cat version.h
>> + OLD_REVISION='#define VERSION "dev-SVN-r24064-4.2.1-sjlj"
>> #define MP_TITLE "MPlayer dev-SVN-r24064-4.2.1-sjlj (C) 2000-2007 MPlayer
>> Team"'
>>
>> + TITLE='#define MP_TITLE "MPlayer dev-SVN-r24064 (C) 2000-2007 MPlayer
>> Team"'
>> + test '#define VERSION "dev-SVN-r24064"' '!=' '#define VERSION
>> "dev-SVN-r24064-
>> 4.2.1-sjlj"
>> #define MP_TITLE "MPlayer dev-SVN-r24064-4.2.1-sjlj (C) 2000-2007 MPlayer
>> Team"'
>>
>> + echo '#define VERSION "dev-SVN-r24064"'
>> + echo '#define MP_TITLE "MPlayer dev-SVN-r24064 (C) 2000-2007 MPlayer
>> Team"'
> 
> I've got this:
> 
> $ bash -x ./version.sh `gcc -dumpversion`
> + test 3.2.3
> + extra=-3.2.3
> ++ LC_ALL=C
> ++ svn info
> ++ grep Revision
> ++ cut '-d ' -f2
> + svn_revision=
> + test
> ++ cd 3.2.3
> ./version.sh: line 6: cd: 3.2.3: No such file or directory
> + svn_revision=
> + test
> ++ cd 3.2.3
> ./version.sh: line 7: cd: 3.2.3: No such file or directory
> + svn_revision=
> + test
> + svn_revision=UNKNOWN
> + NEW_REVISION='#define VERSION "dev-SVN-rUNKNOWN-3.2.3"'
> ++ cat version.h
> + OLD_REVISION='#define VERSION "dev-SVN-rUNKNOWN-3.2.3"
> #define MP_TITLE "MPlayer dev-SVN-rUNKNOWN-3.2.3 (C) 2000-2007 MPlayer 
> Team"'
> + TITLE='#define MP_TITLE "MPlayer dev-SVN-rUNKNOWN-3.2.3 (C) 2000-2007 
> MPlayer Team"'
> + test '#define VERSION "dev-SVN-rUNKNOWN-3.2.3"' '!=' '#define VERSION 
> "dev-SVN-rUNKNOWN-3.2.3"
> #define MP_TITLE "MPlayer dev-SVN-rUNKNOWN-3.2.3 (C) 2000-2007 MPlayer 
> Team"'
> + echo '#define VERSION "dev-SVN-rUNKNOWN-3.2.3"'
> + echo '#define MP_TITLE "MPlayer dev-SVN-rUNKNOWN-3.2.3 (C) 2000-2007 
> MPlayer Team"'
> 
> Assuming that "3.2.3" is my gcc version, I can suppose that something is 
> wrong in gcc version. What version is correct now?
> 
>> I removed "typedef unsigned long int ogg_uint64_t;" from lib/dsp.h to
>> make it compile with ogg. Did you do the same?
> 
> I've done it and now it goes upto the end, but some errors appear:
> 
> dump_video.o:dump_video.c:(.text+0xb45): undefined reference to 
> `gettimeofday'
> dump_video.o:dump_video.c:(.text+0xb63): undefined reference to 
> `gettimeofday'
> dump_video.o:dump_video.c:(.text+0xb6d): undefined reference to 
> `gettimeofday'
> 
> What could be the reason?
> 
> Thanks.
> 
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
> 

Hi,

You can try updating your mingw install with the latest win32api and 
mingw-runtime.

Go to http://sourceforge.net/project/showfiles.php?group_id=2435 and 
download the following files.
w32api-3.10.tar.gz
mingw-runtime-3.12.tar.gz

Unpack them to C:\mingw.
You should probably update gcc to 3.4.2.

The new mingw runtime has gettimeofday.
Hope that helps.



More information about the MPlayer-users mailing list