autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: avis-client-c: ceilf, linking with -lm


From: Thomas Jahns
Subject: Re: avis-client-c: ceilf, linking with -lm
Date: Tue, 17 Sep 2013 16:19:39 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130827 Icedove/17.0.8

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 <address@hidden>

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]