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

Tom Tromey
2013-05-07T14:15:40Z

>>>>> "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.

Tom