All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Hirst <rhirst@linuxcare.com>
To: Christoph Plattner <christoph.plattner@dot.at>
Cc: parisc-linux@thepuffingroup.com
Subject: Re: Further (build ?): [parisc-linux] strace ??? - is there any ???
Date: Mon, 22 Jan 2001 22:45:03 +0000	[thread overview]
Message-ID: <20010122224503.U3571@linuxcare.com> (raw)
In-Reply-To: <3A6CA970.7F8F82DF@dot.at>; from christoph.plattner@dot.at on Mon, Jan 22, 2001 at 10:43:12PM +0100

On Mon, Jan 22, 2001 at 10:43:12PM +0100, Christoph Plattner wrote:
> Hallo Mr Hirst !
> 
> Now I have following problem. What is the clean
> way to build such autoconfigured tool cross ?

HOSTCC=gcc CC=hppa-linux-gcc ./configure --target=hppa-linux --host=hppa-linux
make


worked for me, except for a problem with redefinition of struct dirent64.
I hacked that out of /opt/palinux/hppa-linux/include/linux/dirent.h to
temporarily get round it.

I havn't checked the binary works.  You might have to remove a chunk
of code from strace/defs.h, depending on how new your glibc is.  With
a new glibc you need to remove the following block:

  /* Hack until I figure out why we don't call ptrace in glibc, rather
   * than the system call direct.
   */
  static inline long raw_ptrace(int req, pid_t pid, void *addr, long data)
  {
          long res, ret;
  
          if (req > 0 && req < 4)
                  data = (long)&ret;
          res = ptrace(req, pid, addr, data);
          if (res >= 0 && req > 0 && req < 4) {
                  errno = 0;
                  return ret;
          }
          return res;
  }
  
  #define ptrace raw_ptrace


Richard

  parent reply	other threads:[~2001-01-22 22:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200101221502.f0MF2kO05633@openbsd1.buttafuoco.net>
2001-01-22 15:15 ` [parisc-linux] Trouble booting a 710 (bushmaster) Richard Hirst
2001-01-22 18:05   ` Christoph Plattner
2001-01-22 20:01     ` [parisc-linux] strace ??? - is there any ??? Christoph Plattner
2001-01-22 20:15       ` Richard Hirst
2001-01-22 21:43         ` Further (build ?): " Christoph Plattner
2001-01-22 21:46           ` Christoph Plattner
2001-01-22 22:32             ` Richard Hirst
2001-01-22 22:45           ` Richard Hirst [this message]
2001-01-22 18:13   ` [parisc-linux] Bug in palo/palo/error.c Christoph Plattner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010122224503.U3571@linuxcare.com \
    --to=rhirst@linuxcare.com \
    --cc=christoph.plattner@dot.at \
    --cc=parisc-linux@thepuffingroup.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.