[Slackbuilds-users] dvdauthor fails to build on Slackware64 current

Richard richard at aaazen.com
Tue Jun 9 23:18:59 UTC 2015


When building dvdauthor on Slackware64 current I get the following error

gcc -DHAVE_CONFIG_H -I.  -DSYSCONFDIR="\"/etc\"" -I/usr/include/libxml2
-DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
-I/usr/include/ImageMagick-6  -I/usr/include/freetype2
-I/usr/include/fribidi  -I/usr/include/freetype2 -I/usr/include/libpng16
-I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz
-Wall -O2 -fPIC -MT dvdvml.o -MD -MP -MF .deps/dvdvml.Tpo -c -o dvdvml.o
dvdvml.c
In file included from /usr/include/string.h:634:0,
                 from dvdvml.c:40:
compat.h:147:8: error: expected identifier or '(' before '__extension__'
 char * strndup
        ^
make[2]: *** [dvdvml.o] Error 1
make[2]: Leaving directory `/tmp/SBo/dvdauthor/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/SBo/dvdauthor/src'
make: *** [all-recursive] Error 1

This is a known bug that is fixed in the alpha version of dvdauthor.

https://github.com/ldo/dvdauthor/commit/5b890b47aaf6f692c876faf435e6bf8990e7a45d

It can be fixed here by including the "config.h" file in every c file that
includes the compat.h file.

Here is a "config.patch" to the source that makes it compile cleanly in
Slackware current:

--- dvdvml.c.orig       2012-08-19 21:41:52.000000000 -0700
+++ dvdvml.c    2015-06-09 15:28:51.780584903 -0700
@@ -626,6 +626,7 @@
  * USA
  */

+#include "config.h"
 #include "compat.h" /* needed for bool */
 #include "dvdvm.h"
 #include "dvdvmy.h"
--- dvdvmy.c.orig       2012-08-19 21:41:52.000000000 -0700
+++ dvdvmy.c    2015-06-09 15:29:01.924584741 -0700
@@ -96,6 +96,7 @@
  * USA
  */

+#include "config.h"
 #include "compat.h" /* needed for bool */
 #include "dvdvm.h"


Here is my patch to the dvdauthor.SlackBuild:

--- dvdauthor.SlackBuild.orig   2013-11-25 09:19:36.000000000 -0800
+++ dvdauthor.SlackBuild        2015-06-09 15:31:01.268582829 -0700
@@ -64,7 +64,11 @@
 cd $TMP
 rm -rf $PRGNAM
 tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM
+
+cd $TMP/$PRGNAM/src
+patch -p0 < $CWD/config.patch
+
+cd $TMP/$PRGNAM
 chown -R root:root .
 find -L . \
  \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \


Richard Narron


More information about the SlackBuilds-users mailing list