建筑期望源(静态链接)

时间:2013-07-26 01:00:48

标签: c linker tcl static-libraries expect

我正在尝试从源代码构建一个静态链接的期望值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膨胀和收缩功能上。

1 个答案:

答案 0 :(得分:2)

  

关于ZLib中未定义引用的愤怒信息

-lz添加到链接?