Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 188615

Summary: media-video/mplayer-1.0.20070622-r3 dpms config check fails with as-needed
Product: Gentoo Linux Reporter: Samuli Suominen (RETIRED) <ssuominen>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED FIXED    
Severity: normal CC: chrisyu_hm, patrizio.bassi
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 129413    

Description Samuli Suominen (RETIRED) gentoo-dev 2007-08-12 17:37:43 UTC
DPMS check fails with -Wl,--as-needed during mplayer-1.0.20070622-r3 configure test and DPMS support doesn't get included in the build.

Failing check,

#include <X11/Xlib.h>
#include <X11/extensions/dpms.h>
int main(void) {
  (void) DPMSQueryExtension(0, 0, 0);
}
 
i686-pc-linux-gnu-gcc -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=athlon-xp -mtune=athlon-xp -pipe -ffast-math -fomit-frame-pointer  -I/usr/X11R6/include   -Wl,-O1,--as-needed   -lncurses   -lXext -lX11 -lpthread  -o /var/tmp/portage/media-video/mplayer-1.0.20070622-r3/temp/mplayer-conf-18542-22077.o /var/tmp/portage/media-video/mplayer-1.0.20070622-r3/temp/mplayer-conf-19707-22077.c
/var/tmp/portage/media-video/mplayer-1.0.20070622-r3/temp/mplayer-conf-19707-22077.c: In function 'main':
/var/tmp/portage/media-video/mplayer-1.0.20070622-r3/temp/mplayer-conf-19707-22077.c:5: warning: control reaches end of non-void function
/var/tmp/portage/media-video/mplayer-1.0.20070622-r3/temp/ccsmjZna.o: In function `main':
mplayer-conf-19707-22077.c:(.text+0x26): undefined reference to `DPMSQueryExtension'
collect2: ld returned 1 exit status
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2007-08-12 18:03:33 UTC
fixed it myself, files/mplayer-dpms.patch
Comment 2 Steve Dibb (RETIRED) gentoo-dev 2007-08-15 03:59:23 UTC
*** Bug 174012 has been marked as a duplicate of this bug. ***