All of lore.kernel.org
 help / color / mirror / Atom feed
* autotools error when building libdbus-c++; autoreconf "possibly undefined macro: AC_DEFINE"
@ 2016-05-13 14:21 S.Jaritz
  2016-05-13 14:27 ` Burton, Ross
  0 siblings, 1 reply; 2+ messages in thread
From: S.Jaritz @ 2016-05-13 14:21 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 3519 bytes --]

Hej

I try to build the libdbus-c++ libary. The build process is based on 
autotools. When compiling it  do_configure throws an error. The macro 
"AC_DEFINE" is not found. Any idea how to make autoreconf run?

Below I listed to recipe and after the Error plot

######### libdbus-c++_0.9.bb ###########
SUMMARY = "libdbus-c++"
SECTION = "ccc"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"

inherit autotools

SRC_URI[md5sum] = "e752116f523fa88ef041e63d3dee4de2"
SRC_URI[sha256sum] = 
"bc11ac297b3cb010be904c72789695543ee3fdf3d75cdc8225fd371385af4e61"
SRC_URI = "
https://sourceforge.net/projects/dbus-cplusplus/files/dbus-c++/0.9.0/libdbus-c++-0.9.0.tar.gz
"

S = "${WORKDIR}/libdbus-c++-0.9.0"

BBCLASSEXTEND += "native"
####################

######### Error ###########
| autoreconf: Entering directory `.'
| autoreconf: configure.ac: not using Gettext
| autoreconf: running: aclocal 
--system-acdir=/home/user/myTC/poky/build/tmp/work/cortexa5hf-vfp-poky-linux-gnueabi/libdbus-c++/0.9-r0/build/aclocal-copy/ 
-I 
/home/user/myTC/poky/build/tmp/work/cortexa5hf-vfp-poky-linux-gnueabi/libdbus-c++/0.9-r0/libdbus-c++-0.9.0/m4/ 
-I 
/home/user/myTC/poky/build/tmp/work/cortexa5hf-vfp-poky-linux-gnueabi/libdbus-c++/0.9-r0/libdbus-c++-0.9.0/m4/ 
--force -I m4
| autoreconf: configure.ac: tracing
| autoreconf: running: libtoolize --copy --force
| libtoolize: putting auxiliary files in '.'.
| libtoolize: copying file './ltmain.sh'
| libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
| libtoolize: copying file 'm4/libtool.m4'
| libtoolize: copying file 'm4/ltoptions.m4'
| libtoolize: copying file 'm4/ltsugar.m4'
| libtoolize: copying file 'm4/ltversion.m4'
| libtoolize: copying file 'm4/lt~obsolete.m4'
| autoreconf: running: 
/home/user/myTC/poky/build/tmp/sysroots/x86_64-linux/usr/bin/autoconf 
--include=/home/user/myTC/poky/build/tmp/work/cortexa5hf-vfp-poky-linux-gnueabi/libdbus-c++/0.9-r0/libdbus-c++-0.9.0/m4/ 
--force
| configure.ac:54: error: possibly undefined macro: AC_DEFINE
|       If this token and others are legitimate, please use 
m4_pattern_allow.
|       See the Autoconf documentation.
| autoreconf: 
/home/user/myTC/poky/build/tmp/sysroots/x86_64-linux/usr/bin/autoconf 
failed with exit status: 1
####################

Mit freundlichen Grüßen

Stefan Jaritz
Entwickler

------------------------------------------------------------
ESA Elektroschaltanlagen Grimma GmbH
Broner Ring 30
04668 Grimma
Telefon: +49 3437 9211 176
Telefax: +49 3437 9211 26
E-Mail: s.jaritz@esa-grimma.de
Internet: www.esa-grimma.de


Geschäftsführer:
Dipl.-Ing. Jörg Gaitzsch
Jörg Reinker

Sitz der Gesellschaft: Grimma
Ust.-ID: DE 141784437
Amtsgericht: Leipzig, HRB 5159
Steuernummer: 238/108/00755


Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich 
erhalten 
haben, informieren Sie bitte sofort den Absender und löschen Sie diese 
Nachricht. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser 
Mail 
ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you 
are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is 
strictly 
forbidden.

[-- Attachment #2: Type: text/html, Size: 5754 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: autotools error when building libdbus-c++; autoreconf "possibly undefined macro: AC_DEFINE"
  2016-05-13 14:21 autotools error when building libdbus-c++; autoreconf "possibly undefined macro: AC_DEFINE" S.Jaritz
@ 2016-05-13 14:27 ` Burton, Ross
  0 siblings, 0 replies; 2+ messages in thread
From: Burton, Ross @ 2016-05-13 14:27 UTC (permalink / raw)
  To: S.Jaritz; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 422 bytes --]

On 13 May 2016 at 15:21, <S.Jaritz@esa-grimma.de> wrote:

> I try to build the libdbus-c++ libary. The build process is based on
> autotools. When compiling it  do_configure throws an error. The macro
> "AC_DEFINE" is not found. Any idea how to make autoreconf run?
>

Try also inheriting pkgconfig.  I've noticed that if the pkgconfig macros
are not present then autoreconf fails in *very* strange ways.

Ross

[-- Attachment #2: Type: text/html, Size: 829 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-05-13 14:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-13 14:21 autotools error when building libdbus-c++; autoreconf "possibly undefined macro: AC_DEFINE" S.Jaritz
2016-05-13 14:27 ` Burton, Ross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.