LinuxQuestions.org
Latest LQ Deal: Linux Power User 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 05-13-2011, 06:24 AM   #1
deepmala8
LQ Newbie
 
Registered: May 2011
Posts: 14

Rep: Reputation: 0
compilation of firestarter-1.0.3.src.rpm for powrepc


Hi, I am working on ubuntu right now and it is quiet easy to install firestarter firewall on ubuntu thru GUI interafce but my requiremnet is to install firewall on target (powerpc 8560 ),so i have to compile firestarter source for target powerpc (montavista linux) and installed it on target. I have downloaded firestarter-1.0.3.tar & .src.rpm file both but not able to compile it for my target which is powerpc (8560) . Kindly help on these issues.....

1.How to compile source code for powerpc ( I have environment created for ppc compilation but do not know how to modify the configure file to change the compiler) because it is compiling firestarter source code with gcc compiler bydefault i. e for host.
How can i change the compiler " CC "?
2.What will be the executable created to be installed on target after compilation ?
3.Is the cross compilation for target is possible?
 
Old 05-13-2011, 08:07 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,904

Rep: Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773
Welcome to LQ and the world of doing it yourself.

Cross compiling (e.g. compiling for a mac on an x86 box) is definitely lesson 2 or above, so if possible I would compile on the mac itself. Can you get gcc on to it?

If possible, look for a package or a build script for the thing, and use that. Otherwise, the first lesson is on the configure script
Quote:
./configure --help |less
when in the top source dir (e.g. /path/to/firestarter-1.03/) when you have opened the tar file.

look down for options that you want to change. I often use
Quote:
./configure --prefix=/usr --libdir=/usr/lib64
You can also pass variables this way:
Quote:
"CC=/path/to/my/other/compiler" "VARIABLE=assignment" ./configure --help
 
Old 05-16-2011, 05:52 AM   #3
deepmala8
LQ Newbie
 
Registered: May 2011
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks for the information ......My cross compilation is done but now the question is how do i installed it on powerpc target? i mean what will be the executable come out after compilation , to run on target ?Is there any changes need to be done in iptables on target kernel module?
 
Old 05-17-2011, 02:40 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,904

Rep: Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773
one way to install is as follows:

mkdir /tmp/package
make DESTDIR=/tmp/package install

Then tar up /tmp/package, or let your system grow there & copy it later.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
rpm -ivh gcc-4.1.1-52.el5.2.src.rpm failed with no error henli Linux - Newbie 5 04-15-2009 01:08 PM
rpm -i --prefix=/home/user package.src.rpm doesn't work? registering Linux - Software 2 07-18-2007 11:28 AM
compilation error for v0.9.2-1.src.rpm hueofwind Linux - Software 2 06-12-2006 10:53 PM
.src.rpm, .i386.rpm and .i686.rpm hhegab Linux - Software 2 06-19-2003 07:19 AM
Creating /usr/src/linux-<xx> from kernel.<xx>.src.rpm jmourik Linux - Newbie 2 02-19-2003 03:24 PM


All times are GMT -5. The time now is 12:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration