[Solved] Error Compiling 1.4.60 on Ubuntu
Added by maxentry over 2 years ago
Hi - I downloaded the sources and have been trying to compile 1.4.60 but I get a gcc error relating to the mod_flv_streaming.so file. Below is the full output from make with the error line emboldened.
PS: I looked in /usr/local/lib and both mod_flv_streaming.la and mod_flv_streaming.so are present in that path.
make all-recursive Making all in src gcc -g -O2 -o lemon ./lemon.c rm -f configparser.h ../src/lemon -q ./configparser.y ./lempar.c rm -f mod_ssi_exprparser.h ../src/lemon -q ./mod_ssi_exprparser.y ./lempar.c make all-am depbase=`echo mod_flv_streaming.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -DHAVE_VERSIONSTAMP_H -DLIBRARY_DIR="\"/usr/local/lib\"" -DSBIN_DIR="\"/usr/local/sbin\"" -I. -I.. -D_REENTRANT -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -MT mod_flv_streaming.lo -MD -MP -MF $depbase.Tpo -c -o mod_flv_streaming.lo mod_flv_streaming.c &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -DHAVE_VERSIONSTAMP_H -DLIBRARY_DIR=\"/usr/local/lib\" -DSBIN_DIR=\"/usr/local/sbin\" -I. -I.. -D_REENTRANT -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -MT mod_flv_streaming.lo -MD -MP -MF .deps/mod_flv_streaming.Tpo -c mod_flv_streaming.c -fPIC -DPIC -o .libs/mod_flv_streaming.o /bin/bash ../libtool --tag=CC --mode=link gcc -g -module -export-dynamic -avoid-version -o mod_flv_streaming.la -rpath /usr/local/lib mod_flv_streaming.lo libtool: link: gcc -shared -fPIC -DPIC .libs/mod_flv_streaming.o -lc -g -soname mod_flv_streaming.so -o .libs/mod_flv_streaming.so *gcc: error: mod_flv_streaming.so: No such file or directory gcc: error: unrecognized command line option '-soname'* Makefile:1894: recipe for target 'mod_flv_streaming.la' failed make[3]: *** [mod_flv_streaming.la] Error 1 Makefile:1758: recipe for target 'all' failed make[2]: *** [all] Error 2 Makefile:470: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 Makefile:400: recipe for target 'all' failed make: *** [all] Error 2
PS: This is the output from autogen.sh
trap: ERR: bad trap libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' configure.ac:63: installing './compile' configure.ac:24: installing './missing' src/Makefile.am: installing './depcomp' Now type './configure ...' and 'make' to compile.
Replies (3)
RE: Error Compiling 1.4.60 on Ubuntu - Added by maxentry over 2 years ago
Just to add -I am compiling on a system with 1.4.59 already installed.
So I tried running the ./configure step with a prefix and I still (understandably) get the error, albeit pointing to the lib directory under the prefixed destination.
RE: Error Compiling 1.4.60 on Ubuntu - Added by gstrauss over 2 years ago
There is something wrong with your build. Clean your build area and try again.
make clean rm -f config.cache ./configure ...
RE: Error Compiling 1.4.60 on Ubuntu - Added by maxentry over 2 years ago
Thanks - I suspected it'd be something simple, but you gotta know it for it to be simple!
I'd previously done the make clean without success, but looks like the rm -f config.cache did the trick.