| | 28 | <refsect2> |
|---|
| | 29 | <title>Known problems</title> |
|---|
| | 30 | <para> |
|---|
| | 31 | During compilation with GCC version 4.2.1 or newer, you may get |
|---|
| | 32 | errors similar to the following: |
|---|
| | 33 | <literallayout> |
|---|
| | 34 | <userinput>$ make</userinput> |
|---|
| | 35 | <userinput>...</userinput> |
|---|
| | 36 | <userinput>gutils.h:316: warning: C99 inline functions are not supported; using GNU89</userinput> |
|---|
| | 37 | <userinput>gutils.h:316: warning: to disable this warning use -fgnu89-inline or the gnu_inline function attribute</userinput> |
|---|
| | 38 | </literallayout> |
|---|
| | 39 | These warnings are caused by a change in the meaning of |
|---|
| | 40 | the <function>inline</function> keyword in recent versions of |
|---|
| | 41 | GCC. But GLib has not yet adapted to the change. Fortunately, |
|---|
| | 42 | the fix is simple. Invoke configure like this: |
|---|
| | 43 | <literallayout> |
|---|
| | 44 | <userinput>$ CFLAGS=-fgnu89-inline ./configure</userinput> |
|---|
| | 45 | </literallayout> |
|---|
| | 46 | Note that the <option>-fgnu89-inline</option> is only recognized |
|---|
| | 47 | in GCC 4.2.1 and above. |
|---|
| | 48 | </para> |
|---|
| | 49 | </refsect2> |
|---|