Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 944928 - media-video/mplayer-1.5_p20231206 fails to compile
Summary: media-video/mplayer-1.5_p20231206 fails to compile
Status: RESOLVED DUPLICATE of bug 936138
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-25 12:49 UTC by Oleg Ilinets
Modified: 2024-11-25 13:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info (emerge-info,6.67 KB, text/plain)
2024-11-25 13:00 UTC, Oleg Ilinets
Details
build.log (build.log,45.50 KB, text/x-log)
2024-11-25 13:05 UTC, Oleg Ilinets
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Ilinets 2024-11-25 12:49:30 UTC
A newer version of mplayer fails to compile.

Reproducible: Always

Steps to Reproduce:
emerge -v mplayer
Comment 1 Oleg Ilinets 2024-11-25 12:53:40 UTC
When emerging media-video/mplayer-1.5_p20231206 it outputs the following:

ERROR: media-video/mplayer-1.5_p20231206::gentoo failed (compile phase):
  emake failed
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-25 12:53:58 UTC
Please attach the full build.log and emerge --info.
Comment 3 Oleg Ilinets 2024-11-25 13:00:51 UTC
Created attachment 911882 [details]
emerge-info
Comment 4 Oleg Ilinets 2024-11-25 13:05:58 UTC
Created attachment 911883 [details]
build.log
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-25 13:08:05 UTC
Thanks.

```
D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -march=native -O2 -pipe -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -fpie -DPIC -D_REENTRANT -I/usr/include/ -I/usr/include/dvdcss -I/usr/include/freetype2 -DZLIB_CONST -I/usr/include/dvdcss -c -o libvo/vo_aa.o libvo/vo_aa.c
libvo/vo_aa.c: In function 'draw_frame':
libvo/vo_aa.c:360:17: error: passing argument 2 of 'sws_scale' from incompatible pointer type [-Wincompatible-pointer-types]
  360 |   sws_scale(sws,src,stride,0,src_height,image,image_stride);
      |                 ^~~
      |                 |
      |                 uint8_t ** {aka unsigned char **}
In file included from libvo/vo_aa.c:42:
/usr/include/libswscale/swscale.h:224:58: note: expected 'const uint8_t * const*' {aka 'const unsigned char * const*'} but argument is of type 'uint8_t **' {aka 'unsigned char **'}
  224 | int sws_scale(struct SwsContext *c, const uint8_t *const srcSlice[],
      |                                     ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
libvo/vo_aa.c: In function 'draw_slice':
libvo/vo_aa.c:380:17: error: passing argument 2 of 'sws_scale' from incompatible pointer type [-Wincompatible-pointer-types]
  380 |   sws_scale(sws,src,stride,y,h,image,image_stride);
      |                 ^~~
      |                 |
      |                 uint8_t ** {aka unsigned char **}
/usr/include/libswscale/swscale.h:224:58: note: expected 'const uint8_t * const*' {aka 'const unsigned char * const*'} but argument is of type 'uint8_t **' {aka 'unsigned char **'}
  224 | int sws_scale(struct SwsContext *c, const uint8_t *const srcSlice[],
      |                                     ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
libvo/vo_aa.c: In function 'uninit':
libvo/vo_aa.c:511:9: warning: ignoring return value of 'freopen' declared with attribute 'warn_unused_result' [-Wunused-result]
  511 |         freopen("/dev/tty", "w", stderr);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libvo/vo_aa.c: In function 'preinit':
libvo/vo_aa.c:725:9: warning: ignoring return value of 'freopen' declared with attribute 'warn_unused_result' [-Wunused-result]
  725 |         freopen("/dev/null", "w", stderr);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:730: libvo/vo_aa.o] Error 1
make: *** Waiting for unfinished jobs....
```
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-25 13:08:29 UTC
Dupe of bug 936138, which I will fix shortly. Thank you!

*** This bug has been marked as a duplicate of bug 936138 ***
Comment 7 Larry the Git Cow gentoo-dev 2024-11-25 13:13:35 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbb4d8b568ac707d8df35dbdbfb95c1fd6c311cb

commit dbb4d8b568ac707d8df35dbdbfb95c1fd6c311cb
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-11-25 13:12:03 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-25 13:12:49 +0000

    media-video/mplayer: add 1.5_p20241125
    
    Bug: https://bugs.gentoo.org/922624
    Bug: https://bugs.gentoo.org/944928
    Closes: https://bugs.gentoo.org/936138
    Signed-off-by: Sam James <sam@gentoo.org>

 media-video/mplayer/Manifest                       |   1 +
 .../mplayer/files/mplayer-1.5_p20241125-c99.patch  |  35 ++
 media-video/mplayer/mplayer-1.5_p20241125.ebuild   | 650 +++++++++++++++++++++
 media-video/mplayer/mplayer-9999.ebuild            |  14 +-
 4 files changed, 696 insertions(+), 4 deletions(-)