c-从源构建期望(静态链接)



我正试图从源代码构建expect5.45的静态链接副本。我已经构建了tcl 8.6.0的静态链接副本。

我正在运行配置为:

./configure --with-tcl=$(tcl_root)/unix/ --with-tclinclude=$(tcl_root)/unix --disable-load --disable-shared

然后我运行CCD_ 1。

问题是,当在运行时在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膨胀和收缩函数上。

ZLib 中未定义引用的愤怒消息

是否将-lz添加到链接?

最新更新