[MPlayer-dev-eng] [PATCH] main configure fix for XMMS plugin support

Dan Church dchurch000 at gmail.com
Sun Jul 11 23:38:36 CEST 2010


I came across this patch while trying to configure Mplayer for use on
an x86_64 system to use XMMS input plugins, which reside in
/usr/lib64.

The way configure runs now, it will correctly detect that XMMS is
installed, but it will point the linker at the wrong library for the
system: /usr/lib/libxmms.so.1. On my system and many others this
library does not exist.

This patch causes configure to rely more heavily on `xmms-config' (if
found) to tell it the correct linker flags for linking to libxmms and
the libraries it depends upon.

config.log representing error:

[...]

============ Checking for GUI ============
============ Checking for XShape extension ============

#include <X11/Xlib.h>
#include <X11/Xproto.h>
#include <X11/Xutil.h>
#include <X11/extensions/shape.h>
#include <stdlib.h>
int main(void) {
  char *name = ":0.0";
  Display *wsDisplay;
  int exitvar = 0;
  int eventbase, errorbase;
  if (getenv("DISPLAY"))
    name=getenv("DISPLAY");
  wsDisplay=XOpenDisplay(name);
  if (!XShapeQueryExtension(wsDisplay,&eventbase,&errorbase))
    exitvar=1;
  XCloseDisplay(wsDisplay);
  return exitvar;
}

cc /tmp/mplayer-configure-31323-24726/tmp.c -Wstrict-prototypes
-Wmissing-prototypes -Wundef -Wdisabled-optimization -Wno-pointer-sign
-Wdeclaration-after-statement -std=gnu99 -Wall -Wno-switch
-Wpointer-arith -Wredundant-decls -O4 -march=native -mtune=native
-pipe -ffast-math -fomit-frame-pointer -I.  -D_REENTRANT
-I/usr/X11/include -I/usr/include/     -I/usr/include
-I/usr/include/cdda -I/usr/include/freetype2      -ffast-math
-lncurses -lsmbclient -lpng -lz -lmng -lz -ljpeg -lungif -lasound -ldl
-lpthread -L/usr/lib64 -ldvdread -ldvdread -lcdda_interface
-lcdda_paranoia -lfreetype -lz -lfontconfig  -lfribidi -lz -lbz2
-llzo2 -lmad -lspeex -ltheora -logg   -lmpg123 -la52 -lfaad -lavutil
-lavcodec   -lavformat   -lpostproc -lswscale   -ldv -lxvidcore -lm
/usr/lib/libxmms.so.1 -export-dynamic   -lXext -lX11 -lpthread -lXss
-lXv -lXinerama -lXxf86vm -lXxf86dga -laa -L/usr/lib64 -lcaca -lvga
-lSDL -lGL -ldl -lesd   -ljack -lopenal -lfaac -lx264 -lpthread
-lmp3lame  -ltwolame -lfaac -lx264 -lpthread -lmp3lame -o
/tmp/mplayer-configure-31323-24726/tmp -lXext
cc: /usr/lib/libxmms.so.1: No such file or directory


-- 
   Fourth Law of Programming:
   Anything that can go wrong wi
sendmail: segmentation violated - core dumped
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-svn_configure_xmms.patch
Type: application/octet-stream
Size: 827 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100711/cf74af40/attachment.obj>


More information about the MPlayer-dev-eng mailing list