Bug 5050 - MinGW Compilation Problem
Summary: MinGW Compilation Problem
Status: NEW
Alias: None
Product: FriBidi
Classification: Unclassified
Component: bidi (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Windows (All)
: high normal
Assignee: Behdad Esfahbod
QA Contact:
Depends on:
Reported: 2005-11-15 05:08 UTC by Steffen Macke
Modified: 2013-03-15 13:55 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Description Steffen Macke 2005-11-15 05:08:00 UTC
FriBidi 0.10.7 does not compile with MinGW.

./configure went ok.

Here is the output when running make:
$ make
make  all-am
make[1]: Entering directory `/c/data/home/sdteffen/src/fribidi-0.10.7'
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.   
                                                -g -O2 -Wall  -pedantic 
-fno-strict-aliasing  -MT wcwidth.lo -MD -MP -MF ".dep                         
                     s/wcwidth.Tpo" -c -o wcwidth.lo wcwidth.c; \
then mv -f ".deps/wcwidth.Tpo" ".deps/wcwidth.Plo"; else rm -f ".deps/wcwidth.Tp
                                              o"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -Wall -pedantic -fno-strict-aliasing -MT
                                               wcwidth.lo -MD -MP -MF
.deps/wcwidth.Tpo -c wcwidth.c  -DDLL_EXPORT -DPIC -o .l                       
wcwidth.c: In function `fribidi_wcwidth':
wcwidth.c:123: warning: function 'fribidi_wcwidth' is defined after prior declar
                                              ation as dllimport: attribute ignored
wcwidth.c: In function `fribidi_wcswidth':
wcwidth.c:200: warning: function 'fribidi_wcswidth' is defined after prior decla
                                              ration as dllimport: attribute ignored
wcwidth.c:204: error: syntax error before "__attribute__"
wcwidth.c:204: error: syntax error before ')' token
wcwidth.c: At top level:
wcwidth.c:223: error: external linkage required for symbol 'fribidi_wcwidth_cjk'
                                               because of 'dllimport' attribute.
wcwidth.c: In function `fribidi_wcwidth_cjk':
wcwidth.c:286: error: syntax error before "__attribute__"
wcwidth.c: In function `fribidi_wcswidth_cjk':
wcwidth.c:291: warning: function 'fribidi_wcswidth_cjk' is defined after prior d
                                              eclaration as dllimport: attribute
wcwidth.c:295: error: syntax error before "__attribute__"
wcwidth.c:295: error: syntax error before ')' token
make[1]: *** [wcwidth.lo] Error 1
make[1]: Leaving directory `/c/data/home/sdteffen/src/fribidi-0.10.7'
make: *** [all] Error 2

And the gcc version:
$ gcc --version
gcc.exe (GCC) 3.4.2 (mingw-special)
Comment 1 Behdad Esfahbod 2005-11-15 18:56:40 UTC
Humm, that's kinda expected, as 0.10 series do not have a sophisticated Windows
libtool support.  Keep watching for the coming release, I have copied Ming
support from other libraries in it.

Leaving this open in the mean while.
Comment 2 chemtech 2013-03-15 13:55:37 UTC
Steffen Macke
Do you still experience this issue with newer drivers ?
Please check the status of your issue.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.