LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-26-2013, 10:25 AM   #1
IneptCoder
LQ Newbie
 
Registered: Jun 2013
Location: my house
Distribution: centos, ubuntu
Posts: 10

Rep: Reputation: Disabled
locating then right libarary GCC compiler


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:45 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
May be give it a try with gcc-4.4.x ..
The current version of "gcc-4.4 for CentOS 6.x" is 4.4.7 :

# yum install gcc44-c++

.. providing /usr/bin/ { gcc44, g++44 }
 
1 members found this post helpful.
Old 06-26-2013, 12:26 PM   #3
IneptCoder
LQ Newbie
 
Registered: Jun 2013
Location: my house
Distribution: centos, ubuntu
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thanks for the response.
I do not know much about the yum command but the laptop I have to run the software (centos 5) does not have internet connections and I cannot get internet connection on it for security reasons. So I would have to download the gcc-4.4.7 onto a flash drive and then put it on the laptop. Could I install 4.4.7 on Centos 5?
I am looking at the Centos website and it looks like it is possible but I am looking for further information.
 
Old 06-26-2013, 12:48 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Packages http://mirror.centos.org/centos/5.9/os/ >> i386 or x86_64
>> CentOS/ >>

1) gcc44-4.4.7-1.el5*
2) libstdc++44-devel-4.4.7-1.el5*
3) gcc44-c++-4.4.7-1.el5*
...... Dependencies : (gcc-4.1.2, gcc-c++-4.1.2) libstdc++-4.1.2, gmp,
but I guess you already have those installed.

-
 
1 members found this post helpful.
Old 06-26-2013, 01:52 PM   #5
IneptCoder
LQ Newbie
 
Registered: Jun 2013
Location: my house
Distribution: centos, ubuntu
Posts: 10

Original Poster
Rep: Reputation: Disabled
The problem is resolved!
thanks a million Knudfl
 
  


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
Obtain the path of a libarary from C source littleplane Programming 5 10-15-2012 09:34 AM
[SOLVED] [Question] How to compile a gcc compiler for another machine which got no c compiler on it shone27 Linux - Newbie 9 09-28-2011 07:32 PM
LXer: Compiler Benchmarks Of GCC, LLVM-GCC, DragonEgg, Clang LXer Syndicated Linux News 0 11-08-2010 05:11 PM
what compile src and change path libarary usef62 Linux - Software 1 11-14-2008 10:44 AM
help locating a c compiler matt kramer Linux - Newbie 12 07-24-2006 04:48 AM

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

All times are GMT -5. The time now is 10:42 PM.

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