Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 763570

Summary: dev-libs/log4cpp fails to emerge when /bin/sh is dash - error: using typedef-name ‘std::ostringstream’ after ‘class’
Product: Gentoo Linux Reporter: Chris Mayo <aklhfex>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: ionen, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=867115
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 526268    
Attachments: build.log and emerge --info

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(+)