--- gsoap/samples/chaining/chaining.c.orig 2012-06-09 15:10:06.000000000 -0400 +++ gsoap/samples/chaining/chaining.c 2012-07-17 09:45:48.784125435 -0400 @@ -45,6 +45,8 @@ #include "q.nsmap" #include "c.nsmap" +#include + /* A dummy global table, to keep the linker happy */ struct Namespace namespaces[] = { {NULL} }; --- gsoap/samples/chaining/Makefile.am.orig 2012-06-09 15:10:06.000000000 -0400 +++ gsoap/samples/chaining/Makefile.am 2012-07-17 09:45:46.040802800 -0400 @@ -23,3 +23,4 @@ chaining_SOURCES = chaining.c quote.h calc.h env.h qServerLib.c cServerLib.c envC.c chaining_LDADD = $(SOAP_C_LIB) $(SAMPLE_EXTRA_LIBS) +chaining_CFLAGS = -lm $(AM_CFLAGS)