[prev in list] [next in list] [prev in thread] [next in thread]
List: autoconf
Subject: Re: avis-client-c: ceilf, linking with -lm
From: Thomas Jahns <jahns () dkrz ! de>
Date: 2013-09-17 14:19:39
Message-ID: 523864FB.4040003 () dkrz ! de
[Download RAW message or body]
Hi,
On 09/16/13 12:25, Daniel Pocock wrote:
> Ubuntu error:
>
> /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'
> collect2: error: ld returned 1 exit status
> make[4]: *** [tests] Error 1
> make[4]: Leaving directory `/tmp/buildd/avis-client-c-1.2.4/src/test'
You have the order of libraries incorrect: -lm is a dependency of libavis and
therefore needs to be specified afterwards. But from the launchpad page one can
see that's only half the story. Anyhow: it's unrelated to autotools.
Regards, Thomas
--
Thomas Jahns
DKRZ GmbH, Department: Application software
Deutsches Klimarechenzentrum
Bundesstraße 45a
D-20146 Hamburg
Phone: +49-40-460094-151
Fax: +49-40-460094-270
Email: Thomas Jahns <jahns@dkrz.de>
["smime.p7s" (application/pkcs7-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic