You are not logged in.

#1 2014-05-04 16:50:15

0x29a
Member
Registered: 2012-09-28
Posts: 101

zcomp make error

Hello there!
I've been trying to install zcomp from AUR and this happened:

           
#define scandir(a,b,c,d) scandir((a), (b), (c), (int(*)(const dirent **, const dirent **))(d));
                        ^
/usr/include/dirent.h:254:12: error: expected primary-expression before 'const'
 extern int scandir (const char *__restrict __dir,
            ^
/usr/include/dirent.h:254:12: error: expected ')' before 'const'
In file included from /usr/include/features.h:378:0,
                 from /usr/include/stdio.h:27,
                 from /home/x/.pkgbuilds/zcomp-git/src/zcomp/include/core/core.h:31,
                 from /home/x/.pkgbuilds/zcomp-git/src/zcomp/plugins/glib/src/private.h:26,
                 from /home/x/.pkgbuilds/zcomp-git/src/zcomp/plugins/glib/src/glib.cpp:26:
/usr/include/dirent.h:259:6: error: declaration does not declare anything [-fpermissive]
      __nonnull ((1, 2));
      ^
plugins/glib/CMakeFiles/glib.dir/build.make:67: recipe for target 'plugins/glib/CMakeFiles/glib.dir/src/glib.cpp.o' failed
make[2]: *** [plugins/glib/CMakeFiles/glib.dir/src/glib.cpp.o] Error 1
CMakeFiles/Makefile2:2728: recipe for target 'plugins/glib/CMakeFiles/glib.dir/all' failed
make[1]: *** [plugins/glib/CMakeFiles/glib.dir/all] Error 2
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2

I'm not much of a programmer, so I don't want to tinker with anything without proper knowledge... Does anyone know how to fix it?
Thanks!

Last edited by 0x29a (2014-05-04 16:50:53)

Offline

Board footer

Powered by FluxBB