I have a external Function which i am trying to compile. I have two make files which i got from different sources.
When i Compile with my first make file which is as follows
-------------------------------------------
It gives me the following errorTARGETLIB = libTrxFuncsTrial.so
CODESRC = TrxFuncsTrial.c
TARGETOBJ = TrxFuncsTrial.o
CC=/opt/Ascential/Datastage/main/Ascential/DataStage/PXEngine.752.1/bin/aCC
CCOPTIONS = -O +z
LIBCC = $(CC)
LDOPTIONS = -b
.SUFFIXES: .c .o
# ---------------------------------------------------------------------
# Rules
# ---------------------------------------------------------------------
all: $(TARGETLIB)
$(TARGETLIB): $(TARGETOBJ)
$(LIBCC) $(LDOPTIONS) $(TARGETOBJ) -o $(TARGETLIB)
$(TARGETOBJ): $(CODESRC)
$(CC) $(CCOPTIONS) -c $(CODESRC) -o $(TARGETOBJ)
clean:
@rm -f $(TARGETOBJ) $(TARGETLIB)
# ---------------------------------------------------------------------
# End of makefile
# ---------------------------------------------------------------------
----------------
Can someone help me with what exactly goes in CC Command/opt/Ascential/Datastage/main/Ascential/DataStage/DSEngine/bin/aCC -O +z -c TrxFuncsTrial.c -o TrxFuncsTrial.o
make: /opt/Ascential/Datastage/main/Ascential/DataStage/DSEngine/bin/aCC: Command not found
make: *** [TrxFuncsTrial.o] Error 127
As for the Problem with the Other Make file which has the first few enteries as follows
---------------------------------------------------
------------------------CC = g++
CCOPTIONS = -O -fPIC
LIBCC = $(CC)
LDOPTIONS = -nostartfiles -Wl,-Bshareable,-Bsymbolic,--allow-shlib-undefined
I could get my rotuine compiled but when i run any job using the routine it aborts with the following error
It would be really helpful if someone can help me to understand this better... and point me to what i am missingTransformer_1: Failed to load the library "V0S1_TrxFuncExampleStatic_Transformer_1.so"; either the directory containing the library file
is not on the library search path, or the library was compiled on a system
that is incompatible with this system: Could not load "V0S1_TrxFuncExampleStatic_Transformer_1": /opt/Ascential/Datastage/main/projects/fbr_test/RT_BP2096.O/V0S1_TrxFuncExampleStatic_Transformer_1.so: undefined symbol: _Z13TrxFuncsTrialv.
Thanks
Pavan