Hi Leo!

  configure.ac should define LIBPARTED_CFLAGS, the most likely through
AC_SUBST macro.
  It seems like it's missing or Makefile wrongly includes it. Check them both.

~Daniil

On 8/16/11, Leo Ding <[email protected]> wrote:
> Hi,guys
>
>     I am so sorry to trouble you , but i am in trouble.
>     I was download udisks source code form
> here<http://repo.meego.com/MeeGo/releases/1.2.0/repos/oss/source/udisks-1.0.1-3.27.src.rpm>
> and
> prepare to recompile it, when I execute "rpmbuild -ba udisk.spec" command in
> Meego OS(of course, I install many other development library), there has
> some error.
>
>     How can I resolve it ? I hope get some idea.
>
> root@meego-netbook-sdk:~/rpmbuild/SPECS#* rpmbuild  -ba udisks.spec *
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.koItrb
> + umask 022
> + cd /root/rpmbuild/BUILD
> + cd /root/rpmbuild/BUILD
> + rm -rf udisks-1.0.1
> + /bin/gzip -dc /root/rpmbuild/SOURCES/udisks-1.0.1.tar.gz
> + /bin/tar -xf -
> + STATUS=0
> + '[' 0 -ne 0 ']'
> + cd udisks-1.0.1
> + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
> + echo 'Patch #0 (remove-parted-dependency.patch):'
> Patch #0 (remove-parted-dependency.patch):
> + /bin/cat /root/rpmbuild/SOURCES/remove-parted-dependency.patch
> + /usr/bin/patch -s -p1 --fuzz=0
> + exit 0
> Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Bv2yM8
> + umask 022
> + cd /root/rpmbuild/BUILD
> + cd udisks-1.0.1
> + CFLAGS='-O2 -g -march=i386 -mtune=i686'
> + export CFLAGS
> + CXXFLAGS='-O2 -g -march=i386 -mtune=i686'
> + export CXXFLAGS
> + FFLAGS='-O2 -g -march=i386 -mtune=i686'
> + export FFLAGS
> + ./configure --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu
> --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin
> --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share
> --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec
> --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man
> --infodir=/usr/share/info --disable-static --enable-gtk-doc --disable-lvm2
> --disable-dmmp
> 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 whether to enable maintainer-specific portions of Makefiles... no
> checking for style of include used by make... GNU
> checking for i686-pc-linux-gnu-gcc... 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 dependency style of gcc... gcc3
> checking for library containing strerror... none required
> checking for i686-pc-linux-gnu-gcc... gcc
> checking whether we are using the GNU C compiler... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking for gcc option to accept ISO C89... (cached) none needed
> checking dependency style of gcc... (cached) gcc3
> checking for i686-pc-linux-gnu-gcc... (cached) gcc
> checking whether we are using the GNU C compiler... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking for gcc option to accept ISO C89... (cached) none needed
> checking dependency style of gcc... (cached) gcc3
> checking how to run the C preprocessor... 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 build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking for a sed that does not truncate output... /bin/sed
> checking for fgrep... /bin/grep -F
> checking for ld used by gcc... /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 whether ln -s works... yes
> 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 for /usr/bin/ld option to reload object files... -r
> checking for i686-pc-linux-gnu-objdump... no
> checking for objdump... objdump
> checking how to recognize dependent libraries... pass_all
> checking for i686-pc-linux-gnu-ar... no
> checking for ar... ar
> checking for i686-pc-linux-gnu-strip... no
> checking for strip... strip
> checking for i686-pc-linux-gnu-ranlib... no
> checking for ranlib... ranlib
> checking command to parse /usr/bin/nm -B output from gcc object... ok
> 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 for dlfcn.h... yes
> checking for objdir... .libs
> checking if gcc supports -fno-rtti -fno-exceptions... no
> checking for gcc option to produce PIC... -fPIC -DPIC
> checking if gcc PIC flag -fPIC -DPIC works... yes
> checking if gcc static flag -static works... no
> checking if gcc supports -c -o file.o... yes
> checking if gcc supports -c -o file.o... (cached) yes
> checking whether the gcc linker (/usr/bin/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 whether make sets $(MAKE)... (cached) yes
> checking whether ln -s works... yes
> checking for special C compiler options needed for large files... no
> checking for _FILE_OFFSET_BITS value needed for large files... 64
> checking whether gcc and cc understand -c and -o together... yes
> ./configure: line 12412: +#: command not found
> checking for xsltproc... /usr/bin/xsltproc
> checking for i686-pc-linux-gnu-pkg-config... no
> checking for pkg-config... /usr/bin/pkg-config
> checking pkg-config is at least version 0.9.0... yes
> checking for gtkdoc-check... /usr/bin/gtkdoc-check
> checking for gtkdoc-rebase... /usr/bin/gtkdoc-rebase
> checking for gtkdoc-mkpdf... /usr/bin/gtkdoc-mkpdf
> checking whether to build gtk-doc documentation... yes
> checking for sg_ll_inquiry in -lsgutils2... yes
> checking for GUDEV... yes
> checking for GLIB... yes
> checking for GIO... yes
> checking for DBUS... yes
> checking for DBUS_GLIB... yes
> checking for POLKIT_GOBJECT_1... yes
> checking for POLKIT_BACKEND_1... yes
> checking for DEVMAPPER... yes
> checking for LIBATASMART... yes
> checking for LIBUDEV... yes
> checking whether NLS is requested... yes
> checking for intltool >= 0.36.0... 0.41.0 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.12.1
> 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
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating data/Makefile
> config.status: creating data/udisks.pc
> config.status: creating src/Makefile
> config.status: creating src/helpers/Makefile
> config.status: creating src/probers/Makefile
> config.status: creating tools/Makefile
> config.status: creating doc/Makefile
> config.status: creating doc/version.xml
> config.status: creating doc/man/Makefile
> config.status: creating doc/dbus/Makefile
> config.status: creating policy/Makefile
> config.status: creating po/Makefile.in
> config.status: creating tests/Makefile
> config.status: creating config.h
> config.status: executing depfiles commands
> config.status: executing libtool commands
> config.status: executing default-1 commands
> config.status: executing po/stamp-it commands
>
>                udisks 1.0.1
>              ================
>
>         prefix:                     /usr
>         libdir:                     /usr/lib
>         libexecdir:                 /usr/libexec
>         bindir:                     /usr/bin
>         sbindir:                    /usr/sbin
>         datadir:                    /usr/share
>         sysconfdir:                 /etc
>         localstatedir:              /var
>         docdir:                     ${datarootdir}/doc/${PACKAGE_TARNAME}
>         slashlibdir:                /lib
>         slashsbindir:               /sbin
>
>         compiler:                   gcc
>         cflags:                     -O2 -g -march=i386 -mtune=i686 -Wall
> -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith
> -Wcast-align -Wsign-compare -Wformat -Wformat-security
>         cppflags:
>         xsltproc:                   /usr/bin/xsltproc
>
>         LVM2 support:               no
>         dm-multipath:               no
>         Remote Access:              yes
>
>         Maintainer mode:            no
>         Profiling:                  no
>         Building api docs:          yes
>         Building man pages:         yes
>
> + make
> make  all-recursive
> make[1]: Entering directory `/root/rpmbuild/BUILD/udisks-1.0.1'
> Making all in data
> make[2]: Entering directory `/root/rpmbuild/BUILD/udisks-1.0.1/data'
> cp org.freedesktop.UDisks.conf.in org.freedesktop.UDisks.conf
> make[2]: Leaving directory `/root/rpmbuild/BUILD/udisks-1.0.1/data'
> Making all in src
> make[2]: Entering directory `/root/rpmbuild/BUILD/udisks-1.0.1/src'
> make  all-recursive
> make[3]: Entering directory `/root/rpmbuild/BUILD/udisks-1.0.1/src'
> Making all in helpers
> make[4]: Entering directory `/root/rpmbuild/BUILD/udisks-1.0.1/src/helpers'
>   CC     libpartutil_la-partutil.lo
> gcc: @LIBPARTED_CFLAGS@: No such file or directory
> partutil.c:933:1: warning: 'part_table_load_from_disk_from_file' defined but
> not used
> make[4]: *** [libpartutil_la-partutil.lo] Error 1
> make[4]: Leaving directory `/root/rpmbuild/BUILD/udisks-1.0.1/src/helpers'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/root/rpmbuild/BUILD/udisks-1.0.1/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/root/rpmbuild/BUILD/udisks-1.0.1/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/rpmbuild/BUILD/udisks-1.0.1'
> make: *** [all] Error 2
> error: Bad exit status from /var/tmp/rpm-tmp.Bv2yM8 (%build)
>
>
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.Bv2yM8 (%build)
> root@meego-netbook-sdk:~/rpmbuild/SPECS#* *
>
>
>
> Best Regards
> Leo Ding
>
_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines

Reply via email to