[Xastir] Libgeotiff & OS X

Jeff Wigal jeffw at wigaldesign.com
Thu Aug 26 07:13:27 EDT 2004


OK, tried both the ranlib command and the command switch Dana suggested on
the configure script.

When I ran the ranlib command, then ran configure without any switches, it
still doesn't pick up on it.

configure:12582: checking for pj_init in -lproj
configure:12634: result: yes
configure:12637: checking for GTIFNew in -lgeotiff
configure:12668: gcc -o conftest -g -O2 -pipe -Wall  -I/usr/local/include
-I/sw/include  -I/usr/X11R6/include -L/usr/local/lib  -L/sw/lib
-L/usr/X11R6/lib conftest.c -lgeotiff  -lintl -lXm -lXt -lXp -lXext   -lSM
-lICE -lX11  -lshp -lpcre -lproj >&5
ld: Undefined symbols:
_TIFFGetField
_TIFFSetField
__TIFFfree
__TIFFmalloc
__TIFFmemcpy
__TIFFmemset
__TIFFrealloc
configure:12671: $? = 1
configure: failed program was:
| #line 12644 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "xastir"
| #define PACKAGE_TARNAME "xastir"
| #define PACKAGE_VERSION "1.3.3"
| #define PACKAGE_STRING "xastir 1.3.3"
| #define PACKAGE_BUGREPORT "xastir at xastir.org"
| #define PACKAGE "xastir"
| #define VERSION "1.3.3"
| #define XASTIR_TOCALL "APX133"
| #define _GNU_SOURCE 1
| #define TNC_PORT "none"
| #define GPS_PORT "none"
| #define HAVE_PTHREAD 1
| #define XASTIR_SYSTEM "Darwin"
| #define HAVE_WGET 1
| #define WGET_PATH "/sw/bin/wget"
| #define HAVE_CONVERT 1
| #define CONVERT_PATH "/sw/bin/convert"
| #define HAVE_LPR 1
| #define LPR_PATH "/usr/bin/lpr"
| #define HAVE_CP 1
| #define CP_PATH "/bin/cp"
| #define HAVE_CAT 1
| #define CAT_PATH "/bin/cat"
| #define STIPPLE 1
| #define HAVE_LIBXEXT 1
| #define HAVE_LIBXP 1
| #define HAVE_LIBXT 1
| #define HAVE_LIBXM 1
| #define WORDS_BIGENDIAN 1
| #define HAVE_ALLOCA 1
| #define HAVE_DIRENT_H 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_LIBINTL_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_MATH_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_STDDEF_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_FILE_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SIGNAL_H 1
| #define HAVE_TERMIOS_H 1
| #define HAVE_UNISTD_H 1
| #define TIME_WITH_SYS_TIME 1
| #define RETSIGTYPE void
| #define HAVE_STRUCT_TM_TM_ZONE 1
| #define HAVE_TM_ZONE 1
| #define HAVE_TM_GMTOFF
| #define HAVE_UNISTD_H 1
| #define HAVE_FORK 1
| #define HAVE_VFORK 1
| #define HAVE_WORKING_VFORK 1
| #define HAVE_WORKING_FORK 1
| #define GETPGRP_VOID 1
| #define HAVE_STDLIB_H 1
| #define HAVE_MALLOC 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_ALARM 1
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_STRFTIME 1
| #define HAVE_ALARM 1
| #define HAVE_GETCWD 1
| #define HAVE_GETPGRP 1
| #define HAVE_GETHOSTBYNAME 1
| #define HAVE_GETHOSTNAME 1
| #define HAVE_GETTIMEOFDAY 1
| #define HAVE_GETWD 1
| #define HAVE_INET_NTOA 1
| #define HAVE_MEMMOVE 1
| #define HAVE_MEMSET 1
| #define HAVE_MKDIR 1
| #define HAVE_MUNMAP 1
| #define HAVE_POW 1
| #define HAVE_PUTENV 1
| #define HAVE_SELECT 1
| #define HAVE_SETENV 1
| #define HAVE_SETLOCALE 1
| #define HAVE_SETTIMEOFDAY 1
| #define HAVE_SIGNAL 1
| #define HAVE_SNPRINTF 1
| #define HAVE_SOCKET 1
| #define HAVE_SQRT 1
| #define HAVE_STRCASECMP 1
| #define HAVE_STRCHR 1
| #define HAVE_STRDUP 1
| #define HAVE_STRERROR 1
| #define HAVE_STRNCASECMP 1
| #define HAVE_STRPBRK 1
| #define HAVE_STRPTIME 1
| #define HAVE_STRRCHR 1
| #define HAVE_STRSTR 1
| #define HAVE_STRTOL 1
| #define HAVE_STRTOUL 1
| #define HAVE_TZSET 1
| #define HAVE_VSNPRINTF 1
| #define HAVE_LIBSHP_SHAPEFIL_H 1
| #define HAVE_DBFGETFIELDINDEX
| #define HAVE_LIBSHP
| #define HAVE_PCRE_H 1
| #define HAVE_LIBPCRE
| #define HAVE_X11_XPM_H 1
| #define HAVE_LIBXPM
| #define HAVE_LIBPROJ
| /* end confdefs.h.  */
| 
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char GTIFNew ();
| int
| main ()
| {
| GTIFNew ();
|   ;
|   return 0;
| }
configure:12689: result: no
configure:12734: checking netax25/ax25.h usability
configure:12747: gcc -c -g -O2 -pipe -Wall  -I/usr/local/include
-I/sw/include  -I/usr/X11R6/include conftest.c >&5


I tried configure with the switches Dana suggested (both /usr/local and
/usr/local/lib), but the geotiff library does not appear in the "about"
screen on xastir.  

On 8/25/04 8:29 PM, "Tom Russo" <russo at bogoflux.losalamos.nm.us> wrote:

> On Wed, Aug 25, 2004 at 03:28:36PM -0700, a Mr. Richard Feyler of Fort Lee,
> New Jersey <archer at eskimo.com> writes 'Dear Rosanne Rosannadanna':
>> On Wed, 25 Aug 2004, Jeff Wigal wrote:
>> 
>>> configure:12637: checking for GTIFNew in -lgeotiff
>>> configure:12668: gcc -o conftest -g -O2 -pipe -Wall  -I/usr/local/include
>>> -I/sw/include  -I/usr/X11R6/include -L/usr/local/lib  -L/sw/lib
>>> -L/usr/X11R6/lib conftest.c -lgeotiff  -lintl -lXm -lXt -lXp -lXext   -lSM
>>> -lICE -lX11  -lshp -lpcre -lproj >&5
>>> ld: table of contents for archive: /usr/local/lib/libgeotiff.a is out of
>>> date; rerun ranlib(1) (can't load from it)
>> 
>> It isn't able to compile a sample application against that library.
> 
> The answer is in the error message.  cd to /usr/local/lib and run
> "ranlib libgeotiff.a"
> 
> Mac OS X has the annoying habit of requiring ranlib to be run for stupid
> reasons.  Using "mv" on a lib file is enough to cause that error.  The mind
> boggles.
> 
> We have this same problem at work  all the time when we build our application
> and its dependent libraries on OS X.  If our library guy builds our libraries
> in a sandbox and copies them over to our central location after testing them
> and forgets to re-ranlib them, then we have exactly the same error show up
> in our configure script.




More information about the Xastir mailing list