How to compile a package with old GCC?

Hi!

I am trying to compile this package: https://build.opensuse.org/stage/package/show?package=FreeCAD&project=home%3AAnsus%3AKDE3

But it seems it is very difficult to fix it for a new GCC. So I am trying to build it with GCC 3.3. But when Configure checks the compiler, it says: configure: error: C++ compiler cannot create executables

What should I do to compile this package well?

Hi
Here is the error;


unrecognized option `-fstack-protector' configure:3275: $? = 1

So you need to export the compiler flags without that option because
your using %configure macro.

Later on there are qt issues that I’m looking at, will see if I get a
chance over the next few days to look at it further.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.23-0.3-default
up 2 days 10:15, 5 users, load average: 0.08, 0.06, 0.08
GPU GeForce 8600 GTS Silent - Driver Version: 260.19.12

So you need to export the compiler flags without that option

I don’t know how to do it…

Hi
Add this to the spec file before the configure


export CXXFLAGS='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables'

Thank you. Seems the compiler works now but there are other issues…

Now I have the following:

checking if we can compile and link with the Coin library…

i think this is a compiler issue because with GCC4.5 it passed this stage.