Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

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


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, 12:54 PM   #2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,810

Rep: Reputation: 3354Reputation: 3354Reputation: 3354Reputation: 3354Reputation: 3354Reputation: 3354Reputation: 3354Reputation: 3354Reputation: 3354Reputation: 3354Reputation: 3354
Duplicate of
Old 06-26-2013, 06:19 PM   #3
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 05:39 PM
Compiler Fedora9 Kernel issue willylinux Linux - Newbie 2 11-18-2008 05:31 PM
pthread error - compiler issue? crowl Linux - Software 2 01-14-2008 03:46 AM
Compiler issue c99 sgriffiths Linux - Software 9 11-29-2006 04:23 AM
openxchange java compiler issue TheNorwegian Fedora 1 11-08-2004 11:11 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:04 PM.

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