LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-27-2013, 03:05 PM   #1
IneptCoder
LQ Newbie
 
Registered: Jun 2013
Location: my house
Distribution: centos, ubuntu
Posts: 10

Rep: Reputation: Disabled
Using sched_getcpu() with glibc-2.5


Hello,

So this software I am working with was coded using glibc 2.12, but I have to make it run with glibc-2.5. So far the only problem I have found when compiling is that the software uses the sched_getcpu() function. But, I looked it up and apparently sched_getcpu() has only been available since glibc-2.6. So, I need an alternate function/solution that does the same thing as sched_getcpu(). Is there an alternate pre-glibc-2.6 equivalent function I could use? I was also thinking of trying to find the code for the function online and trying to write an equivalent...but I am fairly new to coding/programming(is there a diff?) and the stuff I am finding is making little sense(I am finding stuff on macros which I have no exp. with)...I am still searching but any help would be much appreciated.

On a side note, I think I understand static vs. dynamic libraries and why they would be useful, but I do not know what these libraries are when coding. How can I tell if the library I am using is static or dynamic? and are the glibc libraries static or dynamic? This is important because another option I was thinking about would be to upgrade to a recent glibc library, but if I do that and it turns out glibc is dynamic then I would have to uprgrade evry system this software is supposed to run on (they are all glibc 2.5) because using dynamic libraries would make the software dependent on the local system libraries (right?).

Again, I am new to this so sorry if my questions don't make much sense.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LFS 7.3: 6.9. Glibc-2.17 failed glibc testing after 2 hours running quicktime2004 Linux From Scratch 5 06-12-2013 02:48 AM
Upcoming pain with glibc-2.14 and Linux-PAM: RPC build supt. is removed from glibc! JoelPB Linux From Scratch 6 12-13-2011 06:31 AM
problem installing glibc-2.3.2-4.80.i686, glibc-common-2.3.2-4.80.8.i386.rpm martianpackets Red Hat 8 05-01-2009 03:22 PM
glibc-compiling loves to make errors? ok, let me post mine here: glibc 2.9 me-$-on Linux From Scratch 7 04-11-2009 06:22 PM
Replacing glibc using linuxthreads for glibc using nptl (native positx thread library CestusGW Linux From Scratch 4 01-20-2005 07:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:11 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
Open Source Consulting | Domain Registration