mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] glib: add cross compile patch
@ 2015-04-19 18:01 Robert Schwebel
  2015-04-27  8:54 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Schwebel @ 2015-04-19 18:01 UTC (permalink / raw)
  To: ptxdist; +Cc: Robert Schwebel

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

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

* Re: [ptxdist] [PATCH] glib: add cross compile patch
  2015-04-19 18:01 [ptxdist] [PATCH] glib: add cross compile patch Robert Schwebel
@ 2015-04-27  8:54 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2015-04-27  8:54 UTC (permalink / raw)
  To: ptxdist

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

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

end of thread, other threads:[~2015-04-27  8:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-19 18:01 [ptxdist] [PATCH] glib: add cross compile patch Robert Schwebel
2015-04-27  8:54 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox