You are not logged in.

#1 2005-10-02 13:26:25

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

You need a gcc >= 3.x to compile GpsDrive

Which obviously I have but the configure script obviously doesn't like it!  I'd appreciate it if someone could help me fix the config script.

The src can be found here: http://www.gpsdrive.cc

Offline

#2 2005-10-02 23:53:29

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: You need a gcc >= 3.x to compile GpsDrive

I would sincerely appreciate any help with this - I have posted the config.log

Offline

#3 2005-10-03 00:24:30

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: You need a gcc >= 3.x to compile GpsDrive

can you post a link to the config instead?

Offline

#4 2005-10-03 08:58:02

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: You need a gcc >= 3.x to compile GpsDrive

which config, dude?

Offline

#5 2005-10-03 18:21:46

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: You need a gcc >= 3.x to compile GpsDrive

I think Penguin meant the configure script.

Offline

#6 2005-10-03 19:47:15

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: You need a gcc >= 3.x to compile GpsDrive

ok

Offline

#7 2005-10-03 21:05:25

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: You need a gcc >= 3.x to compile GpsDrive

sed -e 's/if $CC -dumpversion|egrep -q "^3\.*"; then/if $CC -dumpversion|egrep -q "^[3\.*,4\.*]"; then/' -i configure

that should take care of that error your talking about -it'll truely check for gcc 3.0 and above. Use it before you call on the configure script. Good luck, heh.

NOTE: That should all be one line, not two as it appears here.

Offline

#8 2005-10-03 21:41:58

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: You need a gcc >= 3.x to compile GpsDrive

Ah!  Is it as I suspected then?  It looks for 3.* rather than actually greater then 3?

I will make these sed changes and then create a patch which I will but on my website smile Cheers, Penguin, I owe you one.

Offline

#9 2005-10-03 22:07:51

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: You need a gcc >= 3.x to compile GpsDrive

dibblethewrecker wrote:

Ah!  Is it as I suspected then?  It looks for 3.* rather than actually greater then 3?

in configure there is a snippet:

if test "$CC" = "gcc" ; then

if $CC -dumpversion|egrep -q "^3.*"; then
echo "GCC ok"
else
echo "*****************************************"
echo "You need a gcc >= 3.x to compile GpsDrive"
echo "*****************************************"
exit
fi

fi

So yes. The sed statement will just replace the top part with:

if $CC -dumpversion|egrep -q "^[3.*,4.*]"; then

which looks for 3.0 and 4.0.

So it worked for you?

Offline

#10 2005-10-03 22:13:41

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: You need a gcc >= 3.x to compile GpsDrive

Turns out this pkg has been in [extra] for nearly three years....wonder how I missed it.  Of course the gcc fix is there but I think Penguin's is better big_smile

Offline

Board footer

Powered by FluxBB