LinuxQuestions.org
Visit Jeremy's Blog.
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


Closed Thread
  Search this Thread
Old 06-26-2013, 09:10 AM   #1
IneptCoder
LQ Newbie
 
Registered: Jun 2013
Location: my house
Distribution: centos, ubuntu
Posts: 10

Rep: Reputation: Disabled
Could the compiler be the issue?


Hi,

There is some software that was developed on a fairly new linux (Centos 6.3) and now I am trying to compile it on a older version (Centos 5). I am getting a bunch of new warning messages on the old linux that I wasn't getting on the new one such as the following:

warning: converting from non-pointer type 'char' from NULL

warning: passing NULL to non-pointer argument 4 of...(one of the functions)

I found that the GCC compiler I am using on the older linux is version 4.1.2 while the newer linux is GCC version 4.4.6 could this be the problem for all these new messages?

Also, I am getting an error message that reads:

error: 'sched_getcpu' was not declared in this scope

Again I did not get this error on the newer linux. I think the problem might be that the older linux might not have sched.h file/library installed or maybe its not being properly linked(GCC problem again?) but I do not know how to verify this. (where would I go to see what libraries are included on the computer?)
 
Old 06-26-2013, 11:54 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,683

Rep: Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284
Duplicate of
http://www.linuxquestions.org/questi...er-4175467475/
 
Old 06-26-2013, 05:19 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiler Fedora9 Kernel issue willylinux Linux - Software 1 11-18-2008 04:39 PM
Compiler Fedora9 Kernel issue willylinux Linux - Newbie 2 11-18-2008 04:31 PM
pthread error - compiler issue? crowl Linux - Software 2 01-14-2008 02:46 AM
Compiler issue c99 sgriffiths Linux - Software 9 11-29-2006 03:23 AM
openxchange java compiler issue TheNorwegian Fedora 1 11-08-2004 10:11 AM

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

All times are GMT -5. The time now is 01:53 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