Re: [GRASS-user] Linking error in photo.2image
>>> 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' It's on my list, the solution will be to declare "line" as static in mark.c; I just haven't had the time yet to test it. (ie run through the i.ortho.photo tutorial to a level where I can notice if I broke anything with the "fix") The external side of the problem has already been fixed in GDAL 1.5 SVN. (they were accidentally exporting something called "line" and the two conflicted when linked together) Hamish ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Linking error in photo.2image
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
Re: [GRASS-user] Linking error in photo.2image
On Sat, Sep 6, 2008 at 1:50 PM, Craig Leat <[EMAIL PROTECTED]> wrote: > Hi > > 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 > I just found a similar problem in the GDAL list: http://lists.osgeo.org/pipermail/gdal-dev/2008-September/018278.html Maybe your problem in induced by the GDAL library? Markus ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user