[Xastir] Still working through compiling issues... gcc: unrecognized option -no-undefined
Jason & Kim Conolly
conolly at ieee.org
Tue Jan 18 20:59:58 EST 2005
Thanks to Bill and Curt for getting me this far. Yes, it seems that
GDAL needs shapelib to work correctly.
Now, I am successfully completing configure and only getting two errors
on "make" for Xastir. I'm not sure if it helped get this far, but I did
note that the clean Cygwin install from planetmirror and lintronix ended
up with a couple versions of autoconf and automake. I identified "new
enough" versions per the README.W32 and adjusted the bootstrap.sh file
to point to them.
The remaining errors are both gcc commands with unrecognized options.
I'm ending up with a couple of -no-undefined parameters in the gcc calls:
> if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include
> -I/usr/X11R6/include -I/usr/include
> -DXASTIR_DATA_BASE=\"/usr/local/share/xastir\" -pipe -Wall -MT
> testawk.o -MD -MP -MF ".deps/testawk.Tpo" -c -o testawk.o testawk.c; \
> then mv -f ".deps/testawk.Tpo" ".deps/testawk.Po"; else rm -f
> ".deps/testawk.Tpo"; exit 1; fi
> gcc -pipe -Wall -L/usr/local/lib -L/usr/X11R6/lib -L/usr/lib
> -no-undefined -lfreetype -lz -o testawk.exe testawk.o awk.o dbfawk.o
> -lXm -lXt -lX11 -lMagick -ljbig -llcms -ltiff -lfreetype -ljasper
> -ljpeg -lpng -lfpx -ldpstk -ldps -lXext -lXt -lSM -lICE -lX11 -lbz2
> -lxml2 -lz -lgdi32 -lpthread -lm -lpthread -ldb-4.2 -lintl -lcurl -lXm
> -lXt -lXp -lXext -lSM -lICE -lX11 -lshp -lpcre -lproj -ltiff -lgeotiff
> -lgdal
> gcc: unrecognized option `-no-undefined'
and
> if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include
> -I/usr/X11R6/include -I/usr/include
> -DXASTIR_DATA_BASE=\"/usr/local/share/xastir\" -pipe -Wall -MT
> callpass.o -MD -MP -MF ".deps/callpass.Tpo" -c -o callpass.o callpass.c; \
> then mv -f ".deps/callpass.Tpo" ".deps/callpass.Po"; else rm -f
> ".deps/callpass.Tpo"; exit 1; fi
> gcc -pipe -Wall -L/usr/local/lib -L/usr/X11R6/lib -L/usr/lib
> -no-undefined -lfreetype -lz -o callpass.exe callpass.o -lXm -lXt
> -lX11 -lMagick -ljbig -llcms -ltiff -lfreetype -ljasper -ljpeg -lpng
> -lfpx -ldpstk -ldps -lXext -lXt -lSM -lICE -lX11 -lbz2 -lxml2 -lz
> -lgdi32 -lpthread -lm -lpthread -ldb-4.2 -lintl -lcurl -lXm -lXt -lXp
> -lXext -lSM -lICE -lX11 -lshp -lpcre -lproj -ltiff -lgeotiff -lgdal
> gcc: unrecognized option `-no-undefined'
If I cheat, and try to "make install" and run Xastir in spite of the
errors, I get an Aborted (core dumped):
> Support for these additional map types has been compiled in:
> geo Image Map (ImageMagick library, many formats allowed)
> geo URL (Internet maps via libcurl library)
> shp ESRI Shapefile Maps (Shapelib library)
> tif USGS DRG Geotiff Topographic Maps (libgeotiff/libproj)
> xpm X Pixmap Maps (XPM library)
> assertion "codecs == NULL" failed: file
> "/usr/src/tiff/tiff-3.7.0beta2/libtiff/tif_compress.c", line 258
> Aborted (core dumped)
I'm not sure if that is actually related to the errors, or another
library I need to pick up. I do not have the directory /usr/src/tiff...
although I do have libtiff.a, libtiff.dll.a, and libtiff.la in /lib and
/usr/lib. I believe these were installed as components of Cygwin.
Are the errors related? Any ideas about libtiff?
Thanks (yet again...)
73,
Jason
More information about the Xastir
mailing list