Skip to contentSkip to conversation

samba: Fix build issue on uclibc/arm/thumb

PATCH In review Khem Raj 2 participants 2 messages Jan 26, 2011

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 samba: Fix build issue on uclibc/arm/thumb

We get following errors as of now. This patch fixes those

/scratch/oe/sysroots/x86_64-linux/usr/armv5te/lib/gcc/arm-oe-linux-uclibceabi/4.5.3/../../../../arm-oe-linux-uclibceabi/bin/ld:
/scratch/oe/sysroots/armv5te-oe-linux-uclibceabi/usr/lib//uclibc_nonshared.a(atexit.os)(.text+0x12):
unresolvable R_ARM_THM_CALL relocation against symbol `__cxa_atexit'

---
 recipes/samba/samba_3.2.15.bb |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
recipes/samba/samba_3.2.15.bb +2 -1
index ef2707e..214de58 100644
@@ -9,7 +9,7 @@ SRC_URI += "file://configure-3.2.8.patch \
 SRC_URI[md5sum] = "5a3bcc4927c9643b9f42970d0815b18f"
 SRC_URI[sha256sum] = "84281fd1faeffee8558e49dff865dd382abbf78bc1be00f8cb5aa70aeea67d46"
 
-PR = "r3"
+PR = "r4"
 
 EXTRA_OECONF += "\
 	SMB_BUILD_CC_NEGATIVE_ENUM_VALUES=yes \
@@ -22,6 +22,7 @@ EXTRA_OECONF += "\
 	samba_cv_HAVE_WRFILE_KEYTAB=yes \
 	"
 
+EXTRA_OECONF_append_libc-uclibc = " --disable-pie"
 # for arm we always use ARM instruction set
 # gcc 4.5 ICE's in thumb mode
 # see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46934
Signature · 1 line
1.7.2.3
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Khem Raj

We get following errors as of now. This patch fixes those

/scratch/oe/sysroots/x86_64-linux/usr/armv5te/lib/gcc/arm-oe-linux-uclibceabi/4.5.3/../../../../arm-oe-linux-uclibceabi/bin/ld:
/scratch/oe/sysroots/armv5te-oe-linux-uclibceabi/usr/lib//uclibc_nonshared.a(atexit.os)(.text+0x12):
unresolvable R_ARM_THM_CALL relocation against symbol `__cxa_atexit'

Quoted 25 lines
---
  recipes/samba/samba_3.2.15.bb |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)
recipes/samba/samba_3.2.15.bb +2 -1
index ef2707e..214de58 100644
@@ -9,7 +9,7 @@ SRC_URI += "file://configure-3.2.8.patch \
  SRC_URI[md5sum] = "5a3bcc4927c9643b9f42970d0815b18f"
  SRC_URI[sha256sum] = "84281fd1faeffee8558e49dff865dd382abbf78bc1be00f8cb5aa70aeea67d46"
 
-PR = "r3"
+PR = "r4"
 
  EXTRA_OECONF += "\
  	SMB_BUILD_CC_NEGATIVE_ENUM_VALUES=yes \
@@ -22,6 +22,7 @@ EXTRA_OECONF += "\
  	samba_cv_HAVE_WRFILE_KEYTAB=yes \
  	"
 
+EXTRA_OECONF_append_libc-uclibc = " --disable-pie"
  # for arm we always use ARM instruction set
  # gcc 4.5 ICE's in thumb mode
  # see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46934
Signature · 2 lines
Tom Rini
Mentor Graphics Corporation