On Nov 2, 2006, at 1:39 AM, John Ronan wrote:
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'
[EMAIL PROTECTED]:~/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.
[EMAIL PROTECTED]:~/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
[EMAIL PROTECTED]:~/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.
[EMAIL PROTECTED]:~/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 :))?
I tried a dist-upgrade from Ubuntu 6.06 to 6.10 with disastrous
results yesterday (quite unusual for a Debian-based distro). They
recommend using the graphical upgrade tools, but I wanted to do it on
a ssh session from my computer in the house where it is a bit warmer
I'm downloading a CD imagewith bittorrent right now and will install
it later today. I'll report back on Xastir as soon as I get to that
point. I'm getting too old for this [EMAIL PROTECTED]
Bob, N7XY
_______________________________________________
Xastir mailing list
Xastir@xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir