Subject: build problem
To: None <tech-kern@netbsd.org>
From: Emmanuel Dreyfus <p99dreyf@criens.u-psud.fr>
List: tech-kern
Date: 06/02/2001 12:16:39
Hi!

I recently committed the following code in
sys/compat/linux/common/linux_misc.c

         error = sys_ptrace(p, &pta, retval);
         if (!error)
            switch (request) {
               case LINUX_PTRACE_PEEKTEXT:
               case LINUX_PTRACE_PEEKDATA:
                  error = copyout (retval,
                      (caddr_t)SCARG(&pta, data),
                      sizeof retval);
                  *retval = SCARG(&pta, data);
                  break;
               default: 
                  break;
            }
         return error;

It works fine at mine (macppc), but I was told that build fails on
alpha. The person that reported it was able to build by replacing
(caddr_t)SCARG(&pta, data)
by
(caddr_t)(u_long)SCARG(&pta, data)

I don't understand why it fails

-- 
Emmanuel Dreyfus
p99dreyf@criens.u-psud.fr