10417 questions

12418 answers

19280 comments

21747 members

+1 vote
431 views 2 comments
by

I am trying to make for sdk of RUT955. My system configuration is- Operating System: Ubuntu 16.04.5 LTS, Kernel: Linux 4.4.0-179-generic.
But I am getting following error:
make -r world: build failed. Please re-run make with V=s to see what's going on
/home/tanmay/Downloads/RUT9XX_R_GPL_00.06.06.1/include/toplevel.mk:169: recipe for target 'world' failed
make: *** [world] Error 1

Then I tried to make with 'make V=s' command. Following are the error details:
/usr/local/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup':
dso_dlfcn.c:(.text+0x11): undefined reference to `dlopen'
dso_dlfcn.c:(.text+0x24): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x2f): undefined reference to `dlclose'
/usr/local/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func':
dso_dlfcn.c:(.text+0x334): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x3db): undefined reference to `dlerror'
/usr/local/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var':
dso_dlfcn.c:(.text+0x454): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x4fb): undefined reference to `dlerror'
/usr/local/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load':
dso_dlfcn.c:(.text+0x569): undefined reference to `dlopen'
dso_dlfcn.c:(.text+0x5cb): undefined reference to `dlclose'
dso_dlfcn.c:(.text+0x603): undefined reference to `dlerror'
/usr/local/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_pathbyaddr':
dso_dlfcn.c:(.text+0x69f): undefined reference to `dladdr'
dso_dlfcn.c:(.text+0x709): undefined reference to `dlerror'
/usr/local/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload':
dso_dlfcn.c:(.text+0x762): undefined reference to `dlclose'
collect2: error: ld returned 1 exit status
Utilities/cmcurl/CMakeFiles/LIBCURL.dir/build.make:87: recipe for target 'Utilities/cmcurl/LIBCURL' failed
make[7]: *** [Utilities/cmcurl/LIBCURL] Error 1
make[7]: Leaving directory '/home/tanmay/Downloads/RUT9XX_R_GPL_00.06.06.1/build_dir/host/cmake-3.11.4'
CMakeFiles/Makefile2:1527: recipe for target 'Utilities/cmcurl/CMakeFiles/LIBCURL.dir/all' failed
make[6]: *** [Utilities/cmcurl/CMakeFiles/LIBCURL.dir/all] Error 2
make[6]: Leaving directory '/home/tanmay/Downloads/RUT9XX_R_GPL_00.06.06.1/build_dir/host/cmake-3.11.4'
Makefile:162: recipe for target 'all' failed
make[5]: *** [all] Error 2
make[5]: Leaving directory '/home/tanmay/Downloads/RUT9XX_R_GPL_00.06.06.1/build_dir/host/cmake-3.11.4'
Makefile:29: recipe for target '/home/tanmay/Downloads/RUT9XX_R_GPL_00.06.06.1/build_dir/host/cmake-3.11.4/.built' failed
make[4]: *** [/home/tanmay/Downloads/RUT9XX_R_GPL_00.06.06.1/build_dir/host/cmake-3.11.4/.built] Error 2
make[4]: Leaving directory '/home/tanmay/Downloads/RUT9XX_R_GPL_00.06.06.1/tools/cmake'
tools/Makefile:155: recipe for target 'tools/cmake/compile' failed
make[3]: *** [tools/cmake/compile] Error 2
make[3]: Leaving directory '/home/tanmay/Downloads/RUT9XX_R_GPL_00.06.06.1'
tools/Makefile:154: recipe for target '/home/tanmay/Downloads/RUT9XX_R_GPL_00.06.06.1/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.tools_install_yynyynynynyyyyyyyyyyyyyyyyyyynyyyynnyyynyyynnnyyyy' failed
make[2]: *** [/home/tanmay/Downloads/RUT9XX_R_GPL_00.06.06.1/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.tools_install_yynyynynynyyyyyyyyyyyyyyyyyyynyyyynnyyynyyynnnyyyy] Error 2
make[2]: Leaving directory '/home/tanmay/Downloads/RUT9XX_R_GPL_00.06.06.1'
Makefile:98: recipe for target 'world' failed
make[1]: *** [world] Error 2
make[1]: Leaving directory '/home/tanmay/Downloads/RUT9XX_R_GPL_00.06.06.1'
/home/tanmay/Downloads/RUT9XX_R_GPL_00.06.06.1/include/toplevel.mk:169: recipe for target 'world' failed
make: *** [world] Error 2


Can technical team help me to resolve this dependency issue?
Thanks in advance.

1 Answer

0 votes
by

Firstly, do you install all dependancies ? if not try this : 

sudo apt-get update

sudo apt-get install -y build-essential curl devscripts gawk gcc-multilib gengetopt gettext git groff file flex / libncurses5-dev libssl-dev python2.7 subversion unzip vim-common zlib1g-dev wget

by
Yes I have already tried this on Ubuntu system. After this when i execute make command, following errors are shown.

 make[4] -C tools/missing-macros install
 make[4] -C tools/cmake compile
make -r world: build failed. Please re-run make with V=s to see what's going on
/home/tanmay/Downloads/RUT9XX_R_GPL_00.06.06.1/include/toplevel.mk:169: recipe for target 'world' failed
make: *** [world] Error 1
by
Hi,

Maybe you tried with different Linux version/distribution?

Using Ubuntu 18.04.1 I was able to compile firmware from SDK without any issue just by running "sudo apt-get update/install" and "make" commands.

Also have you made any changes to the file system or were you just compiling standard SDK firwmare?