Hamish wrote:
> Craig Leat:
>> > When running make in /grass6_devel/imagery/i.ortho.photo/photo.2image
>> > I get a linking error as follows:
>> >
>> > /usr/bin/ld: OBJ.i686-pc-linux-gnu/mark.o(.text+0x94a): unresolvable
>> > R_386_32 relocation against symbol `line'
>> > /usr/bin/ld: final link failed: Nonrepresentable section on output
>> > collect2: ld returned 1 exit status
>> > make: ***
>> [/usr/local/src/grass6_devel/dist.i686-pc-linux-gnu/etc/photo.2image]
>> > Error 1
Hi, I've had this same error during make of grass6.4 snapshot_2008_09_20
I have gdal-1.5.2 and Linux version 2.6.21.5-smp (gcc version 4.1.2) on
Slackware 12.0

The error message:
cd
/space/grass-6.3/grass-6.4.svn_src_snapshot_2008_09_20/imagery/i.ortho.photo/photo.2image
make
...
/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../../i486-slackware-linux/bin/ld:
OBJ.i686-pc-linux-gnu/mark.o(.text+0x880): unresolvable R_386_32 relocation
against symbol `line'
/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../../i486-slackware-linux/bin/ld:
final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make: ***
[/space/grass-6.3/grass-6.4.svn_src_snapshot_2008_09_20/dist.i686-pc-linux-gnu/etc/photo.2image]
Error 1

Workaround:
I simply added -fPIC to CFLAGS and CXXFLAGS for ./configure of grass
6.4.svn_src_snapshot_2008_09_20.
Then make is OK with these flags:
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -fPIC"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -fPIC"

Don't know yet if this introduces any unexpected problems elsewhere.

Cheers, Peter

-- 
View this message in context: 
http://www.nabble.com/Linking-error-in-photo.2image-tp19345829p19637645.html
Sent from the Grass - Users mailing list archive at Nabble.com.

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to