LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   compilation of firestarter-1.0.3.src.rpm for powrepc (https://www.linuxquestions.org/questions/linux-newbie-8/compilation-of-firestarter-1-0-3-src-rpm-for-powrepc-880500/)

deepmala8 05-13-2011 06:24 AM

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?

business_kid 05-13-2011 08:07 AM

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

deepmala8 05-16-2011 05:52 AM

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?

business_kid 05-17-2011 02:40 AM

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.


All times are GMT -5. The time now is 08:26 PM.