OpenWrt Forum Archive

Topic: dbus compile error, can't find expat

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

Hi everyone
I am trying to build OpenWrt svn version and now hanging on dbus.

configure: WARNING: sys/uio.h: present but cannot be compiled
configure: WARNING: sys/uio.h:     check for missing prerequisite headers?
configure: WARNING: sys/uio.h: see the Autoconf documentation
configure: WARNING: sys/uio.h:     section "Present But Cannot Be Compiled"
configure: WARNING: sys/uio.h: proceeding with the preprocessor's result
configure: WARNING: sys/uio.h: in the future, the compiler will take precedence
checking for sys/uio.h... yes
checking for writev... no
checking sys/syslimits.h usability... no
checking sys/syslimits.h presence... no
checking for sys/syslimits.h... no
checking for ISO C99 varargs macros in C... no
checking for GNUC varargs macros... no
checking for struct cmsgcred... no
checking for getpeerucred... no
checking for getpeereid... no
checking for XML_ParserCreate_MM in -lexpat... no
configure: error: Explicitly requested expat but expat not found
make[3]: *** [/home/green/kamikaze/kamikaze-trunk/build_dir/target-mipsel_uClibc-0.9.30.1/dbus-1.2.4.6permissive/.configured_] Error 1
make[3]: Leaving directory `/home/green/kamikaze/kamikaze-trunk/feeds/packages/utils/dbus'
make[2]: *** [package/feeds/packages/dbus/compile] Error 2
make[2]: Leaving directory `/home/green/kamikaze/kamikaze-trunk'
make[1]: *** [/home/green/kamikaze/kamikaze-trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/green/kamikaze/kamikaze-trunk'
make: *** [world] Fehler 2

I have found some tickets dealing with this problem but all have been fixed.
Has anyone an idea what to do now?

same here with revision 17549. automatic expat compile/install was successful before and LDFLAGS are set correctly. libexpat is where it should be...

I use a 2.4 kernel on the target...

When using 2.6 (with gcc 4.1x) everything works fine. But since WLAN doesn't work on ASUS WL-500g Premium we are addicted to 2.4...

make[1]: Entering directory `/home/julius/build/kamikaze'
make[2]: Entering directory `/home/julius/build/kamikaze/feeds/packages/utils/dbus'
if [ -f "/home/julius/build/kamikaze/build_dir/target-mipsel_uClibc-0.9.30.1/dbus-1.2.4.6permissive/./libtool" -a -e "/home/julius/build/kamikaze/staging_dir/target-mipsel_uClibc-0.9.30.1/host/bin/libtool" ]; then rm -f /home/julius/build/kamikaze/build_dir/target-mipsel_uClibc-0.9.30.1/dbus-1.2.4.6permissive/./libtool; ln -s /home/julius/build/kamikaze/staging_dir/target-mipsel_uClibc-0.9.30.1/host/bin/libtool /home/julius/build/kamikaze/build_dir/target-mipsel_uClibc-0.9.30.1/dbus-1.2.4.6permissive/./libtool; fi
if [ -f "/home/julius/build/kamikaze/build_dir/target-mipsel_uClibc-0.9.30.1/dbus-1.2.4.6permissive/./ltmain.sh" -a -e "/home/julius/build/kamikaze/staging_dir/target-mipsel_uClibc-0.9.30.1/host/share/libtool/ltmain.sh" ]; then rm -f /home/julius/build/kamikaze/build_dir/target-mipsel_uClibc-0.9.30.1/dbus-1.2.4.6permissive/./ltmain.sh; ln -s /home/julius/build/kamikaze/staging_dir/target-mipsel_uClibc-0.9.30.1/host/share/libtool/ltmain.sh /home/julius/build/kamikaze/build_dir/target-mipsel_uClibc-0.9.30.1/dbus-1.2.4.6permissive/./ltmain.sh; fi
if [ -f "/home/julius/build/kamikaze/build_dir/target-mipsel_uClibc-0.9.30.1/dbus-1.2.4.6permissive/./libtool.m4" -a -e "/home/julius/build/kamikaze/staging_dir/target-mipsel_uClibc-0.9.30.1/host/share/aclocal/libtool.m4" ]; then rm -f /home/julius/build/kamikaze/build_dir/target-mipsel_uClibc-0.9.30.1/dbus-1.2.4.6permissive/./libtool.m4; ln -s /home/julius/build/kamikaze/staging_dir/target-mipsel_uClibc-0.9.30.1/host/share/aclocal/libtool.m4 /home/julius/build/kamikaze/build_dir/target-mipsel_uClibc-0.9.30.1/dbus-1.2.4.6permissive/./libtool.m4; fi
if [ -f "/home/julius/build/kamikaze/build_dir/target-mipsel_uClibc-0.9.30.1/dbus-1.2.4.6permissive/./configure" ]; then /home/julius/build/kamikaze/staging_dir/host/bin/sed -i -e 's,pardus_ltmain_version=.*,pardus_ltmain_version="$pardus_lt_version",' /home/julius/build/kamikaze/build_dir/target-mipsel_uClibc-0.9.30.1/dbus-1.2.4.6permissive/./configure; fi
(cd /home/julius/build/kamikaze/build_dir/target-mipsel_uClibc-0.9.30.1/dbus-1.2.4.6permissive/./; if [ -x ./configure ]; then /usr/bin/find /home/julius/build/kamikaze/build_dir/target-mipsel_uClibc-0.9.30.1/dbus-1.2.4.6permissive/ -name config.guess | xargs -r chmod u+w; /usr/bin/find /home/julius/build/kamikaze/build_dir/target-mipsel_uClibc-0.9.30.1/dbus-1.2.4.6permissive/ -name config.guess | xargs -r -n1 cp /home/julius/build/kamikaze/scripts/config.guess; /usr/bin/find /home/julius/build/kamikaze/build_dir/target-mipsel_uClibc-0.9.30.1/dbus-1.2.4.6permissive/ -name config.sub | xargs -r chmod u+w; /usr/bin/find /home/julius/build/kamikaze/build_dir/target-mipsel_uClibc-0.9.30.1/dbus-1.2.4.6permissive/ -name config.sub | xargs -r -n1 cp /home/julius/build/kamikaze/scripts/config.sub; AR=mipsel-openwrt-linux-uclibc-ar AS="mipsel-openwrt-linux-uclibc-gcc -c -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float" LD=mipsel-openwrt-linux-uclibc-ld NM=mipsel-openwrt-linux-uclibc-nm CC="mipsel-openwrt-linux-uclibc-gcc" GCC="mipsel-openwrt-linux-uclibc-gcc" CXX="mipsel-openwrt-linux-uclibc-g++" RANLIB=mipsel-openwrt-linux-uclibc-ranlib STRIP=mipsel-openwrt-linux-uclibc-strip OBJCOPY=mipsel-openwrt-linux-uclibc-objcopy OBJDUMP=mipsel-openwrt-linux-uclibc-objdump SIZE=mipsel-openwrt-linux-uclibc-size CFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float " CXXFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float " CPPFLAGS="-I/home/julius/build/kamikaze/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/include -I/home/julius/build/kamikaze/staging_dir/target-mipsel_uClibc-0.9.30.1/include " LDFLAGS="-L/home/julius/build/kamikaze/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/usr/lib -L/home/julius/build/kamikaze/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/lib -L/home/julius/build/kamikaze/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/lib -L/home/julius/build/kamikaze/staging_dir/target-mipsel_uClibc-0.9.30.1/lib -Wl,-rpath-link=/home/julius/build/kamikaze/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/lib -Wl,-rpath=/usr/lib/ "  ac_cv_have_abstract_sockets="yes" ac_cv_header_sys_inotify_h=no   ./configure --target=mipsel-openwrt-linux --host=mipsel-openwrt-linux --build=i486-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  --disable-ipv6 --enable-shared --enable-static --disable-abstract-sockets --disable-ansi --disable-asserts --disable-console-owner-file --disable-doxygen-docs --disable-gcov --disable-selinux --disable-tests --disable-verbose-mode --disable-xml-docs --with-xml="expat" --with-dbus-user=root --with-dbus-daemondir="/usr/sbin" --with-system-socket="/var/run/dbus/system_bus_socket" --with-system-pid-file="/var/run/dbus.pid" --without-x --libexecdir=/usr/lib/dbus-1 ; fi; )
configure: WARNING: unrecognized options: --disable-nls, --disable-ipv6
configure: loading site script /home/julius/build/kamikaze/include/site/mipsel-openwrt-linux2.4-uclibc
checking build system type... i486-pc-linux-gnu
checking host system type... mipsel-openwrt-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for mipsel-openwrt-linux-strip... mipsel-openwrt-linux-uclibc-strip
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking for mipsel-openwrt-linux-gcc... mipsel-openwrt-linux-uclibc-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether mipsel-openwrt-linux-uclibc-gcc accepts -g... yes
checking for mipsel-openwrt-linux-uclibc-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of mipsel-openwrt-linux-uclibc-gcc... gcc3
checking whether mipsel-openwrt-linux-uclibc-gcc and cc understand -c and -o together... yes
checking whether we are using the GNU C++ compiler... yes
checking whether mipsel-openwrt-linux-uclibc-g++ accepts -g... yes
checking dependency style of mipsel-openwrt-linux-uclibc-g++... gcc3
checking for library containing strerror... none required
checking how to run the C preprocessor... mipsel-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 inline... inline
checking for a sed that does not truncate output... /home/julius/build/kamikaze/staging_dir/host/bin/sed
checking for ld used by mipsel-openwrt-linux-uclibc-gcc... mipsel-openwrt-linux-uclibc-ld
checking if the linker (mipsel-openwrt-linux-uclibc-ld) is GNU ld... yes
checking for mipsel-openwrt-linux-uclibc-ld option to reload object files... -r
checking for BSD-compatible nm... mipsel-openwrt-linux-uclibc-nm
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... mipsel-openwrt-linux-uclibc-g++ -E
checking for mipsel-openwrt-linux-g77... no
checking for mipsel-openwrt-linux-xlf... no
checking for mipsel-openwrt-linux-f77... no
checking for mipsel-openwrt-linux-frt... no
checking for mipsel-openwrt-linux-pgf77... no
checking for mipsel-openwrt-linux-cf77... no
checking for mipsel-openwrt-linux-fort77... no
checking for mipsel-openwrt-linux-fl32... no
checking for mipsel-openwrt-linux-af77... no
checking for mipsel-openwrt-linux-xlf90... no
checking for mipsel-openwrt-linux-f90... no
checking for mipsel-openwrt-linux-pgf90... no
checking for mipsel-openwrt-linux-pghpf... no
checking for mipsel-openwrt-linux-epcf90... no
checking for mipsel-openwrt-linux-gfortran... no
checking for mipsel-openwrt-linux-g95... no
checking for mipsel-openwrt-linux-xlf95... no
checking for mipsel-openwrt-linux-f95... no
checking for mipsel-openwrt-linux-fort... no
checking for mipsel-openwrt-linux-ifort... no
checking for mipsel-openwrt-linux-ifc... no
checking for mipsel-openwrt-linux-efc... no
checking for mipsel-openwrt-linux-pgf95... no
checking for mipsel-openwrt-linux-lf95... no
checking for mipsel-openwrt-linux-ftn... no
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 805306365
checking command to parse mipsel-openwrt-linux-uclibc-nm output from mipsel-openwrt-linux-uclibc-gcc object... ok
checking for objdir... .libs
checking for mipsel-openwrt-linux-ar... mipsel-openwrt-linux-uclibc-ar
checking for mipsel-openwrt-linux-ranlib... mipsel-openwrt-linux-uclibc-ranlib
checking for mipsel-openwrt-linux-strip... (cached) mipsel-openwrt-linux-uclibc-strip
checking if mipsel-openwrt-linux-uclibc-gcc supports -fno-rtti -fno-exceptions... no
checking for mipsel-openwrt-linux-uclibc-gcc option to produce PIC... -fPIC
checking if mipsel-openwrt-linux-uclibc-gcc PIC flag -fPIC works... yes
checking if mipsel-openwrt-linux-uclibc-gcc static flag -static works... yes
checking if mipsel-openwrt-linux-uclibc-gcc supports -c -o file.o... yes
checking whether the mipsel-openwrt-linux-uclibc-gcc linker (mipsel-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... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by mipsel-openwrt-linux-uclibc-g++... mipsel-openwrt-linux-uclibc-ld
checking if the linker (mipsel-openwrt-linux-uclibc-ld) is GNU ld... yes
checking whether the mipsel-openwrt-linux-uclibc-g++ linker (mipsel-openwrt-linux-uclibc-ld) supports shared libraries... yes
checking for mipsel-openwrt-linux-uclibc-g++ option to produce PIC... -fPIC
checking if mipsel-openwrt-linux-uclibc-g++ PIC flag -fPIC works... yes
checking if mipsel-openwrt-linux-uclibc-g++ static flag -static works... yes
checking if mipsel-openwrt-linux-uclibc-g++ supports -c -o file.o... yes
checking whether the mipsel-openwrt-linux-uclibc-g++ linker (mipsel-openwrt-linux-uclibc-ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking whether mipsel-openwrt-linux-uclibc-gcc supports "-Wfloat-equals"... yes
checking whether mipsel-openwrt-linux-uclibc-gcc supports "-Wdeclaration-after-statement"... yes
checking whether mipsel-openwrt-linux-uclibc-gcc supports "-fno-common"... yes
checking whether mipsel-openwrt-linux-uclibc-gcc supports "-fPIC"... yes
checking whether mipsel-openwrt-linux-uclibc-ld supports "-z,relro"... conftest.c:0: note: someone does not honour COPTS correctly, passed 0 times
yes
checking whether mipsel-openwrt-linux-uclibc-ld supports "--gc-sections"... no

checking size of char... (cached) 1
checking size of short... (cached) 2
checking size of long... (cached) 4
checking size of int... (cached) 4
checking size of void *... (cached) 4
checking size of long long... (cached) 8
checking size of __int64... (cached) 0
checking 64-bit integer type... long long
checking 32-bit integer type... int
checking 16-bit integer type... short
checking whether byte ordering is bigendian... (cached) no
checking for an implementation of va_copy()... no
checking for an implementation of __va_copy()... no
checking whether va_lists can be copied by value... yes
checking whether to use inline assembler routines for atomic integers... no
checking for socket in -lsocket... no
checking for gethostbyname... no
checking for gethostbyname in -lnsl... no
checking for vsnprintf... (cached) yes
checking for vasprintf... no
checking for nanosleep... no
checking for usleep... no
checking for setenv... no
checking for clearenv... no
checking for unsetenv... no
checking for socketpair... no
checking for getgrouplist... no
checking for fpathconf... no
checking for setrlimit... no
checking for poll... no
checking for broken poll... no (cross compiling)
checking for dirfd... no
checking for DIR *dirp->dd_fd... no
checking execinfo.h usability... no
checking execinfo.h presence... no
checking for execinfo.h... no
checking errno.h usability... no
checking errno.h presence... yes
configure: WARNING: errno.h: present but cannot be compiled
configure: WARNING: errno.h:     check for missing prerequisite headers?
configure: WARNING: errno.h: see the Autoconf documentation
configure: WARNING: errno.h:     section "Present But Cannot Be Compiled"
configure: WARNING: errno.h: proceeding with the preprocessor's result
configure: WARNING: errno.h: in the future, the compiler will take precedence
checking for errno.h... yes
checking for unistd.h... (cached) yes
checking for posix getpwnam_r... yes
checking whether socklen_t is defined... no
checking sys/uio.h usability... no
checking sys/uio.h presence... yes
configure: WARNING: sys/uio.h: present but cannot be compiled
configure: WARNING: sys/uio.h:     check for missing prerequisite headers?
configure: WARNING: sys/uio.h: see the Autoconf documentation
configure: WARNING: sys/uio.h:     section "Present But Cannot Be Compiled"
configure: WARNING: sys/uio.h: proceeding with the preprocessor's result
configure: WARNING: sys/uio.h: in the future, the compiler will take precedence
checking for sys/uio.h... yes
checking for writev... no
checking sys/syslimits.h usability... no
checking sys/syslimits.h presence... no
checking for sys/syslimits.h... no
checking for ISO C99 varargs macros in C... no
checking for GNUC varargs macros... no
checking for struct cmsgcred... no
checking for getpeerucred... no
checking for getpeereid... no
checking for XML_ParserCreate_MM in -lexpat... no
configure: error: Explicitly requested expat but expat not found
make[2]: *** [/home/julius/build/kamikaze/build_dir/target-mipsel_uClibc-0.9.30.1/dbus-1.2.4.6permissive/.configured_] Error 1
make[2]: Leaving directory `/home/julius/build/kamikaze/feeds/packages/utils/dbus'
make[1]: *** [package/feeds/packages/dbus/install] Error 2
make[1]: Leaving directory `/home/julius/build/kamikaze'
make: *** [package/feeds/packages/dbus-install] Fehler 2

(Last edited by itagaki on 10 Sep 2009, 12:28)

I got the same error.
I successfully compiled expat (v2.0.1) alone, using the command

make package/expat/compile V=99

Only after that, I managed to compile dbus after a copy 'n paste from a Makefile, removing two install-commands which did not work. Although dbus compiles, I does give me a segmentation fault when running on a WL-500G Premium. I'm looking into it now, but honestly, I don't think I'm even remotely close to a solution.

(Last edited by Pollax on 16 Sep 2009, 08:42)

The discussion might have continued from here.