#92 Viking 1.4 not building on Arch Linux

closed-accepted
nobody
None
5
2013-02-26
2013-02-24
No

Building the 1.4 version fails on up-to-date Arch Linux with:

gcc -DHAVE_CONFIG_H -I. -DVIKING_DATADIR=\""/usr/share/viking"\" -DVIKING_SYSCONFDIR=\""/usr/etc/viking"\" -Wall -g -D_GNU_SOURCE -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng15 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng15 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT datasource_gc.o -MD -MP -MF .deps/datasource_gc.Tpo -c -o datasource_gc.o datasource_gc.c
datasource_gc.c:72:3: warning: initialization makes integer from pointer without a cast [enabled by default]
datasource_gc.c:72:3: warning: (near initialization for 'vik_datasource_gc_interface.is_thread') [enabled by default]
datasource_gc.c:72:3: error: initializer element is not computable at load time
datasource_gc.c:72:3: error: (near initialization for 'vik_datasource_gc_interface.is_thread')
datasource_gc.c:73:3: warning: initialization from incompatible pointer type [enabled by default]
datasource_gc.c:73:3: warning: (near initialization for 'vik_datasource_gc_interface.init_func') [enabled by default]
datasource_gc.c:74:3: warning: initialization from incompatible pointer type [enabled by default]
datasource_gc.c:74:3: warning: (near initialization for 'vik_datasource_gc_interface.check_existence_func') [enabled by default]
datasource_gc.c:75:3: warning: initialization from incompatible pointer type [enabled by default]
datasource_gc.c:75:3: warning: (near initialization for 'vik_datasource_gc_interface.add_setup_widgets_func') [enabled by default]
datasource_gc.c:76:3: warning: initialization from incompatible pointer type [enabled by default]
datasource_gc.c:76:3: warning: (near initialization for 'vik_datasource_gc_interface.get_cmd_string_func') [enabled by default]
datasource_gc.c:77:3: warning: initialization from incompatible pointer type [enabled by default]
datasource_gc.c:77:3: warning: (near initialization for 'vik_datasource_gc_interface.process_func') [enabled by default]
datasource_gc.c:78:3: warning: initialization from incompatible pointer type [enabled by default]
datasource_gc.c:78:3: warning: (near initialization for 'vik_datasource_gc_interface.progress_func') [enabled by default]
datasource_gc.c:79:3: warning: initialization from incompatible pointer type [enabled by default]
datasource_gc.c:79:3: warning: (near initialization for 'vik_datasource_gc_interface.add_progress_widgets_func') [enabled by default]
datasource_gc.c:80:3: warning: initialization from incompatible pointer type [enabled by default]
datasource_gc.c:80:3: warning: (near initialization for 'vik_datasource_gc_interface.cleanup_func') [enabled by default]
make[3]: *** [datasource_gc.o] Error 1
make[3]: Leaving directory `/build/src/viking-1.4/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/build/src/viking-1.4/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/build/src/viking-1.4/src'
make: *** [all-recursive] Error 1
==> ERROR: A failure occurred in build().
Aborting...

packages used to build Viking 1.4:
Targets (60): atk-2.6.0-1 avahi-0.6.31-5 bluez-4.101-1 cairo-1.12.12-1 compositeproto-0.4.2-2
damageproto-1.2.1-2 desktop-file-utils-0.21-1 fixesproto-5.0-2 fontconfig-2.10.2-1
freetype2-2.4.11-2 gdk-pixbuf2-2.26.5-1 gnutls-3.1.8-1 graphite-1:1.2.0-1
gtk-update-icon-cache-2.24.15-1 harfbuzz-0.9.9-3 icu-50.1.2-1 inputproto-2.2-1
kbproto-1.0.6-1 libcups-1.6.1-6 libdaemon-0.14-2 libdatrie-0.2.5-1 libjpeg-turbo-1.2.1-1
libpng-1.5.13-1 libtasn1-3.2-1 libthai-0.1.18-1 libtiff-4.0.3-1 libusb-compat-0.1.4-2
libx11-1.5.0-1 libxau-1.0.7-1 libxcb-1.9-3 libxcomposite-0.4.4-1 libxcursor-1.1.13-1
libxdamage-1.1.4-1 libxdmcp-1.1.1-1 libxext-1.3.1-1 libxfixes-5.0-2 libxft-2.3.1-1
libxi-1.6.2-1 libxinerama-1.1.2-1 libxml2-2.8.0-1 libxrandr-1.4.0-1 libxrender-0.9.7-1
nettle-2.6-1 p11-kit-0.13-1 pango-1.32.5-1 pixman-0.28.2-1 python2-2.7.3-4
randrproto-1.4.0-1 renderproto-0.11.1-2 shared-mime-info-1.1-1 sqlite-3.7.15.2-1
xcb-proto-1.8-1 xextproto-7.2.1-1 xineramaproto-1.2.1-2 xproto-7.0.23-1 gpsbabel-1.4.4-1
gpsd-3.7-1 gtk2-2.24.15-1 hicolor-icon-theme-0.12-2 libexif-0.6.21-1
Targets (6): docbook-xml-4.5-5 libxslt-1.1.26-3 perl-xml-parser-2.41-3 rarian-0.8.1-3
gnome-doc-utils-0.20.10-1 intltool-0.50.2-1

PKGBUILD instructions:
build() {
cd ${srcdir}/$pkgname-$pkgver

./configure --prefix=/usr --enable-geocaches --enable-expedia
make
}

package(){
cd ${srcdir}/$pkgname-$pkgver

make DESTDIR=${pkgdir} install
}

Discussion

  • Rob Norris
    Rob Norris
    2013-02-24

    This fixes it:

    diff --git a/src/datasource_gc.c b/src/datasource_gc.c
    index dffcb94..7da4fd7 100644
    --- a/src/datasource_gc.c
    +++ b/src/datasource_gc.c
    @@ -69,6 +69,7 @@ VikDataSourceInterface vik_datasource_gc_interface = {
    VIK_DATASOURCE_INPUTTYPE_NONE,
    TRUE, // Yes automatically update the display - otherwise we won't see the geocache waypoints!
    TRUE,
    + TRUE,
    (VikDataSourceInitFunc) datasource_gc_init,
    (VikDataSourceCheckExistenceFunc) datasource_gc_check_existence,
    (VikDataSourceAddSetupWidgetsFunc) datasource_gc_add_setup_widgets,

    You may need the latest versions of external programs 'geo-nearest' and 'geo-html2gpx' from http://geo.rkkda.com/ (which need to be available on your $PATH)

    As you can guess I don't use Geocaching.

    However, of course if you don't use Geocaching then don't run ./configure with the --enable-geocaches option!
    [Debian, SUSE and Fedora all run with the default ./configure options]

    Thanks for flagging up this issue.

     
  • Rob Norris
    Rob Norris
    2013-02-26

    • status: open --> closed-accepted
     
  • Rob Norris
    Rob Norris
    2013-02-26

    Fixed in the git master code base.