Skip to contentSkip to conversation

qwt: fix link error when linking with ld-gold.

oe-core Marc Reilly 3 participants 3 messages Aug 12, 2012

lore
Share & tools
lore
#0 lore raw

ld-gold doesn't implicitly link with librt, this fixes an unresolved symbol error when compiling qwt examples.

---
 .../recipes-qt/qwt/files/fix-ld-gold-linking.patch |   14 ++++++++++++++
 meta-oe/recipes-qt/qwt/qwt.inc                     |    1 +
 2 files changed, 15 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-qt/qwt/files/fix-ld-gold-linking.patch
meta-oe/recipes-qt/qwt/files/fix-ld-gold-linking.patch new file +14 -0
new file mode 100644
index 0000000..a00aba4
@@ -0,0 +1,14 @@
+- fix link of unresolved symbols: clock_getres and clock_gettime
+---
+diff --git a/src/src.pro b/src/src.pro
+index beb7125..ebf8ea6 100644
+--- a/src/src.pro
++++ b/src/src.pro
+@@ -94,6 +102,7 @@ SOURCES += \
+     qwt_symbol.cpp \
+     qwt_system_clock.cpp
+ 
++linux*:LIBS += -lrt
+  
+ contains(QWT_CONFIG, QwtPlot) {
+  
meta-oe/recipes-qt/qwt/qwt.inc +1 -0
index a299ac8..94231b4 100644
@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=dac2743472b0462ff3cfb4af42051c88"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/qwt/qwt-${PV}.tar.bz2;name=qwt \
 	file://qwt6.patch \
+        file://fix-ld-gold-linking.patch \
 	"
 
 S = "${WORKDIR}/qwt-${PV}"
Signature · 1 line
1.7.7
#1 lore raw
Quoted 35 lines · Marc Reilly

ld-gold doesn't implicitly link with librt, this fixes an unresolved symbol error when compiling qwt examples.

---
 .../recipes-qt/qwt/files/fix-ld-gold-linking.patch |   14 ++++++++++++++
 meta-oe/recipes-qt/qwt/qwt.inc                     |    1 +
 2 files changed, 15 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-qt/qwt/files/fix-ld-gold-linking.patch
meta-oe/recipes-qt/qwt/files/fix-ld-gold-linking.patch new file +14 -0
new file mode 100644
index 0000000..a00aba4
@@ -0,0 +1,14 @@
+- fix link of unresolved symbols: clock_getres and clock_gettime
+---
+diff --git a/src/src.pro b/src/src.pro
+index beb7125..ebf8ea6 100644
+--- a/src/src.pro
++++ b/src/src.pro
+@@ -94,6 +102,7 @@ SOURCES += \
+     qwt_symbol.cpp \
+     qwt_system_clock.cpp
+ 
++linux*:LIBS += -lrt
+  
+ contains(QWT_CONFIG, QwtPlot) {
+  
meta-oe/recipes-qt/qwt/qwt.inc +0 -0
index a299ac8..94231b4 100644

meta-oe/recipes-qt/qwt/qwt.inc LIC_FILES_CHKSUM = "file://COPYING;md5=dac2743472b0462ff3cfb4af42051c88" · line 11

Quoted 5 lines
meta-oe/recipes-qt/qwt/qwt.inc +1 -0
@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=dac2743472b0462ff3cfb4af42051c88"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/qwt/qwt-${PV}.tar.bz2;name=qwt \
 	file://qwt6.patch \
+        file://fix-ld-gold-linking.patch \
 	"

Please don't mix tabs and spaces for indentation.

Spaces should be used for multiline variables, so your line is right, please change 2nd and last (of SRC_URI). Thanks

Quoted 10 lines
meta-oe/recipes-qt/qwt/qwt.inc +0 -0
 S = "${WORKDIR}/qwt-${PV}"
Signature · 7 lines
1.7.7


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#2 lore raw
In reply to Marc Reilly
Quoted 16 lines · Marc Reilly

ld-gold doesn't implicitly link with librt, this fixes an unresolved symbol error when compiling qwt examples.

---
  .../recipes-qt/qwt/files/fix-ld-gold-linking.patch |   14 ++++++++++++++
  meta-oe/recipes-qt/qwt/qwt.inc                     |    1 +
  2 files changed, 15 insertions(+), 0 deletions(-)

create mode 100644 meta-oe/recipes-qt/qwt/files/fix-ld-gold-linking.patch

meta-oe/recipes-qt/qwt/files/fix-ld-gold-linking.patch new file +0 -0
new file mode 100644
index 0000000..a00aba4

meta-oe/recipes-qt/qwt/files/fix-ld-gold-linking.patch line 2

Quoted 2 lines
meta-oe/recipes-qt/qwt/files/fix-ld-gold-linking.patch new file +2 -0
@@ -0,0 +1,14 @@
+- fix link of unresolved symbols: clock_getres and clock_gettime
+---

Patch needs Signed-off-by and Upstream-Status Tags please

Thanks

Sau!

Quoted 25 lines
meta-oe/recipes-qt/qwt/files/fix-ld-gold-linking.patch new file +12 -0
+diff --git a/src/src.pro b/src/src.pro
+index beb7125..ebf8ea6 100644
+--- a/src/src.pro
++++ b/src/src.pro
+@@ -94,6 +102,7 @@ SOURCES += \
+     qwt_symbol.cpp \
+     qwt_system_clock.cpp
+
++linux*:LIBS += -lrt
+
+ contains(QWT_CONFIG, QwtPlot) {
+
meta-oe/recipes-qt/qwt/qwt.inc +1 -0
index a299ac8..94231b4 100644
@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=dac2743472b0462ff3cfb4af42051c88"
 
  SRC_URI = "${SOURCEFORGE_MIRROR}/qwt/qwt-${PV}.tar.bz2;name=qwt \
  	file://qwt6.patch \
+        file://fix-ld-gold-linking.patch \
  	"
 
  S = "${WORKDIR}/qwt-${PV}"