<div><b>Hi,</b></div><div><b><br></b></div><div><b>I am trying to build avahi for our embedded MPC5200B powerpc running Linux 2.6.34.4.</b></div><div><b>I am getting the following configure error.</b></div><div><br></div><div>
Package dbus-1 was not found in the pkg-config search path.</div><div>Perhaps you should add the directory containing `dbus-1.pc&#39;</div><div>to the PKG_CONFIG_PATH environment variable</div><div>No package &#39;dbus-1&#39; found</div>
<div>Error: Couldn&#39;t determine the version of your D-Bus package.</div><div>  This is probably an error in this script, please report it</div><div>  along with the following information:</div><div>      Base D-Buss version =&#39;&#39;</div>
<div>      DBUS_VERSION_MAJOR=&#39;0&#39;</div><div>      DBUS_VERSION_MINOR=&#39;0&#39;</div><div>      DBUS_VERSION_MICRO=&#39;0&#39;</div><div><br></div><div><b>Can someone help me to locate where my problem is?</b></div>
<div><b><br></b></div><div><b><br></b></div><div><b>Here is my build script:</b></div><div><br></div><div>#!/bin/sh</div><div><br></div><div><br></div><div>##</div><div># Builds  avahi for Linux x86</div><div>##</div><div>
AVAHI_ROOT=/opt/vendors/avahi</div><div>AVAHI_VER=avahi-0.6.30</div><div>AVAHI_BUILD=linux_x86_build</div><div>AVAHI_INSTALL=linux_x86_install</div><div>CONFIG_LOG=config-linux_x86.log</div><div>BUILD_LOG=build-linux_x86.log</div>
<div>INSTALL_LOG=install-linux_x86.log</div><div><br></div><div>EXPAT_INCLUDE=/opt/vendors/Expat/include/expat-2_0_1</div><div>EXPAT_LIB=/opt/vendors/Expat/lib/linux_x86/expat-2_0_1</div><div>LIBDAEMON_INCLUDE=/opt/vendors/libdaemon/include/libdaemon-0.14</div>
<div>LIBDAEMON_LIB=/opt/vendors/libdaemon/lib/linux_x86/libdaemon-0.14</div><div>DBUS_INCLUDE=/opt/vendors/dbus/include/dbus-1.4.12</div><div>DBUS_LIB=/opt/vendors/dbus/lib/linux_x86/dbus-1.4.12</div><div><br></div><div><br>
</div><div>#    --prefix=/usr \</div><div>#    CC=$(CC) AR=$(AR) \</div><div>#    RANLIB=$(RANLIB) STRIP=$(STRIP) \</div><div>#    --build=$(build) \</div><div>#    --host=$(host) \</div><div><br></div><div>echo &quot;Extracting ${AVAHI_VER} to ./${AVAHI_VER} ...&quot;</div>
<div>tar -zxf ${AVAHI_VER}.tar.gz</div><div><br></div><div>mkdir ${AVAHI_BUILD}</div><div>cd ${AVAHI_BUILD}</div><div><br></div><div>make distclean</div><div>echo &quot;Configuring ${AVAHI_VER} ...&quot;</div><div>    </div>
<div>../${AVAHI_VER}/configure \</div><div>    CPPFLAGS=&quot;-I${EXPAT_INCLUDE} -m32&quot; \</div><div>    LDFLAGS=&quot;-L${EXPAT_LIB} -m32&quot; \</div><div>    LIBDAEMON_CFLAGS=-I${LIBDAEMON_INCLUDE} \</div><div>    LIBDAEMON_LIBS=&quot;-L${LIBDAEMON_LIB} -ldaemon&quot;\</div>
<div>    DBUS_CFLAGS=-I${DBUS_INCLUDE} \</div><div>    DBUS_LIBS=&quot;-L${DBUS_LIB} -ldbus-1&quot;\</div><div>    --disable-gdbm \</div><div>    --disable-glib \</div><div>    --disable-gobject \</div><div>    --disable-gtk \</div>
<div>    --disable-gtk3 \</div><div>    --disable-manpages \</div><div>    --disable-monodoc \</div><div>    --disable-python \</div><div>    --disable-qt3 \</div><div>    --disable-qt4 \</div><div>    --enable-libdaemon \</div>
<div>    --enable-compat-libdns_sd \</div><div>    --with-distro=none \</div><div>    --with-xml=expat \</div><div>    --sysconfdir=/etc \</div><div>    --localstatedir=/var \</div><div>    --prefix=${AVAHI_ROOT}/${AVAHI_INSTALL} &gt;../${CONFIG_LOG} 2&gt;&amp;1    </div>
<div>    </div><div>echo</div><div>echo</div><div>echo &quot;Building ${AVAHI_VER} ...&quot;</div><div>echo &quot;make &gt;../${BUILD_LOG} 2&gt;&amp;1&quot;</div><div>make &gt;../${BUILD_LOG} 2&gt;&amp;1</div><div><br></div>
<div>echo</div><div>echo</div><div>echo &quot;Installing ${AVAHI_VER} into ./${AVAHI_INSTALL} ...&quot;</div><div>echo &quot;make install &gt;../${INSTALL_LOG} 2&gt;&amp;1&quot;</div><div>make install &gt;../${INSTALL_LOG} 2&gt;&amp;1</div>
<div><br></div><div>cd ..</div><div><br></div><div><br></div><div><br></div><div><br></div><div><b><br></b></div><div><b>Here is the configure error I am getting:</b></div><div><br></div><div><br></div><div>checking for a BSD-compatible install... /usr/bin/install -c</div>
<div>checking whether build environment is sane... yes</div><div>checking for a thread-safe mkdir -p... /bin/mkdir -p</div><div>checking for gawk... gawk</div><div>checking whether make sets $(MAKE)... yes</div><div>checking how to create a pax tar archive... gnutar</div>
<div>checking build system type... x86_64-unknown-linux-gnu</div><div>checking host system type... x86_64-unknown-linux-gnu</div><div>checking for stow... no</div><div>checking for gcc... gcc</div><div>checking whether the C compiler works... yes</div>
<div>checking for C compiler default output file name... a.out</div><div>checking for suffix of executables... </div><div>checking whether we are cross compiling... no</div><div>checking for suffix of object files... o</div>
<div>checking whether we are using the GNU C compiler... yes</div><div>checking whether gcc accepts -g... yes</div><div>checking for gcc option to accept ISO C89... none needed</div><div>checking for style of include used by make... GNU</div>
<div>checking dependency style of gcc... gcc3</div><div>checking for gcc option to accept ISO C99... -std=gnu99</div><div>checking for g++... g++</div><div>checking whether we are using the GNU C++ compiler... yes</div><div>
checking whether g++ accepts -g... yes</div><div>checking dependency style of g++... gcc3</div><div>checking whether gcc -std=gnu99 and cc understand -c and -o together... yes</div><div>checking how to run the C preprocessor... gcc -std=gnu99 -E</div>
<div>checking for grep that handles long lines and -e... /bin/grep</div><div>checking for egrep... /bin/grep -E</div><div>checking for ANSI C header files... yes</div><div>checking for sys/types.h... yes</div><div>checking for sys/stat.h... yes</div>
<div>checking for stdlib.h... yes</div><div>checking for string.h... yes</div><div>checking for memory.h... yes</div><div>checking for strings.h... yes</div><div>checking for inttypes.h... yes</div><div>checking for stdint.h... yes</div>
<div>checking for unistd.h... yes</div><div>checking minix/config.h usability... no</div><div>checking minix/config.h presence... no</div><div>checking for minix/config.h... no</div><div>checking whether it is safe to define __EXTENSIONS__... yes</div>
<div>checking how to run the C preprocessor... gcc -std=gnu99 -E</div><div>checking whether ln -s works... yes</div><div>checking whether make sets $(MAKE)... (cached) yes</div><div>checking whether gcc -std=gnu99 needs -traditional... no</div>
<div>checking whether libssp exists... no</div><div>checking whether stack-smashing protection is available... yes</div><div>checking whether stack-smashing protection is buggy... no</div><div>checking whether gcc -std=gnu99 accepts -fstack-protector... yes</div>
<div>checking whether g++ accepts -fstack-protector... yes</div><div>checking how to print strings... printf</div><div>checking for a sed that does not truncate output... /bin/sed</div><div>checking for fgrep... /bin/grep -F</div>
<div>checking for ld used by gcc -std=gnu99... /usr/bin/ld</div><div>checking if the linker (/usr/bin/ld) is GNU ld... yes</div><div>checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B</div><div>checking the name lister (/usr/bin/nm -B) interface... BSD nm</div>
<div>checking the maximum length of command line arguments... 1572864</div><div>checking whether the shell understands some XSI constructs... yes</div><div>checking whether the shell understands &quot;+=&quot;... yes</div>
<div>checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop</div><div>checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop</div>
<div>checking for /usr/bin/ld option to reload object files... -r</div><div>checking for objdump... objdump</div><div>checking how to recognize dependent libraries... pass_all</div><div>checking for dlltool... no</div><div>
checking how to associate runtime and link libraries... printf %s\n</div><div>checking for ar... ar</div><div>checking for archiver @FILE support... @</div><div>checking for strip... strip</div><div>checking for ranlib... ranlib</div>
<div>checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok</div><div>checking for sysroot... no</div><div>checking for mt... no</div><div>checking if : is a manifest tool... no</div><div>checking for dlfcn.h... yes</div>
<div>checking for objdir... .libs</div><div>checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no</div><div>checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC</div><div>checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes</div>
<div>checking if gcc -std=gnu99 static flag -static works... no</div><div>checking if gcc -std=gnu99 supports -c -o file.o... yes</div><div>checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes</div><div>checking whether the gcc -std=gnu99 linker (/usr/bin/ld -m elf_i386) supports shared libraries... yes</div>
<div>checking whether -lc should be explicitly linked in... no</div><div>checking dynamic linker characteristics... GNU/Linux ld.so</div><div>checking how to hardcode library paths into programs... immediate</div><div>checking whether stripping libraries is possible... yes</div>
<div>checking if libtool supports shared libraries... yes</div><div>checking whether to build shared libraries... yes</div><div>checking whether to build static libraries... yes</div><div>checking how to run the C++ preprocessor... g++ -E</div>
<div>checking for ld used by g++... /usr/bin/ld -m elf_i386</div><div>checking if the linker (/usr/bin/ld -m elf_i386) is GNU ld... yes</div><div>checking whether the g++ linker (/usr/bin/ld -m elf_i386) supports shared libraries... yes</div>
<div>checking for g++ option to produce PIC... -fPIC -DPIC</div><div>checking if g++ PIC flag -fPIC -DPIC works... yes</div><div>checking if g++ static flag -static works... no</div><div>checking if g++ supports -c -o file.o... yes</div>
<div>checking if g++ supports -c -o file.o... (cached) yes</div><div>checking whether the g++ linker (/usr/bin/ld -m elf_i386) supports shared libraries... yes</div><div>checking dynamic linker characteristics... (cached) GNU/Linux ld.so</div>
<div>checking how to hardcode library paths into programs... immediate</div><div>checking whether the C++ compiler works... yes</div><div>checking for the pthreads library -lpthreads... no</div><div>checking whether pthreads work without any flags... no</div>
<div>checking whether pthreads work with -Kthread... no</div><div>checking whether pthreads work with -kthread... no</div><div>checking for the pthreads library -llthread... no</div><div>checking whether pthreads work with -pthread... yes</div>
<div>checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE</div><div>checking if more special flags are required for pthreads... no</div><div>checking whether to check for GCC pthread/shared inconsistencies... yes</div>
<div>checking whether -pthread is sufficient with -shared... yes</div><div>checking for linux/netlink.h... yes</div><div>checking for net/route.h... no</div><div>checking for sys/filio.h... no</div><div>checking for sys/sysctl.h... yes</div>
<div>checking for struct lifconf... no</div><div>checking for struct ip_mreqn... yes</div><div>checking checking whether rtnetlink.h can be included with -std=c99... yes</div><div>checking whether gcc -std=gnu99 accepts -std=c99... yes</div>
<div>checking whether gcc -std=gnu99 accepts -Wall... yes</div><div>checking whether gcc -std=gnu99 accepts -W... yes</div><div>checking whether gcc -std=gnu99 accepts -Wextra... yes</div><div>checking whether gcc -std=gnu99 accepts -pedantic... yes</div>
<div>checking whether gcc -std=gnu99 accepts -pipe... yes</div><div>checking whether gcc -std=gnu99 accepts -Wformat... yes</div><div>checking whether gcc -std=gnu99 accepts -Wold-style-definition... yes</div><div>checking whether gcc -std=gnu99 accepts -Wdeclaration-after-statement... yes</div>
<div>checking whether gcc -std=gnu99 accepts -Wfloat-equal... yes</div><div>checking whether gcc -std=gnu99 accepts -Wmissing-declarations... yes</div><div>checking whether gcc -std=gnu99 accepts -Wmissing-prototypes... yes</div>
<div>checking whether gcc -std=gnu99 accepts -Wstrict-prototypes... yes</div><div>checking whether gcc -std=gnu99 accepts -Wredundant-decls... yes</div><div>checking whether gcc -std=gnu99 accepts -Wmissing-noreturn... yes</div>
<div>checking whether gcc -std=gnu99 accepts -Wshadow... yes</div><div>checking whether gcc -std=gnu99 accepts -Wendif-labels... yes</div><div>checking whether gcc -std=gnu99 accepts -Wpointer-arith... yes</div><div>checking whether gcc -std=gnu99 accepts -Wbad-function-cast... yes</div>
<div>checking whether gcc -std=gnu99 accepts -Wcast-qual... yes</div><div>checking whether gcc -std=gnu99 accepts -Wcast-align... yes</div><div>checking whether gcc -std=gnu99 accepts -Wwrite-strings... yes</div><div>checking whether gcc -std=gnu99 accepts -fdiagnostics-show-option... yes</div>
<div>checking whether gcc -std=gnu99 accepts -Wno-cast-qual... yes</div><div>checking whether gcc -std=gnu99 accepts -fno-strict-aliasing... yes</div><div>checking for ANSI C header files... (cached) yes</div><div>checking arpa/inet.h usability... yes</div>
<div>checking arpa/inet.h presence... yes</div><div>checking for arpa/inet.h... yes</div><div>checking fcntl.h usability... yes</div><div>checking fcntl.h presence... yes</div><div>checking for fcntl.h... yes</div><div>checking for inttypes.h... (cached) yes</div>
<div>checking limits.h usability... yes</div><div>checking limits.h presence... yes</div><div>checking for limits.h... yes</div><div>checking netinet/in.h usability... yes</div><div>checking netinet/in.h presence... yes</div>
<div>checking for netinet/in.h... yes</div><div>checking for stdlib.h... (cached) yes</div><div>checking for string.h... (cached) yes</div><div>checking sys/ioctl.h usability... yes</div><div>checking sys/ioctl.h presence... yes</div>
<div>checking for sys/ioctl.h... yes</div><div>checking sys/socket.h usability... yes</div><div>checking sys/socket.h presence... yes</div><div>checking for sys/socket.h... yes</div><div>checking sys/time.h usability... yes</div>
<div>checking sys/time.h presence... yes</div><div>checking for sys/time.h... yes</div><div>checking for unistd.h... (cached) yes</div><div>checking netdb.h usability... yes</div><div>checking netdb.h presence... yes</div>
<div>checking for netdb.h... yes</div><div>checking syslog.h usability... yes</div><div>checking syslog.h presence... yes</div><div>checking for syslog.h... yes</div><div>checking for stdbool.h that conforms to C99... yes</div>
<div>checking for _Bool... yes</div><div>checking for an ANSI C-conforming const... yes</div><div>checking for size_t... yes</div><div>checking whether time.h and sys/time.h may both be included... yes</div><div>checking for sys/wait.h that is POSIX.1 compatible... yes</div>
<div>checking for library containing inet_ntop... none required</div><div>checking for library containing recv... none required</div><div>checking whether CMSG_SPACE is declared... yes</div><div>checking for working memcmp... yes</div>
<div>checking sys/select.h usability... yes</div><div>checking sys/select.h presence... yes</div><div>checking for sys/select.h... yes</div><div>checking for sys/socket.h... (cached) yes</div><div>checking types of arguments for select... int,fd_set *,struct timeval *</div>
<div>checking for gethostname... yes</div><div>checking for memchr... yes</div><div>checking for memmove... yes</div><div>checking for memset... yes</div><div>checking for mkdir... yes</div><div>checking for select... yes</div>
<div>checking for socket... yes</div><div>checking for strchr... yes</div><div>checking for strcspn... yes</div><div>checking for strdup... yes</div><div>checking for strerror... yes</div><div>checking for strrchr... yes</div>
<div>checking for strspn... yes</div><div>checking for strstr... yes</div><div>checking for uname... yes</div><div>checking for setresuid... yes</div><div>checking for setreuid... yes</div><div>checking for setresgid... yes</div>
<div>checking for setregid... yes</div><div>checking for strcasecmp... yes</div><div>checking for gettimeofday... yes</div><div>checking for putenv... yes</div><div>checking for strncasecmp... yes</div><div>checking for strlcpy... no</div>
<div>checking for gethostbyname... yes</div><div>checking for seteuid... yes</div><div>checking for setegid... yes</div><div>checking for setproctitle... no</div><div>checking for getprogname... no</div><div>checking for uid_t in sys/types.h... yes</div>
<div>checking for unistd.h... (cached) yes</div><div>checking for working chown... yes</div><div>checking whether lstat correctly handles trailing slash... yes</div><div>checking whether stat accepts an empty string... no</div>
<div>checking for mode_t... yes</div><div>checking for pid_t... yes</div><div>checking whether environ is declared... yes</div><div>checking for gcc -fvisibility=hidden support... yes</div><div>checking sys/capability.h usability... no</div>
<div>checking sys/capability.h presence... no</div><div>checking for sys/capability.h... no</div><div>checking sys/prctl.h usability... yes</div><div>checking sys/prctl.h presence... yes</div><div>checking for sys/prctl.h... yes</div>
<div>checking for chroot... yes</div><div>checking for dlopen in -ldl... yes</div><div>checking for dlfcn.h... (cached) yes</div><div>checking sys/inotify.h usability... yes</div><div>checking sys/inotify.h presence... yes</div>
<div>checking for sys/inotify.h... yes</div><div>checking for kqueue... no</div><div>checking whether NLS is requested... yes</div><div>checking for intltool &gt;= 0.35.0... 0.41.1 found</div><div>checking for intltool-update... /usr/bin/intltool-update</div>
<div>checking for intltool-merge... /usr/bin/intltool-merge</div><div>checking for intltool-extract... /usr/bin/intltool-extract</div><div>checking for xgettext... /usr/bin/xgettext</div><div>checking for msgmerge... /usr/bin/msgmerge</div>
<div>checking for msgfmt... /usr/bin/msgfmt</div><div>checking for gmsgfmt... /usr/bin/msgfmt</div><div>checking for perl... /usr/bin/perl</div><div>checking for perl &gt;= 5.8.1... 5.14.2</div><div>checking for XML::Parser... ok</div>
<div>checking locale.h usability... yes</div><div>checking locale.h presence... yes</div><div>checking for locale.h... yes</div><div>checking for LC_MESSAGES... yes</div><div>checking libintl.h usability... yes</div><div>
checking libintl.h presence... yes</div><div>checking for libintl.h... yes</div><div>checking for ngettext in libc... yes</div><div>checking for dgettext in libc... yes</div><div>checking for bind_textdomain_codeset... yes</div>
<div>checking for msgfmt... (cached) /usr/bin/msgfmt</div><div>checking for dcgettext... yes</div><div>checking if msgfmt accepts -c... yes</div><div>checking for gmsgfmt... (cached) /usr/bin/msgfmt</div><div>checking for xgettext... (cached) /usr/bin/xgettext</div>
<div>checking for pkg-config... yes</div><div>checking for pkg-config... /usr/bin/pkg-config</div><div>checking pkg-config is at least version 0.9.0... yes</div><div>checking for gobject-introspection... no</div><div>checking for DBUS... yes</div>
<div>Package dbus-1 was not found in the pkg-config search path.</div><div>Perhaps you should add the directory containing `dbus-1.pc&#39;</div><div>to the PKG_CONFIG_PATH environment variable</div><div>No package &#39;dbus-1&#39; found</div>
<div>Error: Couldn&#39;t determine the version of your D-Bus package.</div><div>  This is probably an error in this script, please report it</div><div>  along with the following information:</div><div>      Base D-Buss version =&#39;&#39;</div>
<div>      DBUS_VERSION_MAJOR=&#39;0&#39;</div><div>      DBUS_VERSION_MINOR=&#39;0&#39;</div><div>      DBUS_VERSION_MICRO=&#39;0&#39;</div><div><br></div><div><br></div><div><b>Thanks,</b></div><div><b>Rob</b></div><div>
<br></div>