if x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -O2 -pipe -MT macros.o -MD -MP -MF ".deps/macros.Tpo" -c -o macros.o macros.cc; \
then mv -f ".deps/macros.Tpo" ".deps/macros.Po"; else rm -f ".deps/macros.Tpo"; exit 1; fi
macros.cc: In function 'bool looksLikeFloat(const char*)':
macros.cc:136: error: 'strcmp' was not declared in this scope
macros.cc: In function 'const char* doubleToString(double)':
macros.cc:218: error: 'strcpy' was not declared in this scope
macros.cc: In function 'void correctEcvt(double, int, char*, int&, int&)':
macros.cc:271: error: 'strcpy' was not declared in this scope
make: *** [macros.o] Error 1
make: Leaving directory `/var/tmp/portage/dev-lang/maude-2.3.0/work/Maude-2.3/src/Utility'
make: *** [all-recursive] Error 1
make: Leaving directory `/var/tmp/portage/dev-lang/maude-2.3.0/work/Maude-2.3/src'
make: *** [all-recursive] Error 1
make: Leaving directory `/var/tmp/portage/dev-lang/maude-2.3.0/work/Maude-2.3'
make: *** [all] Error 2
* ERROR: dev-lang/maude-2.3.0 failed.
Portage 22.214.171.124 (default-linux/amd64/2007.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 126.96.36.199 x86_64)
System uname: 188.8.131.52 x86_64 unknown
Timestamp of tree: Fri, 13 Jun 2008 19:45:01 +0000
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
FEATURES="buildpkg distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://184.108.40.206/gentoo http://gentoo.mirrors.tds.net/gentoo http://gentoo.osuosl.org/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
USE="X acl amd64 berkdb cli cracklib crypt cups dri fortran gcj gdbm gpm iconv ipv6 isdnlog midi mmx mudflap ncurses nls nptl nptlonly objc openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vga"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Thanks much for you report and this is a gcc-4.3 issue.
Unfortunately, in addition to the standard header issues
maude-2.3.0 breaks non-trivially in some of its usage
of ropes. This is something that needs to be fixed upstream.
I'll file a bug with them.
Created attachment 159951 [details]
Patch for compilation with gcc-4.3
This patch also fixes the ropes issue, though I'm not really if, the code still does what it's intended to do.
This patch should only be applied for a new version of g++, as the code states that Rope::c_str() is broken in libstdc++-v3
(In reply to comment #2)
> Created an attachment (id=159951) 
> Patch for compilation with gcc-4.3
> This patch also fixes the ropes issue, though I'm not really if, the code still
> does what it's intended to do.
> This patch should only be applied for a new version of g++, as the code states
> that Rope::c_str() is broken in libstdc++-v3
Thank you very much for the patch! Since I don't know the rope
stuff well I think we should pipe this patch through upstream
to make sure it is ok. Would you mind forwarding it on to them?
(In reply to comment #3)
> (In reply to comment #2)
> > Created an attachment (id=159951) 
> > Patch for compilation with gcc-4.3
> > This patch also fixes the ropes issue, though I'm not really if, the code still
> > does what it's intended to do.
> > This patch should only be applied for a new version of g++, as the code states
> > that Rope::c_str() is broken in libstdc++-v3
> Hi Bert,
> Thank you very much for the patch! Since I don't know the rope
> stuff well I think we should pipe this patch through upstream
> to make sure it is ok. Would you mind forwarding it on to them?
> Thanks much,
That's fine with me. But I don't know if it's a good patch as I dont't know much about ropes, either.
(In reply to comment #4)
> That's fine with me. But I don't know if it's a good patch as I dont't know
> much about ropes, either.
The important point will be to make them aware of the problem and point them
into the proper direction via your patch.
Thanks in advance for your help.
did anyone manage to send this upstream?
@markusle maude-2.4 is out and seems to have added a fix for this, though the #include <cstring> may still be needed. It looks like they have done #include <string> there :-).
*** Bug 255823 has been marked as a duplicate of this bug. ***
Created attachment 181507 [details, diff]
i backported this from 2.4. it's a little different than the patch above, but essentially does the same thing.