fails to fetch online maps.

Bug #293873 reported by markw
8
Affects Status Importance Assigned to Milestone
xastir (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: xastir

Ubuntu 8.10
Xastir 1.9.2-2.1

Online map sources will not work.

Xastir complains about missing libcurl and or wget, and won't fetch maps from online sources. Both libcurl and wget are installed.

Actual error text is "libcurl or 'wget' not installed. Can't download file"

Rebuilding from package source seems to fix problem.

Revision history for this message
Richard Green (rtg-aapsc) wrote :

Confirmed. New install of Kubuntu 8.10. Updated to current on all packages. `sudo apt-get install xastir` then `xastir &` launched the program. After configuring my station location, I enabled tigermap.geo, and immediately got the error mentioned above in the konsole window from which I launched xastir.
  Libcurl was not pulled in as a dependency by apt as I installed xastir, I don't know if it was part of the base distro. Wget is present, as `which wget` from the same konsole which launched xastir returns '/usr/bin/wget'

I have not yet tried recompiling from source.

Revision history for this message
Richard Green (rtg-aapsc) wrote :

Well, recompiling from source didn't work for me:

sudo apt-get build-dep xastir
sudo apt-get source xastir
sudo chown -R rtg.rtg xastir-1.9.2/
cd xastir-1.9.2
./configure
make

ends with:

map_tif.c:1312: error: ‘TIFFTAG_PHOTOMETRIC’ undeclared (first use in this function)
map_tif.c:1312: error: ‘photometric’ undeclared (first use in this function)
map_tif.c:1313: error: ‘PHOTOMETRIC_RGB’ undeclared (first use in this function)
map_tif.c:1316: error: ‘TIFFTAG_ROWSPERSTRIP’ undeclared (first use in this function)
map_tif.c:1316: error: ‘rowsPerStrip’ undeclared (first use in this function)
map_tif.c:1321: error: ‘TIFFTAG_BITSPERSAMPLE’ undeclared (first use in this function)
map_tif.c:1321: error: ‘bitsPerSample’ undeclared (first use in this function)
map_tif.c:1326: error: ‘TIFFTAG_SAMPLESPERPIXEL’ undeclared (first use in this function)
map_tif.c:1326: error: ‘samplesPerPixel’ undeclared (first use in this function)
map_tif.c:1331: error: ‘TIFFTAG_PLANARCONFIG’ undeclared (first use in this function)
map_tif.c:1331: error: ‘planarConfig’ undeclared (first use in this function)
map_tif.c:1384: error: ‘PHOTOMETRIC_PALETTE’ undeclared (first use in this function)
map_tif.c:1385: error: ‘TIFFTAG_COLORMAP’ undeclared (first use in this function)
map_tif.c:1387: warning: implicit declaration of function ‘TIFFError’
map_tif.c:1387: warning: implicit declaration of function ‘TIFFFileName’
map_tif.c:1482: warning: implicit declaration of function ‘my_GTIFProj4FromLatLong’
map_tif.c:1488: warning: implicit declaration of function ‘GTIFPCSToImage’
map_tif.c:1919: error: ‘PHOTOMETRIC_MINISBLACK’ undeclared (first use in this function)
map_tif.c:1936: error: ‘PHOTOMETRIC_MINISWHITE’ undeclared (first use in this function)
map_tif.c:1979: warning: implicit declaration of function ‘TIFFScanlineSize’
map_tif.c:2400: error: ‘TIFFTAG_GEOPIXELSCALE’ undeclared (first use in this function)
map_tif.c:2400: error: ‘qty’ undeclared (first use in this function)
map_tif.c:2541: error: ‘row’ undeclared (first use in this function)
map_tif.c:2591: error: ‘current_right’ undeclared (first use in this function)
map_tif.c:2604: error: ‘current_line_width’ undeclared (first use in this function)
map_tif.c:2655: warning: implicit declaration of function ‘TIFFReadScanline’
make[3]: *** [map_tif.o] Error 1
make[3]: Leaving directory `/home/rtg/xastir-1.9.2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/rtg/xastir-1.9.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rtg/xastir-1.9.2'
make: *** [all] Error 2

Revision history for this message
Richard Green (rtg-aapsc) wrote :

Found the problem. Ubuntu (and I'm told other Debian derivatives) installs libgeotiff in a non-standard location, so when compiling under ubuntu, an override is necessary at the './configure' step:

./configure CPPFLAGS="-I/usr/include/geotiff"

Reference:
http://www.xastir.org/wiki/index.php/HowTo:Ubuntu_8.10

Secondly, since the 'make install' installs the binaries in a different location than the ubuntu package, it was necessary to `rm -R ~/.xastir/` and let xastir rebuild it on its first invocation.

Revision history for this message
Andreas Moog (ampelbein) wrote :

Thanks for reporting. Could you try the latest version in Jaunty or Karmic? From the buildlog I see that geotiff is correctly included. (https://edge.launchpad.net/ubuntu/+source/xastir/1.9.4-3/+build/797036/+files/buildlog_ubuntu-jaunty-i386.xastir_1.9.4-3_FULLYBUILT.txt.gz)

Changed in xastir (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Kamal Mostafa (kamalmostafa) wrote :

The problem is not reproducible in Karmic -- tigermap.geo loads fine with no error or warning on the console.

Package: xastir
Architecture: amd64
Version: 1.9.4-3build1

Changed in xastir (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.