AIDA GELINA BRIKEN nToF CRIB ISOLDE CIRCE nTOFCapture DESPEC DTAS EDI_PSA 179Ta CARME StellarModelling DCF K40
  AIDA  ELOG logo
Message ID: 369     Entry time: Sun Oct 2 15:03:11 2016
Author: CG, TD 
Subject: Problems compiling AIDAsort program on aidas1 
I have been trying to compile the sort program I have been working on in Edinburgh so I can work on it locally
while at RIKEN.

When compiling i receive the error shown in make.log (attached) saying that there are undefined reference in
DataSource.cpp.
Also attached is the make output when compiled in Edinburgh - basically just 'unused variable' warnings.

This is exactly the same DataSource.cpp I am using in Edinburgh. I have carried out 'diff' on the DataSpyLib and
DataXferLib directories which are included
in the Makefile and no differences are present. I have also done this for DataSource directory and again, there
are no differences between what I am running here and in Edinburgh.

The only difference I have been able to observe so far is that in Edinburgh I am using g++ version:
 Using built-in specs.
 COLLECT_GCC=g++
 COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
 Target: x86_64-redhat-linux
 Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions
--enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array
--disable-libgcj --with-isl=/builddir/build/BUILD /gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install
--with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install
--enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
 Thread model: posix
 gcc version 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC)

whereas on aidas1:
 Using built-in specs.
 Target: x86_64-redhat-linux
 Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions
--enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile
--enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
 Thread model: posix
 gcc version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC)

The libraries used are all found in LD_LIBRARY_PATH.
On aidas1 this is: /MIDAS/Linux/lib64:/homes/npg/root/lib:/homes/npg/root/lib:/MIDAS/Linux/lib64:/homes/npg/root/lib
and in Edinburgh:
/Disk/ds-sopa-group/np/RIKEN/AIDAsort/MIDAS/Linux/lib64:/Disk/ds-sopa-group/np/thehubdata/thehub6/jlab_software/Linux_Scientific6-x86_64-gcc4.4.6/root/5.34.23/lib:


*********UPDATE 03/10/16 *************

The methods are defined in /MIDAS/DataPackage/DataXferLib/V4_TCP/transfer.c

This is in the expected INCLUDES path of: INCLUDES=  -I/MIDAS/DataPackage/DataXferLib/V4_TCP -I/MIDAS/DataPackage/DataSpyLib
Attachment 1: make.log  3 kB  Uploaded Sun Oct 2 16:11:03 2016  | Hide | Hide all | Show all
aidas1> make
g++ -c -Wall -Wextra -DUNIX -DLINUX -DLINUX64 -DPOSIX -pthread -m64 -I/homes/npg/root/include -I/tmp/DataXferLib_edi/V4_TCP -I/tmp/DataSpyLib_edi  -Iinclude/ main.cpp
g++ -c -Wall -Wextra -DUNIX -DLINUX -DLINUX64 -DPOSIX -pthread -m64 -I/homes/npg/root/include -I/tmp/DataXferLib_edi/V4_TCP -I/tmp/DataSpyLib_edi  -Iinclude/ ./include/DataSource.h ./src/DataSource.cpp
In file included from ./src/DataSource.cpp:12:
include/c_functions.h:10: warning: unused parameter ‘id’
include/c_functions.h:10: warning: unused parameter ‘xclass’
include/c_functions.h:10: warning: unused parameter ‘level’
include/c_functions.h:10: warning: unused parameter ‘source’
include/c_functions.h:10: warning: unused parameter ‘body’
./src/DataSource.cpp: In member function ‘void DataSource::TransferBuffer(double)’:
./src/DataSource.cpp:345: warning: suggest parentheses around comparison in operand of ‘|’
g++ -c -Wall -Wextra -DUNIX -DLINUX -DLINUX64 -DPOSIX -pthread -m64 -I/homes/npg/root/include -I/tmp/DataXferLib_edi/V4_TCP -I/tmp/DataSpyLib_edi  -Iinclude/ ./include/Unpacker.h ./src/Unpacker.cpp
./src/Unpacker.cpp:684:3: warning: "/*" within comment
./src/Unpacker.cpp: In member function ‘void Unpacker::Process(DataSource&)’:
./src/Unpacker.cpp:37: warning: unused variable ‘my_int’
./src/Unpacker.cpp: In member function ‘void Unpacker::LoadParameters(char*)’:
./src/Unpacker.cpp:425: warning: unused variable ‘line’
./src/Unpacker.cpp:427: warning: unused variable ‘ch_first’
./src/Unpacker.cpp:429: warning: unused variable ‘channel’
g++ -c -Wall -Wextra -DUNIX -DLINUX -DLINUX64 -DPOSIX -pthread -m64 -I/homes/npg/root/include -I/tmp/DataXferLib_edi/V4_TCP -I/tmp/DataSpyLib_edi  -Iinclude/ ./include/Calibrator.h ./src/Calibrator.cpp
./src/Calibrator.cpp: In member function ‘void Calibrator::LoadParameters(char*)’:
./src/Calibrator.cpp:299: warning: unused variable ‘line’
./src/Calibrator.cpp:301: warning: unused variable ‘ch_first’
g++ -c -Wall -Wextra -DUNIX -DLINUX -DLINUX64 -DPOSIX -pthread -m64 -I/homes/npg/root/include -I/tmp/DataXferLib_edi/V4_TCP -I/tmp/DataSpyLib_edi  -Iinclude/ ./include/Analysis.h ./src/Analysis.cpp
./src/Analysis.cpp:915:35: warning: "/*" within comment
./src/Analysis.cpp: In member function ‘void Analysis::CloseEvent()’:
./src/Analysis.cpp:146: warning: unused variable ‘b_beam’
./src/Analysis.cpp: In member function ‘void Analysis::WriteOutBuffer(DataSource&)’:
./src/Analysis.cpp:381: warning: comparison between signed and unsigned integer expressions
./src/Analysis.cpp: In member function ‘void Analysis::LoadParameters(char*)’:
./src/Analysis.cpp:1484: warning: unused variable ‘line’
./src/Analysis.cpp:1486: warning: unused variable ‘ch_first’
./src/Analysis.cpp:1488: warning: unused variable ‘channel’
g++ -lrt -m64 -L/homes/npg/root/lib -lGui -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -pthread -lm -ldl -rdynamic  -L/usr/ucblib -lrt -lpthread -L/tmp/MIDAS/Linux/lib64  -ldataspy  -o AIDAsort.v2.exe main.o DataSource.o Unpacker.o Calibrator.o Analysis.o
DataSource.o: In function `DataSource::InitDataSource(int, int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, bool)':
DataSource.cpp:(.text+0x1159): undefined reference to `transferMultiBlockSize'
DataSource.cpp:(.text+0x1176): undefined reference to `transferMultiMode'
DataSource.cpp:(.text+0x1193): undefined reference to `transferMultiPort'
DataSource.cpp:(.text+0x11b2): undefined reference to `transferMultiInit'
DataSource.o: In function `DataSource::TransferBuffer(double)':
DataSource.cpp:(.text+0x133c): undefined reference to `transferMultiTxData'
collect2: ld returned 1 exit status
make: *** [AIDAsort.v2.exe] Error 1
Attachment 2: make.logEdi  5 kB  Uploaded Sun Oct 2 16:19:20 2016  | Show | Hide all | Show all
Attachment 3: transfer.h  3 kB  Uploaded Mon Oct 3 08:38:09 2016  | Show | Hide all | Show all
ELOG V3.1.4-unknown