Linux: Lintian error messages

Issue #30 resolved
djcj created an issue

Version: 0.7+216-591ca91f0501

I was able to create Ubuntu packages on Launchpad using your source code. The 64 bit packages are built with yasm while yasm is automatically skipped for the 32 bit builds. When I open the library packages (libx265-6) I get the following warnings / error messages from Lintian:

amd64 + yasm: W: libx265-6: shlib-with-executable-stack usr/lib/x86_64-linux-gnu/libx265.so.6

i386: E: libx265-6: shlib-with-non-pic-code usr/lib/i386-linux-gnu/libx265.so.6

Here are explanations of the Lintian tags: http://lintian.debian.org/tags/shlib-with-non-pic-code.html http://lintian.debian.org/tags/shlib-with-executable-stack.html

I thought I'd let you know that.

Comments (5)

  1. djcj reporter

    Now the build doesn't work at all.

    djcj@djcj-GF8100-M2-TE ~/Downloads/x265 $ cmake source
    -- cmake version 2.8.11.2
    -- The C compiler identification is GNU 4.8.1
    -- The CXX compiler identification is GNU 4.8.1
    -- Check for working C compiler: /usr/bin/cc
    -- Check for working C compiler: /usr/bin/cc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Detected x86 system processor
    -- Performing Test GCC_HAS_NO_NARROWING
    -- Performing Test GCC_HAS_NO_NARROWING - Success
    -- Performing Test GCC_HAS_STACK_REALIGN
    -- Performing Test GCC_HAS_STACK_REALIGN - Success
    -- Found yasm: /usr/bin/yasm (found version "1.2.0") 
    -- Found Yasm 1.2.0 to build assembly primitives
    -- x265 version 0.7+343-63aadc802f18
    -- Looking for include file inttypes.h
    -- Looking for include file inttypes.h - found
    -- The ASM_YASM compiler identification is unknown
    -- Found assembler: /usr/bin/yasm
    -- Looking for include file getopt.h
    -- Looking for include file getopt.h - found
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/djcj/Downloads/x265
    djcj@djcj-GF8100-M2-TE ~/Downloads/x265 $ make
    Scanning dependencies of target common
    [  1%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/pixel-a.asm.o
    [  2%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/const-a.asm.o
    [  3%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/cpu-a.asm.o
    [  4%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/ssd-a.asm.o
    [  6%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/mc-a.asm.o
    [  7%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/mc-a2.asm.o
    [  8%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/pixel-util8.asm.o
    [  9%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/blockcopy8.asm.o
    [ 11%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/pixeladd8.asm.o
    [ 12%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/dct8.asm.o
    [ 13%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/sad-a.asm.o
    [ 14%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/intrapred8.asm.o
    [ 16%] Building ASM_YASM object common/CMakeFiles/common.dir/x86/ipfilter8.asm.o
    [ 17%] Building CXX object common/CMakeFiles/common.dir/x86/asm-primitives.cpp.o
    [ 18%] Building CXX object common/CMakeFiles/common.dir/vec/vec-primitives.cpp.o
    [ 19%] Building CXX object common/CMakeFiles/common.dir/vec/dct-sse3.cpp.o
    [ 20%] Building CXX object common/CMakeFiles/common.dir/vec/blockcopy-sse3.cpp.o
    [ 22%] Building CXX object common/CMakeFiles/common.dir/vec/dct-ssse3.cpp.o
    [ 23%] Building CXX object common/CMakeFiles/common.dir/vec/dct-sse41.cpp.o
    [ 24%] Building CXX object common/CMakeFiles/common.dir/__/Lib/TLibCommon/TComBitStream.cpp.o
    [ 25%] Building CXX object common/CMakeFiles/common.dir/__/Lib/TLibCommon/TComDataCU.cpp.o
    In file included from /home/djcj/Downloads/x265/source/Lib/TLibCommon/TComPic.h:46:0,
                     from /home/djcj/Downloads/x265/source/Lib/TLibCommon/TComDataCU.cpp:40:
    /home/djcj/Downloads/x265/source/common/threading.h: In member function bool x265::Event::timedWait(uint32_t):
    /home/djcj/Downloads/x265/source/common/threading.h:281:35: error: gettimeofday was not declared in this scope
                 gettimeofday(&tv, NULL);
                                       ^
    /home/djcj/Downloads/x265/source/common/threading.h: In member function void x265::Event::trigger():
    /home/djcj/Downloads/x265/source/common/threading.h:305:25: error: UINT32_MAX was not declared in this scope
             if (m_counter < UINT32_MAX)
                             ^
    make[2]: *** [common/CMakeFiles/common.dir/__/Lib/TLibCommon/TComDataCU.cpp.o] Fehler 1
    make[1]: *** [common/CMakeFiles/common.dir/all] Fehler 2
    make: *** [all] Fehler 2
    djcj@djcj-GF8100-M2-TE ~/Downloads/x265 $ 
    
  2. Log in to comment