Originally Posted by David1357
$ gcc -o comp fosdl9_3.c -lm -lSDL_ttf -lSDL -I/usr/include/SDL -I/usr/local/include/SDL
Thanks for that suggestion it worked for me. I had the same problem when I was trying to make a package for cwstation - a morse code sound generator (http://cwstation.sourceforge.net/
src2pkg aborted without giving any useful error messages. So I made a slackbuild script and when I ran it, I got the same error message as in the OP. The problem was to include the "-lm" without patching the Makefile or config file.
The solution was to modify cwstation.SlackBuild as follows:
make LDFLAGS="-lm" || exit