Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 639304 - games-rpg/daimonin-client-0.10.8 - .../work/daimonin-code-8183-trunk/client/make/linux/../../src/dialog.c:1133: undefined reference to `optwin_draw_options'
Summary: games-rpg/daimonin-client-0.10.8 - .../work/daimonin-code-8183-trunk/client/m...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2017-11-30 18:57 UTC by Andrei Slavoiu
Modified: 2020-11-21 20:38 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,26.76 KB, text/plain)
2017-11-30 18:57 UTC, Andrei Slavoiu
Details
daimonin-client-0.10.8-inline.patch (daimonin-client-0.10.8-inline.patch,456 bytes, patch)
2017-11-30 20:03 UTC, Andrei Slavoiu
Details | Diff
daimonin-client-0.10.8.ebuild.patch (daimonin-client-0.10.8.ebuild.patch,342 bytes, patch)
2017-11-30 20:04 UTC, Andrei Slavoiu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Slavoiu 2017-11-30 18:57:55 UTC
Created attachment 507280 [details]
build.log

x86_64-pc-linux-gnu-gcc -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Wall -march=native -g3 -gdwarf-4 -O2 -pipe -gz -Wl,-O1 -Wl,--as-needed -fuse-ld=bfd  -Wl,-O1 -Wl,--as-needed -fuse-ld=bfd -o daimonin ../../src/anim.o ../../src/book.o ../../src/buddy.o ../../src/chatfilter.o ../../src/client.o ../../src/commands.o ../../src/dialog.o ../../src/event.o ../../src/filewrap.o ../../src/font.o ../../src/group.o ../../src/ignore.o ../../src/interface.o ../../src/inventory.o ../../src/item.o ../../src/kerbholz.o ../../src/main.o ../../src/map.o ../../src/menu.o ../../src/misc.o ../../src/physfsrwops.o ../../src/player.o ../../src/protocol.o ../../src/socket.o ../../src/sound.o ../../src/sprite.o ../../src/textwin.o ../../src/tile_stretcher.o ../../src/wrapper.o ../../src/widget.o -lSDL_mixer -lSDL_image -lSDL -lpthread  -lphysfs -lz 
../../src/dialog.o: In function `show_optwin':
/var/tmp/portage/games-rpg/daimonin-client-0.10.8/work/daimonin-code-8183-trunk/client/make/linux/../../src/dialog.c:1133: undefined reference to `optwin_draw_options'
collect2: error: ld returned 1 exit status
make: *** [Makefile:544: daimonin] Error 1
 * ERROR: games-rpg/daimonin-client-0.10.8::gentoo failed (compile phase):
 *   emake failed
Comment 1 Andrei Slavoiu 2017-11-30 20:03:57 UTC
Created attachment 507448 [details, diff]
daimonin-client-0.10.8-inline.patch

Patch that replaces inline with static in optwin_draw_options definition
Comment 2 Andrei Slavoiu 2017-11-30 20:04:38 UTC
Created attachment 507450 [details, diff]
daimonin-client-0.10.8.ebuild.patch
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2017-12-02 22:22:26 UTC
Comment on attachment 507448 [details, diff]
daimonin-client-0.10.8-inline.patch

Why don't you make it a static inline function?
Comment 4 Andrei Slavoiu 2017-12-11 01:36:29 UTC
Because the main difference between static and static inline is that the compiler will warn if the function is unused in the first case but not in the later. And given it is located in a .c file there just static suits it better.
Comment 5 Simon 2019-01-19 07:23:11 UTC
I tried applying that patch as user patch but it didn't work cause it seems not to be possible to patch parent directories, therefore also how eapply_user is used in the ebuild should be changed to be applied in the parent directory:

pushd ../.. >/dev/null || die
    eapply_user
popd >/dev/null || die
Comment 6 Simon 2019-01-19 10:27:21 UTC
(Btw I also fixed this upstream, so will be fixed with next release.)
Comment 7 Larry the Git Cow gentoo-dev 2020-11-21 20:38:57 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7075cd03fb20c63fda4008b1cd7d50147a024663

commit 7075cd03fb20c63fda4008b1cd7d50147a024663
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2020-11-21 20:38:17 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2020-11-21 20:38:17 +0000

    games-rpg/daimonin-client: Port to EAPI 7
    
    Closes: https://bugs.gentoo.org/639304
    Closes: https://bugs.gentoo.org/708788
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: David Seifert <soap@gentoo.org>

 .../daimonin-client/daimonin-client-0.10.8.ebuild  |  17 +--
 .../files/daimonin-client-0.10.8-fno-common.patch  | 128 +++++++++++++++++++++
 2 files changed, 138 insertions(+), 7 deletions(-)