Public bug reported:

The configure compile test fails for ladspa.h and ladspa support is
missing in mplayer (at least) in 11.04/natty.

Snippet from /tmp/mplayer-1.0~rc4.dfsg1/config.log:
--->8---
============ Checking for LADSPA plugin support ============

#include <ladspa.h>
int main(void) {
const LADSPA_Descriptor *ld = NULL;
return 0;
}

cc /tmp/mplayer-configure--370/tmp.c -Wstrict-prototypes -Wmissing-prototypes 
-Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement 
-std=gnu99 -W -Wall -O2 -march=x86-64 -mtune=generic -pipe -g  -I.  
-D_REENTRANT -I/usr/include/directfb -I/usr/include/     -D_REENTRANT   
-I/usr/include  -I/usr/include/freetype2        -lncurses -lsmbclient -lpng -lz 
-ljpeg -lungif -lasound -ldl -lpthread -lbluray -L/usr/lib -ldvdread -ldvdread 
-lcdda_interface -lcdda_paranoia -L/usr/lib/x86_64-linux-gnu -lfreetype -lz 
-lfontconfig  -lfribidi -lenca -lz -llzo2 -lspeex -ltheora -logg   -ldca  
-ldirectfb  -lXext -lX11 -lpthread -lXv -lXvMC -lXvMCW -lvdpau -lXinerama 
-lXxf86vm -lXxf86dga -laa -L/usr/lib -lcaca -lvga -lSDL -lGL -ldl -lesd   
-laudio -lXt -lpulse   -ljack -lopenal  -o /tmp/mplayer-configure--370/tmp 
/tmp/mplayer-configure--370/tmp.c: In function 'main':
/tmp/mplayer-configure--370/tmp.c:3:31: error: 'NULL' undeclared (first use in 
this function)
---8<---

 Maybe ladspa.h included stdio.h and thus the define for 'NULL' itself formerly.
Fix: Either include stdio.h or use '(void*)0' instead of 'NULL':

--- mplayer-1.0~rc4.dfsg1/configure     2011-08-10 00:00:59.965524197 +0200
+++ mplayer-1.0~rc4.dfsg1/configure     2011-08-10 00:08:39.816198656 +0200
@@ -6964,6 +6964,7 @@
 if test "$_ladspa" = auto ; then
   cat > $TMPC <<EOF
 #include <ladspa.h>
+#include <stdio.h>
 int main(void) {
 const LADSPA_Descriptor *ld = NULL;
 return 0;
--- mplayer-1.0~rc4.dfsg1/configure     2011-08-10 00:00:59.965524197 +0200
+++ mplayer-1.0~rc4.dfsg1/configure     2011-08-10 00:08:18.726167728 +0200
@@ -6965,7 +6965,7 @@
   cat > $TMPC <<EOF
 #include <ladspa.h>
 int main(void) {
-const LADSPA_Descriptor *ld = NULL;
+const LADSPA_Descriptor *ld = (void*)0;
 return 0;
 }
 EOF

** Affects: mplayer (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/823596

Title:
  ladspa support missing in mplayer (configure fails)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mplayer/+bug/823596/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to