opensand team mailing list archive
-
opensand team
-
Mailing list archive
-
Message #00076
Re: Sources instalation with Ubuntu 12.04 server LTS
Andy,
> Few days back I start my work with other Linux distributions. I
> decide to proced with ubuntu 12.04 LTS desktop - 32 bits.
Great!
> I have first issue to report. I perform regular sources
> compilation and this is first issue:
>
> andyg@andyg:~/opensand-trunk/opensand-env-plane$ make
> make all-recursive
> make[1]: Entering directory
> `/home/andyg/opensand-trunk/opensand-env-plane' Making all in src
> make[2]: Entering directory
> `/home/andyg/opensand-trunk/opensand-env-plane/src'
> /bin/bash ../libtool --tag=CC --mode=link gcc -g -Wall -W -Werror
> -DUTI_DEBUG_ON -D_ASP_TRACE -D_ASP_PROBE_CHECK -D_ASP_TRACE_ERROR -g
> -O2 -o ProbeController ProbeController.o ProbeControllerInterface.o
> libopensand_env_plane.la
> libtool: link: gcc -g -Wall -W -Werror -DUTI_DEBUG_ON -D_ASP_TRACE
> -D_ASP_PROBE_CHECK -D_ASP_TRACE_ERROR -g -O2 -o .libs/ProbeController
> ProbeController.o ProbeControllerInterface.o
> ./.libs/libopensand_env_plane.so
> ProbeControllerInterface.o: In function `StoreComponentData':
> /home/andyg/opensand-trunk/opensand-env-plane/src/ProbeControllerInterface.c:253:
> undefined reference to `sqrt'
> collect2: ld returned 1 exit status
> make[2]: *** [ProbeController] Error 1
> make[2]: Leaving directory
> `/home/andyg/opensand-trunk/opensand-env-plane/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/home/andyg/opensand-trunk/opensand-env-plane' make: *** [all] Error
> 2
>
> Any suggestions ??
I would say that the command line misses the -lm option to link with the
math library. In such cases, check the man page: 'man sqrt' reads 'Link
with -lm'.
You may add the '-lm' in the opensand-env-plane/src/Makefile.am as
follow:
ProbeController_LDADD = libopensand_env_plane.la -lm
You have then to run again the autogen.sh script in the parent
directory.
If the above change fixes the problem, please open a ticket, create a
patch and attach the patch to the ticket. Thank you!
Regards,
Didier
Follow ups
References