<sys/ptrace.h> missing in Solaris 10

Thread Tools Search this Thread
Operating Systems Solaris <sys/ptrace.h> missing in Solaris 10
# 1  
Old 09-07-2011
<sys/ptrace.h> missing in Solaris 10

Does anyone know why this system include is not there.
What can I install to get this and why is it missing?
# 2  
Old 09-08-2011
See: man 3 ptrace
The 64–bit version of the ptrace interface that is included in libc is no longer supported in Solaris. The proc interface replaces this functionality.
See also:

Last edited by yazu; 09-08-2011 at 12:56 AM..
This User Gave Thanks to yazu For This Post:
# 3  
Old 09-09-2011
Good one, thanks. I guess I either have to bring over ptrace.h and put it there locally for compile, or re-write the code to use the proc-interface (former is easier).

---------- Post updated 09-08-11 at 08:38 PM ---------- Previous update was 09-07-11 at 11:22 PM ----------

By the way that's replaced by cdefs.h
take a look at this:
sys/ptrace.h Source

Internally calls cdefs which IS in Solaris's sfw lib path!

---------- Post updated 09-09-11 at 05:22 PM ---------- Previous update was 09-08-11 at 08:38 PM ----------

I brought in a local ptrace.h, which in turn pointed to a cdefs.h (which exists in Solaris-10 fine) but I still get all these errors for compile.

Anyone have any idea what else I can do...I really have to cmpile this code for Monday.
# 4  
Old 09-09-2011
Hauling over headers from somewhere else doesn't make things that don't exist, exist. Headers just assert that such and such functions exist -- they don't actually define them.

ptrace.h is gone because it no longer works, not vice-versa. Rewrite the code using the new /proc/ interface.

Last edited by Corona688; 09-09-2011 at 08:44 PM..
# 5  
Old 09-10-2011
@steve701: are you compiling a 32 or 64 bit binary ?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Ksyms missing in Solaris

Hi, On solaris-10 server, this file is missing, which is causing another issue. Can somebody guide, how to fix this ? This is tough server to take downtime, uptime of 3 years. I am thinking, is there anything, which I can do without reconfiguration reboot. devfsadm didn't helped bash-3.2# ls -l... (2 Replies)
Discussion started by: solaris_1977
2 Replies

2. Programming

Interactive Python 3.5+ sys.stdout.write() AND sys.stderr.write() bug?

(Apologies for any typos.) OSX 10.12.3 AND Windows 10. This is for the serious Python experts on at least 3.5.x and above... In script format sys.stdout.write() AND sys.stderr.write() seems to work correctly. Have I found a serious bug in the interactive sys.stdout.write() AND... (2 Replies)
Discussion started by: wisecracker
2 Replies

3. Shell Programming and Scripting

Move all files except sys date (today) files in Solaris 10

I want to move all files from one directory to another directory excluding today (sysdate files) on daily basis. file name is in pattern file_2013031801, file_2013031802 etc (2 Replies)
Discussion started by: khattak
2 Replies

4. Solaris

Solaris 10 Installation - Disks missing, and Raid

Hey everyone. First, let me start by saying I'm primarily focused on linux boxes, and just happened to get pulled into building two T5220's. I'm not super educated on sun boxes. Both T5220's have 8 146GB 15k SAS drives. Inside the service processor, I can run SHOW /SYS/HDD{0-7} and they all come... (2 Replies)
Discussion started by: msarro
2 Replies

5. Solaris

Solaris 10 missing /cdrom/cdrom0/

Good day everyone, I am trying to install some new senmail patch on my Solaris 10 system. I know the cdrom for my CP3260 blade servers in my rack worked for the last patches installed. However, when I went to copy from the .tar file from the cdrom to the /tmp. I received an error cannot... (2 Replies)
Discussion started by: cookiecrumbs
2 Replies

6. UNIX for Dummies Questions & Answers

Solaris 10 missing static_routes file

Hi, I have a solaris 10 system ( confirmed by the /etc/releases file and uname -a ). But, I have no /etc/inet/static_routes file and if I try to add a persistent route with route -p add then it tells me that -p isn't a valid option. Can anybody tell me why my Sol10 system isn't acting like... (0 Replies)
Discussion started by: Donkey25
0 Replies

7. Solaris

pkgadd missing on Solaris 11

Hi, This is not a question thread, but rather a solution to an issue I have encountered on Solaris 11. It turns out that pkgadd is not available by default on Solaris 11. The solution is to install it with: pkg install SUNWpkgcmdsI hope this will save people some time. Cheers, ... (4 Replies)
Discussion started by: JVerstry
4 Replies

8. Solaris

Solaris 10 Minimum Sys Requirement

HI all, What the minimum & recommended system requirement for Rhel Linux to get install on it??:( Plz reply ASAp (0 Replies)
Discussion started by: saurabh84g
0 Replies

9. UNIX for Dummies Questions & Answers

Solaris 10 sys-unconfig issue (brand new user)

ok, Newbie here..... I just installed this solaris 10 for a class I'm taking. We couldn't figure out how to change the IP so we were told to just do it from the sys-uncofig process. Well, after I did that, I lost the GUI witch isn't all that bad cuz I want to learn the cli anyways, but I keep... (1 Reply)
Discussion started by: moesays
1 Replies

10. UNIX for Advanced & Expert Users

Solaris 8 - SUNWcsr cluster missing/corrupt ?

Hi all I'm currently trying to install OpenSSH on a number of servers and for the most part succeeding. Unfortunately one of the Sun V880 servers is complaining when I try to install the /dev/random (entropy) patch (112438-01) needed for the SSH keys. Error below.... (ignore 'the patch has... (3 Replies)
Discussion started by: Brett
3 Replies
Login or Register to Ask a Question