OpenWrt Forum Archive

Topic: is there a Java dependency / pre-requisite for 12.09 ?

The content of this topic has been archived on 28 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi;
    using an old old laptop (Pentium  4 Mobile grade of processor), with a fresh install of Lubuntu 12.10 (with all the updates suggested by the Update manager), no apps other than browser/X11vnc.

Followed instructions on these pages to install all the stuff needed for OpenWRT, then downloaded / built the 12.09 toolchain and device images according to default .config file.

Then I installed / enabled package feeds (all of them), and set another 'make running'

After about twice as long as first build above (ie a lot of work was done with the stuff from package feeds), build aborted with a message like:

OpenWrt-libtoolize: linking file `./ltmain.sh'
OpenWrt-libtoolize: putting macros in `m4'.
OpenWrt-libtoolize: linking file `m4/libtool.m4'
OpenWrt-libtoolize: linking file `m4/ltoptions.m4'
OpenWrt-libtoolize: linking file `m4/ltsugar.m4'
OpenWrt-libtoolize: linking file `m4/ltversion.m4'
OpenWrt-libtoolize: linking file `m4/lt~obsolete.m4'
OpenWrt-libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
OpenWrt-libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
configure.ac:499: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from...
m4/ax_func_which_gethostbyname_r.m4:37: AX_FUNC_WHICH_GETHOSTBYNAME_R is expanded from...
configure.ac:499: the top level
autoreconf: running: /home/charlie/openwrt/openwrt/staging_dir/host/bin/autoconf --include=/home/charlie/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/host/share/aclocal --include=/home/charlie/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/share/aclocal --include=m4 --include=. --prepend-include=/home/charlie/openwrt/openwrt/staging_dir/host/share/aclocal --force
configure.ac:499: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from...
m4/ax_func_which_gethostbyname_r.m4:37: AX_FUNC_WHICH_GETHOSTBYNAME_R is expanded from...
configure.ac:499: the top level
autoreconf: running: /home/charlie/openwrt/openwrt/staging_dir/host/bin/autoheader --include=/home/charlie/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/host/share/aclocal --include=/home/charlie/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/share/aclocal --include=m4 --include=. --prepend-include=/home/charlie/openwrt/openwrt/staging_dir/host/share/aclocal --force
configure.ac:499: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from...
m4/ax_func_which_gethostbyname_r.m4:37: AX_FUNC_WHICH_GETHOSTBYNAME_R is expanded from...
configure.ac:499: the top level
autoreconf: running: /home/charlie/openwrt/openwrt/staging_dir/host/bin/automake --add-missing --force-missing
configure.ac:499: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from...
m4/ax_func_which_gethostbyname_r.m4:37: AX_FUNC_WHICH_GETHOSTBYNAME_R is expanded from...
configure.ac:499: the top level
autoreconf: Leaving directory `.'
(cd /home/charlie/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/classpath-0.98/./; if [ -x ./configure ]; then /usr/bin/find /home/charlie/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/classpath-0.98/ -name config.guess | xargs -r chmod u+w; /usr/bin/find /home/charlie/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/classpath-0.98/ -name config.guess | xargs -r -n1 cp /home/charlie/openwrt/openwrt/scripts/config.guess; /usr/bin/find /home/charlie/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/classpath-0.98/ -name config.sub | xargs -r chmod u+w; /usr/bin/find /home/charlie/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/classpath-0.98/ -name config.sub | xargs -r -n1 cp /home/charlie/openwrt/openwrt/scripts/config.sub; AR=mips-openwrt-linux-uclibc-ar AS="mips-openwrt-linux-uclibc-gcc -c -Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float" LD=mips-openwrt-linux-uclibc-ld NM=mips-openwrt-linux-uclibc-nm CC="mips-openwrt-linux-uclibc-gcc" GCC="mips-openwrt-linux-uclibc-gcc" CXX="mips-openwrt-linux-uclibc-g++" RANLIB=mips-openwrt-linux-uclibc-ranlib STRIP=mips-openwrt-linux-uclibc-strip OBJCOPY=mips-openwrt-linux-uclibc-objcopy OBJDUMP=mips-openwrt-linux-uclibc-objdump SIZE=mips-openwrt-linux-uclibc-size CFLAGS="-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float " CXXFLAGS="-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float " CPPFLAGS="-I/home/charlie/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/charlie/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/include -I/home/charlie/openwrt/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/include -I/home/charlie/openwrt/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/include " LDFLAGS="-L/home/charlie/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib -L/home/charlie/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/lib -L/home/charlie/openwrt/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/lib -L/home/charlie/openwrt/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/lib "   ./configure --target=mips-openwrt-linux --host=mips-openwrt-linux --build=i686-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls   --without-x --disable-gtk-peer --disable-qt-peer --disable-dssi --disable-plugin --disable-gconf-peer --disable-gjdoc --with-antlr-jar=/home/charlie/openwrt/openwrt/dl/antlr-3.4-complete.jar ; fi; )
configure: WARNING: unrecognized options: --disable-nls
configure: loading site script /home/charlie/openwrt/openwrt/include/site/mips-openwrt-linux-uclibc
checking build system type... i686-pc-linux-gnu
checking host system type... mips-openwrt-linux-gnu
checking target system type... mips-openwrt-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mips-openwrt-linux-strip... mips-openwrt-linux-uclibc-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking for style of include used by make... GNU
checking for mips-openwrt-linux-gcc... mips-openwrt-linux-uclibc-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether mips-openwrt-linux-uclibc-gcc accepts -g... yes
checking for mips-openwrt-linux-uclibc-gcc option to accept ISO C89... none needed
checking dependency style of mips-openwrt-linux-uclibc-gcc... gcc3
checking how to run the C preprocessor... mips-openwrt-linux-uclibc-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking alsa/asoundlib.h usability... yes
checking alsa/asoundlib.h presence... yes
checking for alsa/asoundlib.h... yes
checking for snd_seq_open in -lasound... yes
checking whether to regenerate the headers... no
checking whether to regenerate the GJDoc parser... yes
checking whether ln -s works... yes
checking whether we are using the GNU C++ compiler... yes
checking whether mips-openwrt-linux-uclibc-g++ accepts -g... yes
checking dependency style of mips-openwrt-linux-uclibc-g++... gcc3
checking how to print strings... printf
checking for a sed that does not truncate output... /home/charlie/openwrt/openwrt/staging_dir/host/bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by mips-openwrt-linux-uclibc-gcc... mips-openwrt-linux-uclibc-ld
checking if the linker (mips-openwrt-linux-uclibc-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... mips-openwrt-linux-uclibc-nm
checking the name lister (mips-openwrt-linux-uclibc-nm) interface... BSD nm
checking the maximum length of command line arguments... 805306365
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-linux-gnu file names to mips-openwrt-linux-gnu format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for mips-openwrt-linux-uclibc-ld option to reload object files... -r
checking for mips-openwrt-linux-objdump... mips-openwrt-linux-uclibc-objdump
checking how to recognize dependent libraries... pass_all
checking for mips-openwrt-linux-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for mips-openwrt-linux-ar... mips-openwrt-linux-uclibc-ar
checking for archiver @FILE support... @
checking for mips-openwrt-linux-strip... (cached) mips-openwrt-linux-uclibc-strip
checking for mips-openwrt-linux-ranlib... mips-openwrt-linux-uclibc-ranlib
checking command to parse mips-openwrt-linux-uclibc-nm output from mips-openwrt-linux-uclibc-gcc object... ok
checking for sysroot... no
checking for mips-openwrt-linux-mt... no
checking for mt... mt
configure: WARNING: using cross tools not prefixed with host triplet
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if mips-openwrt-linux-uclibc-gcc supports -fno-rtti -fno-exceptions... no
checking for mips-openwrt-linux-uclibc-gcc option to produce PIC... -fPIC -DPIC
checking if mips-openwrt-linux-uclibc-gcc PIC flag -fPIC -DPIC works... yes
checking if mips-openwrt-linux-uclibc-gcc static flag -static works... yes
checking if mips-openwrt-linux-uclibc-gcc supports -c -o file.o... yes
checking if mips-openwrt-linux-uclibc-gcc supports -c -o file.o... (cached) yes
checking whether the mips-openwrt-linux-uclibc-gcc linker (mips-openwrt-linux-uclibc-ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... mips-openwrt-linux-uclibc-g++ -E
checking for ld used by mips-openwrt-linux-uclibc-g++... mips-openwrt-linux-uclibc-ld
checking if the linker (mips-openwrt-linux-uclibc-ld) is GNU ld... yes
checking whether the mips-openwrt-linux-uclibc-g++ linker (mips-openwrt-linux-uclibc-ld) supports shared libraries... yes
checking for mips-openwrt-linux-uclibc-g++ option to produce PIC... -fPIC -DPIC
checking if mips-openwrt-linux-uclibc-g++ PIC flag -fPIC -DPIC works... yes
checking if mips-openwrt-linux-uclibc-g++ static flag -static works... yes
checking if mips-openwrt-linux-uclibc-g++ supports -c -o file.o... yes
checking if mips-openwrt-linux-uclibc-g++ supports -c -o file.o... (cached) yes
checking whether the mips-openwrt-linux-uclibc-g++ linker (mips-openwrt-linux-uclibc-ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for gawk... (cached) gawk
checking for mips-openwrt-linux-gcc... (cached) mips-openwrt-linux-uclibc-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether mips-openwrt-linux-uclibc-gcc accepts -g... (cached) yes
checking for mips-openwrt-linux-uclibc-gcc option to accept ISO C89... (cached) none needed
checking dependency style of mips-openwrt-linux-uclibc-gcc... (cached) gcc3
checking whether mips-openwrt-linux-uclibc-gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... mips-openwrt-linux-uclibc-gcc -E
checking __attribute__((,,))... yes
checking __attribute__((unused))... yes
checking for ANSI C header files... (cached) yes
checking size of void *... (cached) 4
checking whether byte ordering is bigendian... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/types.h... (cached) yes
checking sys/config.h usability... no
checking sys/config.h presence... no
checking for sys/config.h... no
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking asm/ioctls.h usability... yes
checking asm/ioctls.h presence... yes
checking for asm/ioctls.h... yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking sys/utime.h usability... no
checking sys/utime.h presence... no
checking for sys/utime.h... no
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking crt_externs.h usability... no
checking crt_externs.h presence... no
checking for crt_externs.h... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking magic.h usability... yes
checking magic.h presence... yes
checking for magic.h... yes
checking sys/event.h usability... no
checking sys/event.h presence... no
checking for sys/event.h... no
checking sys/epoll.h usability... yes
checking sys/epoll.h presence... yes
checking for sys/epoll.h... yes
checking ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking netinet/in_systm.h usability... yes
checking netinet/in_systm.h presence... yes
checking for netinet/in_systm.h... yes
checking netinet/ip.h usability... yes
checking netinet/ip.h presence... yes
checking for netinet/ip.h... yes
checking net/if.h usability... yes
checking net/if.h presence... yes
checking for net/if.h... yes
checking sys/loadavg.h usability... no
checking sys/loadavg.h presence... no
checking for sys/loadavg.h... no
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking for library containing inet_pton... none required
checking for gethostname in -lsocket... no
checking for ftruncate... yes
checking for fsync... yes
checking for select... yes
checking for gethostname... yes
checking for socket... yes
checking for strerror... (cached) yes
checking for fork... yes
checking for pipe... yes
checking for execve... yes
checking for open... yes
checking for close... yes
checking for lseek... yes
checking for fstat... yes
checking for read... yes
checking for readv... yes
checking for write... yes
checking for writev... yes
checking for htonl... yes
checking for memset... yes
checking for htons... yes
checking for connect... yes
checking for getsockname... yes
checking for getpeername... yes
checking for bind... yes
checking for listen... yes
checking for accept... yes
checking for recvfrom... yes
checking for send... yes
checking for sendto... yes
checking for setsockopt... yes
checking for getsockopt... yes
checking for time... yes
checking for mktime... yes
checking for gethostbyname_r... yes
checking for localtime_r... yes
checking for strerror_r... yes
checking for fcntl... yes
checking for statvfs... yes
checking for mmap... yes
checking for munmap... yes
checking for mincore... yes
checking for msync... yes
checking for madvise... yes
checking for getpagesize... yes
checking for sysconf... yes
checking for lstat... (cached) yes
checking for readlink... yes
checking for inet_aton... yes
checking for inet_addr... yes
checking for inet_pton... yes
checking for getifaddrs... yes
checking for kqueue... no
checking for kevent... no
checking for epoll_create... yes
checking for getloadavg... no
checking for magic_open in -lmagic... yes
checking whether struct sockaddr_in6 is in netinet/in.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking for tm_gmtoff in struct tm... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for __attribute__... yes
checking how many arguments gethostbyname_r() takes... six
checking for ld used by GCC... mips-openwrt-linux-uclibc-ld
checking if the linker (mips-openwrt-linux-uclibc-ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... no, consider installing GNU libiconv
checking for MSG_NOSIGNAL... yes
checking for SO_NOSIGPIPE ... no
checking for MSG_WAITALL... yes
checking for __gmpz_mul_si in -lgmp... yes
checking gmp.h usability... yes
checking gmp.h presence... yes
checking for gmp.h... yes
checking jni_md.h support... configure: WARNING: no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for mkdir... /bin/mkdir
checking for cp... /home/charlie/openwrt/openwrt/staging_dir/host/bin/cp
checking for date... /bin/date
checking for find... /usr/bin/find
checking for zip... /usr/bin/zip
checking for a jar-like tool... trying fastjar, gjar and jar
checking for fastjar... /usr/bin/fastjar
checking whether to regenerate parsers with jay... no
checking for stdint types... stdint.h (shortcircuit)
make use of stdint.h in include/config-int.h (assuming C99 compatible system)
checking for cacao... no
checking for jamvm... no
checking for kaffe... no
checking for gij... no
checking for java... no
configure: error: no acceptable Java virtual machine found in $PATH
make[3]: *** [/home/charlie/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/classpath-0.98/.configured_] Error 1
make[3]: Leaving directory `/home/charlie/openwrt/openwrt/feeds/packages/libs/classpath'
make[2]: *** [package/feeds/packages/classpath/compile] Error 2
make[2]: Leaving directory `/home/charlie/openwrt/openwrt'
make[1]: *** [/home/charlie/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/charlie/openwrt/openwrt'
make: *** [world] Error 2

# echo $PATH
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

# dpkg-query -l '*java*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                 Version                                    Architecture Description
+++-====================================-==========================================-============-==========================================================================
ii  gir1.2-javascriptcoregtk-3.0         1.10.0-0ubuntu1.1                          i386         GObject introspection data for the GTK+-based JavaScriptCore library
ii  libjavascriptcoregtk-3.0-0           1.10.0-0ubuntu1.1                          i386         Javascript engine library for GTK+
un  libjna-java                          <none>                                                  (no description available)
un  libsaxon-java                        <none>                                                  (no description available)
un  libxalan2-java                       <none>                                                  (no description available)
un  libxslthl-java                       <none>                                                  (no description available)

I can provide the full build log if needed (about 40MByte / 190k lines) if that is really needed...

thanks..

Hi,

I got the same issue. Did you figure out how to fix it?

If I read the error log you need to have java/openjdk installed as well.
So the issue will go away when you install that.

But never knew you needed java to begin with hmm If someone would have some info on that it would be nice smile

to install java oracle 7:

sudo apt-get install python-software-properties

sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update

sudo apt-get install oracle-java7-installer

(Last edited by FriedZombie on 18 Sep 2013, 21:59)

The discussion might have continued from here.