MantisBT - LibSVGTiny
View Issue Details
0002517LibSVGTiny[All Projects] Generalpublic2017-01-24 16:062017-01-28 14:02
ReporterLars Wendler 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformLinuxOSGentooOS Version
Fixed in CI build #
Reported in CI build #
Summary0002517: libsvgtiny fails to build with gperf-3.1
Descriptionx86_64-pc-linux-gnu-gcc -MMD -MP -D_BSD_SOURCE -D_DEFAULT_SOURCE
-I/var/tmp/portage/media-libs/libsvgtiny-0.1.5/work/libsvgtiny-0.1.5-abi_x86_64.amd64/include/
-I/var/tmp/portage/media-libs/libsvgtiny-0.1.5/work/libsvgtiny-0.1.5-abi_x86_64.amd64/src
-Wall -W -Wundef -Wpointer-arith -Wcast-align -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -pedantic -Werror -march=native -mtune=native -O2 -pipe
-D_ALIGNED="__attribute__((aligned))" -DNDEBUG -std=c99 -I/usr/include/libxml2
-fPIC -DPIC -o
build-release-x86_64-pc-linux-gnu-release-lib-shared/build-release-x86_64-pc-linux-gnu-release-lib-shared_src_colors.o
-c build-release-x86_64-pc-linux-gnu-release-lib-shared/src_colors.c
src/colors.gperf:114:1: error: conflicting types for ‘svgtiny_color_lookup’
 lime, svgtiny_RGB( 0, 255, 0)
 ^
In file included from src/colors.gperf:18:0:
/var/tmp/portage/media-libs/libsvgtiny-0.1.5/work/libsvgtiny-0.1.5-abi_x86_64.amd64/src/svgtiny_internal.h:107:3:
note: previous declaration of ‘svgtiny_color_lookup’ was here
   svgtiny_color_lookup(register const char *str,
   ^
make: ***
[/var/tmp/portage/media-libs/libsvgtiny-0.1.5/work/buildsystem-1.4/makefiles/Makefile.top:579:
build-release-x86_64-pc-linux-gnu-release-lib-shared/build-release-x86_64-pc-linux-gnu-release-lib-shared_src_colors.o]
Error 1
Steps To Reproduce- install gperf-3.1
- try to build libsvgtiny
TagsNo tags attached.
Attached Fileslog build.log (4,970) 2017-01-24 16:06
https://bugs.netsurf-browser.org/mantis/file_download.php?file_id=479&type=bug

Notes
(0001508)
Lars Wendler   
2017-01-24 16:07   
Downstream bug report: https://bugs.gentoo.org/604818
(0001511)
Vincent Sanders   
2017-01-28 14:02   
From the gperf 3.1 release announcement

http://lists.gnu.org/archive/html/bug-gperf/2017-01/msg00000.html

it seems the signature of the lookup function has changed.

The way to fix this is make the function signature dependant on the gperf version

Issue History
2017-01-24 16:06Lars WendlerNew Issue
2017-01-24 16:06Lars WendlerFile Added: build.log
2017-01-24 16:07Lars WendlerNote Added: 0001508
2017-01-28 14:02Vincent SandersNote Added: 0001511
2017-01-28 14:02Vincent SandersStatusnew => acknowledged