Skip Ribbon Commands
Skip to main content
Navigate Up
Sign In

Quick Launch

Average Rating:

facebook Twitter
Email
Print Bookmark Alert me when this article is updated

Feedback

Building a Custom Transformation on zLinux
Solution

When you generate the code for a Custom transformation procedure the PowerCenter Designer generates C source code and makefiles. PowerCenter uses makefiles to build the Custom transformation library from the Custom transformation source code.

The PowerCenter Designer generates the following makefiles: makefile.aix (32-bit), makefile.aix64 (64-bit), makefile.hp (32-bit), makefile.hp64 (64-bit), makefile.hpparisc64, makefile.linux (32-bit), and makefile.sol (32-bit).

If you want to build a custom transformation procedure on zLinux, modify makefile.linux. In the FLAGS section of the makefile.linux, add the –m64 option.

The following is an example of a makefile.linux file that has been edited for use on zLinux:

CC=g++
FLAGS=-Wall -fPIC -DUNIX –m64
DEFINES=-DLINUX -D_REENTRANT
INCLUDEDIRS=-I$(PM_HOME)/ExtProc/include
SYSLIBS=-lc -lm -ldl
.SUFFIXES : .c
.c.o : ;$(CC) -c $(FLAGS) $(DEFINES) $(INCLUDEDIRS) $*.c -o $*.o

TARGET=libasdsa.so

OBJS=$(SRCS:%.c=%.o)

SRCS= \
m_asdsa.c \
 p_sdasdasd.c

all : $(TARGET)

$(TARGET) : $(OBJS)
 $(CC) -o $(TARGET) -shared -pthread $(OBJS) $(SYSLIBS) $(INFLIBS)
 # You should copy $(TARGET) to the directory pointed to by the server variable $$PMExtProcDir
 # To copy it to the default value of $$PMExtProcDir, uncomment the following two lines
 # rm -f $(PM_HOME)/ExtProc/$(TARGET)
 # cp $(TARGET) $(PM_HOME)/ExtProc/$(TARGET)

More Information
Reference
Applies To
Product: PowerCenter
Problem Type:
User Type: Administrator
Project Phase:
Product Version: PowerCenter 8
Database:
Operating System: Linux/MVS
Other Software:
Attachments
Last Modified Date:5/27/2009 3:46 PMID:106157
People who viewed this also viewed

Feedback

Did this KB document help you?



What can we do to improve this information (2000 or fewer characters)