question

Upvotes
Accepted
1 0 1 2

Cannot compile RFA C++ on centos7.2 with GCC4.8.3

Application One: The binary is not generated [root@shfeLZ2 RHEL6_64_GCC444]# /sbin/ldconfig –n `pwd` /sbin/ldconfig: relative path `–n' used to build cache [root@shfeLZ2 RHEL6_64_GCC444]# pwd /root/rfa8.1.0.L1.linux.rrg/Setup/rfa8.1.0.L1.linux.rrg/Libs/RHEL6_64_GCC444 [root@shfeLZ2 RHEL6_64_GCC444]# ls libAnsiPage.so.8 libRFA_Common.so.8 libRFA_Connections.so.8 libRFA_RSSL_Adapter.so.8 libRFA_SessionLayer_OMM.so.8 libRFA_ValueAdd.so.8 Static libDacsLock.so.8 libRFA_Config.so.8 libRFA_Data.so.8 libRFA_RSSL_Cons_Adapter.so.8 libRFA_SessionLayer.so.8 libTS1Cpp.so.8 libDacs.so.8 libRFA_Connections_OMM.so.8 libRFA_Logger.so.8 libRFA_RSSL_Prov_Adapter.so.8 libRFA_ValueAddCache.so.2 libwndacs.so.8 [root@shfeLZ2 RHEL6_64_GCC444]# /sbin/ldconfig –n `pwd` /sbin/ldconfig: relative path `–n' used to build cache [root@shfeLZ2 RHEL6_64_GCC444]# cd ../../Examples/StarterProvider_Interactive [root@shfeLZ2 StarterProvider_Interactive]# make make: lsb_release: Command not found cat: /etc/oracle-release: No such file or directory rm -f CENTOS7_64_GCC482/obj/StarterProvider_Interactive.o mkdir -p CENTOS7_64_GCC482/obj/ /usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/StarterProvider_Interactive.o StarterProvider_Interactive.cpp rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/AppUtil.o mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/ /usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/AppUtil.o ../StarterCommon/AppUtil.cpp rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/CtrlBreakHandler.o mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/ /usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/CtrlBreakHandler.o ../StarterCommon/CtrlBreakHandler.cpp rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Decoder.o mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/ /usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Decoder.o ../StarterCommon/Decoder.cpp rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Encoder.o mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/ /usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Encoder.o ../StarterCommon/Encoder.cpp rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/ExceptionHandler.o mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/ /usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/ExceptionHandler.o ../StarterCommon/ExceptionHandler.cpp rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Mutex.o mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/ /usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Mutex.o ../StarterCommon/Mutex.cpp rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/OMMStrings.o mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/ /usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/OMMStrings.o ../StarterCommon/OMMStrings.cpp rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/StandardOut.o mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/ /usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/StandardOut.o ../StarterCommon/StandardOut.cpp rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Timer.o mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/ /usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Timer.o ../StarterCommon/Timer.cpp mkdir -p ./CENTOS7_64_GCC482/Static /usr/bin/g++ -g -o ./CENTOS7_64_GCC482/Static/starterprovider_interactive ./CENTOS7_64_GCC482/obj/StarterProvider_Interactive.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/AppUtil.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/CtrlBreakHandler.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Decoder.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Encoder.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/ExceptionHandler.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Mutex.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/OMMStrings.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/StandardOut.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Timer.o -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -L../../Libs/OL7_64_GCC482 ../../Libs/OL7_64_GCC482/Static/libRFA.a -lnsl -lpthread -lrt -ldl ln -is ../../../ExampleRFA.cfg ./CENTOS7_64_GCC482/Static/ExampleRFA.cfg ln -is ../../StarterProvider_Interactive.cfg ./CENTOS7_64_GCC482/Static/StarterProvider_Interactive.cfg ln -is ../../../../etc/RDM/RDMFieldDictionary ./CENTOS7_64_GCC482/Static/RDMFieldDictionary ln -is ../../../../etc/RDM/enumtype.def ./CENTOS7_64_GCC482/Static/enumtype.def cp -f ../../MessageFiles/*.mc ./CENTOS7_64_GCC482/Static rm -rf ./CENTOS7_64_GCC482/obj/Dummy [root@shfeLZ2 StarterProvider_Interactive]# ls ReadMe.txt^C [root@shfeLZ2 StarterProvider_Interactive]# ls CENTOS7_64_GCC482 makefile ReadMe.txt StarterProvider_Interactive.cfg StarterProvider_Interactive.cpp StarterProvider_Interactive.h [root@shfeLZ2 StarterProvider_Interactive]# ls CENTOS7_64_GCC482/ obj Static You see, no binary file in the CENTOS7_64_GCC482 Directory ! Application two: Compile errors [root@shfeLZ2 StarterConsumer]# make make: lsb_release: Command not found cat: /etc/oracle-release: No such file or directory rm -f CENTOS7_64_GCC482/obj/StarterConsumer.o mkdir -p CENTOS7_64_GCC482/obj/ /usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/StarterConsumer.o StarterConsumer.cpp rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/AppUtil.o mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/ /usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/AppUtil.o ../StarterCommon/AppUtil.cpp rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/CtrlBreakHandler.o mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/ /usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/CtrlBreakHandler.o ../StarterCommon/CtrlBreakHandler.cpp rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Decoder.o mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/ /usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Decoder.o ../StarterCommon/Decoder.cpp rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/ExceptionHandler.o mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/ /usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/ExceptionHandler.o ../StarterCommon/ExceptionHandler.cpp rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/OMMStrings.o mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/ /usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/OMMStrings.o ../StarterCommon/OMMStrings.cpp rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/StandardOut.o mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/ /usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/StandardOut.o ../StarterCommon/StandardOut.cpp mkdir -p ./CENTOS7_64_GCC482 /usr/bin/g++ -g -o ./CENTOS7_64_GCC482/starterconsumer ./CENTOS7_64_GCC482/obj/StarterConsumer.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/AppUtil.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/CtrlBreakHandler.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Decoder.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/ExceptionHandler.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/OMMStrings.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/StandardOut.o -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -L../../Libs/OL7_64_GCC482 -lRFA_Common -lRFA_Data -lRFA_Config -lRFA_Logger -lRFA_SessionLayer -lRFA_Connections -lRFA_Connections_OMM -lnsl -lpthread -lrt -ldl /usr/bin/ld: cannot find -lRFA_Common /usr/bin/ld: cannot find -lRFA_Data /usr/bin/ld: cannot find -lRFA_Config /usr/bin/ld: cannot find -lRFA_Logger /usr/bin/ld: cannot find -lRFA_SessionLayer /usr/bin/ld: cannot find -lRFA_Connections /usr/bin/ld: cannot find -lRFA_Connections_OMM collect2: error: ld returned 1 exit status make: *** [starterconsumer] Error 1

treprfarfa-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
38.1k 69 35 53

From the output, StarterProvider_Interactive uses a RFA static library (libRFA.a).

 -L../../Libs/OL7_64_GCC482 ../../Libs/OL7_64_GCC482/Static/libRFA.a -lnsl -lpthread -lrt -ldl 

Therefore, the binary StarterProvider_Interactive will be created in ./CENTOS7_64_GCC482/Static.

On the other hand, StarterConsumer uses RFA shared objects (.so) but it is unable to find RFA shared objects (.so) in ../../Libs/OL7_64_GCC482.

-L../../Libs/OL7_64_GCC482 -lRFA_Common -lRFA_Data -lRFA_Config -lRFA_Logger -lRFA_SessionLayer -lRFA_Connections -lRFA_Connections_OMM -lnsl -lpthread -lrt -ldl 

Using RFA shared objects or static library is controlled by a USE_STATIC variable in makefile.

#Toggles static library build (0 = shared objects, 1 = static library)
USE_STATIC=0

When using shared objects, please make sure that /bin/ldconfig was run. After running /bin/ldconfig, please verify the .so softlinks (libRFA_Common.so) are created properly in /Libs/OL7_64_GCC482 folder.

sh-4.2# pwd
/opt/thomsonreuters/SOFTWARE/Setup/rfa8.1.0.L1.linux.rrg/Libs/OL7_64_GCC482
sh-4.2# ls -al
total 12656
drwxr-xr-x. 1 1069  200    1424 Oct  2 04:47 .
drwxr-xr-x. 1 1069  200      86 Jun 28 20:33 ..
drwxr-xr-x. 1 1069  200      94 Jun 28 20:33 Static
lrwxrwxrwx. 1 root root      16 Oct  2 04:47 libAnsiPage.so -> libAnsiPage.so.8
-rwxr-xr-x. 1 1069  200   71533 Jun 28 20:33 libAnsiPage.so.8
lrwxrwxrwx. 1 root root      12 Oct  2 04:47 libDacs.so -> libDacs.so.8
-rwxr-xr-x. 1 1069  200  253768 Jun 28 20:33 libDacs.so.8
lrwxrwxrwx. 1 root root      16 Oct  2 04:47 libDacsLock.so -> libDacsLock.so.8
-rwxr-xr-x. 1 1069  200   51324 Jun 28 20:33 libDacsLock.so.8
lrwxrwxrwx. 1 root root      18 Oct  2 04:47 libRFA_Common.so -> libRFA_Common.so.8
-rwxr-xr-x. 1 1069  200  478594 Jun 28 20:33 libRFA_Common.so.8
lrwxrwxrwx. 1 root root      18 Oct  2 04:47 libRFA_Config.so -> libRFA_Config.so.8
-rwxr-xr-x. 1 1069  200  421704 Jun 28 20:33 libRFA_Config.so.8
lrwxrwxrwx. 1 root root      23 Oct  2 04:47 libRFA_Connections.so -> libRFA_Connections.so.8
-rwxr-xr-x. 1 1069  200  275803 Jun 28 20:33 libRFA_Connections.so.8
lrwxrwxrwx. 1 root root      27 Oct  2 04:47 libRFA_Connections_OMM.so -> libRFA_Connections_OMM.so.8
-rwxr-xr-x. 1 1069  200  983812 Jun 28 20:33 libRFA_Connections_OMM.so.8
lrwxrwxrwx. 1 root root      16 Oct  2 04:47 libRFA_Data.so -> libRFA_Data.so.8
-rwxr-xr-x. 1 1069  200 2604592 Jun 28 20:33 libRFA_Data.so.8
lrwxrwxrwx. 1 root root      18 Oct  2 04:47 libRFA_Logger.so -> libRFA_Logger.so.8
-rwxr-xr-x. 1 1069  200  161851 Jun 28 20:33 libRFA_Logger.so.8
lrwxrwxrwx. 1 root root      24 Oct  2 04:47 libRFA_RSSL_Adapter.so -> libRFA_RSSL_Adapter.so.8
-rwxr-xr-x. 1 1069  200 1187041 Jun 28 20:33 libRFA_RSSL_Adapter.so.8
lrwxrwxrwx. 1 root root      29 Oct  2 04:47 libRFA_RSSL_Cons_Adapter.so -> libRFA_RSSL_Cons_Adapter.so.8
-rwxr-xr-x. 1 1069  200 1471930 Jun 28 20:33 libRFA_RSSL_Cons_Adapter.so.8
lrwxrwxrwx. 1 root root      29 Oct  2 04:47 libRFA_RSSL_Prov_Adapter.so -> libRFA_RSSL_Prov_Adapter.so.8
-rwxr-xr-x. 1 1069  200  534040 Jun 28 20:33 libRFA_RSSL_Prov_Adapter.so.8
lrwxrwxrwx. 1 root root      24 Oct  2 04:47 libRFA_SessionLayer.so -> libRFA_SessionLayer.so.8
-rwxr-xr-x. 1 1069  200  403585 Jun 28 20:33 libRFA_SessionLayer.so.8
lrwxrwxrwx. 1 root root      28 Oct  2 04:47 libRFA_SessionLayer_OMM.so -> libRFA_SessionLayer_OMM.so.8
-rwxr-xr-x. 1 1069  200 1315242 Jun 28 20:33 libRFA_SessionLayer_OMM.so.8
lrwxrwxrwx. 1 root root      20 Oct  2 04:47 libRFA_ValueAdd.so -> libRFA_ValueAdd.so.8
-rwxr-xr-x. 1 1069  200  925866 Jun 28 20:33 libRFA_ValueAdd.so.8
lrwxrwxrwx. 1 root root      25 Oct  2 04:47 libRFA_ValueAddCache.so -> libRFA_ValueAddCache.so.2
-rwxr-xr-x. 1 1069  200  557618 Jun 28 20:33 libRFA_ValueAddCache.so.2
lrwxrwxrwx. 1 root root      14 Oct  2 04:47 libTS1Cpp.so -> libTS1Cpp.so.8
-rwxr-xr-x. 1 1069  200  205216 Jun 28 20:33 libTS1Cpp.so.8
lrwxrwxrwx. 1 root root      14 Oct  2 04:47 libwndacs.so -> libwndacs.so.8
-rwxr-xr-x. 1 1069  200  943068 Jun 28 20:33 libwndacs.so.8
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
665 3 5 6

Hello @yaohongyi03

I can see from the message "make: lsb_release: Command not found" that your host does not have the lsb-core package installed. The makefile will default to CENTOS7_64_GCC482 and use the RFA libs from the OL7_64_GCC482 directory, this can be seen in the arg

"-L../../Libs/OL7_64_GCC482", telling the linker to search there for the required libs.

If you are using RHEL7/CentOS7, execute "/sbin/ldconfig –n `pwd`" in the OL7_64_GCC482 directory instead of RHEL6_64_GCC444, and you should end up with the executable.

Regards, David.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
1 0 1 2

Thanks, David.

I ran "/sbin/ldconfig –n `pwd`" in the OL7_64_GCC482 directory , and tried to rebuild the two applications StarterProvider_Interactive and StarterConsumer. Similarly, for StarterProvider_Interactive cannot find the binary; for StarertConsumer , I got error.

Here it is :

[StarterProvider_Interactive]$ make
make: lsb_release: Command not found
cat: /etc/oracle-release: No such file or directory
rm -f CENTOS7_64_GCC482/obj/StarterProvider_Interactive.o
mkdir -p CENTOS7_64_GCC482/obj/
/usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/StarterProvider_Interactive.o StarterProvider_Interactive.cpp
rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/AppUtil.o
mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/
/usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/AppUtil.o ../StarterCommon/AppUtil.cpp
rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/CtrlBreakHandler.o
mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/
/usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/CtrlBreakHandler.o ../StarterCommon/CtrlBreakHandler.cpp
rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Decoder.o
mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/
/usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Decoder.o ../StarterCommon/Decoder.cpp
rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Encoder.o
mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/
/usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Encoder.o ../StarterCommon/Encoder.cpp
rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/ExceptionHandler.o
mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/
/usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/ExceptionHandler.o ../StarterCommon/ExceptionHandler.cpp
rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Mutex.o
mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/
/usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Mutex.o ../StarterCommon/Mutex.cpp
rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/OMMStrings.o
mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/
/usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/OMMStrings.o ../StarterCommon/OMMStrings.cpp
rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/StandardOut.o
mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/
/usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/StandardOut.o ../StarterCommon/StandardOut.cpp
rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Timer.o
mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/
/usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Timer.o ../StarterCommon/Timer.cpp
mkdir -p ./CENTOS7_64_GCC482/Static
/usr/bin/g++ -g -o ./CENTOS7_64_GCC482/Static/starterprovider_interactive ./CENTOS7_64_GCC482/obj/StarterProvider_Interactive.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/AppUtil.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/CtrlBreakHandler.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Decoder.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Encoder.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/ExceptionHandler.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Mutex.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/OMMStrings.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/StandardOut.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Timer.o -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -L../../Libs/OL7_64_GCC482 ../../Libs/OL7_64_GCC482/Static/libRFA.a -lnsl -lpthread -lrt -ldl
ln -is ../../../ExampleRFA.cfg ./CENTOS7_64_GCC482/Static/ExampleRFA.cfg
ln -is ../../StarterProvider_Interactive.cfg ./CENTOS7_64_GCC482/Static/StarterProvider_Interactive.cfg
ln -is ../../../../etc/RDM/RDMFieldDictionary ./CENTOS7_64_GCC482/Static/RDMFieldDictionary
ln -is ../../../../etc/RDM/enumtype.def ./CENTOS7_64_GCC482/Static/enumtype.def
cp -f ../../MessageFiles/*.mc ./CENTOS7_64_GCC482/Static
rm -rf ./CENTOS7_64_GCC482/obj/Dummy

[StarterConsumer]$ make

make: lsb_release: Command not found
cat: /etc/oracle-release: No such file or directory
rm -f CENTOS7_64_GCC482/obj/StarterConsumer.o
mkdir -p CENTOS7_64_GCC482/obj/
/usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/StarterConsumer.o StarterConsumer.cpp
rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/AppUtil.o
mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/
/usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/AppUtil.o ../StarterCommon/AppUtil.cpp
rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/CtrlBreakHandler.o
mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/
/usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/CtrlBreakHandler.o ../StarterCommon/CtrlBreakHandler.cpp
rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Decoder.o
mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/
/usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Decoder.o ../StarterCommon/Decoder.cpp
rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/ExceptionHandler.o
mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/
/usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/ExceptionHandler.o ../StarterCommon/ExceptionHandler.cpp
rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/OMMStrings.o
mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/
/usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/OMMStrings.o ../StarterCommon/OMMStrings.cpp
rm -f CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/StandardOut.o
mkdir -p CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/
/usr/bin/g++ -c -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -o CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/StandardOut.o ../StarterCommon/StandardOut.cpp
mkdir -p ./CENTOS7_64_GCC482
/usr/bin/g++ -g -o ./CENTOS7_64_GCC482/starterconsumer ./CENTOS7_64_GCC482/obj/StarterConsumer.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/AppUtil.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/CtrlBreakHandler.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/Decoder.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/ExceptionHandler.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/OMMStrings.o ./CENTOS7_64_GCC482/obj/Dummy/../StarterCommon/StandardOut.o -m64 -D_REENTRANT -DLinux -I../../Include -I../../Include/rwf -I../Common -L../../Libs/OL7_64_GCC482 -lRFA_Common -lRFA_Data -lRFA_Config -lRFA_Logger -lRFA_SessionLayer -lRFA_Connections -lRFA_Connections_OMM -lnsl -lpthread -lrt -ldl
/usr/bin/ld: cannot find -lRFA_Common
/usr/bin/ld: cannot find -lRFA_Data
/usr/bin/ld: cannot find -lRFA_Config
/usr/bin/ld: cannot find -lRFA_Logger
/usr/bin/ld: cannot find -lRFA_SessionLayer
/usr/bin/ld: cannot find -lRFA_Connections
/usr/bin/ld: cannot find -lRFA_Connections_OMM
collect2: error: ld returned 1 exit status
make: *** [starterconsumer] Error 1

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
1 0 0 0

Thanks. I can compile right now. However, I cannot get data if run the StarterConsumer .



Here is the log it generated:

################### CREATE FILE ################# CREATE FILE ##################
********************** INFO ************************ INFO **********************
2017 Oct 2 16:33:15.509 ST GMT+08:00 27D20 D5EBF740 101 INFO
StarterConsumer: opening log file: StarterConsumer_163104.log format flags: 0x3F7.
2017 Oct 2 16:33:15.510 ST GMT+08:00 27D20 D5EBF740 108 TRACE ::init().
2017 Oct 2 16:33:15.510 ST GMT+08:00 27D20 D5EBF740 111 TRACE Initialize Ctrl Break Handler.
2017 Oct 2 16:33:15.510 ST GMT+08:00 27D20 D5EBF740 115 TRACE Initialize RFA Context.
2017 Oct 2 16:33:15.510 ST GMT+08:00 27D20 D5EBF740 183 TRACE Acquire RFA Config Database.
2017 Oct 2 16:33:15.510 ST GMT+08:00 27D20 D5EBF740 188 TRACE Create RFA Staging Config Database.
2017 Oct 2 16:33:15.510 ST GMT+08:00 27D20 D5EBF740 197 TRACE Reading RFA configuration file: ./ExampleRFA.cfg.
2017 Oct 2 16:33:15.510 ST GMT+08:00 27D20 D5EBF740 200 TRACE Load RFA Staging Config Database.
2017 Oct 2 16:33:15.510 ST GMT+08:00 27D20 D5EBF740 204 TRACE Merge RFA Staging Config Database into RFA Config Database.
2017 Oct 2 16:33:15.510 ST GMT+08:00 27D20 D5EBF740 209 TRACE Acquire App Config Database.
2017 Oct 2 16:33:15.510 ST GMT+08:00 27D20 D5EBF740 214 TRACE Create App Staging Config Database.
2017 Oct 2 16:33:15.510 ST GMT+08:00 27D20 D5EBF740 223 TRACE Reading Aplication configuration file: ./StarterConsumer.cfg.
2017 Oct 2 16:33:15.510 ST GMT+08:00 27D20 D5EBF740 226 TRACE Load App Staging Config Database.
2017 Oct 2 16:33:15.510 ST GMT+08:00 27D20 D5EBF740 230 TRACE Merge App Staging Config Database into Config Database.
2017 Oct 2 16:33:15.511 ST GMT+08:00 27D20 D5EBF740 239 TRACE ::readAppConfig().
2017 Oct 2 16:33:15.511 ST GMT+08:00 27D20 D5EBF740 279 TRACE Application configuration data:
Default\fieldDictionaryFilename : ./RDMFieldDictionary
Default\enumDictionaryFilename : ./enumtype.def
Default\appId : 256
Default\position :
Default\runTimeInSeconds : 0
Default\userName : user1
Default\service : ELEKTRON_DD
Default\session : Session1
Default\itemName : GCZ7
.
2017 Oct 2 16:33:15.511 ST GMT+08:00 27D20 D5EBF740 125 TRACE Create Application Event Queue.
2017 Oct 2 16:33:15.511 ST GMT+08:00 27D20 D5EBF740 130 TRACE Acquire Application Logger.
2017 Oct 2 16:33:15.511 ST GMT+08:00 27D20 D5EBF740 135 TRACE Create Application Logger Monitor.
2017 Oct 2 16:33:15.511 ST GMT+08:00 27D20 D5EBF740 142 TRACE Register for Logger Events.
2017 Oct 2 16:33:15.512 ST GMT+08:00 27D20 D5EBF740 147 TRACE Acquire RFA Session.
2017 Oct 2 16:33:15.514 ST GMT+08:00 27D20 D5EBF740 152 TRACE Create OMM Consumer.
2017 Oct 2 16:33:15.514 ST GMT+08:00 27D20 D5EBF740 158 TRACE Register for Connection Events.
2017 Oct 2 16:33:15.514 ST GMT+08:00 27D20 D5EBF740 164 TRACE Register for Cmd Error Events.
2017 Oct 2 16:33:15.538 ST GMT+08:00 27D20 D5EBF740 171 TRACE Load Dictionary from local files:
Default\fieldDictionaryFilename : ./RDMFieldDictionary
Default\enumDictionaryFilename : ./enumtype.def.
2017 Oct 2 16:33:15.538 ST GMT+08:00 27D20 D5EBF740 284 TRACE ::run().
2017 Oct 2 16:33:15.538 ST GMT+08:00 27D20 D5EBF740 287 TRACE -> Send MMT_LOGIN Request handle: 0x11dc5b0.
2017 Oct 2 16:33:15.538 ST GMT+08:00 27D20 D5EBF740 410 TRACE Create Item Request
itemName : GCZ7
serviceName : ELEKTRON_DD
indicationMask : 0
msgModelType : 6 : MarketPrice
interactionType : 3 : InitialImageFlag | InterestAfterRefreshFlag.
2017 Oct 2 16:33:15.538 ST GMT+08:00 27D20 D5EBF740 302 TRACE -> Send MMT_MARKET_PRICE Request handle: 0x17a14f0.
********************** INFO ************************ INFO **********************
2017 Oct 2 16:33:15.538 ST GMT+08:00 27D20 D5EBF740 313 INFO
StarterConsumer will attempt to dispatch msgs indefinitely!
Press Control C to Abort.
******************** WARNING! ******************** WARNING! ********************
2017 Oct 2 16:33:15.538 ST GMT+08:00 27D20 D5EBF740 527 WARN*
<- Received MMT_LOGIN Refresh - Login Pending
streamState : Open
dataState : Suspect
statusCode : None
statusText : All connections Pending.
2017 Oct 2 16:33:15.540 ST GMT+08:00 27D20 D5EBF740 463 TRACE <- Received LoggerNotifyEvent:
[Mon Oct 2 16:33:15 2017]: (ComponentName) RSSL_Cons_Adapter: (Severity) Information: Config Tree for the RSSL_Cons_Adapter is not found, using default configuration
.
2017 Oct 2 16:33:15.543 ST GMT+08:00 27D20 D5EBF740 463 TRACE <- Received LoggerNotifyEvent:
[Mon Oct 2 16:33:15 2017]: (ComponentName) RSSL_Cons_Adapter: (Severity) Information: The RSSL_Cons_Adapter initialization succeeded
.
2017 Oct 2 16:33:15.543 ST GMT+08:00 27D20 D5EBF740 463 TRACE <- Received LoggerNotifyEvent:
[Mon Oct 2 16:33:15 2017]: (ComponentName) RSSL_Cons_Adapter: (Severity) Information: Using the following configuration for RSSL_Cons_Connection_Manager "Default::Connection_RSSL": requestQueueReadThreshold = 1, watchListTableSize = 10007, requestTimeout = 45000, itemPostTimeout = 15000, payloadCacheEnabled = False, payloadCacheLoadFileDictionary = True, payloadCacheDictionaryName = RDMFieldDictionary, payloadCacheDictionaryPerService = False, Connection capabilities: OMMMsgConnCapability
.
******************** WARNING! ******************** WARNING! ********************
2017 Oct 2 16:33:15.543 ST GMT+08:00 27D20 D5EBF740 463 WARN*
<- Received LoggerNotifyEvent:
[Mon Oct 2 16:33:15 2017]: (ComponentName) RSSL_Cons_Adapter: (Severity) Warning: Batch request size may be limited due to throttling on RSSL_Cons_Connection "Default::Connection_RSSL <hostname>:<rsslPort-for connecting to>"
.
2017 Oct 2 16:33:15.543 ST GMT+08:00 27D20 D5EBF740 463 TRACE <- Received LoggerNotifyEvent:
[Mon Oct 2 16:33:15 2017]: (ComponentName) RSSL_Cons_Adapter: (Severity) Information: Using the following configuration for RSSL_Cons_Connection "Default::Connection_RSSL <hostname>:<rsslPort-for connecting to>": hostName = "<hostname>", rsslPort = "<rsslPort-for connecting to>", interfaceName = "localhost", compressionType = 0, channelBlocking = false, recvBufSize = 65535, sendBufSize = 65535, writeBufferMaxFragmentLength = 6144, connectionWaitTimeout = 30000, connectionPingTimeout = 30000, guaranteedOutputBuffers = 400, numInputBuffers = 20, tcp_nodelay = True, throttleEnabled = True, throttleType = count, throttleMaxCount = 250, throttleBatchCount = 10, traceMsg = False, traceMsgToFile = False, dictionaryRequestTimeout = 45
.
2017 Oct 2 16:33:15.543 ST GMT+08:00 27D20 D5EBF740 594 TRACE <- Received MMT_MARKET_PRICE Status GCZ7
serviceName : ELEKTRON_DD
symbolName : GCZ7
streamState : Open
dataState : Suspect
statusCode : None
statusText : Source unavailable... will recover when source is up.
2017 Oct 2 16:33:15.643 ST GMT+08:00 27D20 D5EBF740 463 TRACE <- Received LoggerNotifyEvent:
[Mon Oct 2 16:33:15 2017]: (ComponentName) RSSL_Cons_Adapter: (Severity) Information: Unable to connect using RSSL_Cons_Connection "Default::Connection_RSSL <hostname>:<rsslPort-for connecting to>" failed. Make sure host is available. Will retry in 15000 milliseconds (Internal debug info: "<Impl/ripcsrvr.c:5029> Error: 1004 ripcHostByName() failed. Host name is incorrect. System errno: (11)
")
.
2017 Oct 2 16:33:15.643 ST GMT+08:00 27D20 D5EBF740 463 TRACE <- Received LoggerNotifyEvent:
[Mon Oct 2 16:33:15 2017]: (ComponentName) RSSL_Cons_Adapter: (Severity) Information: Connection Status Changed, RSSL_Cons_Connection "Default::Connection_RSSL <hostname>:<rsslPort-for connecting to>" State: "Down" StatusCode: "None" StatusText: Connection down. Make sure the following tcp ip configuration is valid: host = <hostname>/<rsslPort-for connecting to>.
.
2017 Oct 2 16:33:15.643 ST GMT+08:00 27D20 D5EBF740 463 TRACE <- Received LoggerNotifyEvent:
[Mon Oct 2 16:33:15 2017]: (ComponentName) RSSL_Cons_Adapter: (Severity) Information: Connection Status Changed, RSSL_Cons_Connection "Default::Connection_RSSL <hostname>:<rsslPort-for connecting to>" State: "Down" StatusCode: "None" StatusText: Connection down
.
2017 Oct 2 16:33:15.643 ST GMT+08:00 27D20 D5EBF740 463 TRACE <- Received LoggerNotifyEvent:
[Mon Oct 2 16:33:15 2017]: (ComponentName) RSSL_Cons_Adapter: (Severity) Information: RSSL_Cons_Connection "Default::Connection_RSSL <hostname>:<rsslPort-for connecting to>" will be tried in 15000 milliseconds
.
********************** INFO ************************ INFO **********************
2017 Oct 2 16:33:27.522 ST GMT+08:00 27D20 D5EBF740 330 INFO
StarterConsumer Aborted (Control C) after attempting to dispatch msgs for 11 seconds
Exiting!.
2017 Oct 2 16:33:27.522 ST GMT+08:00 27D20 D5EBF740 615 TRACE ::cleanup().
********************** INFO ************************ INFO **********************
2017 Oct 2 16:33:27.651 ST GMT+08:00 27D20 D5EBF740 138 INFO
Exiting StarterConsumer - Closing log file: StarterConsumer_163104.log.

Here is the StarterConsumer.cfg:

\appId = "256"
\enumDictionaryFilename = "./enumtype.def"
\fieldDictionaryFilename = "./RDMFieldDictionary"
# position to be used for Login
# According to the RDM usage guide: If the server is authenticating with DACS, the consumer application might be required to pass in a valid position.
# ip addr/hostname or ip addr/net
# \position = "<IP Address/hostname>"
\runTimeInSeconds = 0
\service = "ELEKTRON_DD"
\session = "Session1"
\userName = "user1"
\itemName = "GCZ7"


\Sessions\Session1\connectionList = "Connection_RSSL"

\Connections\Connection_RSSL\connectionType = "RSSL"
\Connections\Connection_RSSL\rsslPort = "14002"
\Connections\Connection_RSSL\hostName = "106.39.xx.xxx"

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
7.6k 15 6 9

@yao.hongyi

Can you confirm if you set the following RFA configuration in ExampleRFA.cfg? It's not StarterConsumer.cfg, right?

\Connections\Connection_RSSL\connectionType = "RSSL"
\Connections\Connection_RSSL\rsslPort = "14002"
\Connections\Connection_RSSL\hostName = "106.39.xx.xxx"


\Sessions\Session1\connectionList = "Connection_RSSL"

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
1 0 0 0

@moragodkrit

Here is the information, both ExampleRFA.cfg and StarterConsumer.cfg

pwd
/spare/rfa8.1.0.L1.linux.rrg/Setup/rfa8.1.0.L1.linux.rrg/Examples/StarterConsumer/CENTOS7_64_GCC482
[root@HTshuxun:/spare/rfa8.1.0.L1.linux.rrg/Setup/rfa8.1.0.L1.linux.rrg/Examples

/StarterConsumer/CENTOS7_64_GCC482]$ cat ExampleRFA.cfg
\Control\MessagePools\OMMItemEventPool\InitialSize = 10000
\Control\MessagePools\OMMItemEventPool\Increment = 10000
\Control\MessagePools\OMMItemEventPool\MaximumSize = 0

\Connections\Connection_RSSL\connectionType = "RSSL"
\Connections\Connection_RSSL\rsslPort = "<rsslPort-for connecting to>"
\Connections\Connection_RSSL\hostName = "<hostname>"

# Consumer Multicast configuration
# Note multiple receive networks can be configured by specifying a comma separated list for the recvAddress parameter
\Connections\Connection_RSSL_CONS_MCAST\connectionType = "RSSL_CONS_MCAST"
\Connections\Connection_RSSL_CONS_MCAST\recvPort = "<mcast port to connect to for receiving>"
\Connections\Connection_RSSL_CONS_MCAST\sendPort = "<mcast port to connect to for sending>"
\Connections\Connection_RSSL_CONS_MCAST\recvAddress = "<mcast address to connect to for receiving>"
\Connections\Connection_RSSL_CONS_MCAST\sendAddress = "<mcast address to connect to for sending>"
\Connections\Connection_RSSL_CONS_MCAST\interfaceName = "<network interface card to bind to for sending and receiving>"
\Connections\Connection_RSSL_CONS_MCAST\unicastPort = "<port to connect to for any unicast msgs>"

\Connections\Connection_OMMProv\connectionType = "RSSL_PROV"
\Connections\Connection_OMMProv\rsslPort = "<rsslPort-for listening>"

\Connections\Connection_RSSL_PROV\connectionType = "RSSL_PROV"
\Connections\Connection_RSSL_PROV\rsslPort = "<rsslPort-for listening>"

\Connections\Connection_RSSL_NIPROV\connectionType = "RSSL_NIPROV"
\Connections\Connection_RSSL_NIPROV\rsslPort = "<rsslPort-for connecting to>"
\Connections\Connection_RSSL_NIPROV\hostName = "<hostname>"

\Connections\Connection_RSSL_NIPROV_MCAST\connectionType = "RSSL_NIPROV_MCAST"
\Connections\Connection_RSSL_NIPROV_MCAST\recvPort = "<mcast port to connect to for receiving>"
\Connections\Connection_RSSL_NIPROV_MCAST\sendPort = "<mcast port to connect to for sending>"
\Connections\Connection_RSSL_NIPROV_MCAST\recvAddress = "<mcast address to connect to for receiving>"
\Connections\Connection_RSSL_NIPROV_MCAST\sendAddress = "<mcast address to connect to for sending>"
\Connections\Connection_RSSL_NIPROV_MCAST\interfaceName = "<network interface card to bind to for sending and receiving>"
\Connections\Connection_RSSL_NIPROV_MCAST\unicastPort = "<port to connect to for any unicast msgs>"

\Logger\AppLogger\windowsLoggerEnabled = false
\Logger\AppLogger\fileLoggerEnabled = true

\Logger\ComponentLoggers\Connections\messageFile = "RFA8_Connections"
\Logger\ComponentLoggers\Adapter\messageFile = "RFA8_Adapter"
\Logger\ComponentLoggers\SessionCore\messageFile = "RFA8_SessionLayer"
\Logger\ComponentLoggers\RSSL_Adapter\messageFile = "RFA8_RSSL_Adapter"
\Logger\ComponentLoggers\RSSL_Cons_Adapter\messageFile = "RFA8_RSSL_Cons_Adapter"
\Logger\ComponentLoggers\RSSL_Prov_Adapter\messageFile = "RFA8_RSSL_Prov_Adapter"
\Logger\ComponentLoggers\Static\messageFile = "RFA8_MsgFile"

\Sessions\Session1\connectionList = "Connection_RSSL"
\Sessions\SessionConsMCast\connectionList = "Connection_RSSL_CONS_MCAST"
\Sessions\SessionOMMProv\connectionList = "Connection_OMMProv"
\Sessions\SessionOMMNIProv\connectionList = "Connection_RSSL_NIPROV"
#\Sessions\SessionOMMNIProv\connectionList = "Connection_RSSL_NIPROV_MCAST"
\Sessions\HybridAppSession\connectionList = "Connection_RSSL, Connection_RSSL_PROV"
\Sessions\NewsDisplaySess\connectionList = "Connection_RSSL"


[root@HTshuxun:/spare/rfa8.1.0.L1.linux.rrg/Setup/rfa8.1.0.L1.linux.rrg/Examples/StarterConsumer/CENTOS7_64_GCC482]$ cat StarterConsumer.cfg
\appId = "256"
\enumDictionaryFilename = "./enumtype.def"
\fieldDictionaryFilename = "./RDMFieldDictionary"
# position to be used for Login
# According to the RDM usage guide: If the server is authenticating with DACS, the consumer application might be required to pass in a valid position.
# ip addr/hostname or ip addr/net
# \position = "<IP Address/hostname>"
\runTimeInSeconds = 0
\service = "ELEKTRON_DD"
\session = "Session1"
\userName = "user1"
\itemName = "GCZ7"

\Sessions\Session1\connectionList = "Connection_RSSL"

\Connections\Connection_RSSL\connectionType = "RSSL"
\Connections\Connection_RSSL\rsslPort = "14002"
\Connections\Connection_RSSL\hostName = "106.39.xx.xxx"

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

You have to set the following configuration in ExampleRFA.cfg which is configuration file for RFA API.
\Sessions\Session1\connectionList = "Connection_RSSL"

\Connections\Connection_RSSL\connectionType = "RSSL"
\Connections\Connection_RSSL\rsslPort = "14002"
\Connections\Connection_RSSL\hostName = "106.39.xx.xxx"

The config in StarterConsumer.cfg is just application config. So RFA does not use Connection and Session you set in StarterConsumer.cfg.

Upvotes
1 0 0 0

Thanks. I can receive it now @moragodkrit

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
1 0 0 0

Hi, Do you have detailed definition of all these fields , etc...

GCZ7 SEQNUM_QT 8.56052e+06
GCZ7 TRDVOL_1 1
GCZ7 SEQNUM 8.56052e+06
GCZ7 NETCHNG_1 2.9
GCZ7 PCTCHNG 0.23
GCZ7 NUM_MOVES 5602
GCZ7 VWAP 1276.65
GCZ7 ACVOL_1 14018
GCZ7 TRDPRC_1 1277.5
GCZ7 PRIMACT_1 1277.5
GCZ7 SEC_ACT_1 2.9
GCZ7 SEQNUM 8.56052e+06
GCZ7 ACVOL_1 14018
GCZ7 BID 1277.5
GCZ7 BIDSIZE 44
GCZ7 SEQNUM 8.56052e+06
GCZ7 SEQNUM_QT 8.56052e+06
GCZ7 BID 1277.5
GCZ7 BIDSIZE 60
GCZ7 SEQNUM 8.56052e+06
GCZ7 SEQNUM_QT 8.56052e+06
GCZ7 ASK 1277.6
GCZ7 ASKSIZE 20
GCZ7 TRDVOL_1 1
GCZ7 SEQNUM 8.56054e+06
GCZ7 NETCHNG_1 3
GCZ7 PCTCHNG 0.24
GCZ7 NUM_MOVES 5603
GCZ7 VWAP 1276.65
GCZ7 ACVOL_1 14019
GCZ7 TRDPRC_1 1277.6
GCZ7 PRIMACT_1 1277.6
GCZ7 SEC_ACT_1 3
GCZ7 SEQNUM 8.56054e+06
GCZ7 ACVOL_1 14019
GCZ7 ASK 1277.6
GCZ7 ASKSIZE 20
GCZ7 SEQNUM 8.56055e+06
GCZ7 SEQNUM_QT 8.56055e+06
GCZ7 BID 1277.5
GCZ7 BIDSIZE 61
GCZ7 SEQNUM 8.56055e+06
GCZ7 SEQNUM_QT 8.56055e+06
GCZ7 ASK 1277.6
GCZ7 ASKSIZE 18
GCZ7 SEQNUM 8.56056e+06
GCZ7 SEQNUM_QT 8.56056e+06
GCZ7 BID 1277.5
GCZ7 BIDSIZE 60
GCZ7 ASK 1277.6
GCZ7 ASKSIZE 17
GCZ7 SEQNUM 8.56056e+06
GCZ7 SEQNUM_QT 8.56056e+06
GCZ7 ASK 1277.6
GCZ7 ASKSIZE 13
GCZ7 SEQNUM 8.56056e+06
GCZ7 SEQNUM_QT 8.56056e+06
GCZ7 TRDVOL_1 1
GCZ7 SEQNUM 8.56057e+06

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

There are a short description about the fields in RDM Field Dictionary file (RDMFieldDictionary).

However, its definition may be different among markets or exchanges. For additoional data / content related queries, I would suggest you contact our data helpdesk via Contact Us link below. Please explain you have a Data question - not API question.

https://my.thomsonreuters.com/ContactUsNew

Click below to post an Idea Post Idea