A correction: I did get errors using the static version of libgeotiff.a, they were just delayed until I tried to compile a version of my program using a few geotiff library calls.<br><br>Also, as expected, installing version
3.6.1 of libtiff and configuring libgeotiff to use it solved all the problems.<br><br><div><span class="gmail_quote">On 9/3/07, <b class="gmail_sendername">Dan Homerick</b> <<a href="mailto:danhomerick@gmail.com">danhomerick@gmail.com
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On my system (Ubuntu, Feisty Fawn release) the current libtiff shared library is pointed to by
libtiff.so.4 and there's no libtiff.so.3 present. My version of libtiff is listed as 3.8.2-6.<br><br>When I try to build an application using the
libgeotiff.so library, I get the error message below during the linking phase. I don't get any errors if I use the static version, libgeotiff.a.<br><br>I'm still somewhat new to Linux, and program development in general... is the apparent lack of upward compatibility with the libtiff library a bug or just the nature of shared libraries? Incidentally, creating a symbolic link to the current libtiff:
<br><br>cd /usr/lib<br>ln -s libtiff.so.4.2.1 libtiff.so.3<br><br>(probably I bad idea, but I thought I'd try it)<br>removes some, but not all error messages.<br><br><span style="font-weight: bold;">Error messsage without
libtiff.so.3 present:</span><br>/usr/bin/ld: warning: libtiff.so.3, needed by /usr/local/lib/libgeotiff.so, not found (try using -rpath or -rpath-link)<br>/usr/local/lib/libgeotiff.so: undefined reference to `_TIFFmemcpy'
<br>/usr/local/lib/libgeotiff.so: undefined reference to `_TIFFsetShortArray'<br>/usr/local/lib/libgeotiff.so: undefined reference to `_TIFFMergeFieldInfo'<br>/usr/local/lib/libgeotiff.so: undefined reference to `TIFFSetField'
<br>/usr/local/lib/libgeotiff.so: undefined reference to `_TIFFmemset'<br>/usr/local/lib/libgeotiff.so: undefined reference to `TIFFClose'<br>/usr/local/lib/libgeotiff.so: undefined reference to `TIFFGetField'
<br>/usr/local/lib/libgeotiff.so: undefined reference to `TIFFSetTagExtender'<br>/usr/local/lib/libgeotiff.so: undefined reference to `_TIFFFieldWithTag'<br>/usr/local/lib/libgeotiff.so: undefined reference to `_TIFFfree'
<br>/usr/local/lib/libgeotiff.so: undefined reference to `TIFFFdOpen'<br>/usr/local/lib/libgeotiff.so: undefined reference to `_TIFFmalloc'<br>/usr/local/lib/libgeotiff.so: undefined reference to `_TIFFsetString'
<br>/usr/local/lib/libgeotiff.so: undefined reference to `TIFFOpen'<br>/usr/local/lib/libgeotiff.so: undefined reference to `_TIFFprintAsciiTag'<br>/usr/local/lib/libgeotiff.so: undefined reference to `_TIFFrealloc'
<br>/usr/local/lib/libgeotiff.so: undefined reference to `_TIFFsetDoubleArray'<br>collect2: ld returned 1 exit status<br><br><span style="font-weight: bold;">Error message with libtiff.so.3 pointing to libtiff.so.4.2.1
:</span><br>/usr/local/lib/libgeotiff.so: undefined reference to `_TIFFMergeFieldInfo'<br>/usr/local/lib/libgeotiff.so: undefined reference to `_TIFFFieldWithTag'<br>collect2: ld returned 1 exit status<br>make[2]: *** [Test_CldTextToImageConverter] Error 1
<br>make[1]: *** [CMakeFiles/Test_CldTextToImageConverter.dir/all] Error 2<br>make: *** [all] Error 2<br><br>
</blockquote></div><br>