LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-12-2008, 06:21 AM   #1
adarshkmr
LQ Newbie
 
Registered: Feb 2008
Posts: 3

Rep: Reputation: 0
Unhappy cpu_t in Linux


Hi

can any one help me reg the following issue.
I am porting one appln from Solaris to Linux.
When I compiled one directory I got an error such as
"/home/users/bldadm2/pvcs/ib/mcs/src/mcs/base/affinity.h", line 89: Error: cpu_t is not defined.

In Solaris, definition for cpu_t is availbale in the /usr/include/sys/cpuvar.h

I couldnt find out the definition for cpu_t in Linux plarform.

Please advise...
Thnx in Advance...
 
Old 02-12-2008, 11:30 PM   #2
gr.manju
LQ Newbie
 
Registered: Oct 2007
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by adarshkmr View Post
Hi

can any one help me reg the following issue.
I am porting one appln from Solaris to Linux.
When I compiled one directory I got an error such as
"/home/users/bldadm2/pvcs/ib/mcs/src/mcs/base/affinity.h", line 89: Error: cpu_t is not defined.

In Solaris, definition for cpu_t is availbale in the /usr/include/sys/cpuvar.h

I couldnt find out the definition for cpu_t in Linux plarform.

Please advise...
Thnx in Advance...


If its not defined in linux just copy the definition from the solaris
and write it in your header file and include that header file in your all the files where ever you are using cpu_t

this is the easiest way to come over that error

but its better if you make a common header file for all the missing variables definition in linux.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration