[Xastir] Mac OS X 10.7 build bug (solved)

Robert Mead rmead at justconnected.net
Wed Jul 27 02:59:46 EDT 2011


Hey all - When building Xastir from tonight's CVS on OSX Lion, the build failed at a link step with a cryptic error message:

gcc  -g -O2 -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes -Wno-unused-parameter -L/usr/local/Cellar/graphicsmagick/HEAD/lib -L/usr/X11/lib -L/usr/lib -L/sw/lib -L/opt/local/lib -L/usr/local/lib -o xastir alert.o awk.o bulletin_gui.o color.o datum.o db.o db_gis.o dbfawk.o draw_symbols.o fcc_data.o festival.o fetch_remote.o geo-find.o geocoder_gui.o gps.o hashtable.o hashtable_itr.o hostname.o igate.o interface.o interface_gui.o io-common.o io-mmap.o lang.o list_gui.o locate_gui.o location.o location_gui.o main.o maps.o map_cache.o map_dos.o map_gdal.o map_geo.o map_gnis.o map_OSM.o map_pop.o map_pdb.o map_shp.o map_tif.o map_tiger.o map_WMS.o messages.o messages_gui.o objects.o popup_gui.o rac_data.o rotated.o rpl_malloc.o shp_hash.o snprintf.o sound.o tile_mgmnt.o track_gui.o util.o view_message_gui.o wx.o wx_gui.o x_spider.o xa_config.o compiledate.o -Lrtree -lrtree -Lshapelib -lshape -lXm -lXt -lX11 -lGraphicsMagick -llcms -ltiff -lfreetype -ljasper -ljpeg -lpng15 -lXext -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lm -lgomp -lpthread -lltdl -ldb -lXm -lXt -lXp -lXext -lSM -lICE -lX11 -lcurl -lpcre -lproj -ltiff -lgeotiff
ld: warning: directory not found for option '-L/sw/lib'
ld: warning: directory not found for option '-L/opt/local/lib'
Undefined symbols for architecture x86_64:
  "_XpmWriteFileFromPixmap", referenced from:
      _Snapshot in maps.o
      _Print_window in maps.o
      _Print_preview in maps.o
  "_XpmGetErrorString", referenced from:
      _Snapshot in maps.o
      _Print_window in maps.o
      _Print_preview in maps.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[3]: *** [xastir] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

That seems to be the final link in the src/ directory, and it can't find the 64-bit versions of those libraries - or so it says.

Well, really, it can't find the libraries at all. The library list omits the -lXpm library, and a little makefile hacking later, it's all built. I'd send a patch, but my automake-fu is not strong enough to find where to stick it.

Thanks,
-Robert


More information about the Xastir mailing list