Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

qsdk-openwrt compile libevhtp 1.2.10 error #43

Closed
qianguozheng opened this issue Oct 25, 2017 · 5 comments
Closed

qsdk-openwrt compile libevhtp 1.2.10 error #43

qianguozheng opened this issue Oct 25, 2017 · 5 comments
Assignees
Labels
Milestone

Comments

@qianguozheng
Copy link

qianguozheng commented Oct 25, 2017

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIB_DL
    linked by target "test" in directory /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10
    linked by target "test_basic" in directory /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10
    linked by target "test_client" in directory /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10
    linked by target "test_proxy" in directory /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10
    linked by target "test_query" in directory /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10
    linked by target "test_vhost" in directory /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10
LIB_RT
    linked by target "test" in directory /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10
    linked by target "test_basic" in directory /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10
    linked by target "test_client" in directory /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10
    linked by target "test_proxy" in directory /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10
    linked by target "test_query" in directory /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10
    linked by target "test_vhost" in directory /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10

-- Configuring incomplete, errors occurred!
make[3]: *** [/data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10/.configured_] Error 1
make[3]: Leaving directory `/data/richard/qsdk/package/utils/libevhtp'
make[2]: *** [package/utils/libevhtp/compile] Error 2
make[2]: Leaving directory `/data/richard/qsdk'
make[1]: *** [/data/richard/qsdk/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory `/data/richard/qsdk'
make: *** [world] Error 2
@NathanFrench NathanFrench self-assigned this Oct 25, 2017
@NathanFrench
Copy link
Collaborator

NathanFrench commented Oct 25, 2017

Can you post everything including the cmake arguments and the whole output (not just the errors)?

Thanks, and cheers!

@NathanFrench
Copy link
Collaborator

NathanFrench commented Oct 25, 2017

Hrm, I don't see a need for -lrt or -ldl. I can't figure out any reason why we even check for this.

@NathanFrench
Copy link
Collaborator

Can you try with the current develop branch I just pushed?

@qianguozheng
Copy link
Author

Sorry for response late, I don't know how to upgrade the libevhtp to the latest branch, anywhere, I can post all the compile procedure.

make[3]: Entering directory `/data/richard/qsdk/package/utils/libevhtp'
. /data/richard/qsdk/include/shell.sh; gzip -dc /data/richard/qsdk/dl/1.2.10.tar.gz | /bin/gtar -C /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10/.. -xf - 

Applying ./patches/010-enable-shared-object-building.patch using plaintext: 
patching file CMakeLists.txt
Hunk #1 succeeded at 94 (offset 30 lines).
# deleting source package as its filename is ambiguous
ls /data/richard/qsdk/dl/1.2.10.tar.gz
/data/richard/qsdk/dl/1.2.10.tar.gz
touch /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10/.prepared_7a55a7cf33678ef8f4394fa1bb863d22
(cd /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10; CFLAGS="-Os -pipe -mips32r2 -mtune=74kc -fno-caller-saves -freorder-blocks -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float " CXXFLAGS="-Os -pipe -mips32r2 -mtune=74kc -fno-caller-saves -freorder-blocks -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float " LDFLAGS="-L/data/richard/qsdk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib -L/data/richard/qsdk/staging_dir/target-mips_r2_uClibc-0.9.33.2/lib -L/data/richard/qsdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/lib -L/data/richard/qsdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/lib " cmake -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_VERSION=1 -DCMAKE_SYSTEM_PROCESSOR=mips -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_C_COMPILER="/data/richard/qsdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-gcc" -DCMAKE_C_COMPILER_ARG1="" -DCMAKE_CXX_COMPILER="/data/richard/qsdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-g++" -DCMAKE_CXX_COMPILER_ARG1="" -DCMAKE_EXE_LINKER_FLAGS:STRING="-L/data/richard/qsdk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib -L/data/richard/qsdk/staging_dir/target-mips_r2_uClibc-0.9.33.2/lib -L/data/richard/qsdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/lib -L/data/richard/qsdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/lib" -DCMAKE_MODULE_LINKER_FLAGS:STRING="-L/data/richard/qsdk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib -L/data/richard/qsdk/staging_dir/target-mips_r2_uClibc-0.9.33.2/lib -L/data/richard/qsdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/lib -L/data/richard/qsdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/lib" -DCMAKE_SHARED_LINKER_FLAGS:STRING="-L/data/richard/qsdk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib -L/data/richard/qsdk/staging_dir/target-mips_r2_uClibc-0.9.33.2/lib -L/data/richard/qsdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/lib -L/data/richard/qsdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/lib" -DCMAKE_FIND_ROOT_PATH=/data/richard/qsdk/staging_dir/target-mips_r2_uClibc-0.9.33.2 -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=BOTH -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY -DCMAKE_STRIP=: -DCMAKE_INSTALL_PREFIX=/usr -DDL_LIBRARY=/data/richard/qsdk/staging_dir/target-mips_r2_uClibc-0.9.33.2  . )
-- The C compiler identification is GNU 4.6.3
-- The CXX compiler identification is GNU 4.6.3
-- Check for working C compiler: /data/richard/qsdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-gcc
-- Check for working C compiler: /data/richard/qsdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /data/richard/qsdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-g++
-- Check for working CXX compiler: /data/richard/qsdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Generating debug symbols: -ggdb3
-- Looking for strip utility
-- Looking for strip utility - found
-- Looking for memcmp
-- Looking for memcmp - found
-- Looking for strndup
-- Looking for strndup - found
-- Looking for strnlen
-- Looking for strnlen - found
-- Looking for include file alloca.h
-- Looking for include file alloca.h - found
-- Looking for include file strings.h
-- Looking for include file strings.h - found
-- Looking for include file string.h
-- Looking for include file string.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
-- Looking for include file sys/time.h
-- Looking for include file sys/time.h - found
-- Looking for include file sys/times.h
-- Looking for include file sys/times.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include file memory.h
-- Looking for include file memory.h - found
-- Looking for include file stdarg.h
-- Looking for include file stdarg.h - found
-- Looking for include file sys/tree.h
-- Looking for include file sys/tree.h - not found.
-- Looking for include file sys/queue.h
-- Looking for include file sys/queue.h - found
-- Looking for include file sys/un.h
-- Looking for include file sys/un.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of int
-- Check size of int - done
-- Check size of long
-- Check size of long - done
-- Check size of short
-- Check size of short - done
-- Check if the system is big endian
-- Searching 16 bit integer
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - big endian
-- Performing Test EVHTP_HAS_VISIBILITY_HIDDEN
-- Performing Test EVHTP_HAS_VISIBILITY_HIDDEN - Success
-- Performing Test EVHTP_HAS_C99
-- Performing Test EVHTP_HAS_C99 - Success
-- Build Type               : Release
-- std Debug CFLAGS         : -g -Wall -fno-strict-aliasing -ggdb
-- Std Release CFLAGS       : -DNDEBUG -Wall -fno-strict-aliasing
-- Std ReleaseWDebug CFLAGS : -O2 -g
-- Found LibEvent: /data/richard/qsdk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib/libevent.so  
-- Found LibEventPthreads: /data/richard/qsdk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib/libevent_pthreads.so  
-- Found LibEventCore: /data/richard/qsdk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib/libevent_core.so  
-- Found LibEventExtra: /data/richard/qsdk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib/libevent_extra.so  
WARN"Unable to find OpenSSL, will continue, but without the support"
-- CMAKE_BUILD_TYPE         : Release
-- CMAKE_BINARY_DIR         : /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10
-- CMAKE_CURRENT_BINARY_DIR : /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10
-- CMAKE_SOURCE_DIR         : /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10
-- CMAKE_CURRENT_SOURCE_DIR : /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10
-- PROJECT_BINARY_DIR       : /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10
-- PROJECT_SOURCE_DIR       : /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10
-- CMAKE_MODULE_PATH        : /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10/CMakeModules
-- CMAKE_COMMAND            : /data/richard/qsdk/staging_dir/host/bin/cmake
-- CMAKE_ROOT               : /data/richard/qsdk/staging_dir/host/share/cmake-2.8
-- CMAKE_SYSTEM             : Linux-1
-- CMAKE_SYSTEM_NAME        : Linux
-- CMAKE_SYSTEM_VERSION     : 1
-- CMAKE_SYSTEM_PROCESSOR   : mips
-- CMAKE_C_FLAGS            : -Os -pipe -mips32r2 -mtune=74kc -fno-caller-saves -freorder-blocks -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -ggdb3 -fvisibility=hidden -Wall -fno-strict-aliasing -DPROJECT_VERSION="1.2.10" -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -DEVHTP_DISABLE_SSL
-- CMAKE_CXX_FLAGS          : -Os -pipe -mips32r2 -mtune=74kc -fno-caller-saves -freorder-blocks -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -ggdb3
-- CMAKE_C_COMPILER         : /data/richard/qsdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-gcc
-- CMAKE_CXX_COMPILER       : /data/richard/qsdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-g++
-- CMAKE_AR                 : /data/richard/qsdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-ar
-- CMAKE_RANLIB             : /data/richard/qsdk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-ranlib
-- CMAKE_C_FLAGS_DEBUG      : -g -Wall -fno-strict-aliasing -ggdb
-- CMAKE_C_FLAGS_RELEASE    : -DNDEBUG -Wall -fno-strict-aliasing
-- CMAKE_C_FLAGS_RELWDBGIFO : -O2 -g
-- CMAKE_INSTALL_PREFIX     : /usr
-- Version                  : 1.2.10
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIB_DL
    linked by target "test" in directory /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10
    linked by target "test_basic" in directory /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10
    linked by target "test_client" in directory /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10
    linked by target "test_proxy" in directory /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10
    linked by target "test_query" in directory /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10
    linked by target "test_vhost" in directory /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10
LIB_RT
    linked by target "test" in directory /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10
    linked by target "test_basic" in directory /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10
    linked by target "test_client" in directory /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10
    linked by target "test_proxy" in directory /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10
    linked by target "test_query" in directory /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10
    linked by target "test_vhost" in directory /data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10

-- Configuring incomplete, errors occurred!
make[3]: *** [/data/richard/qsdk/build_dir/target-mips_r2_uClibc-0.9.33.2/libevhtp-1.2.10/.configured_] Error 1
make[3]: Leaving directory `/data/richard/qsdk/package/utils/libevhtp'
make[2]: *** [package/utils/libevhtp/compile] Error 2
make[2]: Leaving directory `/data/richard/qsdk'
make[1]: *** [/data/richard/qsdk/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory `/data/richard/qsdk'
make: *** [world] Error 2

@NathanFrench
Copy link
Collaborator

Does anyone want to donate an OpenWRT device for me? 🐙

Have a look at bb0630c

Simply remove that section from the CMakeLists.txt and see if that works.

@NathanFrench NathanFrench added this to the v1.2.13 milestone Nov 2, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants