Compiling GridServerSDK examples with 64-bit gcc3

Compiling GridServerSDK examples with 64-bit gcc3

book

Article ID: KB0090368

calendar_today

Updated On:

Products Versions
TIBCO DataSynapse GridServer -
Not Applicable -

Description

Resolution:
If you have the 64-bit version of gcc3 running on your SuSE Linux system (you can check with the gcc3 -v command) and are using GridServerSDK-linux-gcc3, you can get this error while running a gmake:

g++ -O -shared  -fPIC -o ../bin/libSimpleTasklet.so -I../../../../../cppdriver/i
nclude -I..  -I. -I../tasklet -L../../../../../cppdriver/lib -L../bin obj/Simple
Tasklet.o -Xlinker -rpath-link ../../../../../cppdriver/lib -ldsUtilGCC3
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin/ld:
  skipping incompatible ../../../../../cppdriver/lib/libdsUtilGCC3.so when search
ing for -ldsUtilGCC3
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin/ld:
  cannot find -ldsUtilGCC3
collect2: ld returned 1 exit status
make[1]: *** [../bin/libSimpleTasklet.so] Error 1
make[1]: Leaving directory `/tmp/GridServerSDK-linux-gcc3/examples/job/cpp/simpl
ejob/tasklet'
gmake: *** [binaries] Error 2

To resolve this problem, edit the GNUmakefile.common file and make the following changes:

   1. Add a line after ifeq ($(UNAME), Linux) that consists of CXX:=g++ -m32
   2. Change g++ -O to g++ -O -m32

Run gmake clean and then gmake. This should resolve your problem.

The reason for this error is that GridServer does not support the compiler's OS setup which is 64-bit mode. The above changes the mode to 32-bit.

Issue/Introduction

Compiling GridServerSDK examples with 64-bit gcc3