#19147: Compilation error cshark - fatal error: json/json.h: No such file or
directory
-----------------------+------------------------
 Reporter:  anonymous  |      Owner:  developers
     Type:  defect     |     Status:  new
 Priority:  normal     |  Milestone:
Component:  packages   |    Version:  Trunk
 Keywords:  cshark     |
-----------------------+------------------------
 cshark used to compile fine until today:

 {{{
 make[3]: Leaving directory `/home/development/src/openwrt-
 trunk/openwrt/package/libs/uclient'
 make[3]: Entering directory `/home/development/src/openwrt-
 trunk/openwrt/feeds/packages/net/cshark'
 . /home/development/src/openwrt-trunk/openwrt/include/shell.sh; gzip -dc
 /home/development/src/openwrt-
 
trunk/openwrt/dl/cshark-2014-07-02-ec638311b0b8ef74baf0be06dcf03a641e3308a2.tar.gz
 | tar -C /home/development/src/openwrt-trunk/openwrt/build_dir/target-
 i386_i486_uClibc-0.9.33.2/cshark-2014-07-02/.. -xf -
 touch /home/development/src/openwrt-trunk/openwrt/build_dir/target-
 
i386_i486_uClibc-0.9.33.2/cshark-2014-07-02/.prepared_02ba39a03e1eb6b8ea4bfd625bcd3197
 (cd /home/development/src/openwrt-trunk/openwrt/build_dir/target-
 i386_i486_uClibc-0.9.33.2/cshark-2014-07-02; CFLAGS="-Os -pipe -march=i486
 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable "
 CXXFLAGS="-Os -pipe -march=i486 -fno-caller-saves -fhonour-copts -Wno-
 error=unused-but-set-variable " LDFLAGS="-L/home/development/src/openwrt-
 trunk/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/usr/lib
 -L/home/development/src/openwrt-trunk/openwrt/staging_dir/target-
 i386_i486_uClibc-0.9.33.2/lib -L/home/development/src/openwrt-
 trunk/openwrt/staging_dir/toolchain-
 i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/development/src
 /openwrt-trunk/openwrt/staging_dir/toolchain-
 i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/lib " cmake
 -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_VERSION=1
 -DCMAKE_SYSTEM_PROCESSOR=i386 -DCMAKE_BUILD_TYPE=Release
 -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG"
 -DCMAKE_C_COMPILER="/home/development/src/openwrt-
 trunk/openwrt/staging_dir/toolchain-
 i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/bin/i486-openwrt-linux-uclibc-
 gcc" -DCMAKE_C_COMPILER_ARG1=""
 -DCMAKE_CXX_COMPILER="/home/development/src/openwrt-
 trunk/openwrt/staging_dir/toolchain-
 i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/bin/i486-openwrt-linux-
 uclibc-g++" -DCMAKE_CXX_COMPILER_ARG1=""
 -DCMAKE_EXE_LINKER_FLAGS:STRING="-L/home/development/src/openwrt-
 trunk/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/usr/lib
 -L/home/development/src/openwrt-trunk/openwrt/staging_dir/target-
 i386_i486_uClibc-0.9.33.2/lib -L/home/development/src/openwrt-
 trunk/openwrt/staging_dir/toolchain-
 i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/development/src
 /openwrt-trunk/openwrt/staging_dir/toolchain-
 i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/lib"
 -DCMAKE_MODULE_LINKER_FLAGS:STRING="-L/home/development/src/openwrt-
 trunk/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/usr/lib
 -L/home/development/src/openwrt-trunk/openwrt/staging_dir/target-
 i386_i486_uClibc-0.9.33.2/lib -L/home/development/src/openwrt-
 trunk/openwrt/staging_dir/toolchain-
 i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/development/src
 /openwrt-trunk/openwrt/staging_dir/toolchain-
 i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/lib"
 -DCMAKE_SHARED_LINKER_FLAGS:STRING="-L/home/development/src/openwrt-
 trunk/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/usr/lib
 -L/home/development/src/openwrt-trunk/openwrt/staging_dir/target-
 i386_i486_uClibc-0.9.33.2/lib -L/home/development/src/openwrt-
 trunk/openwrt/staging_dir/toolchain-
 i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/development/src
 /openwrt-trunk/openwrt/staging_dir/toolchain-
 i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/lib"
 -DCMAKE_AR="/home/development/src/openwrt-trunk/openwrt/staging_dir
 /toolchain-i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/bin/i486-openwrt-
 linux-uclibc-gcc-ar" -DCMAKE_NM="/home/development/src/openwrt-
 trunk/openwrt/staging_dir/toolchain-
 i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/bin/i486-openwrt-linux-uclibc-
 gcc-nm" -DCMAKE_RANLIB="/home/development/src/openwrt-
 trunk/openwrt/staging_dir/toolchain-
 i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/bin/i486-openwrt-linux-uclibc-
 gcc-ranlib" -DCMAKE_FIND_ROOT_PATH="/home/development/src/openwrt-
 trunk/openwrt/staging_dir/target-
 i386_i486_uClibc-0.9.33.2;/home/development/src/openwrt-
 trunk/openwrt/staging_dir/toolchain-
 i386_i486_gcc-4.8-linaro_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=/home/development/src/openwrt-
 trunk/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2
 -DCMAKE_PREFIX_PATH=/home/development/src/openwrt-
 trunk/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2
 -DCMAKE_SKIP_RPATH=TRUE -DCMAKE_INSTALL_PREFIX=/usr -DWITH_DEBUG=OFF  . )
 -- The C compiler identification is GNU 4.8.3
 -- Check for working C compiler: /home/development/src/openwrt-
 trunk/openwrt/staging_dir/toolchain-
 i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/bin/i486-openwrt-linux-uclibc-gcc
 -- Check for working C compiler: /home/development/src/openwrt-
 trunk/openwrt/staging_dir/toolchain-
 i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/bin/i486-openwrt-linux-uclibc-gcc
 -- works
 -- Detecting C compiler ABI info
 -- Detecting C compiler ABI info - done
 -- Found PkgConfig: /home/development/src/openwrt-
 trunk/openwrt/staging_dir/host/bin/pkg-config (found version "0.28")
 -- Found LIBUBOX: /home/development/src/openwrt-trunk/openwrt/staging_dir
 /target-i386_i486_uClibc-0.9.33.2/usr/lib/libubox.so
 -- Found LIBUCLIENT: /home/development/src/openwrt-
 trunk/openwrt/staging_dir/target-
 i386_i486_uClibc-0.9.33.2/usr/lib/libuclient.so
 -- Found LIBPCAP: /home/development/src/openwrt-trunk/openwrt/staging_dir
 /target-i386_i486_uClibc-0.9.33.2/usr/lib/libpcap.so
 -- Found UCI: /home/development/src/openwrt-trunk/openwrt/staging_dir
 /target-i386_i486_uClibc-0.9.33.2/usr/lib/libuci.so
 -- Found JSON-C: /home/development/src/openwrt-trunk/openwrt/staging_dir
 /target-i386_i486_uClibc-0.9.33.2/usr/lib/libjson-c.so
 -- Configuring done
 -- Generating done
 CMake Warning:
   Manually-specified variables were not used by the project:

     CMAKE_CXX_COMPILER
     CMAKE_CXX_COMPILER_ARG1
     CMAKE_CXX_FLAGS_RELEASE
     CMAKE_MODULE_LINKER_FLAGS
     CMAKE_SHARED_LINKER_FLAGS
     DL_LIBRARY


 -- Build files have been written to: /home/development/src/openwrt-
 trunk/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/cshark-2014-07-02
 rm -f /home/development/src/openwrt-trunk/openwrt/build_dir/target-
 i386_i486_uClibc-0.9.33.2/cshark-2014-07-02/.configured_
 touch /home/development/src/openwrt-trunk/openwrt/build_dir/target-
 i386_i486_uClibc-0.9.33.2/cshark-2014-07-02/.configured_
 CFLAGS="-Os -pipe -march=i486 -fno-caller-saves -fhonour-copts -Wno-error
 =unused-but-set-variable  -I/home/development/src/openwrt-
 trunk/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/usr/include
 -I/home/development/src/openwrt-trunk/openwrt/staging_dir/target-
 i386_i486_uClibc-0.9.33.2/include -I/home/development/src/openwrt-
 trunk/openwrt/staging_dir/toolchain-
 i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include
 -I/home/development/src/openwrt-trunk/openwrt/staging_dir/toolchain-
 i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/include " CXXFLAGS="-Os -pipe
 -march=i486 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-
 variable  -I/home/development/src/openwrt-trunk/openwrt/staging_dir
 /target-i386_i486_uClibc-0.9.33.2/usr/include -I/home/development/src
 /openwrt-trunk/openwrt/staging_dir/target-
 i386_i486_uClibc-0.9.33.2/include -I/home/development/src/openwrt-
 trunk/openwrt/staging_dir/toolchain-
 i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include
 -I/home/development/src/openwrt-trunk/openwrt/staging_dir/toolchain-
 i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/include "
 LDFLAGS="-L/home/development/src/openwrt-trunk/openwrt/staging_dir/target-
 i386_i486_uClibc-0.9.33.2/usr/lib -L/home/development/src/openwrt-
 trunk/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/lib
 -L/home/development/src/openwrt-trunk/openwrt/staging_dir/toolchain-
 i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/development/src
 /openwrt-trunk/openwrt/staging_dir/toolchain-
 i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/lib " make   -C
 /home/development/src/openwrt-trunk/openwrt/build_dir/target-
 i386_i486_uClibc-0.9.33.2/cshark-2014-07-02/. AR="i486-openwrt-linux-
 uclibc-gcc-ar" AS="i486-openwrt-linux-uclibc-gcc -c -Os -pipe -march=i486
 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable"
 LD=i486-openwrt-linux-uclibc-ld NM="i486-openwrt-linux-uclibc-gcc-nm"
 CC="i486-openwrt-linux-uclibc-gcc" GCC="i486-openwrt-linux-uclibc-gcc"
 CXX="i486-openwrt-linux-uclibc-g++" RANLIB="i486-openwrt-linux-uclibc-gcc-
 ranlib" STRIP=i486-openwrt-linux-uclibc-strip OBJCOPY=i486-openwrt-linux-
 uclibc-objcopy OBJDUMP=i486-openwrt-linux-uclibc-objdump SIZE=i486
 -openwrt-linux-uclibc-size CROSS="i486-openwrt-linux-uclibc-" ARCH="i386"
 ;
 make[4]: Entering directory `/home/development/src/openwrt-
 trunk/openwrt/build_dir/target-
 i386_i486_uClibc-0.9.33.2/cshark-2014-07-02'
 make[5]: Entering directory `/home/development/src/openwrt-
 trunk/openwrt/build_dir/target-
 i386_i486_uClibc-0.9.33.2/cshark-2014-07-02'
 make[6]: Entering directory `/home/development/src/openwrt-
 trunk/openwrt/build_dir/target-
 i386_i486_uClibc-0.9.33.2/cshark-2014-07-02'
 Scanning dependencies of target cshark
 make[6]: Leaving directory `/home/development/src/openwrt-
 trunk/openwrt/build_dir/target-
 i386_i486_uClibc-0.9.33.2/cshark-2014-07-02'
 make[6]: Entering directory `/home/development/src/openwrt-
 trunk/openwrt/build_dir/target-
 i386_i486_uClibc-0.9.33.2/cshark-2014-07-02'
 [ 25%] Building C object CMakeFiles/cshark.dir/src/cshark.c.o
 [ 50%] Building C object CMakeFiles/cshark.dir/src/pcap.c.o
 [ 75%] Building C object CMakeFiles/cshark.dir/src/uclient.c.o
 /home/development/src/openwrt-trunk/openwrt/build_dir/target-
 i386_i486_uClibc-0.9.33.2/cshark-2014-07-02/src/uclient.c:35:23: fatal
 error: json/json.h: No such file or directory
  #include <json/json.h>
                        ^
 compilation terminated.
 make[6]: *** [CMakeFiles/cshark.dir/src/uclient.c.o] Error 1
 make[6]: Leaving directory `/home/development/src/openwrt-
 trunk/openwrt/build_dir/target-
 i386_i486_uClibc-0.9.33.2/cshark-2014-07-02'
 make[5]: *** [CMakeFiles/cshark.dir/all] Error 2
 make[5]: Leaving directory `/home/development/src/openwrt-
 trunk/openwrt/build_dir/target-
 i386_i486_uClibc-0.9.33.2/cshark-2014-07-02'
 make[4]: *** [all] Error 2
 make[4]: Leaving directory `/home/development/src/openwrt-
 trunk/openwrt/build_dir/target-
 i386_i486_uClibc-0.9.33.2/cshark-2014-07-02'
 make[3]: *** [/home/development/src/openwrt-trunk/openwrt/build_dir
 /target-i386_i486_uClibc-0.9.33.2/cshark-2014-07-02/.built] Error 2
 make[3]: Leaving directory `/home/development/src/openwrt-
 trunk/openwrt/feeds/packages/net/cshark'
 make[2]: *** [package/feeds/packages/cshark/compile] Error 2
 make[2]: Leaving directory `/home/development/src/openwrt-trunk/openwrt'
 make[1]: *** [/home/development/src/openwrt-trunk/openwrt/staging_dir
 /target-i386_i486_uClibc-0.9.33.2/stamp/.package_compile] Error 2
 make[1]: Leaving directory `/home/development/src/openwrt-trunk/openwrt'
 make: *** [world] Error 2
 development@openwrt-devel:~/src/openwrt-trunk/openwrt$
 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/19147>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to