[OpenWrt-Devel] 14.07 SDK - iostream.h not found

Nishant Sharma codemarauder at gmail.com
Wed Apr 8 04:31:58 EDT 2015


Hi,

This is my first time using the SDK to build a perl module (JSON-XS) 
which is not available in OpenWRT 14.07.

I am using 
OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2 on a 
Debian Jessie x86_64 host.

This module was successfully built if I use BuildRoot and create 
everything from scratch, so there is no problem with package Makefile.

The compilation fails as db47 needs iostream.h and is not found in the 
SDK. (output of "make" is below)

Any pointers on how to resolve this would be of great help.

Thanks in advance.

Regards,
Nishant


nishant at lyle :: make  package/perlbase-json-xs/compile V=s
#
# configuration written to .config
#
make[1]: Entering directory 
'/data/openwrt/hopmesh/sdk/ar71xx/OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2'
make[2]: Entering directory 
'/data/openwrt/hopmesh/sdk/ar71xx/OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/feeds/packages/libs/libxml2'
make[2]: Leaving directory 
'/data/openwrt/hopmesh/sdk/ar71xx/OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/feeds/packages/libs/libxml2'
make[2]: Entering directory 
'/data/openwrt/hopmesh/sdk/ar71xx/OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/feeds/packages/libs/db47'
make   -C 
/data/openwrt/hopmesh/sdk/ar71xx/OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/build_dir/target-mips_34kc_uClibc-0.9.33.2/db-4.7.25.NC/build_unix 
DESTDIR="/data/openwrt/hopmesh/sdk/ar71xx/OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/build_dir/target-mips_34kc_uClibc-0.9.33.2/db-4.7.25.NC/ipkg-install" 
all
make[3]: Entering directory 
'/data/openwrt/hopmesh/sdk/ar71xx/OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/build_dir/target-mips_34kc_uClibc-0.9.33.2/db-4.7.25.NC/build_unix'
/bin/sh ./libtool --mode=compile ccache_cxx -c -I. -I../dist/.. 
-I/data/openwrt/hopmesh/sdk/ar71xx/OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include 
-I/data/openwrt/hopmesh/sdk/ar71xx/OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/target-mips_34kc_uClibc-0.9.33.2/include 
-I/data/openwrt/hopmesh/sdk/ar71xx/OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include 
-I/data/openwrt/hopmesh/sdk/ar71xx/OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include 
  -D_GNU_SOURCE -D_REENTRANT -Os -pipe -mno-branch-likely -mips32r2 
-mtune=34kc -fno-caller-saves -fhonour-copts 
-Wno-error=unused-but-set-variable -msoft-float -mips16 
-minterlink-mips16 -fpic  ../dist/../cxx/cxx_db.cpp
  ccache_cxx -c -I. -I../dist/.. 
-I/data/openwrt/hopmesh/sdk/ar71xx/OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include 
-I/data/openwrt/hopmesh/sdk/ar71xx/OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/target-mips_34kc_uClibc-0.9.33.2/include 
-I/data/openwrt/hopmesh/sdk/ar71xx/OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include 
-I/data/openwrt/hopmesh/sdk/ar71xx/OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include 
-D_GNU_SOURCE -D_REENTRANT -Os -pipe -mno-branch-likely -mips32r2 
-mtune=34kc -fno-caller-saves -fhonour-copts 
-Wno-error=unused-but-set-variable -msoft-float -mips16 
-minterlink-mips16 -fpic ../dist/../cxx/cxx_db.cpp  -fPIC -DPIC -o 
.libs/cxx_db.o
In file included from ../dist/../cxx/cxx_db.cpp:13:0:
./db_cxx.h:59:22: fatal error: iostream.h: No such file or directory
  #include <iostream.h>
                       ^
compilation terminated.
Makefile:1845: recipe for target 'cxx_db.lo' failed
make[3]: *** [cxx_db.lo] Error 1
make[3]: Leaving directory 
'/data/openwrt/hopmesh/sdk/ar71xx/OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/build_dir/target-mips_34kc_uClibc-0.9.33.2/db-4.7.25.NC/build_unix'
Makefile:96: recipe for target 
'/data/openwrt/hopmesh/sdk/ar71xx/OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/build_dir/target-mips_34kc_uClibc-0.9.33.2/db-4.7.25.NC/.built' 
failed
make[2]: *** 
[/data/openwrt/hopmesh/sdk/ar71xx/OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/build_dir/target-mips_34kc_uClibc-0.9.33.2/db-4.7.25.NC/.built] 
Error 2
make[2]: Leaving directory 
'/data/openwrt/hopmesh/sdk/ar71xx/OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/feeds/packages/libs/db47'
package/Makefile:173: recipe for target 
'package/feeds/packages/db47/compile' failed
make[1]: *** [package/feeds/packages/db47/compile] Error 2
make[1]: Leaving directory 
'/data/openwrt/hopmesh/sdk/ar71xx/OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2'
/data/openwrt/hopmesh/sdk/ar71xx/OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/include/toplevel.mk:164: 
recipe for target 'package/perlbase-json-xs/compile' failed
make: *** [package/perlbase-json-xs/compile] Error 2
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list