* [PATCH 0/1] mariadb-native: fix link error on Ubuntu 13.10
@ 2013-12-05 7:10 wenzong.fan
2013-12-05 7:10 ` [PATCH 1/1] " wenzong.fan
0 siblings, 1 reply; 4+ messages in thread
From: wenzong.fan @ 2013-12-05 7:10 UTC (permalink / raw)
To: openembedded-devel
From: Wenzong Fan <wenzong.fan@windriver.com>
Below errors only occurs on Ubuntu 13.10:
$arch-linux-libtool: link: g++ ... -o .libs/mysqltest_embedded \
../../libmysqld/.libs/libmysqld.so -ldl
../../libmysqld/.libs/libmysqld.so: undefined reference to `dlopen'
../../libmysqld/.libs/libmysqld.so: undefined reference to `dlclose'
../../libmysqld/.libs/libmysqld.so: undefined reference to `dlerror'
../../libmysqld/.libs/libmysqld.so: undefined reference to `dlsym'
GCC/ld verion on the host:
gcc (Ubuntu/Linaro 4.8.1-10ubuntu8) 4.8.1
GNU ld (GNU Binutils for Ubuntu) 2.23.52.20130913
This is a strange behavior on Ub13.10, it fails even '-ldl' in the
link command line. This patch will append '-ldl' to dependency_libs
in libmysqld.la.
The following changes since commit 0abd142f0af03aa36c0c551e930b143798999066:
inetutils: add --with-libreadline-prefix to avoid host contamination (2013-12-04 10:48:30 -0500)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib wenzong/mariadb-native-2
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=wenzong/mariadb-native-2
Wenzong Fan (1):
mariadb-native: fix link error on Ubuntu 13.10
.../recipes-support/mysql/mariadb-native_5.1.67.bb | 3 ++
.../mysql/mariadb/fix-link-error-ub1310.patch | 37 ++++++++++++++++++++
2 files changed, 40 insertions(+)
create mode 100644 meta-oe/recipes-support/mysql/mariadb/fix-link-error-ub1310.patch
--
1.7.10.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1] mariadb-native: fix link error on Ubuntu 13.10
2013-12-05 7:10 [PATCH 0/1] mariadb-native: fix link error on Ubuntu 13.10 wenzong.fan
@ 2013-12-05 7:10 ` wenzong.fan
2013-12-05 15:32 ` Scott Penner
0 siblings, 1 reply; 4+ messages in thread
From: wenzong.fan @ 2013-12-05 7:10 UTC (permalink / raw)
To: openembedded-devel
From: Wenzong Fan <wenzong.fan@windriver.com>
Below errors only occurs on Ubuntu 13.10:
$arch-linux-libtool: link: g++ ... -o .libs/mysqltest_embedded \
../../libmysqld/.libs/libmysqld.so -ldl
../../libmysqld/.libs/libmysqld.so: undefined reference to `dlopen'
../../libmysqld/.libs/libmysqld.so: undefined reference to `dlclose'
../../libmysqld/.libs/libmysqld.so: undefined reference to `dlerror'
../../libmysqld/.libs/libmysqld.so: undefined reference to `dlsym'
GCC/ld verion on the host:
gcc (Ubuntu/Linaro 4.8.1-10ubuntu8) 4.8.1
GNU ld (GNU Binutils for Ubuntu) 2.23.52.20130913
This is a strange behavior on Ub13.10, it fails even '-ldl' in the
link command line. This patch will append '-ldl' to dependency_libs
in libmysqld.la.
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
---
.../recipes-support/mysql/mariadb-native_5.1.67.bb | 3 ++
.../mysql/mariadb/fix-link-error-ub1310.patch | 37 ++++++++++++++++++++
2 files changed, 40 insertions(+)
create mode 100644 meta-oe/recipes-support/mysql/mariadb/fix-link-error-ub1310.patch
diff --git a/meta-oe/recipes-support/mysql/mariadb-native_5.1.67.bb b/meta-oe/recipes-support/mysql/mariadb-native_5.1.67.bb
index a55c2ab..dccbfd0 100644
--- a/meta-oe/recipes-support/mysql/mariadb-native_5.1.67.bb
+++ b/meta-oe/recipes-support/mysql/mariadb-native_5.1.67.bb
@@ -8,6 +8,9 @@ PACKAGES = ""
EXTRA_OEMAKE = ""
EXTRA_OECONF = " --with-embedded-server "
+SRC_URI += "file://fix-link-error-ub1310.patch \
+ "
+
do_install() {
oe_runmake 'DESTDIR=${D}' install
mv -f ${D}${libdir}/mysql/* ${D}${libdir}
diff --git a/meta-oe/recipes-support/mysql/mariadb/fix-link-error-ub1310.patch b/meta-oe/recipes-support/mysql/mariadb/fix-link-error-ub1310.patch
new file mode 100644
index 0000000..a528ea7
--- /dev/null
+++ b/meta-oe/recipes-support/mysql/mariadb/fix-link-error-ub1310.patch
@@ -0,0 +1,37 @@
+mariadb-native: fix link error on Ubuntu 13.10
+
+Below errors only occurs on Ubuntu 13.10:
+
+$arch-linux-libtool: link: g++ ... -o .libs/mysqltest_embedded \
+ ../../libmysqld/.libs/libmysqld.so -ldl
+
+ ../../libmysqld/.libs/libmysqld.so: undefined reference to `dlopen'
+ ../../libmysqld/.libs/libmysqld.so: undefined reference to `dlclose'
+ ../../libmysqld/.libs/libmysqld.so: undefined reference to `dlerror'
+ ../../libmysqld/.libs/libmysqld.so: undefined reference to `dlsym'
+
+GCC/ld verion on the host:
+ gcc (Ubuntu/Linaro 4.8.1-10ubuntu8) 4.8.1
+ GNU ld (GNU Binutils for Ubuntu) 2.23.52.20130913
+
+This is a strange behavior on Ub13.10, it fails even '-ldl' in the
+link command line. Below fix will append '-ldl' to dependency_libs
+in libmysqld.la.
+
+Upstream-Status: Submitted [https://mariadb.atlassian.net/browse/MDEV-5362]
+
+Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
+================================================
+diff --git a/libmysqld/Makefile.am b/libmysqld/Makefile.am
+index 7a2c92e..eee501e 100644
+--- a/libmysqld/Makefile.am
++++ b/libmysqld/Makefile.am
+@@ -92,7 +92,7 @@ INC_LIB= $(top_builddir)/regex/libregex.la \
+ @ndbcluster_libs@ @NDB_SCI_LIBS@ \
+ @mysql_embedded_plugin_libs@ \
+ $(libevent_inc_libs) \
+- $(yassl_inc_libs)
++ $(yassl_inc_libs) @LIBDL@
+
+ if HAVE_YASSL
+ yassl_inc_libs= $(top_builddir)/extra/yassl/src/libyassl.la \
--
1.7.10.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] mariadb-native: fix link error on Ubuntu 13.10
2013-12-05 7:10 ` [PATCH 1/1] " wenzong.fan
@ 2013-12-05 15:32 ` Scott Penner
2013-12-13 6:22 ` wenzong fan
0 siblings, 1 reply; 4+ messages in thread
From: Scott Penner @ 2013-12-05 15:32 UTC (permalink / raw)
To: openembedded-devel@lists.openembedded.org
Great, what is the best way to apply this patch?
Please excuse my noobness.
Thanks,
Scott Penner
Goodwell Inc.
c. 4033761977
a. Box 906 Brooks, Ab T1R1B8
> On Dec 5, 2013, at 12:10 AM, "wenzong.fan@windriver.com" <wenzong.fan@windriver.com> wrote:
>
> From: Wenzong Fan <wenzong.fan@windriver.com>
>
> Below errors only occurs on Ubuntu 13.10:
>
> $arch-linux-libtool: link: g++ ... -o .libs/mysqltest_embedded \
> ../../libmysqld/.libs/libmysqld.so -ldl
>
> ../../libmysqld/.libs/libmysqld.so: undefined reference to `dlopen'
> ../../libmysqld/.libs/libmysqld.so: undefined reference to `dlclose'
> ../../libmysqld/.libs/libmysqld.so: undefined reference to `dlerror'
> ../../libmysqld/.libs/libmysqld.so: undefined reference to `dlsym'
>
> GCC/ld verion on the host:
> gcc (Ubuntu/Linaro 4.8.1-10ubuntu8) 4.8.1
> GNU ld (GNU Binutils for Ubuntu) 2.23.52.20130913
>
> This is a strange behavior on Ub13.10, it fails even '-ldl' in the
> link command line. This patch will append '-ldl' to dependency_libs
> in libmysqld.la.
>
> Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
> ---
> .../recipes-support/mysql/mariadb-native_5.1.67.bb | 3 ++
> .../mysql/mariadb/fix-link-error-ub1310.patch | 37 ++++++++++++++++++++
> 2 files changed, 40 insertions(+)
> create mode 100644 meta-oe/recipes-support/mysql/mariadb/fix-link-error-ub1310.patch
>
> diff --git a/meta-oe/recipes-support/mysql/mariadb-native_5.1.67.bb b/meta-oe/recipes-support/mysql/mariadb-native_5.1.67.bb
> index a55c2ab..dccbfd0 100644
> --- a/meta-oe/recipes-support/mysql/mariadb-native_5.1.67.bb
> +++ b/meta-oe/recipes-support/mysql/mariadb-native_5.1.67.bb
> @@ -8,6 +8,9 @@ PACKAGES = ""
> EXTRA_OEMAKE = ""
> EXTRA_OECONF = " --with-embedded-server "
>
> +SRC_URI += "file://fix-link-error-ub1310.patch \
> + "
> +
> do_install() {
> oe_runmake 'DESTDIR=${D}' install
> mv -f ${D}${libdir}/mysql/* ${D}${libdir}
> diff --git a/meta-oe/recipes-support/mysql/mariadb/fix-link-error-ub1310.patch b/meta-oe/recipes-support/mysql/mariadb/fix-link-error-ub1310.patch
> new file mode 100644
> index 0000000..a528ea7
> --- /dev/null
> +++ b/meta-oe/recipes-support/mysql/mariadb/fix-link-error-ub1310.patch
> @@ -0,0 +1,37 @@
> +mariadb-native: fix link error on Ubuntu 13.10
> +
> +Below errors only occurs on Ubuntu 13.10:
> +
> +$arch-linux-libtool: link: g++ ... -o .libs/mysqltest_embedded \
> + ../../libmysqld/.libs/libmysqld.so -ldl
> +
> + ../../libmysqld/.libs/libmysqld.so: undefined reference to `dlopen'
> + ../../libmysqld/.libs/libmysqld.so: undefined reference to `dlclose'
> + ../../libmysqld/.libs/libmysqld.so: undefined reference to `dlerror'
> + ../../libmysqld/.libs/libmysqld.so: undefined reference to `dlsym'
> +
> +GCC/ld verion on the host:
> + gcc (Ubuntu/Linaro 4.8.1-10ubuntu8) 4.8.1
> + GNU ld (GNU Binutils for Ubuntu) 2.23.52.20130913
> +
> +This is a strange behavior on Ub13.10, it fails even '-ldl' in the
> +link command line. Below fix will append '-ldl' to dependency_libs
> +in libmysqld.la.
> +
> +Upstream-Status: Submitted [https://mariadb.atlassian.net/browse/MDEV-5362]
> +
> +Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
> +================================================
> +diff --git a/libmysqld/Makefile.am b/libmysqld/Makefile.am
> +index 7a2c92e..eee501e 100644
> +--- a/libmysqld/Makefile.am
> ++++ b/libmysqld/Makefile.am
> +@@ -92,7 +92,7 @@ INC_LIB= $(top_builddir)/regex/libregex.la \
> + @ndbcluster_libs@ @NDB_SCI_LIBS@ \
> + @mysql_embedded_plugin_libs@ \
> + $(libevent_inc_libs) \
> +- $(yassl_inc_libs)
> ++ $(yassl_inc_libs) @LIBDL@
> +
> + if HAVE_YASSL
> + yassl_inc_libs= $(top_builddir)/extra/yassl/src/libyassl.la \
> --
> 1.7.10.4
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] mariadb-native: fix link error on Ubuntu 13.10
2013-12-05 15:32 ` Scott Penner
@ 2013-12-13 6:22 ` wenzong fan
0 siblings, 0 replies; 4+ messages in thread
From: wenzong fan @ 2013-12-13 6:22 UTC (permalink / raw)
To: openembedded-devel, Scott Penner
On 12/05/2013 11:32 PM, Scott Penner wrote:
> Great, what is the best way to apply this patch?
> Please excuse my noobness.
If you are working on the meta-openembedded tree, just save the patch
email and run:
$ git am <saved-patch-email>
Or fetch my patch branch "wenzong/mariadb-native-2" and run git cherry-pick.
Thanks
Wenzong
>
> Thanks,
>
> Scott Penner
>
> Goodwell Inc.
> c. 4033761977
> a. Box 906 Brooks, Ab T1R1B8
>
>> On Dec 5, 2013, at 12:10 AM, "wenzong.fan@windriver.com" <wenzong.fan@windriver.com> wrote:
>>
>> From: Wenzong Fan <wenzong.fan@windriver.com>
>>
>> Below errors only occurs on Ubuntu 13.10:
>>
>> $arch-linux-libtool: link: g++ ... -o .libs/mysqltest_embedded \
>> ../../libmysqld/.libs/libmysqld.so -ldl
>>
>> ../../libmysqld/.libs/libmysqld.so: undefined reference to `dlopen'
>> ../../libmysqld/.libs/libmysqld.so: undefined reference to `dlclose'
>> ../../libmysqld/.libs/libmysqld.so: undefined reference to `dlerror'
>> ../../libmysqld/.libs/libmysqld.so: undefined reference to `dlsym'
>>
>> GCC/ld verion on the host:
>> gcc (Ubuntu/Linaro 4.8.1-10ubuntu8) 4.8.1
>> GNU ld (GNU Binutils for Ubuntu) 2.23.52.20130913
>>
>> This is a strange behavior on Ub13.10, it fails even '-ldl' in the
>> link command line. This patch will append '-ldl' to dependency_libs
>> in libmysqld.la.
>>
>> Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
>> ---
>> .../recipes-support/mysql/mariadb-native_5.1.67.bb | 3 ++
>> .../mysql/mariadb/fix-link-error-ub1310.patch | 37 ++++++++++++++++++++
>> 2 files changed, 40 insertions(+)
>> create mode 100644 meta-oe/recipes-support/mysql/mariadb/fix-link-error-ub1310.patch
>>
>> diff --git a/meta-oe/recipes-support/mysql/mariadb-native_5.1.67.bb b/meta-oe/recipes-support/mysql/mariadb-native_5.1.67.bb
>> index a55c2ab..dccbfd0 100644
>> --- a/meta-oe/recipes-support/mysql/mariadb-native_5.1.67.bb
>> +++ b/meta-oe/recipes-support/mysql/mariadb-native_5.1.67.bb
>> @@ -8,6 +8,9 @@ PACKAGES = ""
>> EXTRA_OEMAKE = ""
>> EXTRA_OECONF = " --with-embedded-server "
>>
>> +SRC_URI += "file://fix-link-error-ub1310.patch \
>> + "
>> +
>> do_install() {
>> oe_runmake 'DESTDIR=${D}' install
>> mv -f ${D}${libdir}/mysql/* ${D}${libdir}
>> diff --git a/meta-oe/recipes-support/mysql/mariadb/fix-link-error-ub1310.patch b/meta-oe/recipes-support/mysql/mariadb/fix-link-error-ub1310.patch
>> new file mode 100644
>> index 0000000..a528ea7
>> --- /dev/null
>> +++ b/meta-oe/recipes-support/mysql/mariadb/fix-link-error-ub1310.patch
>> @@ -0,0 +1,37 @@
>> +mariadb-native: fix link error on Ubuntu 13.10
>> +
>> +Below errors only occurs on Ubuntu 13.10:
>> +
>> +$arch-linux-libtool: link: g++ ... -o .libs/mysqltest_embedded \
>> + ../../libmysqld/.libs/libmysqld.so -ldl
>> +
>> + ../../libmysqld/.libs/libmysqld.so: undefined reference to `dlopen'
>> + ../../libmysqld/.libs/libmysqld.so: undefined reference to `dlclose'
>> + ../../libmysqld/.libs/libmysqld.so: undefined reference to `dlerror'
>> + ../../libmysqld/.libs/libmysqld.so: undefined reference to `dlsym'
>> +
>> +GCC/ld verion on the host:
>> + gcc (Ubuntu/Linaro 4.8.1-10ubuntu8) 4.8.1
>> + GNU ld (GNU Binutils for Ubuntu) 2.23.52.20130913
>> +
>> +This is a strange behavior on Ub13.10, it fails even '-ldl' in the
>> +link command line. Below fix will append '-ldl' to dependency_libs
>> +in libmysqld.la.
>> +
>> +Upstream-Status: Submitted [https://mariadb.atlassian.net/browse/MDEV-5362]
>> +
>> +Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
>> +================================================
>> +diff --git a/libmysqld/Makefile.am b/libmysqld/Makefile.am
>> +index 7a2c92e..eee501e 100644
>> +--- a/libmysqld/Makefile.am
>> ++++ b/libmysqld/Makefile.am
>> +@@ -92,7 +92,7 @@ INC_LIB= $(top_builddir)/regex/libregex.la \
>> + @ndbcluster_libs@ @NDB_SCI_LIBS@ \
>> + @mysql_embedded_plugin_libs@ \
>> + $(libevent_inc_libs) \
>> +- $(yassl_inc_libs)
>> ++ $(yassl_inc_libs) @LIBDL@
>> +
>> + if HAVE_YASSL
>> + yassl_inc_libs= $(top_builddir)/extra/yassl/src/libyassl.la \
>> --
>> 1.7.10.4
>>
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-12-13 6:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-05 7:10 [PATCH 0/1] mariadb-native: fix link error on Ubuntu 13.10 wenzong.fan
2013-12-05 7:10 ` [PATCH 1/1] " wenzong.fan
2013-12-05 15:32 ` Scott Penner
2013-12-13 6:22 ` wenzong fan
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.