Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 242870 - ffmpeg broke on x86-solaris
Summary: ffmpeg broke on x86-solaris
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Solaris
: High normal (vote)
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-20 09:43 UTC by Daniel Vergien
Modified: 2008-10-21 09:46 UTC (History)
1 user (show)

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


Attachments
Buildlog (build.log,440.81 KB, text/plain)
2008-10-20 09:44 UTC, Daniel Vergien
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Vergien 2008-10-20 09:43:31 UTC
Tried to emerge media-video/ffmpeg-0.4.9_p20081014 on a clean prefix. It fails with ld complaining about "undefined reference to `nanosleep'"
Comment 1 Daniel Vergien 2008-10-20 09:44:26 UTC
Created attachment 169166 [details]
Buildlog
Comment 2 Fabian Groffen gentoo-dev 2008-10-20 09:47:12 UTC
NAME
     nanosleep - high resolution sleep

SYNOPSIS
     cc [ flag... ] file... -lrt [ library... ]
     #include <time.h>

     int nanosleep(const struct timespec *rqtp,  struct  timespec
     *rmtp);


(missing -lrt in ldflags somehow, probably needs configure fix)

CC-ing diego as he's been having fun with ffmpeg, so maybe he has some valuable input on this here.
Comment 3 Fabian Groffen gentoo-dev 2008-10-20 20:22:29 UTC
I fixed it in the tree.
Comment 4 Fabian Groffen gentoo-dev 2008-10-20 20:28:07 UTC
patch:
http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay/media-video/ffmpeg/files/ffmpeg-0.4.9_p20081014-solaris.patch?rev=32708

<yngwin> you want aballier for ffmpeg

@aballier: do you have contacts/account upstream, they may not like the patch but then they know what to solve ;)
Comment 5 Alexis Ballier gentoo-dev 2008-10-20 20:48:54 UTC
(In reply to comment #4)
> patch:
> http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay/media-video/ffmpeg/files/ffmpeg-0.4.9_p20081014-solaris.patch?rev=32708
> 
> <yngwin> you want aballier for ffmpeg
> 
> @aballier: do you have contacts/account upstream, they may not like the patch
> but then they know what to solve ;)


I think you really want Diego for ffmpeg@solaris; he's been filling a good bunch of fixes for this lately. Anyway if you can mail the patch to ffmpeg-devel@mplayerhq.hu explaining why its needed it'll probably get applied (but expect the due flames if its wrong :p just don't take it personal :) ). I could do this myself too but if there is more discussion/info needed I'm afraid I won't be able to provide it :(
Comment 6 Fabian Groffen gentoo-dev 2008-10-21 09:46:38 UTC
ok :)

I got another patch necessary for x64-solaris.

http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay/media-video/ffmpeg/files/ffmpeg-0.4.9_p20081014-solaris64.patch?rev=32710

(see the comments in the files that Trac doesn't show)