弁財天

ゴフマン「専門家を信じるのではなく、自分自身で考えて判断せよ」

hogeqcbd00.c:(.text+0x88): undefined reference to `hogeqCAU00'

$ sh mk_ALL_exe.sh
buildclient -v -f /hoge/develop/hogeq/source/hogeqcbd00.c -o /hoge/develop/hogeq/bin/hogeqcbd00
cc   -I$TUXDIR/include -o /hoge/develop/hogeq/bin/hogeqcbd00   -L${TUXDIR}/lib /hoge/develop/hogeq/source/hogeqcbd00.c  -ltux -lbuft  -lfml -lfml32 -lengine  -ldl -lpthread
/tmp/ccnf8zW8.o: In function `main':
hogeqcbd00.c:(.text+0x30): undefined reference to `trace_init'
hogeqcbd00.c:(.text+0x3f): undefined reference to `trace_outf_pre'
hogeqcbd00.c:(.text+0x69): undefined reference to `trace_outf_main2'
hogeqcbd00.c:(.text+0x88): undefined reference to `hogeqCAU00'
hogeqcbd00.c:(.text+0xf6): undefined reference to `trace_outf_pre'
hogeqcbd00.c:(.text+0x120): undefined reference to `trace_outf_main2'
hogeqcbd00.c:(.text+0x13f): undefined reference to `hogeqCAU00'
hogeqcbd00.c:(.text+0x19f): undefined reference to `trace_outf_pre'
hogeqcbd00.c:(.text+0x1c9): undefined reference to `trace_outf_main2'
hogeqcbd00.c:(.text+0x215): undefined reference to `hogeqCAU00'
hogeqcbd00.c:(.text+0x262): undefined reference to `trace_outf_pre'
hogeqcbd00.c:(.text+0x28c): undefined reference to `trace_outf_main2'
hogeqcbd00.c:(.text+0x2d8): undefined reference to `hogeqCAU00'
hogeqcbd00.c:(.text+0x325): undefined reference to `trace_outf_pre'
hogeqcbd00.c:(.text+0x34f): undefined reference to `trace_outf_main2'
hogeqcbd00.c:(.text+0x39b): undefined reference to `hogeqCAU00'
hogeqcbd00.c:(.text+0x44e): undefined reference to `trace_outf_pre'
hogeqcbd00.c:(.text+0x478): undefined reference to `trace_outf_main2'
hogeqcbd00.c:(.text+0x487): undefined reference to `trace_outf_pre'
hogeqcbd00.c:(.text+0x4b1): undefined reference to `trace_outf_main2'
hogeqcbd00.c:(.text+0x4d0): undefined reference to `hogeqCAU00'
hogeqcbd00.c:(.text+0x4ef): undefined reference to `hogeqCAU00'
hogeqcbd00.c:(.text+0x526): undefined reference to `trace_outf_pre'
hogeqcbd00.c:(.text+0x550): undefined reference to `trace_outf_main2'
hogeqcbd00.c:(.text+0x55f): undefined reference to `trace_outf_pre'
hogeqcbd00.c:(.text+0x589): undefined reference to `trace_outf_main2'
hogeqcbd00.c:(.text+0x5a8): undefined reference to `hogeqCAU00'
hogeqcbd00.c:(.text+0x5c7): undefined reference to `hogeqCAU00'
hogeqcbd00.c:(.text+0x5ea): undefined reference to `trace_outf_pre'
hogeqcbd00.c:(.text+0x614): undefined reference to `trace_outf_main2'
hogeqcbd00.c:(.text+0x633): undefined reference to `hogeqCAU00'
hogeqcbd00.c:(.text+0x67d): undefined reference to `trace_outf_pre'
hogeqcbd00.c:(.text+0x6a7): undefined reference to `trace_outf_main2'
hogeqcbd00.c:(.text+0x6b6): undefined reference to `trace_outf_pre'
hogeqcbd00.c:(.text+0x6e0): undefined reference to `trace_outf_main2'
hogeqcbd00.c:(.text+0x6ff): undefined reference to `hogeqCAU00'
hogeqcbd00.c:(.text+0x71e): undefined reference to `hogeqCAU00'
hogeqcbd00.c:(.text+0x76b): undefined reference to `trace_outf_pre'
hogeqcbd00.c:(.text+0x795): undefined reference to `trace_outf_main2'
hogeqcbd00.c:(.text+0x7e1): undefined reference to `hogeqCAU00'
hogeqcbd00.c:(.text+0x82e): undefined reference to `trace_outf_pre'
hogeqcbd00.c:(.text+0x858): undefined reference to `trace_outf_main2'
hogeqcbd00.c:(.text+0x8a4): undefined reference to `hogeqCAU00'
hogeqcbd00.c:(.text+0x911): undefined reference to `trace_outf_pre'
hogeqcbd00.c:(.text+0x93b): undefined reference to `trace_outf_main2'
hogeqcbd00.c:(.text+0x987): undefined reference to `hogeqCAU00'
hogeqcbd00.c:(.text+0x9c6): undefined reference to `trace_outf_pre'
hogeqcbd00.c:(.text+0x9f3): undefined reference to `trace_outf_main2'
hogeqcbd00.c:(.text+0xa02): undefined reference to `trace_outf_pre'
hogeqcbd00.c:(.text+0xa2c): undefined reference to `trace_outf_main2'
hogeqcbd00.c:(.text+0xa6e): undefined reference to `hogeqCAU00'
hogeqcbd00.c:(.text+0xa8d): undefined reference to `hogeqCAU00'
hogeqcbd00.c:(.text+0xbe3): undefined reference to `hogeqCAD_CONNECT'
hogeqcbd00.c:(.text+0xc5a): undefined reference to `trace_outf_pre'
hogeqcbd00.c:(.text+0xc93): undefined reference to `trace_outf_main2'
hogeqcbd00.c:(.text+0xcee): undefined reference to `hogeqCAU00'
hogeqcbd00.c:(.text+0xd1c): undefined reference to `fn_GetColumnInfo'
hogeqcbd00.c:(.text+0xd77): undefined reference to `trace_outf_pre'
hogeqcbd00.c:(.text+0xda4): undefined reference to `trace_outf_main2'
hogeqcbd00.c:(.text+0xded): undefined reference to `hogeqCAU00'
hogeqcbd00.c:(.text+0xe18): undefined reference to `trace_outf_pre'
hogeqcbd00.c:(.text+0xe45): undefined reference to `trace_outf_main2'
hogeqcbd00.c:(.text+0xe8e): undefined reference to `hogeqCAU00'
hogeqcbd00.c:(.text+0xeb9): undefined reference to `trace_outf_pre'
hogeqcbd00.c:(.text+0xee6): undefined reference to `trace_outf_main2'
hogeqcbd00.c:(.text+0xf2f): undefined reference to `hogeqCAU00'
hogeqcbd00.c:(.text+0xf49): undefined reference to `hogeqCAD_DISCONNECT'
hogeqcbd00.c:(.text+0xf93): undefined reference to `trace_outf_pre'
hogeqcbd00.c:(.text+0xfbd): undefined reference to `trace_outf_main2'
hogeqcbd00.c:(.text+0xfcc): undefined reference to `trace_outf_pre'
hogeqcbd00.c:(.text+0xffa): undefined reference to `trace_outf_main2'
hogeqcbd00.c:(.text+0x1019): undefined reference to `hogeqCAU00'
hogeqcbd00.c:(.text+0x106a): undefined reference to `hogeqCAU00'
hogeqcbd00.c:(.text+0x1083): undefined reference to `hogeqCAD_DISCONNECT'
hogeqcbd00.c:(.text+0x114f): undefined reference to `trace_outf_pre'
hogeqcbd00.c:(.text+0x117e): undefined reference to `trace_outf_main2'
hogeqcbd00.c:(.text+0x11d0): undefined reference to `hogeqCAU00'
hogeqcbd00.c:(.text+0x11e9): undefined reference to `hogeqCAD_DISCONNECT'
hogeqcbd00.c:(.text+0x1671): undefined reference to `fn_FreeColumnInfo'
hogeqcbd00.c:(.text+0x168a): undefined reference to `hogeqCAD_DISCONNECT'
hogeqcbd00.c:(.text+0x16a9): undefined reference to `hogeqCAU00'
hogeqcbd00.c:(.text+0x16b8): undefined reference to `trace_outf_pre'
hogeqcbd00.c:(.text+0x16e2): undefined reference to `trace_outf_main2'
hogeqcbd00.c:(.text+0x16e7): undefined reference to `trace_quit'
collect2: error: ld returned 1 exit status
CMDTUX_CAT:512: ERROR: Cannot execute C compiler cc   -I$TUXDIR/include -o /hoge/develop/hogeq/bin/hogeqcbd00   -L${TUXDIR}/lib /hoge/develop/hogeq/source/hogeqcbd00.c  -ltux -lbuft  -lfml -lfml32 -lengine  -ldl -lpthread
make: *** [tuxcl] Error 1
[develop@hogeol7 make]$
12cR1のtuxedoのbuildclientでリンクエラー。

うーむ。どうやらbuildclientの内部で起動されるccでライブラリとのリンクに失敗したみたい。
じゃぁ足りないライブラリを追加。CFLAGSでw。
export CFLAGS="-lhogeqCAU00"
とかやって環境変数でリンクするライブラリをbuildclientに渡す。

$ sh mk_ALL_exe.sh|head
buildclient -v -f /hoge/develop/hogeq/source/hogeqcbd00.c -o /hoge/develop/hogeq/bin/hogeqcbd00
cc  -finput-charset=cp932 -fexec-charset=cp932 -Wall -g -m64 -I/hoge/develop/hogeq/include -I/opt/oracle/app/product/12.2.0/db_1/precomp/public -I/opt/oracle/app/product/12.2.0/db_1/rdbms/public -I/opt/tuxedo/tuxedo12.2.2.0.0/include -L/hoge/develop/hogeq/lib -L/opt/oracle/app/product/12.2.0/db_1/lib -lhogeqcat02 -lhogeqcad00 -lhogeqCAU00 -lhogequap01 -lhogequap04 -lhogequar00 -lhogeqcac00 -lclntsh -I$TUXDIR/include -o /hoge/develop/hogeq/bin/hogeqcbd00   -L${TUXDIR}/lib /hoge/develop/hogeq/source/hogeqcbd00.c  -ltux -lbuft  -lfml -lfml32 -lengine  -ldl -lpthread
ls -la /hoge/develop/hogeq/bin/hogeqcbd00
-rwxr-xr-x. 1 develop dba 24512 Aug  8 15:37 /hoge/develop/hogeq/bin/hogeqcbd00
とにかくリンクは成功したw。

投稿されたコメント:

コメント
コメントは無効になっています。