[
https://issues.apache.org/jira/browse/TS-4973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15586483#comment-15586483
]
Huaping Gu commented on TS-4973:
--------------------------------
BTW, here is the complete Dockerfile used
FROM ubuntu:14.04
MAINTAINER Huaping Gu <xxxx.xxx.xxx>
#update ubuntu repository list
RUN apt-get update
#install wget, curl.
#make sure '-y' for non-interactive mode
RUN apt-get install -y wget
RUN apt-get install -y curl
#install build-dep
RUN sudo apt-get build-dep -y trafficserver
#install extra libs
RUN sudo apt-get install -y libhwloc-dev libhwloc5 libunwind8 libunwind8-dev
#make sure install these two libs, otherwise 'top' commands will NOT be
installed
RUN apt-get install -y libcurl4-openssl-dev
RUN apt-get install -y libncurses5-dev
#download ATS 6.2.0 and unzip
RUN wget
https://archive.apache.org/dist/trafficserver/trafficserver-6.2.0.tar.bz2.asc
RUN wget
http://archive.apache.org/dist/trafficserver/trafficserver-6.2.0.tar.bz2
RUN wget http://archive.apache.org/dist/trafficserver/KEYS
RUN gpg --import KEYS
RUN gpg --verify trafficserver-6.2.0.tar.bz2.asc trafficserver-6.2.0.tar.bz2
RUN tar -xvf trafficserver-6.2.0.tar.bz2
#config
#RUN autoreconf -if /trafficserver-6.2.0/configure.ac
RUN /trafficserver-6.2.0/configure --enable-experimental-plugins
--prefix=/opt/ats
#make
RUN make V=1
RUN make V=1 check
#install
RUN sudo make install
#use default ATS port
EXPOSE 8080
> ubuntu 14.04 ATS 6.2.0 proxy/hdrs undefined reference to symbol
> 'Tcl_NextHashEntry'
> -----------------------------------------------------------------------------------
>
> Key: TS-4973
> URL: https://issues.apache.org/jira/browse/TS-4973
> Project: Traffic Server
> Issue Type: Bug
> Components: Build
> Affects Versions: 6.2.0
> Reporter: Huaping Gu
>
> build failed in Docker, on image ubuntu 14.04, 14.04.5
> add explicit command to install tcl, still failed
> "RUN apt-get install -y libtcl8.6"
> Following are stack trace of the error message. Similar error found in TS-4521
> ============================================================
> Making check in proxy/hdrs
> make[1]: Entering directory `/proxy/hdrs'
> make test_mime
> make[2]: Entering directory `/proxy/hdrs'
> CXX test_mime.o
> CXXLD test_mime
> [91m/usr/bin/ld: ./libhdrs.a(HttpCompat.o): undefined reference to symbol
> 'Tcl_NextHashEntry'
> //usr/lib/x86_64-linux-gnu/libtcl8.6.so: error adding symbols: DSO missing
> from command line
> [0m[91mcollect2: error: ld returned 1 exit status
> [0m[91mmake[2]: *** [test_mime] Error 1
> [0mmake[2]: Leaving directory `/proxy/hdrs'
> [91mmake[1]: *** [check-am] Error 2
> [0mmake[1]: Leaving directory `/proxy/hdrs'
> [91mmake: *** [check-recursive] Error 1
> [0mThe command '/bin/sh -c make check' returned a non-zero code: 2
> ==========================
> Append: Same source code build success on Mac (10.12)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)