Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 503954 - net-mail/mailutils-2.99.98[readline] with sys-libs/readline-6.3 - shell.c:339:39: error: ‘CPPFunction’ undeclared (first use in this function)
Summary: net-mail/mailutils-2.99.98[readline] with sys-libs/readline-6.3 - shell.c:339...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: readline-6.3
  Show dependency tree
 
Reported: 2014-03-09 07:42 UTC by Martin von Gagern
Modified: 2014-03-10 07:10 UTC (History)
0 users

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


Attachments
build log (net-mail:mailutils-2.99.98:20140309-032146.log,555.56 KB, text/plain)
2014-03-09 07:42 UTC, Martin von Gagern
Details
Avoid explicit cast (gentoo503954a.patch,1.54 KB, patch)
2014-03-09 10:53 UTC, Martin von Gagern
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2014-03-09 07:42:19 UTC
Created attachment 372150 [details]
build log

shell.c: In function ‘mutool_initialize_readline’:
shell.c:339:39: error: ‘CPPFunction’ undeclared (first use in this function)

This is due to readline cleaning up some old definitions.
Comment 1 Martin von Gagern 2014-03-09 10:53:13 UTC
Created attachment 372188 [details, diff]
Avoid explicit cast

I see no reason why the cast should be required in this case, and dropping it makes the problem go away. An alternative would be using rl_completion_func_t* instead of CPPFunction*.
Comment 2 SpanKY gentoo-dev 2014-03-10 00:32:49 UTC
(In reply to Martin von Gagern from comment #1)

someone should send this upstream.  like the guy who wrote it ;).
Comment 3 SpanKY gentoo-dev 2014-03-10 00:33:41 UTC
should be all set now in the tree; thanks for the report!

Commit message: Fix build w/readline-6.3
http://sources.gentoo.org/net-mail/mailutils/files/mailutils-2.99.98-readline-6.3.patch?rev=1.1
http://sources.gentoo.org/net-mail/mailutils/mailutils-2.99.98.ebuild?r1=1.3&r2=1.4
Comment 4 Martin von Gagern 2014-03-10 07:10:35 UTC
(In reply to SpanKY from comment #2)
> someone should send this upstream.  like the guy who wrote it ;).

Just sent a mail to upstream, although it's still awaiting moderation.
Thanks for committing the fix for Gentoo!