Bug 298201 - words cannot open docx if it is built with gcc 4.7
Summary: words cannot open docx if it is built with gcc 4.7
Status: RESOLVED DUPLICATE of bug 298134
Alias: None
Product: calligrawords
Classification: Applications
Component: docx (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR major
Target Milestone: ---
Assignee: Calligra Words Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-15 18:49 UTC by Andrea Scarpino
Modified: 2012-04-20 18:10 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Docx test file (3.27 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2012-04-16 06:36 UTC, Andrea Scarpino
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Scarpino 2012-04-15 18:49:28 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.162 Safari/535.19
Build Identifier: 

The summary already says all.

I've built calligra 2.4.0 using gcc 4.7 and words doesn't open any docx file.

If I downgrade to 2.3.92 (built using gcc 4.6) docx support is fine.

Reproducible: Always

Steps to Reproduce:
1. Upgrade to GCC 4.7
2. Build Calligra
3. Try to open a docx file
Actual Results:  
I get:
"The manifest file seems to be corrupted. The document could not be opened."
then:
"Could not open /tmp/new-docx-file.docx
Reason: Not a valid Calligra file: /tmp/kde-user/wordsl11263.tmp"

Expected Results:  
Words opens the docx file

GCC 4.7
KDE 4.8
x86_64
Comment 1 Halla Rempt 2012-04-16 06:04:01 UTC
Hm, I tested just now with one of the test files in calligratests, and it seems to work. More investigation needed, but could you add one of your test docx files to the bug? Or if private, mail it boud@valdyas.org?
Comment 2 Andrea Scarpino 2012-04-16 06:36:53 UTC
Created attachment 70416 [details]
Docx test file

Simple docx file to test this bug.
I created it with LibreOffice.
Comment 3 Cédric Bellegarde 2012-04-16 17:34:17 UTC
It bugs even with a simple "Hello world" doc and docx file...

MS word 97 support is also broken...
Comment 4 Halla Rempt 2012-04-17 07:57:52 UTC
I must have done something wrong when enabling gcc 4.7 on my laptop, since I cannot reproduce yet.
Comment 5 Andrea Scarpino 2012-04-17 09:22:38 UTC
My flags are:
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu"
Comment 6 Andrea Scarpino 2012-04-20 18:10:55 UTC

*** This bug has been marked as a duplicate of bug 298134 ***