Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Git Version | Version Git Error compilation (bzr and git)
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Git Version | Version Git

Subjects Author Language Messages Last message
[Resolved] Error compilation (bzr and git)
ppmt English 13 matttbe [Read]
06 January 2015 à 16:09

ppmt, Wednesday 31 December 2014 à 22:31 | Quote


Subscription date : 29 November 2007
Messages : 3522
hello guys! and Happy new year

I tried to update the dock using the bzr script and got an error. Looking at the forum I saw there is now a git script following the git move so I decided to try that one instead.

I get the same error. it is complaining of some permission but I gave my sudo password when asked.

Verification of the installation

Some errors have been detected during the installation
cc1: fatal error: /usr/include/cairo-dock/gldit/stdc-predef.h: Permission denied
cc1: fatal error: /usr/include/cairo-dock/gldit/stdc-predef.h: Permission denied
cc1: fatal error: /usr/include/cairo-dock/gldit/stdc-predef.h: Permission denied
cc1: fatal error: /usr/include/cairo-dock/gldit/stdc-predef.h: Permission denied
cc1: fatal error: /usr/include/cairo-dock/gldit/stdc-predef.h: Permission denied
make[2]: *** [gvfs-integration/CMakeFiles/gvfs-integration.dir/cairo-dock-gio-vfs.c.o] Error 1
make[1]: *** [gvfs-integration/CMakeFiles/gvfs-integration.dir/all] Error 2
make[2]: *** [Cairo-Penguin/src/CMakeFiles/cd-Cairo-Penguin.dir/applet-init.c.o] Error 1
make[1]: *** [Cairo-Penguin/src/CMakeFiles/cd-Cairo-Penguin.dir/all] Error 2
make[2]: *** [Clipper/src/CMakeFiles/cd-Clipper.dir/applet-init.c.o] Error 1
make[2]: *** [Animated-icons/src/CMakeFiles/cd-Animated-icons.dir/applet-init.c.o] Error 1
[ 2%] make[1]: *** [Animated-icons/src/CMakeFiles/cd-Animated-icons.dir/all] Error 2
make[2]: *** [Composite-Manager/src/CMakeFiles/cd-Composite-Manager.dir/applet-init.c.o] Error 1
cc1: fatal error: /usr/include/cairo-dock/gldit/stdc-predef.h: Permission denied
cc1: fatal error: /usr/include/cairo-dock/gldit/stdc-predef.h: Permission denied
cc1: fatal error: /usr/include/cairo-dock/gldit/stdc-predef.h: Permission denied
cc1: fatal error: /usr/include/cairo-dock/gldit/stdc-predef.h: Permission denied
cc1: fatal error: /usr/include/cairo-dock/gldit/stdc-predef.h: Permission denied
cc1: fatal error: /usr/include/cairo-dock/gldit/stdc-predef.h: Permission denied
cc1: fatal error: /usr/include/cairo-dock/gldit/stdc-predef.h: Permission denied
cc1: fatal error: /usr/include/cairo-dock/gldit/stdc-predef.h: Permission denied
make[2]: *** [clock/src/CMakeFiles/cd-clock.dir/applet-init.c.o] Error 1
make[2]: *** [Indicator-applet/CMakeFiles/indicator-applet.dir/indicator-applet.c.o] Error 1
make[1]: *** [Indicator-applet/CMakeFiles/indicator-applet.dir/all] Error 2
make[2]: *** [Clipper/src/CMakeFiles/cd-Clipper.dir/applet-config.c.o] Error 1
make[1]: *** [Clipper/src/CMakeFiles/cd-Clipper.dir/all] Error 2
make[2]: *** [Composite-Manager/src/CMakeFiles/cd-Composite-Manager.dir/applet-config.c.o] Error 1
make[2]: *** [Indicator-applet3/CMakeFiles/indicator-applet3.dir/indicator-applet3.c.o] Error 1
make[1]: *** [Composite-Manager/src/CMakeFiles/cd-Composite-Manager.dir/all] Error 2
make[2]: *** [clock/src/CMakeFiles/cd-clock.dir/applet-config.c.o] Error 1
make[2]: *** [clock/src/CMakeFiles/cd-clock.dir/applet-notifications.c.o] Error 1
make[1]: *** [clock/src/CMakeFiles/cd-clock.dir/all] Error 2
make[2]: *** [Indicator-applet3/CMakeFiles/indicator-applet3.dir/indicator-applet3-utils.c.o] Error 1
make[1]: *** [Indicator-applet3/CMakeFiles/indicator-applet3.dir/all] Error 2
make: *** [all] Error 2
cc1: fatal error: /usr/include/cairo-dock/gldit/stdc-predef.h: Permission denied
cc1: fatal error: /usr/include/cairo-dock/gldit/stdc-predef.h: Permission denied
cc1: fatal error: /usr/include/cairo-dock/gldit/stdc-predef.h: Permission denied
cc1: fatal error: /usr/include/cairo-dock/gldit/stdc-predef.h: Permission denied
make[2]: *** [src/CMakeFiles/cairo-desklet.dir/cairo-desklet-gui-simple.c.o] Error 1
make[2]: *** [src/CMakeFiles/cairo-desklet.dir/cairo-desklet-menu.c.o] Error 1
make[2]: *** [src/CMakeFiles/cairo-desklet.dir/cairo-desklet.c.o] Error 1
make[2]: *** [src/CMakeFiles/cairo-desklet.dir/cairo-desklet-user-interaction.c.o] Error 1
make[1]: *** [src/CMakeFiles/cairo-desklet.dir/all] Error 2
make: *** [all] Error 2
Please keep a copy of the file 'log.txt' and report the bug on our forum (http://www.glx-dock.org) on the section "Version GIT". Thank you!

Cairo-Dock Core: dec6bab cairo-dock.c: help: remove extra 'whatever'
Cairo-Dock Plug-ins: 2326408 DBus: Vala: added soversion
Cairo-Dock Plug-ins Extras: 7bd601f Pidgin: unseen-cound: added workaround
Cairo-Desklet: 38f73f8 Used gitignore, not bzrignore

matttbe, Thursday 01 January 2015 à 17:34 | Quote


Subscription date : 24 January 2009
Messages : 12628
Hello,

Happy new year

Strange... stdc-predef.h should be installed in /usr/include. Here, it seems gcc is only looking in /usr/include/cairo-dock/gldit/.
Did you change/add environment variables?
echo $C_INCLUDE_PATH
Can you restart the installation from a new terminal?
Does this file exists? /usr/include/stdc-predef.h?

ppmt, Thursday 01 January 2015 à 18:07 | Quote


Subscription date : 29 November 2007
Messages : 3522
Nothing defined! Should it be defined?

I just only recently updated to 14.10...could be that it messed something.

ppmt@namaste:~$ echo $C_INCLUDE_PATH

ppmt@namaste:~$


the file is here
ppmt@namaste:~$ ls /usr/include/stdc-predef.h
/usr/include/stdc-predef.h
ppmt@namaste:~$


I did the reinstall after a reboot of the laptop and the result is the same.

matttbe, Thursday 01 January 2015 à 20:38 | Quote


Subscription date : 24 January 2009
Messages : 12628
No, it shouldn't be defined.

This is strange, I don't have this problem (so I guess it's not due to CMake files)...

What's the output messages produced by these commands?
echo $CPATH
cpp -v


Is it better if you define it?
export C_INCLUDE_PATH=/usr/include
./cairo-dock_git.sh # option 2 to reinstall

ppmt, Thursday 01 January 2015 à 21:56 | Quote


Subscription date : 29 November 2007
Messages : 3522
ppmt@namaste:~/eclipse/PlayWithTab$ echo $CPATH


ppmt@namaste:~/eclipse/PlayWithTab$ cpp -v
Using built-in specs.
COLLECT_GCC=cpp
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.9.1-16ubuntu6' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.9.1 (Ubuntu 4.9.1-16ubuntu6)
COLLECT_GCC_OPTIONS='-E' '-v' '-mtune=generic' '-march=x86-64'
/usr/lib/gcc/x86_64-linux-gnu/4.9/cc1 -E -quiet -v -imultiarch x86_64-linux-gnu - -mtune=generic -march=x86-64 -fstack-protector-strong -Wformat -Wformat-security
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../x86_64-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/x86_64-linux-gnu/4.9/include
/usr/local/include
/usr/lib/gcc/x86_64-linux-gnu/4.9/include-fixed
/usr/include/x86_64-linux-gnu
/usr/include
End of search list.


note : I had to CTRL_C the cpp -v command.

I tried with your method to export the path but the problem is the same.

matttbe, Friday 02 January 2015 à 16:13 | Quote


Subscription date : 24 January 2009
Messages : 12628
I don't know what's wrong

Maybe:
cd cairo-dock-plug-ins/build
make NATIVE_SYSTEM_HEADER_DIR=/usr/include -j 4
make C_INCLUDE_PATH=/usr/include -j4


If you still have this bug:
cd cairo-dock-plug-ins/build
make VERBOSE=1

ppmt, Friday 02 January 2015 à 18:03 | Quote


Subscription date : 29 November 2007
Messages : 3522
that is really strange!

ppmt@namaste:~/cairo-dock_git/cairo-dock-plug-ins/build$ make NATIVE_SYSTEM_HEADER_DIR=/usr/include -j 4
[ 0%] [ 0%] Building C object Animated-icons/src/CMakeFiles/cd-Animated-icons.dir/applet-init.c.o
Building C object gvfs-integration/CMakeFiles/gvfs-integration.dir/cairo-dock-gio-vfs.c.o
[ 0%] [ 0%] Building C object Indicator-applet/CMakeFiles/indicator-applet.dir/indicator-applet.c.o
cc1: fatal error: /usr/include/cairo-dock/gldit/stdc-predef.h: Permission denied
compilation terminated.
cc1: fatal error: /usr/include/cairo-dock/gldit/stdc-predef.h: Permission denied
compilation terminated.
Building C object Indicator-applet3/CMakeFiles/indicator-applet3.dir/indicator-applet3.c.o
cc1: fatal error: /usr/include/cairo-dock/gldit/stdc-predef.h: Permission denied
compilation terminated.
cc1: fatal error: /usr/include/cairo-dock/gldit/stdc-predef.h: Permission denied
compilation terminated.
Animated-icons/src/CMakeFiles/cd-Animated-icons.dir/build.make:54: recipe for target 'Animated-icons/src/CMakeFiles/cd-Animated-icons.dir/applet-init.c.o' failed
make[2]: *** [Animated-icons/src/CMakeFiles/cd-Animated-icons.dir/applet-init.c.o] Error 1
CMakeFiles/Makefile2:497: recipe for target 'Animated-icons/src/CMakeFiles/cd-Animated-icons.dir/all' failed
make[1]: *** [Animated-icons/src/CMakeFiles/cd-Animated-icons.dir/all] Error 2
gvfs-integration/CMakeFiles/gvfs-integration.dir/build.make:54: recipe for target 'gvfs-integration/CMakeFiles/gvfs-integration.dir/cairo-dock-gio-vfs.c.o' failed
make[1]: *** Waiting for unfinished jobs....
make[2]: *** [gvfs-integration/CMakeFiles/gvfs-integration.dir/cairo-dock-gio-vfs.c.o] Error 1
CMakeFiles/Makefile2:216: recipe for target 'gvfs-integration/CMakeFiles/gvfs-integration.dir/all' failed
make[1]: *** [gvfs-integration/CMakeFiles/gvfs-integration.dir/all] Error 2
Indicator-applet/CMakeFiles/indicator-applet.dir/build.make:54: recipe for target 'Indicator-applet/CMakeFiles/indicator-applet.dir/indicator-applet.c.o' failed
make[2]: *** [Indicator-applet/CMakeFiles/indicator-applet.dir/indicator-applet.c.o] Error 1
Indicator-applet3/CMakeFiles/indicator-applet3.dir/build.make:54: recipe for target 'Indicator-applet3/CMakeFiles/indicator-applet3.dir/indicator-applet3.c.o' failed
make[2]: *** [Indicator-applet3/CMakeFiles/indicator-applet3.dir/indicator-applet3.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:316: recipe for target 'Indicator-applet/CMakeFiles/indicator-applet.dir/all' failed
make[1]: *** [Indicator-applet/CMakeFiles/indicator-applet.dir/all] Error 2
[ 1%] Building C object Indicator-applet3/CMakeFiles/indicator-applet3.dir/indicator-applet3-utils.c.o
cc1: fatal error: /usr/include/cairo-dock/gldit/stdc-predef.h: Permission denied
compilation terminated.
Indicator-applet3/CMakeFiles/indicator-applet3.dir/build.make:77: recipe for target 'Indicator-applet3/CMakeFiles/indicator-applet3.dir/indicator-applet3-utils.c.o' failed
make[2]: *** [Indicator-applet3/CMakeFiles/indicator-applet3.dir/indicator-applet3-utils.c.o] Error 1
CMakeFiles/Makefile2:266: recipe for target 'Indicator-applet3/CMakeFiles/indicator-applet3.dir/all' failed
make[1]: *** [Indicator-applet3/CMakeFiles/indicator-applet3.dir/all] Error 2
Makefile:133: recipe for target 'all' failed
make: *** [all] Error 2


ppmt@namaste:~/cairo-dock_git/cairo-dock-plug-ins/build$ make C_INCLUDE_PATH=/usr/include -j4
[ 0%] [ 0%] Building C object gvfs-integration/CMakeFiles/gvfs-integration.dir/cairo-dock-gio-vfs.c.o
Building C object Animated-icons/src/CMakeFiles/cd-Animated-icons.dir/applet-init.c.o
[ 0%] cc1: fatal error: /usr/include/cairo-dock/gldit/stdc-predef.h: Permission denied
compilation terminated.
cc1: fatal error: /usr/include/cairo-dock/gldit/stdc-predef.h: Permission denied
compilation terminated.
Building C object Indicator-applet/CMakeFiles/indicator-applet.dir/indicator-applet.c.o
[ 0%] Building C object Indicator-applet3/CMakeFiles/indicator-applet3.dir/indicator-applet3.c.o
cc1: fatal error: /usr/include/cairo-dock/gldit/stdc-predef.h: Permission denied
compilation terminated.
cc1: fatal error: /usr/include/cairo-dock/gldit/stdc-predef.h: Permission denied
compilation terminated.
Animated-icons/src/CMakeFiles/cd-Animated-icons.dir/build.make:54: recipe for target 'Animated-icons/src/CMakeFiles/cd-Animated-icons.dir/applet-init.c.o' failed
make[2]: *** [Animated-icons/src/CMakeFiles/cd-Animated-icons.dir/applet-init.c.o] Error 1
CMakeFiles/Makefile2:497: recipe for target 'Animated-icons/src/CMakeFiles/cd-Animated-icons.dir/all' failed
make[1]: *** [Animated-icons/src/CMakeFiles/cd-Animated-icons.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
gvfs-integration/CMakeFiles/gvfs-integration.dir/build.make:54: recipe for target 'gvfs-integration/CMakeFiles/gvfs-integration.dir/cairo-dock-gio-vfs.c.o' failed
make[2]: *** [gvfs-integration/CMakeFiles/gvfs-integration.dir/cairo-dock-gio-vfs.c.o] Error 1
CMakeFiles/Makefile2:216: recipe for target 'gvfs-integration/CMakeFiles/gvfs-integration.dir/all' failed
make[1]: *** [gvfs-integration/CMakeFiles/gvfs-integration.dir/all] Error 2
[ 1%] Building C object Indicator-applet3/CMakeFiles/indicator-applet3.dir/indicator-applet3-utils.c.o
Indicator-applet/CMakeFiles/indicator-applet.dir/build.make:54: recipe for target 'Indicator-applet/CMakeFiles/indicator-applet.dir/indicator-applet.c.o' failed
make[2]: *** [Indicator-applet/CMakeFiles/indicator-applet.dir/indicator-applet.c.o] Error 1
CMakeFiles/Makefile2:316: recipe for target 'Indicator-applet/CMakeFiles/indicator-applet.dir/all' failed
make[1]: *** [Indicator-applet/CMakeFiles/indicator-applet.dir/all] Error 2
Indicator-applet3/CMakeFiles/indicator-applet3.dir/build.make:54: recipe for target 'Indicator-applet3/CMakeFiles/indicator-applet3.dir/indicator-applet3.c.o' failed
make[2]: *** [Indicator-applet3/CMakeFiles/indicator-applet3.dir/indicator-applet3.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1: fatal error: /usr/include/cairo-dock/gldit/stdc-predef.h: Permission denied
compilation terminated.
Indicator-applet3/CMakeFiles/indicator-applet3.dir/build.make:77: recipe for target 'Indicator-applet3/CMakeFiles/indicator-applet3.dir/indicator-applet3-utils.c.o' failed
make[2]: *** [Indicator-applet3/CMakeFiles/indicator-applet3.dir/indicator-applet3-utils.c.o] Error 1
CMakeFiles/Makefile2:266: recipe for target 'Indicator-applet3/CMakeFiles/indicator-applet3.dir/all' failed
make[1]: *** [Indicator-applet3/CMakeFiles/indicator-applet3.dir/all] Error 2
Makefile:133: recipe for target 'all' failed
make: *** [all] Error 2


and

ppmt@namaste:~/cairo-dock_git/cairo-dock-plug-ins/build$ make VERBOSE=1
/usr/bin/cmake -H/home/ppmt/cairo-dock_git/cairo-dock-plug-ins -B/home/ppmt/cairo-dock_git/cairo-dock-plug-ins/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/ppmt/cairo-dock_git/cairo-dock-plug-ins/build/CMakeFiles /home/ppmt/cairo-dock_git/cairo-dock-plug-ins/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/ppmt/cairo-dock_git/cairo-dock-plug-ins/build'
make -f gvfs-integration/CMakeFiles/gvfs-integration.dir/build.make gvfs-integration/CMakeFiles/gvfs-integration.dir/depend
make[2]: Entering directory '/home/ppmt/cairo-dock_git/cairo-dock-plug-ins/build'
cd /home/ppmt/cairo-dock_git/cairo-dock-plug-ins/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/ppmt/cairo-dock_git/cairo-dock-plug-ins /home/ppmt/cairo-dock_git/cairo-dock-plug-ins/gvfs-integration /home/ppmt/cairo-dock_git/cairo-dock-plug-ins/build /home/ppmt/cairo-dock_git/cairo-dock-plug-ins/build/gvfs-integration /home/ppmt/cairo-dock_git/cairo-dock-plug-ins/build/gvfs-integration/CMakeFiles/gvfs-integration.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/ppmt/cairo-dock_git/cairo-dock-plug-ins/build'
make -f gvfs-integration/CMakeFiles/gvfs-integration.dir/build.make gvfs-integration/CMakeFiles/gvfs-integration.dir/build
make[2]: Entering directory '/home/ppmt/cairo-dock_git/cairo-dock-plug-ins/build'
/usr/bin/cmake -E cmake_progress_report /home/ppmt/cairo-dock_git/cairo-dock-plug-ins/build/CMakeFiles
[ 0%] Building C object gvfs-integration/CMakeFiles/gvfs-integration.dir/cairo-dock-gio-vfs.c.o
cd /home/ppmt/cairo-dock_git/cairo-dock-plug-ins/build/gvfs-integration && /usr/bin/cc -DCAIRO_DOCK_FORCE_ICON_IN_MENUS=1 -DGL_GLEXT_PROTOTYPES=\"1\" -DHAVE_LIBGIO=\"1\" -DMY_APPLET_GETTEXT_DOMAIN=\"cairo-dock-plugins\" -g -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/mirclient -I/usr/include/mircommon -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libdrm -I/usr/include/cairo-dock -I/usr/include/cairo-dock/gldit -I/usr/include/cairo-dock/implementations -std=c99 -Wall -Werror-implicit-function-declaration -fPIC -o CMakeFiles/gvfs-integration.dir/cairo-dock-gio-vfs.c.o -c /home/ppmt/cairo-dock_git/cairo-dock-plug-ins/gvfs-integration/cairo-dock-gio-vfs.c
cc1: fatal error: /usr/include/cairo-dock/gldit/stdc-predef.h: Permission denied
compilation terminated.
gvfs-integration/CMakeFiles/gvfs-integration.dir/build.make:54: recipe for target 'gvfs-integration/CMakeFiles/gvfs-integration.dir/cairo-dock-gio-vfs.c.o' failed
make[2]: *** [gvfs-integration/CMakeFiles/gvfs-integration.dir/cairo-dock-gio-vfs.c.o] Error 1
make[2]: Leaving directory '/home/ppmt/cairo-dock_git/cairo-dock-plug-ins/build'
CMakeFiles/Makefile2:216: recipe for target 'gvfs-integration/CMakeFiles/gvfs-integration.dir/all' failed
make[1]: *** [gvfs-integration/CMakeFiles/gvfs-integration.dir/all] Error 2
make[1]: Leaving directory '/home/ppmt/cairo-dock_git/cairo-dock-plug-ins/build'
Makefile:133: recipe for target 'all' failed
make: *** [all] Error 2

matttbe, Sunday 04 January 2015 à 19:30 | Quote


Subscription date : 24 January 2009
Messages : 12628
Yes, strange...

And why does it check in this directory?
ls /usr/include/cairo-dock/gldit

ppmt, Sunday 04 January 2015 à 21:39 | Quote


Subscription date : 29 November 2007
Messages : 3522
The only place I can find that stdc-predef.h is in /usr/include/

so not sure why it looks for it in the cairo-dock include

I cleared up everthing and still a get an error (a bit different!)
Verification of the installation

Some errors have been detected during the installation
cc1: error: /usr/include/cairo-dock/gldit: Permission denied
cc1: error: /usr/include/cairo-dock/implementations: Permission denied
make[2]: *** [Cairo-Penguin/src/CMakeFiles/cd-Cairo-Penguin.dir/applet-init.c.o] Error 1
make[1]: *** [Cairo-Penguin/src/CMakeFiles/cd-Cairo-Penguin.dir/all] Error 2
cc1: error: /usr/include/cairo-dock/gldit: Permission denied
cc1: error: /usr/include/cairo-dock/implementations: Permission denied
make[2]: *** [Clipper/src/CMakeFiles/cd-Clipper.dir/applet-init.c.o] Error 1
cc1: error: /usr/include/cairo-dock/gldit: Permission denied
cc1: error: /usr/include/cairo-dock/implementations: Permission denied
make[2]: *** [Animated-icons/src/CMakeFiles/cd-Animated-icons.dir/applet-init.c.o] Error 1
make[1]: *** [Animated-icons/src/CMakeFiles/cd-Animated-icons.dir/all] Error 2
[ 1%] cc1: error: /usr/include/cairo-dock/gldit: Permission denied
cc1: error: /usr/include/cairo-dock/implementations: Permission denied
make[2]: *** [Composite-Manager/src/CMakeFiles/cd-Composite-Manager.dir/applet-init.c.o] Error 1
cc1: error: /usr/include/cairo-dock/gldit: Permission denied
cc1: error: /usr/include/cairo-dock/implementations: Permission denied
make[2]: *** [clock/src/CMakeFiles/cd-clock.dir/applet-init.c.o] Error 1
cc1: error: /usr/include/cairo-dock/gldit: Permission denied
cc1: error: /usr/include/cairo-dock/implementations: Permission denied
make[2]: *** [Clipper/src/CMakeFiles/cd-Clipper.dir/applet-config.c.o] Error 1
make[1]: *** [Clipper/src/CMakeFiles/cd-Clipper.dir/all] Error 2
cc1: error: /usr/include/cairo-dock/gldit: Permission denied
cc1: error: /usr/include/cairo-dock/implementations: Permission denied
cc1: error: /usr/include/cairo-dock/gldit: Permission denied
cc1: error: /usr/include/cairo-dock/implementations: Permission denied
make[2]: *** [clock/src/CMakeFiles/cd-clock.dir/applet-notifications.c.o] Error 1
make[2]: *** [clock/src/CMakeFiles/cd-clock.dir/applet-config.c.o] Error 1
make[1]: *** [clock/src/CMakeFiles/cd-clock.dir/all] Error 2
cc1: error: /usr/include/cairo-dock/gldit: Permission denied
cc1: error: /usr/include/cairo-dock/implementations: Permission denied
make[2]: *** [Composite-Manager/src/CMakeFiles/cd-Composite-Manager.dir/applet-config.c.o] Error 1
make[1]: *** [Composite-Manager/src/CMakeFiles/cd-Composite-Manager.dir/all] Error 2
cc1: error: /usr/include/cairo-dock/gldit: Permission denied
cc1: error: /usr/include/cairo-dock/implementations: Permission denied
make[2]: *** [gvfs-integration/CMakeFiles/gvfs-integration.dir/cairo-dock-gio-vfs.c.o] Error 1
make[1]: *** [gvfs-integration/CMakeFiles/gvfs-integration.dir/all] Error 2
cc1: error: /usr/include/cairo-dock/gldit: Permission denied
cc1: error: /usr/include/cairo-dock/implementations: Permission denied
make[2]: *** [Indicator-applet/CMakeFiles/indicator-applet.dir/indicator-applet.c.o] Error 1
make[1]: *** [Indicator-applet/CMakeFiles/indicator-applet.dir/all] Error 2
cc1: error: /usr/include/cairo-dock/gldit: Permission denied
cc1: error: /usr/include/cairo-dock/implementations: Permission denied
cc1: error: /usr/include/cairo-dock/gldit: Permission denied
cc1: error: /usr/include/cairo-dock/implementations: Permission denied
make[2]: *** [Indicator-applet3/CMakeFiles/indicator-applet3.dir/indicator-applet3.c.o] Error 1
make[2]: *** [Indicator-applet3/CMakeFiles/indicator-applet3.dir/indicator-applet3-utils.c.o] Error 1
make[1]: *** [Indicator-applet3/CMakeFiles/indicator-applet3.dir/all] Error 2
make: *** [all] Error 2
cc1: error: /usr/include/cairo-dock/gldit: Permission denied
cc1: error: /usr/include/cairo-dock/implementations: Permission denied
cc1: error: /usr/include/cairo-dock/gldit: Permission denied
cc1: error: /usr/include/cairo-dock/implementations: Permission denied
make[2]: *** [src/CMakeFiles/cairo-desklet.dir/cairo-desklet-menu.c.o] Error 1
cc1: error: /usr/include/cairo-dock/gldit: Permission denied
cc1: error: /usr/include/cairo-dock/implementations: Permission denied
make[2]: *** [src/CMakeFiles/cairo-desklet.dir/cairo-desklet-gui-simple.c.o] Error 1
make[2]: *** [src/CMakeFiles/cairo-desklet.dir/cairo-desklet.c.o] Error 1
cc1: error: /usr/include/cairo-dock/gldit: Permission denied
cc1: error: /usr/include/cairo-dock/implementations: Permission denied
make[2]: *** [src/CMakeFiles/cairo-desklet.dir/cairo-desklet-user-interaction.c.o] Error 1
make[1]: *** [src/CMakeFiles/cairo-desklet.dir/all] Error 2
make: *** [all] Error 2
Please keep a copy of the file 'log.txt' and report the bug on our forum (http://www.glx-dock.org) on the section "Version GIT". Thank you!

Cairo-Dock Core: eebafbc make dist: ignore git stuff
Cairo-Dock Plug-ins: 7dde429 make dist: ignore git stuff
Cairo-Dock Plug-ins Extras: 7bd601f Pidgin: unseen-cound: added workaround
Cairo-Desklet: 4214b80 make dist: ignore git stuff


Why does it have permission denied when it is executed as root?

matttbe, Sunday 04 January 2015 à 22:44 | Quote


Subscription date : 24 January 2009
Messages : 12628
Did you launch this script as root? (just ones?)
(but it's strange to not have read access...)

ls -Rl /usr/include/cairo-dock

ppmt, Monday 05 January 2015 à 10:21 | Quote


Subscription date : 29 November 2007
Messages : 3522
I tried it once as root but it complained there was no connection...After that I cleaned everything and tried again.

Nornally I just execute it as my user and it asks my password for sudo.

without sudo
ppmt@namaste:~$ ls -Rl /usr/include/cairo-dock
ls: cannot open directory /usr/include/cairo-dock: Permission denied


with sudo
ppmt@namaste:~$ sudo ls -Rl /usr/include/cairo-dock
[sudo] password for ppmt:
/usr/include/cairo-dock:
total 12
-rw-r--r-- 1 root root 3755 Jan 4 20:31 cairo-dock.h
drwxr-x--- 2 root root 4096 Jan 4 20:34 gldit
drwxr-x--- 2 root root 4096 Jan 4 20:34 implementations

/usr/include/cairo-dock/gldit:
total 632
-rw-r--r-- 1 root root 11742 Jan 4 20:31 cairo-dock-animations.h
-rw-r--r-- 1 root root 22175 Jan 4 20:31 cairo-dock-applet-canvas.h
-rw-r--r-- 1 root root 41350 Jan 4 20:31 cairo-dock-applet-facility.h
-rw-r--r-- 1 root root 2069 Jan 4 20:31 cairo-dock-applet-manager.h
-rw-r--r-- 1 root root 1908 Jan 4 20:31 cairo-dock-applet-multi-instance.h
-rw-r--r-- 1 root root 2730 Jan 4 20:31 cairo-dock-applet-single-instance.h
-rw-r--r-- 1 root root 2109 Jan 4 20:31 cairo-dock-application-facility.h
-rw-r--r-- 1 root root 3853 Jan 4 20:31 cairo-dock-applications-manager.h
-rw-r--r-- 1 root root 6635 Jan 4 20:31 cairo-dock-backends-manager.h
-rw-r--r-- 1 root root 1797 Jan 4 20:31 cairo-dock-class-icon-manager.h
-rw-r--r-- 1 root root 9572 Jan 4 20:31 cairo-dock-class-manager.h
-rw-r--r-- 1 root root 10638 Jan 4 20:31 cairo-dock-config.h
-rw-r--r-- 1 root root 12791 Jan 4 20:31 cairo-dock-container.h
-rw-r--r-- 1 root root 1153 Jan 4 20:31 cairo-dock-core.h
-rw-r--r-- 1 root root 17752 Jan 4 20:31 cairo-dock-data-renderer.h
-rw-r--r-- 1 root root 3154 Jan 4 20:31 cairo-dock-data-renderer-manager.h
-rw-r--r-- 1 root root 10574 Jan 4 20:31 cairo-dock-dbus.h
-rw-r--r-- 1 root root 12479 Jan 4 20:31 cairo-dock-desklet-factory.h
-rw-r--r-- 1 root root 3934 Jan 4 20:31 cairo-dock-desklet-manager.h
-rw-r--r-- 1 root root 7518 Jan 4 20:31 cairo-dock-desktop-manager.h
-rw-r--r-- 1 root root 17164 Jan 4 20:31 cairo-dock-dialog-factory.h
-rw-r--r-- 1 root root 5273 Jan 4 20:31 cairo-dock-dialog-manager.h
-rw-r--r-- 1 root root 9114 Jan 4 20:31 cairo-dock-dock-facility.h
-rw-r--r-- 1 root root 12836 Jan 4 20:31 cairo-dock-dock-factory.h
-rw-r--r-- 1 root root 7937 Jan 4 20:31 cairo-dock-dock-manager.h
-rw-r--r-- 1 root root 9103 Jan 4 20:31 cairo-dock-draw.h
-rw-r--r-- 1 root root 8628 Jan 4 20:31 cairo-dock-draw-opengl.h
-rw-r--r-- 1 root root 10878 Jan 4 20:31 cairo-dock-file-manager.h
-rw-r--r-- 1 root root 2302 Jan 4 20:31 cairo-dock-flying-container.h
-rw-r--r-- 1 root root 1847 Jan 4 20:31 cairo-dock-global-variables.h
-rw-r--r-- 1 root root 11856 Jan 4 20:31 cairo-dock-gui-factory.h
-rw-r--r-- 1 root root 4380 Jan 4 20:31 cairo-dock-gui-manager.h
-rw-r--r-- 1 root root 14576 Jan 4 20:31 cairo-dock-icon-facility.h
-rw-r--r-- 1 root root 11669 Jan 4 20:31 cairo-dock-icon-factory.h
-rw-r--r-- 1 root root 4617 Jan 4 20:31 cairo-dock-icon-manager.h
-rw-r--r-- 1 root root 8947 Jan 4 20:31 cairo-dock-image-buffer.h
-rw-r--r-- 1 root root 2245 Jan 4 20:31 cairo-dock-indicator-manager.h
-rw-r--r-- 1 root root 5010 Jan 4 20:31 cairo-dock-keybinder.h
-rw-r--r-- 1 root root 4829 Jan 4 20:31 cairo-dock-keyfile-utilities.h
-rw-r--r-- 1 root root 1941 Jan 4 20:31 cairo-dock-launcher-manager.h
-rw-r--r-- 1 root root 3500 Jan 4 20:31 cairo-dock-log.h
-rw-r--r-- 1 root root 3937 Jan 4 20:31 cairo-dock-manager.h
-rw-r--r-- 1 root root 6043 Jan 4 20:31 cairo-dock-menu.h
-rw-r--r-- 1 root root 4360 Jan 4 20:31 cairo-dock-module-instance-manager.h
-rw-r--r-- 1 root root 9673 Jan 4 20:31 cairo-dock-module-manager.h
-rw-r--r-- 1 root root 8894 Jan 4 20:31 cairo-dock-object.h
-rw-r--r-- 1 root root 5790 Jan 4 20:31 cairo-dock-opengl-font.h
-rw-r--r-- 1 root root 5389 Jan 4 20:31 cairo-dock-opengl.h
-rw-r--r-- 1 root root 8152 Jan 4 20:31 cairo-dock-opengl-path.h
-rw-r--r-- 1 root root 7609 Jan 4 20:31 cairo-dock-overlay.h
-rw-r--r-- 1 root root 11469 Jan 4 20:31 cairo-dock-packages.h
-rw-r--r-- 1 root root 4416 Jan 4 20:31 cairo-dock-particle-system.h
-rw-r--r-- 1 root root 2331 Jan 4 20:31 cairo-dock-separator-manager.h
-rw-r--r-- 1 root root 1816 Jan 4 20:31 cairo-dock-stack-icon-manager.h
-rw-r--r-- 1 root root 26363 Jan 4 20:31 cairo-dock-struct.h
-rw-r--r-- 1 root root 4594 Jan 4 20:31 cairo-dock-style-facility.h
-rw-r--r-- 1 root root 4165 Jan 4 20:31 cairo-dock-style-manager.h
-rw-r--r-- 1 root root 10064 Jan 4 20:31 cairo-dock-surface-factory.h
-rw-r--r-- 1 root root 9522 Jan 4 20:31 cairo-dock-task.h
-rw-r--r-- 1 root root 5947 Jan 4 20:31 cairo-dock-themes-manager.h
-rw-r--r-- 1 root root 2386 Jan 4 20:31 cairo-dock-user-icon-manager.h
-rw-r--r-- 1 root root 3537 Jan 4 20:31 cairo-dock-utils.h
-rw-r--r-- 1 root root 6795 Jan 4 20:31 cairo-dock-windows-manager.h
-rw-r--r-- 1 root root 816 Jan 4 20:33 gldi-config.h
-rw-r--r-- 1 root root 5360 Jan 4 20:31 gldi-icon-names.h

/usr/include/cairo-dock/implementations:
total 12
-rw-r--r-- 1 root root 1520 Jan 4 20:31 cairo-dock-gauge.h
-rw-r--r-- 1 root root 2166 Jan 4 20:31 cairo-dock-graph.h
-rw-r--r-- 1 root root 1923 Jan 4 20:31 cairo-dock-progressbar.h

matttbe, Monday 05 January 2015 à 15:06 | Quote


Subscription date : 24 January 2009
Messages : 12628
According to CMake's documentation, install() instruction copies files with 0644 rights. It's what you have.

But it seems all your directories have 0750 rights. As a quick fix, you can simply launch chmod command but is it possible to remove cairo-dock's include directory and then relaunch the script just to check if the initial installation is correct? Can you also remove the directory where this cairo-dock_bzr.sh script is installed?

sudo rm -rf /usr/include/cairo-dock/ /usr/lib/libgldi.so* /usr/share/cairo-dock/
sudo rm -r /opt/cairo-dock
sudo mkdir /opt/cairo-dock
sudo chown $USER:$USER /opt/cairo-dock
cd /opt/cairo-dock
wget http://download.tuxfamily.org/glxdock/scripts/cairo-dock_git.sh
chmod u+x cairo-dock_git.sh
./cairo-dock_git.sh

ppmt, Monday 05 January 2015 à 16:38 | Quote


Subscription date : 29 November 2007
Messages : 3522
I am an idiot who should know better after so many years on Linux....

I am really sorry for wasting your time Matttbe. Thanks to your last message with directory being created with 750 rather than 644 I remembered something

Sometime ago I was playing with umask to try to understand how it works and for some stupid reason of mine I had added umask 007 in my profile and forgot to take it out!

After removing it and deleting the /usr/include/cairo_dock and updating the dock it now ALL WORKS!

Again my apologies Matttbe and thanks a lot for your patience!
ppmt@namaste:~$ ls -l /usr/include|grep cairo-dock
drwxr-xr-x 4 root root 4096 Jan 5 15:30 cairo-dock

matttbe, Tuesday 06 January 2015 à 16:09 | Quote


Subscription date : 24 January 2009
Messages : 12628
Great
No problem, you're welcome

Git Version | Version Git

Subjects Author Language Messages Last message
[Resolved] Error compilation (bzr and git)
ppmt English 13 matttbe [Read]
06 January 2015 à 16:09

Post a message

Anti-spam filter 4 (*) times (*) 1 =
            
Did you know ? The Code tag can do syntax colouring based in the languages : [code=php][/code]. It will work with : php,c,c++,c#,sql,bash


Glx-Dock / Cairo-Dock List of forums Git Version | Version Git Error compilation (bzr and git) Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.