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 
RUN apt-get install -y libcurl4-openssl-dev
RUN apt-get install -y libncurses5-dev

#download ATS 6.2.0 and unzip
RUN wget 
RUN wget 

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

#RUN autoreconf -if /trafficserver-6.2.0/configure.ac
RUN /trafficserver-6.2.0/configure --enable-experimental-plugins 

RUN make V=1
RUN make V=1 check
RUN sudo make install

#use default ATS port

> 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
> /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
> collect2: error: ld returned 1 exit status
> make[2]: *** [test_mime] Error 1
> make[2]: Leaving directory `/proxy/hdrs'
> make[1]: *** [check-am] Error 2
> make[1]: Leaving directory `/proxy/hdrs'
> make: *** [check-recursive] Error 1
> The 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

Reply via email to