void-linux / void-linux/void-packages
FTBFS: agg
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 3.4k
- Forks
- 2.8k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 299
Description
current upstream only has source for v2.4, we should probably try to move to a different fork and update. debian has source for the version we package, but it fails to build:
log
Making all in font_freetype
make[1]: Entering directory '/builddir/agg-2.5+dfsg1/font_freetype'
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/include/freetype2 -I/usr/include/libpng16 -fstack-clash-protection -D_FORTIFY_SOURCE=2 -mtune=generic -O2 -pipe -fdebug-prefix-map=/builddir/agg-2.5+dfsg1=. -MT libaggfontfreetype_la-agg_font_freetype.lo -MD -MP -MF .deps/libaggfontfreetype_la-agg_font_freetype.Tpo -c -o libaggfontfreetype_la-agg_font_freetype.lo `test -f 'agg_font_freetype.cpp' || echo './'`agg_font_freetype.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/include/freetype2 -I/usr/include/libpng16 -fstack-clash-protection -D_FORTIFY_SOURCE=2 -mtune=generic -O2 -pipe -fdebug-prefix-map=/builddir/agg-2.5+dfsg1=. -MT libaggfontfreetype_la-agg_font_freetype.lo -MD -MP -MF .deps/libaggfontfreetype_la-agg_font_freetype.Tpo -c agg_font_freetype.cpp -fPIC -DPIC -o .libs/libaggfontfreetype_la-agg_font_freetype.o
In file included from agg_font_freetype.h:34,
from agg_font_freetype.cpp:26:
../include/agg_scanline_u.h: In member function 'void agg::scanline32_u8_am<AlphaMask>::finalize(int)':
../include/agg_scanline_u.h:482:39: error: cannot call member function 'void agg::scanline_u8::finalize(int)' without object
482 | base_type::finalize(span_y);
| ^
../include/agg_scanline_u.h:485:70: error: cannot call member function 'agg::scanline_u8::span* agg::scanline_u8::begin()' without object
485 | typename base_type::iterator span = base_type::begin();
| ^
../include/agg_scanline_u.h:486:55: error: cannot call member function 'unsigned int agg::scanline_u8::num_spans() const' without object
486 | unsigned count = base_type::num_spans();
| ^
../include/agg_scanline_u.h:490:62: error: cannot call member function 'int agg::scanline_u8::y() const' without object
490 | base_type::y(),
| ^
make[1]: *** [Makefile:471: libaggfontfreetype_la-agg_font_freetype.lo] Error 1
make[1]: Leaving directory '/builddir/agg-2.5+dfsg1/font_freetype'
make: *** [Makefile:496: all-recursive] Error 1
this is only used by one package (desmume), and it seems that agg is an optional dependency, so maybe it would be better to just remove it.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the agg package and the Debian source linked in the issue, then reproduce the failure in font_freetype involving include/agg_scanline_u.h. Check desmume's dependency usage and whether agg is optional; done means agg builds successfully from an updated source, or the package and dependency are removed if it is unnecessary.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100