error compiling mplayer

Raimund Steger rs at mytum.de
Sun Jul 22 11:45:06 UTC 2012


Hi,

David Banning wrote:
> getting this error on compile of mplayer;
>
> /usr/local/lib/libgdk-x11-2.0.so: undefined reference to `XRRGetScreenResourcesCurrent'
> /usr/local/lib/libgdk-x11-2.0.so: undefined reference to `XRRGetOutputPrimary'
> collect2: ld returned 1 exit status
> gmake: *** [mplayer] Error 1
> *** Error code 1
>
> Stop in /usr/ports/multimedia/mplayer.
> *** Error code 1
>
> I wonder if anyone could direct me as to how I could collect more information
> to resolve this.
>
> FreeBSD version is 8.2

That doesn't look like a problem with mplayer per se, rather with your 
GTK or XRANDR install.

What do the following commands return:

nm -D /usr/local/lib/libgdk-x11-2.0.so|grep XRRGetOutputPrimary
nm -D /usr/local/lib/libXrandr.so|grep XRRGetOutputPrimary

Additionally, a somewhat larger snippet of your compilation output would 
be helpful, where at least the linker invocation that triggered that 
error occurs.

I'm running 8.2 here as well and can compile mplayer (from SVN, rev. 
35044) with GTK GUI just fine.

(Is this by any chance related to 
http://thread.gmane.org/gmane.os.freebsd.questions/288260 ?)

Raimund





More information about the freebsd-questions mailing list