/usr/bin/ld: warning: libdb2install.so.1, needed by /home/AAAA/lib/db2/libdb2.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libdb2g11n.so.1, needed by /home/AAAA/lib/db2/libdb2.so, not found (try us ing -rpath or -rpath-link)
/usr/bin/ld: warning: libdb2locale.so.1, needed by /home/AAAA/lib/db2/libdb2.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libdb2osse.so.1, needed by /home/AAAA/lib/db2/libdb2.so, not found (try us ing -rpath or -rpath-link)
/usr/bin/ld: warning: libdb2genreg.so.1, needed by /home/AAAA/lib/db2/libdb2.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libdb2trcapi.so.1, needed by /home/AAAA/lib/db2/libdb2.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libdb2dascmn.so.1, needed by /home/AAAA/lib/db2/libdb2.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libstdc++.so.5, needed by /home/AAAA/lib/db2/libdb2.so, may conflict with libstdc++.so.6
/home/AAAA/lib/db2/libdb2.so: undefined reference to `ossLogRC'
/home/AAAA/lib/db2/libdb2.so: undefined reference to `sqlnlssplitcp2'
/home/AAAA/lib/db2/libdb2.so: undefined reference to `sqlnlsFormatDate'
/home/AAAA/lib/db2/libdb2.so: undefined reference to `g_pGTCB'
/home/AAAA/lib/db2/libdb2.so: undefined reference to `OSSHFile::read(OSSFileReadParam const*, vo id*, unsigned long*)'
/home/AAAA/lib/db2/libdb2.so: undefined reference to `ossComputeMontgomeryInverse32'
/home/AAAA/lib/db2/libdb2.so: undefined reference to `sqlnlsschr'
/home/AAAA/lib/db2/libdb2.so: undefined reference to `gtraceEnable'
이런 경우에는 Makefile 에서 db2 라이브러리 링크하는 부분에 다음과 같이 (-rpath) 를 추가합니다.
DB2App_LDADD = \
-L$(LIB_DIR) \
-lchakra \
-lcfgfile \
-lmcrypt \
-lmiscutil \
-loscompatible \
-lstar \
-lrim \
-looci \
-Wl,-rpath=/home/AAAA/lib/oracle -L/home/AAAA/lib/oracle -lclntsh \
-Wl,-rpath=/home/AAAA/lib/db2 -L/home/AAAA/lib/db2 -ldb2 \
'Engineering > DB' 카테고리의 다른 글
FreeTDS 라이브러리 사용시, "FreeTDS: db-lib: exiting because client error handler returned 0 for msgno 2000" 에러 발생시 해결방안 (0) | 2011.08.18 |
---|---|
MySQL UTF-8 지원 설정 (0) | 2011.07.18 |
MySQL 설치후 암호 설정 및 사용자 추가 (0) | 2011.05.27 |
oracle tnsnames.ora 설정 (0) | 2010.12.29 |
MSSQL 2005 관리자 강좌_11일차 (0) | 2010.12.16 |