[Xastir] Ubuntu 6.10 Bootstrap error

John Ronan jronan at tssg.org
Thu Nov 2 04:39:52 EST 2006


>
I'm replying to my own post, which is my bad, but anyways
> however trying to compile geotiff I get this
>
> gcc -O2  -Wall makegeo.o -L/usr/local/lib -L.. -lgeotiff -lproj - 
> ltiff -ljpeg -lz  -lm  -o makegeo
> /usr/bin/ld: makegeo: hidden symbol `__stack_chk_fail_local' in / 
> usr/lib/libc_nonshared.a(stack_chk_fail_local.oS) is referenced by DSO
> /usr/bin/ld: final link failed: Nonrepresentable section on output
> collect2: ld returned 1 exit status
> make[1]: *** [makegeo] Error 1
> make[1]: Leaving directory `/home/j0n/sources/xastir/tmp/ 
> libgeotiff-1.2.3/bin'
> make: *** [Progs] Error 2
>
> from
> http://nsnam.isi.edu/nsnam/index.php? 
> title=Troubleshooting&printable=yes
>
> it seems to be a compiler issue.
>
> So I installed gcc-4.0 and edited the makefile to use gcc-4.0, but  
> its still give the same problem, I'll try dropping back another  
> version tomorrow.
I took another look at this, this morning.

It works fine on a Ubuntu 6.06 machine,
makegeo.c:24: warning: return type of ‘main’ is not ‘int’
makegeo.c: In function ‘WriteImage’:
makegeo.c:93: warning: implicit declaration of function ‘memset’
makegeo.c:93: warning: incompatible implicit declaration of built-in  
function ‘memset’
gcc -O2  -Wall makegeo.o -L/usr/local/lib -L.. -lgeotiff -ltiff - 
ljpeg -lz  -lm  -o makegeo
gcc -O2  -Wall -I. -I..     -c -o listgeo.o listgeo.c
gcc -O2  -Wall listgeo.o -L/usr/local/lib -L.. -lgeotiff -ltiff - 
ljpeg -lz  -lm  -o listgeo
gcc -O2  -Wall -I. -I..     -c -o geotifcp.o geotifcp.c
gcc -O2  -Wall geotifcp.o -L/usr/local/lib -L.. -lgeotiff -ltiff - 
ljpeg -lz  -lm  -o geotifcp
make[1]: Leaving directory `/home/admin/libgeotiff-1.2.3/bin'
admin at labserver:~/libgeotiff-1.2.3$ ld --version
GNU ld version 2.16.91 20060118 Debian GNU/Linux
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the  
terms of
the GNU General Public License.  This program has absolutely no  
warranty.

But fails on 6.10, no matter what compiler I use, so my assumption is  
that its the linker.
0n at lab-laptop:~/sources/xastir/tmp/libgeotiff-1.2.3$ make
cd ./bin;\
         make
make[1]: Entering directory `/home/j0n/sources/xastir/tmp/ 
libgeotiff-1.2.3/bin'
gcc-3.3 -O2  -Wall makegeo.o -L/usr/local/lib -L.. -lgeotiff -lproj - 
ltiff -ljpeg -lz  -lm  -o makegeo
/usr/bin/ld: makegeo: hidden symbol `__stack_chk_fail_local' in /usr/ 
lib/libc_nonshared.a(stack_chk_fail_local.oS) is referenced by DSO
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[1]: *** [makegeo] Error 1
make[1]: Leaving directory `/home/j0n/sources/xastir/tmp/ 
libgeotiff-1.2.3/bin'
make: *** [Progs] Error 2
j0n at lab-laptop:~/sources/xastir/tmp/libgeotiff-1.2.3$ ld --version
GNU ld version 2.17 Debian GNU/Linux
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the  
terms of
the GNU General Public License.  This program has absolutely no  
warranty.
j0n at lab-laptop:~/sources/xastir/tmp/libgeotiff-1.2.3$

So, not being a developer/expert in this area, my gut tells me to  
chuck it and start with 6.06 again... any suggestions (while I get  
coffee :))?

Regards
de John
EI7IG

--
John Ronan <jronan at tssg.org>, +353-51-302938
Telecommunications Software &  Systems Group,  http://www.tssg.org






More information about the Xastir mailing list