Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 215573 - app-text/libwpd-0.8.9 fails to compile with gcc-4.3.0
Summary: app-text/libwpd-0.8.9 fails to compile with gcc-4.3.0
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-31 13:12 UTC by Bert Karwatzki
Modified: 2008-04-15 13:44 UTC (History)
0 users

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


Attachments
libwpd-0.8.10-gcc-4.3-fix.patch (libwpd-0.8.10-gcc-4.3-fix.patch,940 bytes, patch)
2008-04-02 08:44 UTC, Bert Karwatzki
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bert Karwatzki 2008-03-31 13:12:31 UTC
Compiling libwpd-0.8.9 with gcc-4.3.0 from portage gives following error:
WPXHeader.cpp:60: error: 'strcmp' was not declared in this scope

Reproducible: Always




This patch solves the problem:

diff -aur src/lib/WPXStream.h src.new/lib/WPXStream.h
--- src/lib/WPXStream.h 2007-03-04 10:44:21.000000000 +0100
+++ src.new/lib/WPXStream.h     2008-03-29 11:14:45.000000000 +0100
@@ -25,6 +25,7 @@
 #ifndef WPXSTREAM_H
 #define WPXSTREAM_H
 #include <stdio.h>
+#include <cstring>
 #include "libwpd_types.h"

 enum WPX_SEEK_TYPE
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-03-31 19:34:52 UTC
what about 0.8.10 ?
Comment 2 Bert Karwatzki 2008-04-02 08:44:05 UTC
Created attachment 148061 [details, diff]
libwpd-0.8.10-gcc-4.3-fix.patch
Comment 3 Bert Karwatzki 2008-04-02 08:45:50 UTC
Comment on attachment 148061 [details, diff]
libwpd-0.8.10-gcc-4.3-fix.patch

0.8.10 needs a bigger patch.
Comment 4 Fabian Groffen gentoo-dev 2008-04-15 13:44:49 UTC
please try 0.8.14, which compiled fine for me with gcc-4.3.0