Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 763570 - dev-libs/log4cpp fails to emerge when /bin/sh is dash - error: using typedef-name ‘std::ostringstream’ after ‘class’
Summary: dev-libs/log4cpp fails to emerge when /bin/sh is dash - error: using typedef-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: nonbash
  Show dependency tree
 
Reported: 2021-01-04 19:40 UTC by Chris Mayo
Modified: 2022-08-28 15:00 UTC (History)
2 users (show)

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


Attachments
build.log and emerge --info (build.log-emerge-info.txt,30.15 KB, text/plain)
2021-01-04 20:25 UTC, Ionen Wolkens
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Mayo 2021-01-04 19:40:03 UTC
emerges fine when bash is eselect'ed as sh.


/var/tmp/portage/dev-libs/log4cpp-1.1.3/work/log4cpp/include/log4cpp/Portability.hh:60:29: error: using typedef-name ‘std::ostringstream’ after ‘class’
   60 |        class LOG4CPP_EXPORT ostringstream : public ostrstream {

...

../include/log4cpp/config.h:15:17: warning: extra tokens at end of #ifndef directive
   15 | #ifndef LOG4CPP_
      |                 ^
../include/log4cpp/config.h:16:9: warning: ISO C++11 requires whitespace after the macro name
   16 | #define LOG4CPP_ 
      |         ^~~~~~~~
../include/log4cpp/config.h:20:17: warning: extra tokens at end of #ifndef directive
   20 | #ifndef LOG4CPP_
      |                 ^
Comment 1 Ionen Wolkens gentoo-dev 2021-01-04 20:04:11 UTC
Removing stabilization blocker + version because previous stable 1.1 appears broken the same way.

Also, please attach complete build.log + emerge --info next time even if it doesn't seem needed.
Comment 2 Ionen Wolkens gentoo-dev 2021-01-04 20:25:42 UTC
Created attachment 681052 [details]
build.log and emerge --info
Comment 3 Larry the Git Cow gentoo-dev 2022-05-26 00:28:05 UTC
The bug has been closed via the following commit(s):

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

commit c9f084957aeb97d4d449f38f90824fcd12445ddc
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-05-26 00:27:19 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-05-26 00:27:32 +0000

    dev-libs/log4cpp: update EAPI 6 -> 8, avoid Bashism issues w/ configure
    
    Not bothering to patch it, just force CONFIG_SHELL as Bash given
    upstream is dead.
    
    Closes: https://bugs.gentoo.org/763570
    Signed-off-by: Sam James <sam@gentoo.org>

 .../log4cpp/files/log4cpp-1.1.3-fix-version.patch  |  9 ++++
 dev-libs/log4cpp/log4cpp-1.1.3-r1.ebuild           | 63 ++++++++++++++++++++++
 2 files changed, 72 insertions(+)