Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 877777 - media-libs/imlib2-1.7.5 - .../work/imlib2-1.7.5/src/modules/loaders/loader_ico.c:200:14: error: 'nr' undeclared (first use in this function)
Summary: media-libs/imlib2-1.7.5 - .../work/imlib2-1.7.5/src/modules/loaders/loader_ic...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal (vote)
Assignee: Andrew Savchenko
URL:
Whiteboard:
Keywords: PATCH, PullRequest, REGRESSION
Depends on:
Blocks: 862528
  Show dependency tree
 
Reported: 2022-10-20 19:12 UTC by ernsteiswuerfel
Modified: 2022-12-01 01:52 UTC (History)
0 users

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


Attachments
build.log (ppc, 1.7.5) (imlib2-1.7.5:20221020-190101.log,103.58 KB, text/plain)
2022-10-20 19:12 UTC, ernsteiswuerfel
Details
emerge --info (file_877777.txt,6.41 KB, text/plain)
2022-10-20 19:13 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2022-10-20 19:12:33 UTC
Created attachment 824869 [details]
build.log (ppc, 1.7.5)

This is a regression over previous stable 1.7.1-r2.

[...]
/bin/sh ../../../libtool  --tag=CC --tag=disable-static  --mode=compile powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/imlib2-1.7.5/work/imlib2-1.7.5/src/modules/loaders -I../../..  -I../../.. -I/var/tmp/portage/media-libs/imlib2-1.7.5/work/imlib2-1.7.5/src/lib  -W -Wall -Wcast-align -Wpointer-arith -Wshadow -Wwrite-strings -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -fvisibility=hidden  -O2 -mcpu=7450 -mtune=7450 -pipe -c -o ico_la-loader_ico.lo `test -f 'loader_ico.c' || echo '/var/tmp/portage/media-libs/imlib2-1.7.5/work/imlib2-1.7.5/src/modules/loaders/'`loader_ico.c
libtool: compile:  powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/imlib2-1.7.5/work/imlib2-1.7.5/src/modules/loaders -I../../.. -I../../.. -I/var/tmp/portage/media-libs/imlib2-1.7.5/work/imlib2-1.7.5/src/lib -W -Wall -Wcast-align -Wpointer-arith -Wshadow -Wwrite-strings -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -fvisibility=hidden -O2 -mcpu=7450 -mtune=7450 -pipe -c /var/tmp/portage/media-libs/imlib2-1.7.5/work/imlib2-1.7.5/src/modules/loaders/loader_ico.c  -fPIC -DPIC -o .libs/ico_la-loader_ico.o
/var/tmp/portage/media-libs/imlib2-1.7.5/work/imlib2-1.7.5/src/modules/loaders/loader_ico.c: In function 'ico_read_icon':
/var/tmp/portage/media-libs/imlib2-1.7.5/work/imlib2-1.7.5/src/modules/loaders/loader_ico.c:200:14: error: 'nr' undeclared (first use in this function)
  200 |         for (nr = 0; nr < ie->bih.colors; nr++)
      |              ^~
/var/tmp/portage/media-libs/imlib2-1.7.5/work/imlib2-1.7.5/src/modules/loaders/loader_ico.c:200:14: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [Makefile:826: ico_la-loader_ico.lo] Error 1
Comment 1 ernsteiswuerfel archtester 2022-10-20 19:13:17 UTC
Created attachment 824871 [details]
emerge --info
Comment 3 ernsteiswuerfel archtester 2022-10-20 19:33:37 UTC
(In reply to Stephan Hartmann from comment #2)
> https://git.enlightenment.org/old/legacy-imlib2/commit/
> 7d60151ba9696ef07be79af68d5c631a97c63906
Thanks! I can confirm the patch works.
Comment 4 Larry the Git Cow gentoo-dev 2022-12-01 01:52:40 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40383904bf9e4b5c0ee8e55b9587112b7351e7cd

commit 40383904bf9e4b5c0ee8e55b9587112b7351e7cd
Author:     Matoro Mahri <matoro@users.noreply.github.com>
AuthorDate: 2022-11-30 22:20:40 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-12-01 01:52:13 +0000

    media-libs/imlib2: backport BE build fix to 1.7.5
    
    No revbump since this is build-only.
    
    Closes: https://bugs.gentoo.org/877777
    Signed-off-by: Matoro Mahri <matoro@users.noreply.github.com>
    Closes: https://github.com/gentoo/gentoo/pull/28488
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/imlib2/files/7d60151ba9.patch | 37 ++++++++++++++++++++++++++++++++
 media-libs/imlib2/imlib2-1.7.5.ebuild    |  1 +
 2 files changed, 38 insertions(+)