gcc 컴파일 중 lib 관련 오류입니다.
gcc로 컴파일 작업 중에 다음과 같은 오류가 발생하였습니다.
인터넷을 뒤져봐도 해결책이 안보여 도움을 부탁드립니다.
오류 메세지
==============================================================
$ make -f dims0001_mk dims0001
proc iname=dims0001.pc include=/app/nbsdev/server/inc
Pro*C/C++: Release 11.2.0.4.0 - Production on Fri Dec 27 14:18:02 2013
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
System default option values taken from: /app/oracle/product/11.2.0/dbhome_1/precomp/ad min/pcscfg.cfg
gcc -c -O2 -maix64 -mno-power -DAIX -D_AIX_PTHREADS_D7 dims0001.c -L/app/oracl e/product/11.2.0/dbhome_1/lib/ -I/app/oracle/product/11.2.0/dbhome_1/precomp/public
exec(): 0509-036 Cannot load program gcc because of the following errors:
0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.8).
0509-150 Dependent module /lib/libiconv.a(libiconv.so.2) could not be loaded.
0509-152 Member libiconv.so.2 is not found in archive
0509-022 Cannot load module gcc.
0509-150 Dependent module /opt/freeware/lib/libintl.a(libintl.so.8) could not be loaded.
0509-022 Cannot load module .
make: 1254-004 The error code from the last command is 255.
Stop.
========================================================
사용한 make 화일은 다음과 같습니다.
===========================================================
include $(ORACLE_HOME)/precomp/lib/env_precomp.mk
ORA_LIB_DIRS = -L$(LIBHOME)
ORA_CLNTSH = -L$(ORACLE_HOME)/lib -l clntsh
ORA_HDR_DIRS = -I$(ORACLE_HOME)/precomp/public
ORA_LFILES = $(PROLDLIBS)
GINC = -I/app/nbsdev/server/inc
CC=gcc
CFLAGS_AIX = -O2 -maix64 -mno-power -DAIX -D_AIX_PTHREADS_D7
LDFLAGS_AIX = -maix64 -lpthread
#
# server compile
#
SOURCE = dims0001.pc mimsUtil.c
OBJS = dims0001.o mimsUtil.o
dims0001:$(OBJS)
$(CC) $(LDFLAGS_AIX) $(GINC) $(ORA_LIB_DIRS) $(ORA_CLNTSH) $(ORA_HDR_DIRS) -o dims0001 $(OBJS)
dims0001.o:dims0001.pc
proc iname=dims0001.pc include=/app/nbsdev/server/inc
$(CC) -c $(CFLAGS_AIX) dims0001.c $(ORA_LIB_DIRS) $(ORA_HDR_DIRS)
mimsUtil.o:mimsUtil.c
$(CC) -c $(CFLAGS_AIX) mimsUtil.c $(GINC) $(ORA_LIB_DIRS) $(ORA_HDR_DIRS)
============================================================================
댓글 달기