|
From: | Waibel, Boris |
Subject: | Problem compiling ddd 3.3.11 on sparc sun solaris 2.8 as 64 bit |
Date: | Tue, 26 Apr 2005 13:46:20 +0200 |
Hello,
in filr ddd/options.C line 1484 a char* is casted to an int (third argument of ptrace). On Solaris 64bit (and most properply on many other 64bit systems) this is not possible since a pointer has 64 bit, while an int has only 32. Casting to long solves the problem.
Unfortunately ptrace seems to be defined differently on any 64bit system:
IRIX: int ptrace(int request, pid_t pid, int addr, int data);
SunOS: long ptrace(int, pid_t, long, long);
Linux IA64(SGI Altix):long ptrace(enum __ptrace_request request, pid_t pid, void *addr, void *data);
Linux x86_64: long int ptrace (enum __ptrace_request __request, ...);
Mit freundlichen Grüßen / Best regards
Boris Waibel
MTU Aero Engines GmbH
CAE/Analytik (FIEA)
Dachauer Str. 665
80995 München
Germany
Tel +49 (0)89 14 89 65 54
Fax +49 (0)89 14 89 97 09 3
mailto:address@hidden
http://www.mtu.de
[Prev in Thread] | Current Thread | [Next in Thread] |