[oe] error trying to build parted 1.8.8 : configure.ac:173: error: AC_REQUIRE: circular dependency of AC_GNU_SOURCE

David MOUSSAUD d.moussaud at gmail.com
Wed May 19 16:24:33 UTC 2010


Hi,

that patch works for me.


diff --git a/recipes/parted/files/extensions-m4.patch
b/recipes/parted/files/extensions-m4.patch
new file mode 100644
index 0000000..1ec53f7
--- /dev/null
+++ b/recipes/parted/files/extensions-m4.patch
@@ -0,0 +1,26 @@
+diff -Nru parted-1.8.8/m4/extensions.m4 parted-1.8.8.patched/m4/extensions.m4
+--- parted-1.8.8/m4/extensions.m4	2006-10-12 10:01:18.000000000 +0200
++++ parted-1.8.8.patched/m4/extensions.m4	2010-05-19 18:14:35.000000000 +0200
+@@ -1,4 +1,4 @@
+-# serial 4  -*- Autoconf -*-
++# serial 5  -*- Autoconf -*-
+ # Enable extensions on systems that normally disable them.
+
+ # Copyright (C) 2003, 2006 Free Software Foundation, Inc.
+@@ -16,6 +16,7 @@
+ # ------------------------
+ # Enable extensions on systems that normally disable them,
+ # typically due to standards-conformance issues.
++m4_ifdef([AC_USE_SYSTEM_EXTENSIONS], [], [
+ AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS],
+ [
+   AC_BEFORE([$0], [AC_COMPILE_IFELSE])
+@@ -48,7 +49,7 @@
+     AC_DEFINE([__EXTENSIONS__])
+   AC_DEFINE([_POSIX_PTHREAD_SEMANTICS])
+   AC_DEFINE([_TANDEM_SOURCE])
+-])
++])])
+
+ # gl_USE_SYSTEM_EXTENSIONS
+ # ------------------------
diff --git a/recipes/parted/parted_1.8.8.bb b/recipes/parted/parted_1.8.8.bb
index 2890e23..82369f1 100644
--- a/recipes/parted/parted_1.8.8.bb
+++ b/recipes/parted/parted_1.8.8.bb
@@ -3,11 +3,12 @@ HOMEPAGE = "http://www.gnu.org/software/parted/parted.html"
 LICENSE = "GPLv3"
 SECTION = "console/tools"
 DEPENDS = "readline util-linux-ng"
-PR = "r3"
+PR = "r4"

 SRC_URI = "${GNU_MIRROR}/parted/parted-${PV}.tar.gz \
 	   file://use_llseek_syscall.patch;patch=1 \
 	   file://parted-1.8.x.patch;patch=1 \
+	   file://extensions-m4.patch;patch=1 \
 "

 EXTRA_OECONF = "--disable-Werror ac_cv_func_calloc_0_nonnull=yes"


regards,
David

On Tue, Feb 9, 2010 at 5:36 PM, Jay Snyder
<jay.snyder at tycoelectronics.com> wrote:
> I'm trying to build parted 1.8.8 on OE:
>
>
> NOTE: Running task 551 of 565 (ID: 3,
> /home/oe/2009-12-04/openembedded/recipes/parted/parted_1.8.8.bb, do_unpack)
> NOTE: Running task 552 of 565 (ID: 13,
> /home/oe/2009-12-04/openembedded/recipes/parted/parted_1.8.8.bb,
> do_distribute_sources)
> NOTE: Unpacking ../downloads/parted-1.8.8.tar.gz to
> tmp/work/i686-angstrom-linux/parted-1.8.8-r2/
>  NOTE: Running task 553 of 565 (ID: 4,
> /home/oe/2009-12-04/openembedded/recipes/parted/parted_1.8.8.bb, do_patch)
>           NOTE: Applying patch 'use_llseek_syscall.patch'
> (../2009-12-04/openembedded/recipes/parted/files/use_llseek_syscall.patch)
>
> NOTE: Applying patch 'parted-1.8.x.patch'
> (../2009-12-04/openembedded/recipes/parted/files/parted-1.8.x.patch)
>
> NOTE: Running task 554 of 565 (ID: 5,
> /home/oe/2009-12-04/openembedded/recipes/parted/parted_1.8.8.bb,
> do_configure)         ERROR: function do_configure failed
>
> ERROR: log data follows
> (/home/oe/build/tmp/work/i686-angstrom-linux/parted-1.8.8-r2/temp/log.do_configure.24731)
>
> | automake (GNU automake) 1.10.2
>
> | Copyright (C) 2008 Free Software Foundation, Inc.
>
> | License GPLv2+: GNU GPL version 2 or later
> <http://gnu.org/licenses/gpl.html>
>
> | This is free software: you are free to change and redistribute it.
>                                                 | There is NO WARRANTY, to
> the extent permitted by law.
>                      |
>
> | Written by Tom Tromey <tromey at redhat.com>
>
> |        and Alexandre Duret-Lutz <adl at gnu.org>.
>
> | AUTOV is 1.10
>
> | NOTE: Executing autoreconf --verbose --install --force --exclude=autopoint
> -I
> /home/oe/build/tmp/work/i686-angstrom-linux/parted-1.8.8-r2/parted-1.8.8/m4/
> -I/home/oe/build/tmp/staging/i686-angstrom-linux/usr/share/aclocal-1.10 -I
> /home/oe/build/tmp/staging/i686-angstrom-linux/usr/share/aclocal
> | autoreconf: Entering directory `.'
> | autoreconf: running: aclocal -I
> /home/oe/build/tmp/work/i686-angstrom-linux/parted-1.8.8-r2/parted-1.8.8/m4/
> -I /home/oe/build/tmp/staging/i686-angstrom-linux/usr/share/aclocal-1.10 -I
> /home/oe/build/tmp/staging/i686-angstrom-linux/usr/share/aclocal --force -I
> m4
> | configure.ac:173: error: AC_REQUIRE: circular dependency of AC_GNU_SOURCE
> |
> /home/oe/build/tmp/work/i686-angstrom-linux/parted-1.8.8-r2/parted-1.8.8/m4/extensions.m4:19:
> AC_USE_SYSTEM_EXTENSIONS is expanded from...
> | ../../lib/autoconf/specific.m4:332: AC_GNU_SOURCE is expanded from...
> |
> /home/oe/build/tmp/work/i686-angstrom-linux/parted-1.8.8-r2/parted-1.8.8/m4/gnulib-comp.m4:23:
> gl_EARLY is expanded from...
> | configure.ac:173: the top level
> | autom4te: /home/oe/build/tmp/staging/x86_64-linux/usr/bin/m4 failed with
> exit status: 1
> | aclocal: autom4te failed with exit status: 1
> | autoreconf: aclocal failed with exit status: 1
> | FATAL: autoreconf execution failed.
> NOTE: Task failed:
> /home/oe/build/tmp/work/i686-angstrom-linux/parted-1.8.8-r2/temp/log.do_configure.24731
> ERROR: TaskFailed event exception, aborting
> ERROR: Build of
> /home/oe/2009-12-04/openembedded/recipes/parted/parted_1.8.8.bb do_configure
> failed
> ERROR: Task 5
> (/home/oe/2009-12-04/openembedded/recipes/parted/parted_1.8.8.bb,
> do_configure) failed
> NOTE: Tasks Summary: Attempted 553 tasks of which 548 didn't need to be
> rerun and 1 failed.
> ERROR: '/home/oe/2009-12-04/openembedded/recipes/parted/parted_1.8.8.bb'
> failed
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: parted-build-error.patch
Type: application/octet-stream
Size: 1772 bytes
Desc: not available
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20100519/d851cf7e/attachment-0002.obj>


More information about the Openembedded-devel mailing list