Re: [commit] reimplement AIX shared-lib support (v3)

Luis Machado
2013-05-07T14:17:30Z

On 05/07/2013 04:15 PM, Tom Tromey wrote:
>>>>>> "Luis" == Luis Machado <lgustavo@codesourcery.com> writes:
>
> Luis> When trying to build with --enable-targets=all i seem to be falling
> Luis> into a build error due to a warning.
>
> Luis> gdb/solib-aix.c: In function ‘solib_aix_normal_stop_observer’:
> Luis> gdb/solib-aix.c:781:3: error: implicit declaration of function
> Luis> ‘solib_aix_free_library_list’ [-Werror=implicit-function-declaration]
> Luis> cc1: all warnings being treated as errors
> Luis> make[2]: *** [solib-aix.o] Error 1
>
> Luis> The function is only used in solib-aix.c though, so i'm a little
> Luis> confused. I worked around it (for my purposes) by declaring it in
> Luis> solib-aix.h.
>
> For me the function is static in solib-aix.c, so I don't get a warning.
> If that is true for you then the error seems like a compiler bug.

That crossed my mind. I'll try a new build later with a different
compiler to see how it works.

This is GCC 4.7.2 by the way.