All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] strace_4.5.20.bb: Fix build on mips{, el} when DISTRO_FEATURES lacks "largefile".
@ 2010-11-23  3:16 Graham Gower
  2010-11-23  3:26 ` Graham Gower
  0 siblings, 1 reply; 2+ messages in thread
From: Graham Gower @ 2010-11-23  3:16 UTC (permalink / raw)
  To: openembedded-devel


| mipsel-oe-linux-uclibc-gcc -march=mips32 -Wall -isystem/mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os  -L/mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/lib -Wl,-rpath-link,/mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/lib -Wl,-O1 -o strace strace.o syscall.o count.o util.o desc.o file.o ipc.o io.o ioctl.o mem.o net.o process.o bjm.o quota.o resource.o signal.o sock.o system.o term.o time.o proc.o scsi.o stream.o
| syscall.o:(.data.rel.ro+0x14904): undefined reference to `sys_truncate64'
| syscall.o:(.data.rel.ro+0x14918): undefined reference to `sys_ftruncate64'
| syscall.o:(.data.rel.ro+0x149a4): undefined reference to `sys_getdents64'
| syscall.o:(.data.rel.ro+0x14c74): undefined reference to `sys_statfs64'
| syscall.o:(.data.rel.ro+0x14c88): undefined reference to `sys_fstatfs64'
| collect2: ld returned 1 exit status
| make[1]: *** [strace] Error 1

Signed-off-by: Graham Gower <graham.gower@gmail.com>
---
 .../strace/strace-4.5.20/mips-nolargefile.patch    |   41 ++++++++++++++++++++
 recipes/strace/strace_4.5.20.bb                    |    4 ++
 2 files changed, 45 insertions(+), 0 deletions(-)
 create mode 100644 recipes/strace/strace-4.5.20/mips-nolargefile.patch

diff --git a/recipes/strace/strace-4.5.20/mips-nolargefile.patch b/recipes/strace/strace-4.5.20/mips-nolargefile.patch
new file mode 100644
index 0000000..6132356
--- /dev/null
+++ b/recipes/strace/strace-4.5.20/mips-nolargefile.patch
@@ -0,0 +1,41 @@
+--- strace-4.5.20/linux/mips/syscallent.h.orig	2010-11-23 13:25:49.000000000 +1030
++++ strace-4.5.20/linux/mips/syscallent.h	2010-11-23 13:28:23.000000000 +1030
+@@ -4213,15 +4213,24 @@
+ 	{ 0,	0,	printargs,		"SYS_4208"	}, /* 4208 */
+ 	{ 0,	0,	printargs,		"SYS_4209"	}, /* 4209 */
+ 	{ 6,	0,	sys_mmap,		"mmap"		}, /* 4210 */
++#ifdef _LFS64_LARGEFILE
+ 	{ 4,	TF,	sys_truncate64,		"truncate64"	}, /* 4211 */
+ 	{ 4,	TD,	sys_ftruncate64,	"ftruncate64"	}, /* 4212 */
++#else
++	{ 4,	TF,	printargs,		"truncate64"	}, /* 4211 */
++	{ 4,	TD,	printargs,		"ftruncate64"	}, /* 4212 */
++#endif
+ 	{ 2,	TF,	printargs,		"stat64"	}, /* 4213 */
+ 	{ 2,	TF,	sys_lstat64,		"lstat64"	}, /* 4214 */
+ 	{ 2,	TD,	sys_fstat64,		"fstat64"	}, /* 4215 */
+ 	{ 2,	TF,	sys_pivotroot,		"pivot_root"	}, /* 4216 */
+ 	{ 3,	0,	printargs,		"mincore"	}, /* 4217 */
+ 	{ 3,	0,	sys_madvise,		"madvise"	}, /* 4218 */
++#ifdef _LFS64_LARGEFILE
+ 	{ 3,	TF,	sys_getdents64,		"getdents64"	}, /* 4219 */
++#else
++	{ 3,	TF,	printargs,		"getdents64"	}, /* 4219 */
++#endif
+ 	{ 3,	TD,	sys_fcntl,		"fcntl64"	}, /* 4220 */
+ 	{ 0,	0,	printargs,		"SYS_4221"	}, /* 4221 */
+ 	{ 0,	0,	printargs,		"gettid"	}, /* 4222 */
+@@ -4257,8 +4266,13 @@
+ 	{ 1,	0,	printargs,		"set_tid_address"}, /* 4252 */
+ 	{ 0,	0,	sys_restart_syscall,	"restart_syscall"}, /* 4253 */
+ 	{ 6,	0,	sys_fadvise64_64,	"fadvise64_64"	}, /* 4254 */
++#ifdef _LFS64_LARGEFILE
+ 	{ 3,	TF,	sys_statfs64,		"statfs64"	}, /* 4255 */
+ 	{ 2,	TD,	sys_fstatfs64,		"fstatfs64"	}, /* 4256 */
++#else
++	{ 3,	TF,	printargs,		"statfs64"	}, /* 4255 */
++	{ 2,	TD,	printargs,		"fstatfs64"	}, /* 4256 */
++#endif
+ 	{ 3,	0,	sys_timer_create,	"timer_create"	}, /* 4257 */
+ 	{ 4,	0,	sys_timer_settime,	"timer_settime"	}, /* 4258 */
+ 	{ 2,	0,	sys_timer_gettime,	"timer_gettime"	}, /* 4259 */
diff --git a/recipes/strace/strace_4.5.20.bb b/recipes/strace/strace_4.5.20.bb
index 873ce52..2fd5170 100644
--- a/recipes/strace/strace_4.5.20.bb
+++ b/recipes/strace/strace_4.5.20.bb
@@ -4,9 +4,13 @@ LICENSE = "GPL"
 PR = "r0"
 
 DEFAULT_PREFERENCE = "-1"
+DEFAULT_PREFERENCE_mipsel_uclibc = "1"
+DEFAULT_PREFERENCE_mips_uclibc = "1"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/strace/strace-${PV}.tar.bz2 \
           "
+SRC_URI_append_mipsel += " file://mips-nolargefile.patch "
+SRC_URI_append_mips += " file://mips-nolargefile.patch "
 
 inherit autotools
 
-- 
1.7.1




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

* Re: [PATCH] strace_4.5.20.bb: Fix build on mips{, el} when DISTRO_FEATURES lacks "largefile".
  2010-11-23  3:16 [PATCH] strace_4.5.20.bb: Fix build on mips{, el} when DISTRO_FEATURES lacks "largefile" Graham Gower
@ 2010-11-23  3:26 ` Graham Gower
  0 siblings, 0 replies; 2+ messages in thread
From: Graham Gower @ 2010-11-23  3:26 UTC (permalink / raw)
  To: openembedded-devel

Disregard this one. Clearly I don't know how to use DEFAULT_PREFERENCE.

On 23 November 2010 13:46, Graham Gower <graham.gower@gmail.com> wrote:
>
> | mipsel-oe-linux-uclibc-gcc -march=mips32 -Wall -isystem/mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os  -L/mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/lib -Wl,-rpath-link,/mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/lib -Wl,-O1 -o strace strace.o syscall.o count.o util.o desc.o file.o ipc.o io.o ioctl.o mem.o net.o process.o bjm.o quota.o resource.o signal.o sock.o system.o term.o time.o proc.o scsi.o stream.o
> | syscall.o:(.data.rel.ro+0x14904): undefined reference to `sys_truncate64'
> | syscall.o:(.data.rel.ro+0x14918): undefined reference to `sys_ftruncate64'
> | syscall.o:(.data.rel.ro+0x149a4): undefined reference to `sys_getdents64'
> | syscall.o:(.data.rel.ro+0x14c74): undefined reference to `sys_statfs64'
> | syscall.o:(.data.rel.ro+0x14c88): undefined reference to `sys_fstatfs64'
> | collect2: ld returned 1 exit status
> | make[1]: *** [strace] Error 1
>
> Signed-off-by: Graham Gower <graham.gower@gmail.com>
> ---
>  .../strace/strace-4.5.20/mips-nolargefile.patch    |   41 ++++++++++++++++++++
>  recipes/strace/strace_4.5.20.bb                    |    4 ++
>  2 files changed, 45 insertions(+), 0 deletions(-)
>  create mode 100644 recipes/strace/strace-4.5.20/mips-nolargefile.patch
>
> diff --git a/recipes/strace/strace-4.5.20/mips-nolargefile.patch b/recipes/strace/strace-4.5.20/mips-nolargefile.patch
> new file mode 100644
> index 0000000..6132356
> --- /dev/null
> +++ b/recipes/strace/strace-4.5.20/mips-nolargefile.patch
> @@ -0,0 +1,41 @@
> +--- strace-4.5.20/linux/mips/syscallent.h.orig 2010-11-23 13:25:49.000000000 +1030
> ++++ strace-4.5.20/linux/mips/syscallent.h      2010-11-23 13:28:23.000000000 +1030
> +@@ -4213,15 +4213,24 @@
> +       { 0,    0,      printargs,              "SYS_4208"      }, /* 4208 */
> +       { 0,    0,      printargs,              "SYS_4209"      }, /* 4209 */
> +       { 6,    0,      sys_mmap,               "mmap"          }, /* 4210 */
> ++#ifdef _LFS64_LARGEFILE
> +       { 4,    TF,     sys_truncate64,         "truncate64"    }, /* 4211 */
> +       { 4,    TD,     sys_ftruncate64,        "ftruncate64"   }, /* 4212 */
> ++#else
> ++      { 4,    TF,     printargs,              "truncate64"    }, /* 4211 */
> ++      { 4,    TD,     printargs,              "ftruncate64"   }, /* 4212 */
> ++#endif
> +       { 2,    TF,     printargs,              "stat64"        }, /* 4213 */
> +       { 2,    TF,     sys_lstat64,            "lstat64"       }, /* 4214 */
> +       { 2,    TD,     sys_fstat64,            "fstat64"       }, /* 4215 */
> +       { 2,    TF,     sys_pivotroot,          "pivot_root"    }, /* 4216 */
> +       { 3,    0,      printargs,              "mincore"       }, /* 4217 */
> +       { 3,    0,      sys_madvise,            "madvise"       }, /* 4218 */
> ++#ifdef _LFS64_LARGEFILE
> +       { 3,    TF,     sys_getdents64,         "getdents64"    }, /* 4219 */
> ++#else
> ++      { 3,    TF,     printargs,              "getdents64"    }, /* 4219 */
> ++#endif
> +       { 3,    TD,     sys_fcntl,              "fcntl64"       }, /* 4220 */
> +       { 0,    0,      printargs,              "SYS_4221"      }, /* 4221 */
> +       { 0,    0,      printargs,              "gettid"        }, /* 4222 */
> +@@ -4257,8 +4266,13 @@
> +       { 1,    0,      printargs,              "set_tid_address"}, /* 4252 */
> +       { 0,    0,      sys_restart_syscall,    "restart_syscall"}, /* 4253 */
> +       { 6,    0,      sys_fadvise64_64,       "fadvise64_64"  }, /* 4254 */
> ++#ifdef _LFS64_LARGEFILE
> +       { 3,    TF,     sys_statfs64,           "statfs64"      }, /* 4255 */
> +       { 2,    TD,     sys_fstatfs64,          "fstatfs64"     }, /* 4256 */
> ++#else
> ++      { 3,    TF,     printargs,              "statfs64"      }, /* 4255 */
> ++      { 2,    TD,     printargs,              "fstatfs64"     }, /* 4256 */
> ++#endif
> +       { 3,    0,      sys_timer_create,       "timer_create"  }, /* 4257 */
> +       { 4,    0,      sys_timer_settime,      "timer_settime" }, /* 4258 */
> +       { 2,    0,      sys_timer_gettime,      "timer_gettime" }, /* 4259 */
> diff --git a/recipes/strace/strace_4.5.20.bb b/recipes/strace/strace_4.5.20.bb
> index 873ce52..2fd5170 100644
> --- a/recipes/strace/strace_4.5.20.bb
> +++ b/recipes/strace/strace_4.5.20.bb
> @@ -4,9 +4,13 @@ LICENSE = "GPL"
>  PR = "r0"
>
>  DEFAULT_PREFERENCE = "-1"
> +DEFAULT_PREFERENCE_mipsel_uclibc = "1"
> +DEFAULT_PREFERENCE_mips_uclibc = "1"
>
>  SRC_URI = "${SOURCEFORGE_MIRROR}/strace/strace-${PV}.tar.bz2 \
>           "
> +SRC_URI_append_mipsel += " file://mips-nolargefile.patch "
> +SRC_URI_append_mips += " file://mips-nolargefile.patch "
>
>  inherit autotools
>
> --
> 1.7.1
>
>



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

end of thread, other threads:[~2010-11-23  3:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-23  3:16 [PATCH] strace_4.5.20.bb: Fix build on mips{, el} when DISTRO_FEATURES lacks "largefile" Graham Gower
2010-11-23  3:26 ` Graham Gower

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.