[PATCH] Mongoose HTTPd from 3.2 to 3.9 (last commit before MIT -> GPL)
Nick Withers
nick.withers at anu.edu.au
Sun Dec 1 22:44:52 UTC 2013
On Fri, 2013-11-29 at 13:00 +0100, Sebastian Huber wrote:
> Hello Nick,
>
> it seems that there was again an API change. Can you please build with
> "--enable-tests" and fix the errors below. Can you please also run this test
> and make sure it passes.
Will do - thanks Sebastian!
> Making all in mghttpd01
> gmake[6]: Entering directory
> `/scratch/git-rtems-testing/rtems/build-sparc-leon3_qemu-rtems/sparc-rtems4.11/c/leon3_qemu/testsuites/libtests/mghttpd01'
> ../../../../../../tools/build/rtems-bin2c -C
> ../../../../../../../rtems/c/src/../../testsuites/libtests/mghttpd01/init_fs.tar init_fs
> ../../../../../../tools/build/rtems-bin2c -H
> ../../../../../../../rtems/c/src/../../testsuites/libtests/mghttpd01/init_fs.tar init_fs
> gmake all-am
> gmake[7]: Entering directory
> `/scratch/git-rtems-testing/rtems/build-sparc-leon3_qemu-rtems/sparc-rtems4.11/c/leon3_qemu/testsuites/libtests/mghttpd01'
> sparc-rtems4.11-gcc -B../../../../../leon3_qemu/lib/ -specs bsp_specs -qrtems
> -DHAVE_CONFIG_H -I.
> -I../../../../../../../rtems/c/src/../../testsuites/libtests/mghttpd01 -I..
> -I../../../../../../../rtems/c/src/../../testsuites/libtests/../support/include
> -mcpu=leon3 -msoft-float -O0 -g -Wall -Wmissing-prototypes
> -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT init.o
> -MD -MP -MF .deps/init.Tpo -c -o init.o
> ../../../../../../../rtems/c/src/../../testsuites/libtests/mghttpd01/init.c
> sparc-rtems4.11-gcc -B../../../../../leon3_qemu/lib/ -specs bsp_specs -qrtems
> -DHAVE_CONFIG_H -I.
> -I../../../../../../../rtems/c/src/../../testsuites/libtests/mghttpd01 -I..
> -I../../../../../../../rtems/c/src/../../testsuites/libtests/../support/include
> -mcpu=leon3 -msoft-float -O0 -g -Wall -Wmissing-prototypes
> -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT
> init_fs.o -MD -MP -MF .deps/init_fs.Tpo -c -o init_fs.o init_fs.c
> sparc-rtems4.11-gcc -B../../../../../leon3_qemu/lib/ -specs bsp_specs -qrtems
> -DHAVE_CONFIG_H -I.
> -I../../../../../../../rtems/c/src/../../testsuites/libtests/mghttpd01 -I..
> -I../../../../../../../rtems/c/src/../../testsuites/libtests/../support/include
> -mcpu=leon3 -msoft-float -O0 -g -Wall -Wmissing-prototypes
> -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT
> test-http-client.o -MD -MP -MF .deps/test-http-client.Tpo -c -o
> test-http-client.o
> ../../../../../../../rtems/c/src/../../testsuites/libtests/mghttpd01/test-http-client.c
> mv -f .deps/init_fs.Tpo .deps/init_fs.Po
> ../../../../../../../rtems/c/src/../../testsuites/libtests/mghttpd01/init.c:90:18:
> warning: 'enum mg_event' declared inside parameter list [enabled by default]
> const struct mg_request_info *request_info)
> ^
> ../../../../../../../rtems/c/src/../../testsuites/libtests/mghttpd01/init.c:90:18:
> warning: its scope is only this definition or declaration, which is probably
> not what you want [enabled by default]
> ../../../../../../../rtems/c/src/../../testsuites/libtests/mghttpd01/init.c:88:37:
> error: parameter 1 ('event') has incomplete type
> static void *callback(enum mg_event event,
> ^
> ../../../../../../../rtems/c/src/../../testsuites/libtests/mghttpd01/init.c:88:14:
> warning: function declaration isn't a prototype [-Wstrict-prototypes]
> static void *callback(enum mg_event event,
> ^
> ../../../../../../../rtems/c/src/../../testsuites/libtests/mghttpd01/init.c: In
> function 'callback':
> ../../../../../../../rtems/c/src/../../testsuites/libtests/mghttpd01/init.c:92:16:
> error: 'MG_NEW_REQUEST' undeclared (first use in this function)
> if (event == MG_NEW_REQUEST) {
> ^
> ../../../../../../../rtems/c/src/../../testsuites/libtests/mghttpd01/init.c:92:16:
> note: each undeclared identifier is reported only once for each function it
> appears in
> mv -f .deps/test-http-client.Tpo .deps/test-http-client.Po
> ../../../../../../../rtems/c/src/../../testsuites/libtests/mghttpd01/init.c: In
> function 'test_mongoose':
> ../../../../../../../rtems/c/src/../../testsuites/libtests/mghttpd01/init.c:192:10:
> warning: passing argument 1 of 'mg_start' from incompatible pointer type
> [enabled by default]
> struct mg_context *mg1 = mg_start(&callback, NULL, options);
> ^
> In file included from
> ../../../../../../../rtems/c/src/../../testsuites/libtests/mghttpd01/init.c:26:0:
> ../../../../../leon3_qemu/lib/include/mghttpd/mongoose.h:154:20: note: expected
> 'const struct mg_callbacks *' but argument is of type 'void * (*)()'
> struct mg_context *mg_start(const struct mg_callbacks *callbacks,
> ^
> gmake[7]: *** [init.o] Error 1
> gmake[7]: Leaving directory
> `/scratch/git-rtems-testing/rtems/build-sparc-leon3_qemu-rtems/sparc-rtems4.11/c/leon3_qemu/testsuites/libtests/mghttpd01'
>
--
Nick Withers
Embedded Systems Programmer
Room 2.26, Building 57
Department of Nuclear Physics
Research School of Physics and Engineering
The Australian National University (CRICOS: 00120C)
eMail: nick.withers at anu.edu.au
Phone: +61 2 6125 2091
Mobile: +61 414 397 446
More information about the devel
mailing list