This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]