LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Error compiling 'foto'. [error adding symbols: DSO missing from command line] (https://www.linuxquestions.org/questions/linux-software-2/error-compiling-foto-%5Berror-adding-symbols-dso-missing-from-command-line%5D-4175493187/)

313 01-30-2014 04:46 PM

Error compiling 'foto'. [error adding symbols: DSO missing from command line]
 
Hi, I'm reasonably new to compiling software from source, but wanted to try 'foto'.

I've installed the dependencies, run cmake, and then make.

make gives the following errors:
Code:

/usr/bin/ld: CMakeFiles/foto.dir/src/views/DynamicGrid.c.o: undefined reference to symbol 'fmod@@GLIBC_2.0'
//lib/i386-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [foto] Error 1
make[1]: *** [CMakeFiles/foto.dir/all] Error 2
make: *** [all] Error 2

It doesn't appear I'm missing any deps, and when searching these errors I see only people with massively longer command lines than simply 'make', who solve the issue by rearranging their command or installing a dependency.

Is this a bug, or am I approaching this in a naive way?

gengisdave 02-04-2014 07:45 AM

add LDFLAGS="-lm"


All times are GMT -5. The time now is 01:51 AM.