Comment 3 for bug 1224928

Revision history for this message
Daniel Pocock (daniel-pocock) wrote : Re: [Bug 1224928] Re: FFe: Sync avis-client-c 1.2.4-7 (universe) from Debian unstable (main)

On 16/09/13 10:06, Daniel Holbach wrote:
> This unfortunately fails to build for me on saucy amd64:
>
> gcc -DHAVE_CONFIG_H -I. -I../../platforms/gnu_automake -I../../src/include -I../../src/lib -I../../packages/check/src -D_FORTIFY_SOURCE=2 -Wall -pedantic -pthread -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -c check_uri.c
> In file included from check_uri.c:22:0:
> ../../packages/check/src/check.h:197:27: warning: anonymous variadic macros were introduced in C99 [-Wvariadic-macros]
> #define fail_unless(expr, ...)\
> ^
> ../../packages/check/src/check.h:208:23: warning: anonymous variadic macros were introduced in C99 [-Wvariadic-macros]
> #define fail_if(expr, ...)\
> ^
> ../../packages/check/src/check.h:213:14: warning: anonymous variadic macros were introduced in C99 [-Wvariadic-macros]
> #define fail(...) _fail_unless(0, __FILE__, __LINE__, "Failed" , ## __VA_ARGS__, NULL)
> ^
> /bin/bash ../../libtool --tag=CC --mode=link gcc -Wall -pedantic -pthread -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -lm -Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -o tests tests.o check_messages.o check_security.o check_client.o check_collections.o check_invoke.o check_uri.o ../../src/lib/libavis.la ../../packages/check/src/libcheck.la
> libtool: link: gcc -Wall -pedantic -pthread -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/tests tests.o check_messages.o check_security.o check_client.o check_collections.o check_invoke.o check_uri.o -lm ../../src/lib/.libs/libavis.so ../../packages/check/src/.libs/libcheck.a -pthread
> ../../src/lib/.libs/libavis.so: undefined reference to `ceilf'

ceilf is from libm

I can see "-lm" is in the linker command line so it is almost correct.
Could you try running that command manually without -pthread at the
end? E.g.

cd src/test

gcc -Wall -pedantic -pthread -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/tests tests.o check_messages.o check_security.o check_client.o check_collections.o check_invoke.o check_uri.o -lm ../../src/lib/.libs/libavis.so ../../packages/check/src/.libs/libcheck.a

and see if it works?

If not, could you please share the full config.status and config.log
files from the top level of the build tree?