[Xastir] compile failure?

Tom Russo russo at bogodyn.org
Sat Jan 27 12:51:49 EST 2007


On Sat, Jan 27, 2007 at 12:43:47PM -0500, we recorded a bogon-computron collision of the <ke4lkq at doramefa.us> flavor, containing:
> 
> 
> To whom it may concern......
> 
> CVS download this morning results in this:  see below the tail end of the compile process...
> Maybe I need to change something, or should I just wait??
> This just showed up today...

Hmmmm.

What linux system are you running on?

Just the other day I disabled configure's check for the X Printing Extension
because it seemed that Xastir wasn't using it --- xastir doesn't make any
Xp calls itself and on most systems it seems that leaving out Xp causes no
problem.

Apparently your Motif library is using it and so xastir has an indirect 
dependence on the Xp library that other systems do not have.  It's been that
way for a few days and most folks have checked in to say that there has been
no problem.

Please try looking at configure.ac at around line 113 for the following:
# TVR: commented this out.  It appears that XpGetDocumentData is not used
# *anywhere* in Xastir, and the fact that this is being probed for has 
# confused at least one user into thinking he needed to install the X Printing
# Extension library when it was completely unnecessary.
# AC_CHECK_LIB([Xp], [XpGetDocumentData]) 

Remove the "# " from the last line of that and re-run bootstrap.  That should
cause the Xp library to be linked in again when you re-configure and make.

Please let us know what system you're on and what motif library you're using.
It's possible I need to re-enable that test, but it would be nice to do so 
only on systems that have Motif libraries with this dependence (otherwise
we're linking in stuff that isn't necessary).

> make[3]: Leaving directory `/home/vic/xastir/src/rtree'
> make[3]: Entering directory `/home/vic/xastir/src'
> gcc  -g -O2 -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes -Wno-unused-parameter -pthread -Wl,--no-keep-memory -L/usr/X11/lib -L/usr/local/lib -L/usr/X11R6/lib -L/usr/lib -o xastir  alert.o awk.o bulletin_gui.o color.o datum.o db.o dbfawk.o draw_symbols.o fcc_data.o festival.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_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 track_gui.o util.o view_message_gui.o wx.o wx_gui.o x_spider.o xa_config.o compiledate.o -Lrtree -lrtree  -lXm -lXt -lX11 -lGraphicsMagick -llcms -ltiff -lfreetype -ljasper -ljpeg -lpng -lwmflite -lXext -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lm -lpthread -ldb-4.3 -lXpm -lrt -lcurl -lXt -lXext 
>  -lm -lSM -lICE -lX11 -lshp -lpcre -lproj -ltiff -lgeotiff -lax25
> /usr/X11/lib/libXm.a(ImageCache.o): In function `_XmPutScaledImage':
> (.text+0x23a5): undefined reference to `XpQueryExtension'
> /usr/X11/lib/libXm.a(ImageCache.o): In function `_XmPutScaledImage':
> (.text+0x23c8): undefined reference to `XpGetContext'
> /usr/X11/lib/libXm.a(ImageCache.o): In function `_XmPutScaledImage':
> (.text+0x23ed): undefined reference to `XpGetOneAttribute'
> /usr/X11/lib/libXm.a(ImageCache.o): In function `_XmPutScaledImage':
> (.text+0x244d): undefined reference to `XpSetImageResolution'
> /usr/X11/lib/libXm.a(ImageCache.o): In function `_XmPutScaledImage':
> (.text+0x24b7): undefined reference to `XpSetImageResolution'
> /usr/X11/lib/libXm.a(PrintS.o): In function `PrintNotifyHandler':
> (.text+0xec): undefined reference to `XpEndPage'
> /usr/X11/lib/libXm.a(PrintS.o): In function `PrintNotifyHandler':
> (.text+0x105): undefined reference to `XpEndJob'
> /usr/X11/lib/libXm.a(PrintS.o): In function `PrintNotifyHandler':
> (.text+0x175): undefined reference to `XpStartPage'
> /usr/X11/lib/libXm.a(PrintS.o): In function `ResourcesUpdate':
> (.text+0x24f): undefined reference to `XpGetOneAttribute'
> /usr/X11/lib/libXm.a(PrintS.o): In function `ResourcesUpdate':
> (.text+0x2b3): undefined reference to `XpGetPageDimensions'
> /usr/X11/lib/libXm.a(PrintS.o): In function `SelectXpEvents':
> (.text+0x3bd): undefined reference to `XpGetContext'
> /usr/X11/lib/libXm.a(PrintS.o): In function `Initialize':
> (.text+0x57b): undefined reference to `XpQueryExtension'
> /usr/X11/lib/libXm.a(PrintS.o): In function `Initialize':
> (.text+0x59c): undefined reference to `XpGetContext'
> /usr/X11/lib/libXm.a(PrintS.o): In function `Initialize':
> (.text+0x5b6): undefined reference to `XpGetScreenOfContext'
> /usr/X11/lib/libXm.a(PrintS.o): In function `Destroy':
> (.text+0x792): undefined reference to `XpGetContext'
> /usr/X11/lib/libXm.a(PrintS.o): In function `FilePipeCB':
> (.text+0x9e6): undefined reference to `XpGetContext'
> /usr/X11/lib/libXm.a(PrintS.o): In function `ChildPrintToFile':
> (.text+0xaeb): undefined reference to `XpGetDocumentData'
> /usr/X11/lib/libXm.a(PrintS.o): In function `XmPrintToFile':
> (.text+0xb72): undefined reference to `XpGetContext'
> /usr/X11/lib/libXm.a(PrintS.o): In function `XmPrintPopupPDM':
> (.text+0xe93): undefined reference to `XpGetContext'
> /usr/X11/lib/libXm.a(PrintS.o): In function `XmPrintPopupPDM':
> (.text+0xef2): undefined reference to `XpGetPdmStartParams'
> /usr/X11/lib/libXm.a(PrintS.o): In function `SelectXpEvents':
> (.text+0x3d5): undefined reference to `XpSelectInput'
> collect2: ld returned 1 exit status
> make[3]: *** [xastir] Error 1
> make[3]: Leaving directory `/home/vic/xastir/src'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/vic/xastir/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/vic/xastir'
> make: *** [all] Error 2
> vic at linuxvid:~/xastir>    
> _______________________________________________
> Xastir mailing list
> Xastir at xastir.org
> http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir

-- 
Tom Russo    KM5VY   SAR502   DM64ux          http://www.swcp.com/~russo/
Tijeras, NM  QRPL#1592 K2#398  SOC#236 AHTB#1 http://kevan.org/brain.cgi?DDTNM
"And, isn't sanity really just a one-trick pony anyway? I mean all you get is
 one trick, rational thinking, but when you're good and crazy, oooh, oooh,
 oooh, the sky is the limit!"  --- The Tick



More information about the Xastir mailing list