Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 775812 - sci-geosciences/viking-1.8-r1[libexif] error: 'VIK_DEFAULT_ALTITUDE' undeclared (first use in this function
Summary: sci-geosciences/viking-1.8-r1[libexif] error: 'VIK_DEFAULT_ALTITUDE' undeclar...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Hans de Graaff
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-13 12:52 UTC by Dan Johansson
Modified: 2021-03-13 16:33 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info '=sci-geosciences/viking-1.8-r1::gentoo' (emerge.info,18.42 KB, text/plain)
2021-03-13 12:52 UTC, Dan Johansson
Details
The complete build log (sci-geosciences:viking-1.8-r1:20210313-124414.log.gz,46.60 KB, application/gzip)
2021-03-13 12:53 UTC, Dan Johansson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Johansson 2021-03-13 12:52:06 UTC
The compilation of viking 1.8-r1 fails with the following:

geotag_exif.c: In function ‘a_geotag_create_waypoint_from_file’:
geotag_exif.c:365:16: error: ‘VIK_DEFAULT_ALTITUDE’ undeclared (first use in this function)
  365 |  gdouble alt = VIK_DEFAULT_ALTITUDE;
      |                ^~~~~~~~~~~~~~~~~~~~
geotag_exif.c:365:16: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [Makefile:1085: geotag_exif.o] Error 1
make[3]: Leaving directory '/var/tmp/portage/sci-geosciences/viking-1.8-r1/work/viking-viking-1.8/src'
make[2]: *** [Makefile:1139: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/sci-geosciences/viking-1.8-r1/work/viking-viking-1.8/src'
make[1]: *** [Makefile:807: all] Error 2
make[1]: Leaving directory '/var/tmp/portage/sci-geosciences/viking-1.8-r1/work/viking-viking-1.8/src'
make: *** [Makefile:469: all-recursive] Error 1
 * ERROR: sci-geosciences/viking-1.8-r1::gentoo failed (compile phase):
 *   emake failed

Any suggestion?



Reproducible: Always
Comment 1 Dan Johansson 2021-03-13 12:52:41 UTC
Created attachment 691185 [details]
emerge --info '=sci-geosciences/viking-1.8-r1::gentoo'
Comment 2 Dan Johansson 2021-03-13 12:53:56 UTC
Created attachment 691188 [details]
The complete build log
Comment 3 Ionen Wolkens gentoo-dev 2021-03-13 13:13:56 UTC
(In reply to Dan Johansson from comment #0)
> Any suggestion?
Looks caused by USE=libexif from a quick look, so try without.

(also, please don't compress build logs if <1MB in the future)
Comment 4 Dan Johansson 2021-03-13 13:28:56 UTC
Yes, that was it.
After disabling "libexif" viking builds fine.

Sorry about the compressed log, but that is the way my emerge saves the logs.

Thanks for your feedback.
-- 
Dan
Comment 5 Larry the Git Cow gentoo-dev 2021-03-13 15:05:49 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90bffc1aa20f30b359719efda89d9fdc97af87bb

commit 90bffc1aa20f30b359719efda89d9fdc97af87bb
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2021-03-13 15:05:41 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2021-03-13 15:05:41 +0000

    sci-geosciences/viking: fix build with USE=libexif
    
    Backport an upstream patch to build with libexif support.
    
    Closes: https://bugs.gentoo.org/775812
    Package-Manager: Portage-3.0.13, Repoman-3.0.2
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 .../viking/files/viking-1.8-libexif.patch          | 22 ++++++++++++++++++++++
 sci-geosciences/viking/viking-1.8-r1.ebuild        |  2 +-
 2 files changed, 23 insertions(+), 1 deletion(-)