我正在尝试从源代码构建一个静态链接的期望值5.45。我已经建立了tcl 8.6.0的静态链接副本。
我正在运行configure as:
./configure --with-tcl=$(tcl_root)/unix/ --with-tclinclude=$(tcl_root)/unix --disable-load --disable-shared
然后我运行make
。
问题是,在运行时在libexpect上运行ar之后尝试构建时,它会在ZLib
中转储有关未定义引用的长期愤怒消息,主要是tclStubsPtr
。
gcc \
-pipe -O2 -fomit-frame-pointer -Wall \
-Wl,--export-dynamic \
-o expect exp_main_exp.o \
-L$(expect_root) -lexpect5.45 \
-L$(tcl_root)/unix -ltcl8.6 \
-ldl -lieee -lm \
-Wl,-rpath,/usr/local/lib64 \
-wl,-rpath,/usr/local/lib64/expect5.45
其他错误似乎集中在Zlib膨胀和收缩功能上。
答案 0 :(得分:2)
关于ZLib中未定义引用的愤怒信息
将-lz
添加到链接?