Root 5.25 on opensuse 11.1 / compilation problems XrdSecClie

I am trying to compile root 5.25/04.
Open Suse 11.1

I had some issue with xrootd config.classic file. I replaced that by the one posted by Ganis (Thu Dec 03, 2009 13:43 - Post subject: Trouble installing Root 5.24). Got past that, after a few problems I did

make clean
make

after a while:

==> lib/libRLDAP.so done
*** Building xrootd … topdir= /home/kanaan/admin/sftw/root
make[1]: Entering directory /home/kanaan/admin/sftw/root/net/xrootd/src/xrootd' Making sec component... cd src/XrdSec;\ make all ARCH=i386_linux --no-print-directory Compiling XrdSecClient.cc g++ -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -m32 -D_ALL_SOURCE -D_REENTRANT -D_GNU_SOURCE -fPIC -rdynamic -Wall -Wno-deprecated -D__linux__ -O2 -DXrdDEBUG=0 -DHAVE_FSTATAT -DHAVE_LIBZ @glbincpfx@ -I. -I.. -o ../../obj/XrdSecClient.o XrdSecClient.cc g++: @glbincpfx@: No such file or directory make[5]: *** [../../obj/XrdSecClient.o] Error 1 make[4]: *** [Linuxall] Error 2 make[3]: *** [all] Error 2 make[2]: *** [XrdSec] Error 2 make[1]: *** [all] Error 2 make[1]: Leaving directory/home/kanaan/admin/sftw/root/net/xrootd/src/xrootd’
*** Error condition reported by make (rc = 2):
make: *** [net/xrootd/src/xrootd/LastBuild.d] Error 1
rm core/utils/src/RStl_tmp.cxx core/utils/src/rootcint_tmp.cxx

I had tried before the 5.24 pro version and also got stuck with some compilation problem related to xrootd.

Any suggestions appreciated, thanks.

Antonio

Dear Antonio,

The ‘configure.classic’ for 5.24/00 cannot be used for 5.25/04 because of new features that were implemented in between in xrootd configure (a global include path, resolving @glbincpfx@, is one of those).

Please, revert back to the configure.classic coming with 5.25/04 and post the error that you get. I will then provide the proper fix for your case.

Thanks,

G. Ganis

hey Ganis,

thanks for your message.

I replaced the old config.classic file.

then:

make clean
configure linux
make

here is what happens, after a while:

Creating executable …/…/bin/frm_admin
g++ -m32 -D_ALL_SOURCE -D_REENTRANT -D_GNU_SOURCE -fPIC -rdynamic -Wall -Wno-deprecated -D__linux__ -O2 …/…/obj/XrdFrmAdminMain.o …/…/obj/XrdFrmAdmin.o …/…/obj/XrdFrmAdminAudit.o …/…/obj/XrdFrmAdminFiles.o …/…/obj/XrdFrmAdminFind.o …/…/obj/XrdFrmAdminQuery.o …/…/obj/XrdFrmAdminUnlink.o …/…/obj/XrdXrootdMonitor.o …/…/obj/XrdScheduler.o -lreadline -lcurses -lnsl -lpthread -lrt -ldl -lc -L…/…/lib -lXrdFrm -lXrdCms -lXrdOss -lXrdNet -lXrdOuc -lXrdSys -o …/…/bin/frm_admin
/usr/lib/gcc/i586-suse-linux/4.3/…/…/…/…/i586-suse-linux/bin/ld: cannot find -lcurses
collect2: ld returned 1 exit status
make[5]: *** […/…/bin/frm_admin] Error 1
make[4]: *** [Linuxall] Error 2
make[3]: *** [all] Error 2
make[2]: *** [XrdFsurm] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/kanaan/admin/sftw/root/net/xrootd/src/xrootd’
*** Error condition reported by make (rc = 2):
make: *** [net/xrootd/src/xrootd/LastBuild.d] Error 1
rm core/utils/src/RStl_tmp.cxx core/utils/src/rootcint_tmp.cxx

any suggestion most welcome :slight_smile:

Antonio

Dear Antonio,

Attached is the a patched version of configure.classic that should solve your problem.

Just run

tar mxvf xrootd-lcurses-patch.52504.tar

in the ROOTSYS top dir (where you run ROOT configure).

Let me know,

Gerri
xrootd-lcurses-patch.52504.tar (90 KB)

Hi Gerri,

worked just fine, simply untarred and typed make and then make install. Root is running again.

thanks,

Antonio

Ok, thanks for the confirmation.
The fix is already in the trunk since a while, so the problem should not happen again with future versions.

Gerri