[avahi] Package dbus-1 was not found in the pkg-config search path.

Robert McCullough robmccullough13 at gmail.com
Mon Apr 30 07:00:15 PDT 2012


*Hi,*
*
*
*I am trying to build avahi for our embedded MPC5200B powerpc running Linux
2.6.34.4.*
*I am getting the following configure error.*

Package dbus-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `dbus-1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dbus-1' found
Error: Couldn't determine the version of your D-Bus package.
  This is probably an error in this script, please report it
  along with the following information:
      Base D-Buss version =''
      DBUS_VERSION_MAJOR='0'
      DBUS_VERSION_MINOR='0'
      DBUS_VERSION_MICRO='0'

*Can someone help me to locate where my problem is?*
*
*
*
*
*Here is my build script:*

#!/bin/sh


##
# Builds  avahi for Linux x86
##
AVAHI_ROOT=/opt/vendors/avahi
AVAHI_VER=avahi-0.6.30
AVAHI_BUILD=linux_x86_build
AVAHI_INSTALL=linux_x86_install
CONFIG_LOG=config-linux_x86.log
BUILD_LOG=build-linux_x86.log
INSTALL_LOG=install-linux_x86.log

EXPAT_INCLUDE=/opt/vendors/Expat/include/expat-2_0_1
EXPAT_LIB=/opt/vendors/Expat/lib/linux_x86/expat-2_0_1
LIBDAEMON_INCLUDE=/opt/vendors/libdaemon/include/libdaemon-0.14
LIBDAEMON_LIB=/opt/vendors/libdaemon/lib/linux_x86/libdaemon-0.14
DBUS_INCLUDE=/opt/vendors/dbus/include/dbus-1.4.12
DBUS_LIB=/opt/vendors/dbus/lib/linux_x86/dbus-1.4.12


#    --prefix=/usr \
#    CC=$(CC) AR=$(AR) \
#    RANLIB=$(RANLIB) STRIP=$(STRIP) \
#    --build=$(build) \
#    --host=$(host) \

echo "Extracting ${AVAHI_VER} to ./${AVAHI_VER} ..."
tar -zxf ${AVAHI_VER}.tar.gz

mkdir ${AVAHI_BUILD}
cd ${AVAHI_BUILD}

make distclean
echo "Configuring ${AVAHI_VER} ..."

../${AVAHI_VER}/configure \
    CPPFLAGS="-I${EXPAT_INCLUDE} -m32" \
    LDFLAGS="-L${EXPAT_LIB} -m32" \
    LIBDAEMON_CFLAGS=-I${LIBDAEMON_INCLUDE} \
    LIBDAEMON_LIBS="-L${LIBDAEMON_LIB} -ldaemon"\
    DBUS_CFLAGS=-I${DBUS_INCLUDE} \
    DBUS_LIBS="-L${DBUS_LIB} -ldbus-1"\
    --disable-gdbm \
    --disable-glib \
    --disable-gobject \
    --disable-gtk \
    --disable-gtk3 \
    --disable-manpages \
    --disable-monodoc \
    --disable-python \
    --disable-qt3 \
    --disable-qt4 \
    --enable-libdaemon \
    --enable-compat-libdns_sd \
    --with-distro=none \
    --with-xml=expat \
    --sysconfdir=/etc \
    --localstatedir=/var \
    --prefix=${AVAHI_ROOT}/${AVAHI_INSTALL} >../${CONFIG_LOG} 2>&1

echo
echo
echo "Building ${AVAHI_VER} ..."
echo "make >../${BUILD_LOG} 2>&1"
make >../${BUILD_LOG} 2>&1

echo
echo
echo "Installing ${AVAHI_VER} into ./${AVAHI_INSTALL} ..."
echo "make install >../${INSTALL_LOG} 2>&1"
make install >../${INSTALL_LOG} 2>&1

cd ..




*
*
*Here is the configure error I am getting:*


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 how to create a pax tar archive... gnutar
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for stow... no
checking for gcc... 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... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether gcc -std=gnu99 and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -std=gnu99 -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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking whether gcc -std=gnu99 needs -traditional... no
checking whether libssp exists... no
checking whether stack-smashing protection is available... yes
checking whether stack-smashing protection is buggy... no
checking whether gcc -std=gnu99 accepts -fstack-protector... yes
checking whether g++ accepts -fstack-protector... yes
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc -std=gnu99... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to
x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain
format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc -std=gnu99
object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
checking if gcc -std=gnu99 static flag -static works... no
checking if gcc -std=gnu99 supports -c -o file.o... yes
checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
checking whether the gcc -std=gnu99 linker (/usr/bin/ld -m elf_i386)
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
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_i386
checking if the linker (/usr/bin/ld -m elf_i386) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_i386) supports shared
libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_i386) supports shared
libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether the C++ compiler works... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking whether to check for GCC pthread/shared inconsistencies... yes
checking whether -pthread is sufficient with -shared... yes
checking for linux/netlink.h... yes
checking for net/route.h... no
checking for sys/filio.h... no
checking for sys/sysctl.h... yes
checking for struct lifconf... no
checking for struct ip_mreqn... yes
checking checking whether rtnetlink.h can be included with -std=c99... yes
checking whether gcc -std=gnu99 accepts -std=c99... yes
checking whether gcc -std=gnu99 accepts -Wall... yes
checking whether gcc -std=gnu99 accepts -W... yes
checking whether gcc -std=gnu99 accepts -Wextra... yes
checking whether gcc -std=gnu99 accepts -pedantic... yes
checking whether gcc -std=gnu99 accepts -pipe... yes
checking whether gcc -std=gnu99 accepts -Wformat... yes
checking whether gcc -std=gnu99 accepts -Wold-style-definition... yes
checking whether gcc -std=gnu99 accepts -Wdeclaration-after-statement... yes
checking whether gcc -std=gnu99 accepts -Wfloat-equal... yes
checking whether gcc -std=gnu99 accepts -Wmissing-declarations... yes
checking whether gcc -std=gnu99 accepts -Wmissing-prototypes... yes
checking whether gcc -std=gnu99 accepts -Wstrict-prototypes... yes
checking whether gcc -std=gnu99 accepts -Wredundant-decls... yes
checking whether gcc -std=gnu99 accepts -Wmissing-noreturn... yes
checking whether gcc -std=gnu99 accepts -Wshadow... yes
checking whether gcc -std=gnu99 accepts -Wendif-labels... yes
checking whether gcc -std=gnu99 accepts -Wpointer-arith... yes
checking whether gcc -std=gnu99 accepts -Wbad-function-cast... yes
checking whether gcc -std=gnu99 accepts -Wcast-qual... yes
checking whether gcc -std=gnu99 accepts -Wcast-align... yes
checking whether gcc -std=gnu99 accepts -Wwrite-strings... yes
checking whether gcc -std=gnu99 accepts -fdiagnostics-show-option... yes
checking whether gcc -std=gnu99 accepts -Wno-cast-qual... yes
checking whether gcc -std=gnu99 accepts -fno-strict-aliasing... yes
checking for ANSI C header files... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for library containing inet_ntop... none required
checking for library containing recv... none required
checking whether CMSG_SPACE is declared... yes
checking for working memcmp... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking for gethostname... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for select... yes
checking for socket... yes
checking for strchr... yes
checking for strcspn... yes
checking for strdup... yes
checking for strerror... yes
checking for strrchr... yes
checking for strspn... yes
checking for strstr... yes
checking for uname... yes
checking for setresuid... yes
checking for setreuid... yes
checking for setresgid... yes
checking for setregid... yes
checking for strcasecmp... yes
checking for gettimeofday... yes
checking for putenv... yes
checking for strncasecmp... yes
checking for strlcpy... no
checking for gethostbyname... yes
checking for seteuid... yes
checking for setegid... yes
checking for setproctitle... no
checking for getprogname... no
checking for uid_t in sys/types.h... yes
checking for unistd.h... (cached) yes
checking for working chown... yes
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for mode_t... yes
checking for pid_t... yes
checking whether environ is declared... yes
checking for gcc -fvisibility=hidden support... yes
checking sys/capability.h usability... no
checking sys/capability.h presence... no
checking for sys/capability.h... no
checking sys/prctl.h usability... yes
checking sys/prctl.h presence... yes
checking for sys/prctl.h... yes
checking for chroot... yes
checking for dlopen in -ldl... yes
checking for dlfcn.h... (cached) yes
checking sys/inotify.h usability... yes
checking sys/inotify.h presence... yes
checking for sys/inotify.h... yes
checking for kqueue... no
checking whether NLS is requested... yes
checking for intltool >= 0.35.0... 0.41.1 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.14.2
checking for XML::Parser... ok
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for pkg-config... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gobject-introspection... no
checking for DBUS... yes
Package dbus-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `dbus-1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dbus-1' found
Error: Couldn't determine the version of your D-Bus package.
  This is probably an error in this script, please report it
  along with the following information:
      Base D-Buss version =''
      DBUS_VERSION_MAJOR='0'
      DBUS_VERSION_MINOR='0'
      DBUS_VERSION_MICRO='0'


*Thanks,*
*Rob*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/avahi/attachments/20120430/9224afc7/attachment-0001.htm>


More information about the avahi mailing list