From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] glib: add cross compile patch
Date: Mon, 27 Apr 2015 10:54:52 +0200 [thread overview]
Message-ID: <20150427085452.GD28533@pengutronix.de> (raw)
In-Reply-To: <1429466487-5681-1-git-send-email-r.schwebel@pengutronix.de>
Actually, just the 'autogen.sh' would 'fix' the Problem.
I've commited a different workaround.
Michael
On Sun, Apr 19, 2015 at 08:01:27PM +0200, Robert Schwebel wrote:
> Otherwhise we fail with
>
> CCLD glib-compile-resources
> CCLD gsettings
> CCLD gdbus
> CCLD gapplication
> CCLD gresource
> arm-v5te-linux-gnueabi/4.9.2/../../../../arm-v5te-linux-gnueabi/bin/ld: warning: libgmodule-2.0.so.0, needed by ./.libs/libgio-2.0.so, not found (try using -rpath or -rpath-link)
> ./.libs/libgio-2.0.so: undefined reference to `g_module_error'
> ./.libs/libgio-2.0.so: undefined reference to `g_module_close'
> ./.libs/libgio-2.0.so: undefined reference to `g_module_open'
> ./.libs/libgio-2.0.so: undefined reference to `g_module_supported'
> ./.libs/libgio-2.0.so: undefined reference to `g_module_symbol'
> collect2: error: ld returned 1 exit status
> make[5]: *** [glib-compile-resources] Error 1
> make[5]: *** Waiting for unfinished jobs....
>
> Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
> ---
> ...e.am-fix-linker-error-for-glib-compile-re.patch | 36 ++++++++++++++++++++++
> patches/glib-2.44.0/autogen.sh | 1 +
> patches/glib-2.44.0/series | 4 +++
> 3 files changed, 41 insertions(+)
> create mode 100644 patches/glib-2.44.0/0001-gio-Makefile.am-fix-linker-error-for-glib-compile-re.patch
> create mode 120000 patches/glib-2.44.0/autogen.sh
> create mode 100644 patches/glib-2.44.0/series
>
> diff --git a/patches/glib-2.44.0/0001-gio-Makefile.am-fix-linker-error-for-glib-compile-re.patch b/patches/glib-2.44.0/0001-gio-Makefile.am-fix-linker-error-for-glib-compile-re.patch
> new file mode 100644
> index 0000000..a822293
> --- /dev/null
> +++ b/patches/glib-2.44.0/0001-gio-Makefile.am-fix-linker-error-for-glib-compile-re.patch
> @@ -0,0 +1,36 @@
> +From: Robert Schwebel <r.schwebel@pengutronix.de>
> +Date: Sun, 19 Apr 2015 19:29:08 +0200
> +Subject: [PATCH] gio/Makefile.am: fix linker error for glib-compile-resources
> +
> +Linking glib-compile-resources in a cross compile environment fails with
> +
> + CCLD glib-compile-resources
> + CCLD gsettings
> + CCLD gdbus
> + CCLD gapplication
> + CCLD gresource
> +arm-v5te-linux-gnueabi/4.9.2/../../../../arm-v5te-linux-gnueabi/bin/ld: warning: libgmodule-2.0.so.0, needed by ./.libs/libgio-2.0.so, not found (try using -rpath or -rpath-link)
> +./.libs/libgio-2.0.so: undefined reference to `g_module_error'
> +./.libs/libgio-2.0.so: undefined reference to `g_module_close'
> +./.libs/libgio-2.0.so: undefined reference to `g_module_open'
> +./.libs/libgio-2.0.so: undefined reference to `g_module_supported'
> +./.libs/libgio-2.0.so: undefined reference to `g_module_symbol'
> +collect2: error: ld returned 1 exit status
> +make[5]: *** [glib-compile-resources] Error 1
> +make[5]: *** Waiting for unfinished jobs....
> +---
> + gio/Makefile.am | 1 +
> + 1 file changed, 1 insertion(+)
> +
> +diff --git a/gio/Makefile.am b/gio/Makefile.am
> +index 28aea41ae59c..8b05f62f665a 100644
> +--- a/gio/Makefile.am
> ++++ b/gio/Makefile.am
> +@@ -707,6 +707,7 @@ bin_PROGRAMS = gio-querymodules glib-compile-schemas glib-compile-resources gset
> +
> + glib_compile_resources_LDADD = libgio-2.0.la \
> + $(top_builddir)/gobject/libgobject-2.0.la \
> ++ $(top_builddir)/gmodule/libgmodule-2.0.la \
> + $(top_builddir)/glib/libglib-2.0.la \
> + $(NULL)
> +
> diff --git a/patches/glib-2.44.0/autogen.sh b/patches/glib-2.44.0/autogen.sh
> new file mode 120000
> index 0000000..9f8a4cb
> --- /dev/null
> +++ b/patches/glib-2.44.0/autogen.sh
> @@ -0,0 +1 @@
> +../autogen.sh
> \ No newline at end of file
> diff --git a/patches/glib-2.44.0/series b/patches/glib-2.44.0/series
> new file mode 100644
> index 0000000..da4cbca
> --- /dev/null
> +++ b/patches/glib-2.44.0/series
> @@ -0,0 +1,4 @@
> +# generated by git-ptx-patches
> +#tag:base --start-number 1
> +0001-gio-Makefile.am-fix-linker-error-for-glib-compile-re.patch
> +# e99fa893258dcefd38cb26350ba1d533 - git-ptx-patches magic
> --
> 2.1.4
>
>
> --
> ptxdist mailing list
> ptxdist@pengutronix.de
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
ptxdist mailing list
ptxdist@pengutronix.de
prev parent reply other threads:[~2015-04-27 8:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-19 18:01 Robert Schwebel
2015-04-27 8:54 ` Michael Olbrich [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150427085452.GD28533@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox