libprelude: angstrom-2010.x: task `compile` fails with `./include/prelude-plugin.h:66:20: error: conflicting types for 'lt__PROGRAM__LTX_preloaded_symbols'`
Dear OE folks, dear Roman,
Build Configuration:BB_VERSION = "1.10.0"METADATA_BRANCH = "org.openembedded.dev"METADATA_REVISION = "54d1ab587326543390e8ae55e9f7945a3a4ebdd1"
TARGET_ARCH = "arm" TARGET_OS = "linux-gnueabi" MACHINE = "beagleboard" DISTRO = "angstrom" DISTRO_VERSION = "next" TARGET_FPU = "hard"
testing to build suricata_1.0.2 (commit f85795) [1] the build fails in the task compile of the dependency libprelude_1.0.0 (commit 577889) [2].
| In file included from prelude-plugin.c:56:0:
| ./include/prelude-plugin.h:66:20: error: conflicting types for 'lt__PROGRAM__LTX_preloaded_symbols'
| /oe/build-angstrom-next/angstrom-dev/sysroots/armv7a-angstrom-linux-gnueabi/usr/include/ltdl.h:106:36: note: previous declaration of 'lt__PROGRAM__LTX_preloaded_symbols' was here
| make[4]: *** [prelude-plugin.lo] Error 1Could you take a look and/or report that upstream.
Thanks,
Paul
[1] http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=f8579580b47ea2e9022e7d9a375827fa750b71f1
[2] http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=57788916d7a3675260267ac1e043efd367806253
В сообщении от Среда 03 ноября 2010 11:44:18 автор Paul Menzel написал:
Quoted 23 lines
Build Configuration:
BB_VERSION= "1.10.0"METADATA_BRANCH= "org.openembedded.dev"METADATA_REVISION= "54d1ab587326543390e8ae55e9f7945a3a4ebdd1"TARGET_ARCH = "arm" TARGET_OS = "linux-gnueabi" MACHINE = "beagleboard" DISTRO = "angstrom" DISTRO_VERSION = "next" TARGET_FPU = "hard"testing to build
suricata_1.0.2(commit f85795) [1] the build fails in the taskcompileof the dependencylibprelude_1.0.0(commit 577889) [2].| In file included from prelude-plugin.c:56:0: | ./include/prelude-plugin.h:66:20: error: conflicting types for | 'lt__PROGRAM__LTX_preloaded_symbols' | /oe/build-angstrom-next/angstrom-dev/sysroots/armv7a-angstrom-li | nux-gnueabi/usr/include/ltdl.h:106:36: note: previous declaration | of 'lt__PROGRAM__LTX_preloaded_symbols' was here make[4]: *** | [prelude-plugin.lo] Error 1
Quoted 1 line
Could you take a look and/or report that upstream.
I can and I will but please don't expect it sooner than this weekend, I'm overloaded at work currently.
PATCH 1/1 libprelude: workaroung build failures with libtool 2.4
In reply to Paul MenzelLike:
In file included from prelude-plugin.c:56:0:
/include/prelude-plugin.h:66:20: error: conflicting types for 'lt__PROGRAM__LTX_preloaded_symbols' /oe/build-angstrom-next/angstrom-dev/sysroots/armv7a-angstrom-linux-gnueabi/usr/include/ltdl.h:106:36: note: previous declaration of 'lt__PROGRAM__LTX_preloaded_symbols' was here make[4]: *** [prelude-plugin.lo] Error 1
Originally reported by Paul Menzel <[email protected]>.
--- .../libprelude-1.0.0/fix-ltdl-hack.patch | 21 ++++++++++++++++++++ recipes/libprelude/libprelude_1.0.0.bb | 3 +- 2 files changed, 23 insertions(+), 1 deletions(-) create mode 100644 recipes/libprelude/libprelude-1.0.0/fix-ltdl-hack.patch
recipes/libprelude/libprelude-1.0.0/fix-ltdl-hack.patch new file +21 -0
@@ -0,0 +1,21 @@ +libtool 2.4 changed lt__PROGRAM__LTX_preloaded_symbols definition to + +extern LT_DLSYM_CONST lt_dlsymlist lt__PROGRAM__LTX_preloaded_symbols[]; + +but there is no easy way to find its version to fix it properly, so it's a +temporary hack to make at least libprelude compile. +Index: libprelude-1.0.0/src/include/prelude-plugin.h +=================================================================== +--- libprelude-1.0.0.orig/src/include/prelude-plugin.h 2010-11-06 21:30:18.000000000 +0300 ++++ libprelude-1.0.0/src/include/prelude-plugin.h 2010-11-06 21:30:47.000000000 +0300 +@@ -61,9 +61,8 @@ + */ + #ifdef PRELUDE_APPLICATION_USE_LIBTOOL2 + # define lt_preloaded_symbols lt__PROGRAM__LTX_preloaded_symbols +-#endif +- + extern const void *lt_preloaded_symbols[]; ++#endif + + #define PRELUDE_PLUGIN_SET_PRELOADED_SYMBOLS() \ + prelude_plugin_set_preloaded_symbols(lt_preloaded_symbols)
recipes/libprelude/libprelude_1.0.0.bb +2 -1
@@ -2,13 +2,14 @@ DESCRIPTION = "Libprelude is a library that guarantees secure connections betwee SECTION = "net" DEPENDS = "gnutls libgcrypt zlib perl perl-native" LICENSE = "GPLv2" -PR = "r0" +PR = "r1" SRC_URI = " \ http://www.prelude-ids.com/download/releases/libprelude/${PN}-${PV}.tar.gz \ file://libprelude-dont-regenerate-perl-makefile.patch \ file://libprelude-perl-build-with-gnu-hash.patch \ file://libprelude-fix-uid-gid-conflicting-types.patch \ + file://fix-ltdl-hack.patch \ " SRC_URI[md5sum] = "a5bb76538d240e5fac5f6ab0b7fabfe5" SRC_URI[sha256sum] = "e16d83a6a7bcc43a02d6f2bd40c91a03a258a9a86bab42262cbb5adaba8c4640"
Signature · 1 line
1.5.6.5
Re: [PATCH] libprelude: workaroung build failures with libtool 2.4
Quoted 7 lines · Roman I Khimov
Like:
In file included from prelude-plugin.c:56:0:
/include/prelude-plugin.h:66:20: error: conflicting types for 'lt__PROGRAM__LTX_preloaded_symbols' /oe/build-angstrom-next/angstrom-dev/sysroots/armv7a-angstrom-linux-gnueabi/usr/include/ltdl.h:106:36: note: previous declaration of 'lt__PROGRAM__LTX_preloaded_symbols' was here make[4]: *** [prelude-plugin.lo] Error 1
hmmm is /include/prelude-plugin.h a generated file then you could see if it needs alteration.
will this patch still work with older libtools
Quoted 3 lines
Originally reported by Paul Menzel <[email protected]>.
Signed-off-by Roman I Khimov <[email protected]>
Quoted 62 lines
---
.../libprelude-1.0.0/fix-ltdl-hack.patch | 21 ++++++++++++++++++++ recipes/libprelude/libprelude_1.0.0.bb | 3 +-2 files changed, 23 insertions(+), 1 deletions(-)create mode 100644
recipes/libprelude/libprelude-1.0.0/fix-ltdl-hack.patchrecipes/libprelude/libprelude-1.0.0/fix-ltdl-hack.patch new file +21
-0@@ -0,0 +1,21 @@ +libtool 2.4 changed lt__PROGRAM__LTX_preloaded_symbols definition to + +extern LT_DLSYM_CONST lt_dlsymlist lt__PROGRAM__LTX_preloaded_symbols[]; + +but there is no easy way to find its version to fix it properly, so it's a +temporary hack to make at least libprelude compile. +Index: libprelude-1.0.0/src/include/prelude-plugin.h +=================================================================== +--- libprelude-1.0.0.orig/src/include/prelude-plugin.h 2010-11-06 21:30:18.000000000 +0300 ++++ libprelude-1.0.0/src/include/prelude-plugin.h 2010-11-06 21:30:47.000000000 +0300 +@@ -61,9 +61,8 @@ + */ + #ifdef PRELUDE_APPLICATION_USE_LIBTOOL2 + # define lt_preloaded_symbols lt__PROGRAM__LTX_preloaded_symbols +-#endif +- + extern const void *lt_preloaded_symbols[]; ++#endif + + #define PRELUDE_PLUGIN_SET_PRELOADED_SYMBOLS() \ + prelude_plugin_set_preloaded_symbols(lt_preloaded_symbols)recipes/libprelude/libprelude_1.0.0.bb +0
-0@@ -2,13 +2,14 @@ DESCRIPTION = "Libprelude is a library that guarantees secure connections betweeSECTION = "net"
DEPENDS = "gnutls libgcrypt zlib perl perl-native" LICENSE = "GPLv2"recipes/libprelude/libprelude_1.0.0.bb +1
-1-PR = "r0" +PR = "r1"SRC_URI = " \
http://www.prelude-ids.com/download/releases/libprelude/${PN}-${PV}.tar.gz \
file://libprelude-dont-regenerate-perl-makefile.patch \
file://libprelude-perl-build-with-gnu-hash.patch \
file://libprelude-fix-uid-gid-conflicting-types.patch \
+ file://fix-ltdl-hack.patch \
"
SRC_URI[md5sum] = "a5bb76538d240e5fac5f6ab0b7fabfe5"
SRC_URI[sha256sum] = "e16d83a6a7bcc43a02d6f2bd40c91a03a258a9a86bab42262cbb5adaba8c4640" --
1.5.6.5_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Re: [PATCH] libprelude: workaroung build failures with libtool 2.4
В сообщении от Воскресенье 07 ноября 2010 13:06:36 автор Khem Raj написал:
Quoted 11 lines · Roman I Khimov
Quoted 9 lines
Like:
In file included from prelude-plugin.c:56:0:
/include/prelude-plugin.h:66:20: error: conflicting types for 'lt__PROGRAM__LTX_preloaded_symbols' /oe/build-angstrom-next/angstrom-dev/sysroots/armv7a-angstrom-linux-gnueabi/usr/include/ltdl.h:106:36: note: previous declaration of 'lt__PROGRAM__LTX_preloaded_symbols' was here make[4]: *** [prelude-plugin.lo] Error 1
Quoted 3 lines
hmmm is /include/prelude-plugin.h a generated file then you could see if it needs alteration.
will this patch still work with older libtools
Yes, it works, I've tested that on our internal distro with libtool 2.2.6b.
Signature · 3 lines
http://roman.khimov.ru mailto: [email protected] gpg --keyserver hkp://subkeys.pgp.net --recv-keys 0xE5E055C3
Paul Menzel
Acked-byRe: [PATCH] libprelude: workaroung build failures with libtool 2.4
Am Sonntag, den 07.11.2010, 14:51 +0300 schrieb Roman I Khimov:
Quoted 10 lines
В сообщении от Воскресенье 07 ноября 2010 13:06:36 автор Khem Raj написал:
Quoted 9 lines · Roman I Khimov
Quoted 7 lines
Like:
In file included from prelude-plugin.c:56:0:
/include/prelude-plugin.h:66:20: error: conflicting types for 'lt__PROGRAM__LTX_preloaded_symbols' /oe/build-angstrom-next/angstrom-dev/sysroots/armv7a-angstrom-linux-gnueabi/usr/include/ltdl.h:106:36: note: previous declaration of 'lt__PROGRAM__LTX_preloaded_symbols' was here make[4]: ***
[prelude-plugin.lo] Error 1
Quoted 5 lines
Quoted 3 lines
hmmm is /include/prelude-plugin.h a generated file then you could see if it needs alteration.
will this patch still work with older libtoolsYes, it works, I've tested that on our internal distro with libtool 2.2.6b.
I tested your patch with angstrom-2008.1, angstrom-2010.1, minimal and minimal with (LIBC = "libc") for MACHINE = "beagleboard".
Could you amend the commit summary and fix the typo in workaroun*d* before you push that.
Thank you for fixing that issue. Could you report that issue upstream and if so, could you please add that link to the commit message or the patch file?
Thanks,
Paul