Afdsmgrd cannot be built in v5-34-00-patches@45059

This is Ubuntu 10.04.4 LTS / i686 and CentOS 6.3 / x86_64 here …
When one tries to build ROOT using the “–prefix” method, the “afdsmgrd” cannot be built.
I believe It’s quite obvious what happens … when configuring “afdsmgrd” (and later when building it), it tries to access ROOT include files and libraries in the ROOT’s “prefix” subdirectory (which doesn’t exist yet) instead of the “sourcecode/build” subdirectory … [code]*** Unpacking afdsmgrd tarball ***
*** Preparing configuration for custom installation ***
BUILD_TYPE=Release
PREFIX=/Where/ROOT/Is/Unpacked/And/Built
ROOTSYS=/Where/ROOT/Is/Unpacked/And/Built
ROOT_MODE=TRUE
– The C compiler identification is GNU
– The CXX compiler identification is GNU
– Check for working C compiler: /usr/bin/gcc
– Check for working C compiler: /usr/bin/gcc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working CXX compiler: /usr/bin/c++
– Check for working CXX compiler: /usr/bin/c++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Installation prefix: /Where/ROOT/Is/Unpacked/And/Built
– Building in release mode
– C++ common build flags: -O3 -DNDEBUG
– [ROOT] ROOTSYS environment variable: /Where/ROOT/Is/Unpacked/And/Built
– [ROOT] root-config path: /Where/ROOT/Is/Unpacked/And/Built/bin/root-config
– [ROOT] libCore path: /Where/ROOT/Is/Unpacked/And/Built/lib/libCore.so
– [ROOT] Version: cannot read /Where/ROOT/Will/Be/Installed/include/root/RVersion.h
– [ROOT] Include path: /Where/ROOT/Will/Be/Installed/include/root
– [ROOT] Library path: /Where/ROOT/Will/Be/Installed/lib/root
– Compiling from within ROOT
– Directory “etc” is /Where/ROOT/Is/Unpacked/And/Built/etc/proof
– Directory “bin” is /Where/ROOT/Is/Unpacked/And/Built/bin
– Directory “lib” is /Where/ROOT/Is/Unpacked/And/Built/etc/proof/lib
– Directory “libexec” is /Where/ROOT/Is/Unpacked/And/Built/etc/proof
– Directory “var” is /Where/ROOT/Is/Unpacked/And/Built/etc/proof/var
– Directory “share” is /Where/ROOT/Is/Unpacked/And/Built/etc/proof/utils/afdsmgrd
– Configuring /Where/ROOT/Is/Unpacked/And/Built/proof/afdsmgrd/afdsmgrd/src/afOptions.h.in
– Configuring /Where/ROOT/Is/Unpacked/And/Built/proof/afdsmgrd/afdsmgrd/etc/sysconfig/afdsmgrd.example.in
– Configuring /Where/ROOT/Is/Unpacked/And/Built/proof/afdsmgrd/afdsmgrd/etc/init.d/afdsmgrd.in
– Configuring /Where/ROOT/Is/Unpacked/And/Built/proof/afdsmgrd/afdsmgrd/etc/afdsmgrd.conf.example.in
– Configuring /Where/ROOT/Is/Unpacked/And/Built/proof/afdsmgrd/afdsmgrd/scripts/afdsmgrd-root.sh.in
– Configuring /Where/ROOT/Is/Unpacked/And/Built/proof/afdsmgrd/afdsmgrd/etc/afverifier.conf.example.in
– Configuring /Where/ROOT/Is/Unpacked/And/Built/proof/afdsmgrd/afdsmgrd/scripts/afverifier-xrd-locate.sh.in
– Configuring /Where/ROOT/Is/Unpacked/And/Built/proof/afdsmgrd/afdsmgrd/scripts/afverifier-xrd-rm.sh.in
– Configuring /Where/ROOT/Is/Unpacked/And/Built/proof/afdsmgrd/afdsmgrd/scripts/afdsmgrd-xrd-stage-verify.sh.in
– Configuring /Where/ROOT/Is/Unpacked/And/Built/proof/afdsmgrd/afdsmgrd/scripts/afverifier.in
– Configuring done
– Generating done
– Build files have been written to: /Where/ROOT/Is/Unpacked/And/Built/proof/afdsmgrd/afdsmgrd/build
*** Creating steer Makefile ***
make[1]: Entering directory `/Where/ROOT/Is/Unpacked/And/Built/proof/afdsmgrd/afdsmgrd’
Scanning dependencies of target afConfig
[ 8%] Building CXX object src/CMakeFiles/afConfig.dir/afConfig.cc.o
Linking CXX static library libafConfig.a
[ 8%] Built target afConfig
Scanning dependencies of target afDataSetList
[ 16%] Building CXX object src/CMakeFiles/afDataSetList.dir/afDataSetList.cc.o
In file included from /Where/ROOT/Is/Unpacked/And/Built/proof/afdsmgrd/afdsmgrd/src/afDataSetList.cc:9:
/Where/ROOT/Is/Unpacked/And/Built/proof/afdsmgrd/afdsmgrd/src/afDataSetList.h:20:33: error: TDataSetManagerFile.h: No such file or directory
/Where/ROOT/Is/Unpacked/And/Built/proof/afdsmgrd/afdsmgrd/src/afDataSetList.h:21:29: error: TFileCollection.h: No such file or directory

(…)

/Where/ROOT/Is/Unpacked/And/Built/proof/afdsmgrd/afdsmgrd/src/afDataSetList.cc: At global scope:
/Where/ROOT/Is/Unpacked/And/Built/proof/afdsmgrd/afdsmgrd/src/afDataSetList.cc:257: error: expected constructor, destructor, or type conversion before ‘*’ token
make[4]: *** [src/CMakeFiles/afDataSetList.dir/afDataSetList.cc.o] Error 1
make[3]: *** [src/CMakeFiles/afDataSetList.dir/all] Error 2
make[2]: *** [all] Error 2
make[1]: *** [install] Error 2
make[1]: Leaving directory `/Where/ROOT/Is/Unpacked/And/Built/proof/afdsmgrd/afdsmgrd’
make: *** [bin/afdsmgrd] Error 2[/code] I do not use/need “afdsmgrd”, so … I simply removed “–enable-afdsmgrd”.

Note: there is NO such problem when one builds ROOT using the “ROOTSYS” method: [url]Installing ROOT from Source

We will have a look, but why did you get afdsmgrd enabled in the first place?
It should be disabled by default.

G. Ganis

In the first place I test if everything can be compiled smoothly.