Adrian Gschwend wrote:
Adrian Gschwend wrote:
I can't compile latest trunk on FreeBSD 7.0-STABLE, bootstrap works, configure fails here: [...]
I could solve that problem at least:
My BSD has the following autoconf installed:
autoconf-2.61_2 autoconf-2.62
-> autoconf-2.62 is the problem, bootstrap decides to take that one in my case and that doesn't work. Doing it with 2.61 solves the issue.
However, mod_spidermonkey doesn't want to compile now, I get plenty of errors like:
making all mod_spidermonkey "./config/autoconf.mk", line 112: Need an operator "./config/autoconf.mk", line 113: Need an operator "./config/autoconf.mk", line 114: Need an operator "./config/autoconf.mk", line 120: Need an operator "./config/autoconf.mk", line 121: Need an operator "./config/autoconf.mk", line 122: Need an operator "./config/autoconf.mk", line 127: Need an operator "./config/autoconf.mk", line 128: Need an operator "./config/autoconf.mk", line 129: Need an operator "Makefile", line 52: Need an operator "Makefile", line 55: Missing dependency operator "Makefile", line 56: Need an operator "Makefile", line 58: Need an operator "Makefile", line 59: Need an operator "Makefile", line 60: Need an operator "Makefile", line 61: Need an operator "./config/rules.mk", line 73: Need an operator "./config/rules.mk", line 75: Need an operator [...]
The Makefile looks like this:
you need to use gmake on *BSD. fbsd-64# make mod_spidermonkey-clean `libfreeswitch.la' is up to date. making clean mod_spidermonkey fbsd-64# make mod_spidermonkey-install /bin/sh /usr/local/src/freeswitch/quiet_libtool --mode=install /usr/bin/install -c 'libfreeswitch.la' '/usr/local/freeswitch/lib/libfreeswitch.la' /usr/bin/install -c .libs/libfreeswitch.so.1 /usr/local/freeswitch/lib/libfreeswitch.so.1 (cd /usr/local/freeswitch/lib && { ln -s -f libfreeswitch.so.1 libfreeswitch.so || { rm -f libfreeswitch.so && ln -s libfreeswitch.so.1 libfreeswitch.so; }; }) (cd /usr/local/freeswitch/lib && { ln -s -f libfreeswitch.so.1 libfreeswitch.so || { rm -f libfreeswitch.so && ln -s libfreeswitch.so.1 libfreeswitch.so; }; }) /usr/bin/install -c .libs/libfreeswitch.lai /usr/local/freeswitch/lib/libfreeswitch.la /usr/bin/install -c .libs/libfreeswitch.a /usr/local/freeswitch/lib/libfreeswitch.a chmod 644 /usr/local/freeswitch/lib/libfreeswitch.a ranlib /usr/local/freeswitch/lib/libfreeswitch.a ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/freeswitch/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- making install mod_spidermonkey Compiling mod_spidermonkey.c... Creating mod_spidermonkey.so... "./config/autoconf.mk", line 112: Need an operator "./config/autoconf.mk", line 113: Need an operator "./config/autoconf.mk", line 114: Need an operator "./config/autoconf.mk", line 120: Need an operator "./config/autoconf.mk", line 121: Need an operator "./config/autoconf.mk", line 122: Need an operator "./config/autoconf.mk", line 127: Need an operator "./config/autoconf.mk", line 128: Need an operator "./config/autoconf.mk", line 129: Need an operator "Makefile", line 52: Need an operator "Makefile", line 55: Missing dependency operator "Makefile", line 56: Need an operator "Makefile", line 58: Need an operator "Makefile", line 59: Need an operator "Makefile", line 60: Need an operator "Makefile", line 61: Need an operator "./config/rules.mk", line 73: Need an operator "./config/rules.mk", line 75: Need an operator "./config/rules.mk", line 77: Need an operator "./config/rules.mk", line 79: Need an operator "./config/rules.mk", line 81: Need an operator "./config/config.mk", line 55: Need an operator "./config/config.mk", line 57: Need an operator "./config/config.mk", line 59: Need an operator "./config/config.mk", line 61: Need an operator "./config/config.mk", line 77: Need an operator "./config/config.mk", line 80: Need an operator "./config/config.mk", line 84: Missing dependency operator "./config/config.mk", line 86: Need an operator "./config/config.mk", line 88: Missing dependency operator "./config/config.mk", line 90: Need an operator "./config/config.mk", line 91: Missing dependency operator "./config/config.mk", line 94: Need an operator "./config/config.mk", line 95: Missing dependency operator "./config/config.mk", line 97: Missing dependency operator "./config/config.mk", line 99: Need an operator "./config/config.mk", line 101: Need an operator "./config/config.mk", line 102: Need an operator "./config/config.mk", line 105: Need an operator "./config/config.mk", line 106: Need an operator "./config/config.mk", line 107: Need an operator "./config/config.mk", line 111: Need an operator "./config/config.mk", line 113: Need an operator "./config/config.mk", line 127: Missing dependency operator "./config/config.mk", line 129: Need an operator "./config/config.mk", line 131: Missing dependency operator "./config/config.mk", line 133: Need an operator "./config/config.mk", line 135: Missing dependency operator "./config/config.mk", line 137: Need an operator "./config/config.mk", line 139: Missing dependency operator "./config/config.mk", line 141: Need an operator "./config/config.mk", line 143: Missing dependency operator "./config/config.mk", line 145: Need an operator "./config/config.mk", line 154: Missing dependency operator "./config/config.mk", line 157: Need an operator "./config/rules.mk", line 83: Need an operator "./config/rules.mk", line 85: Need an operator "./config/rules.mk", line 86: Need an operator "./config/rules.mk", line 87: Need an operator "./config/rules.mk", line 93: Need an operator "./config/rules.mk", line 94: Need an operator "./config/rules.mk", line 95: Need an operator "./config/rules.mk", line 108: Need an operator "./config/rules.mk", line 109: Missing dependency operator "./config/rules.mk", line 115: Missing dependency operator "./config/rules.mk", line 120: Need an operator "./config/rules.mk", line 125: Need an operator "./config/rules.mk", line 127: Need an operator "./config/rules.mk", line 130: Missing dependency operator "./config/rules.mk", line 132: Need an operator "./config/rules.mk", line 133: Need an operator "./config/rules.mk", line 135: Need an operator "./config/rules.mk", line 136: Need an operator "./config/rules.mk", line 138: Need an operator "./config/rules.mk", line 139: Need an operator "./config/rules.mk", line 141: Need an operator "./config/rules.mk", line 142: Missing dependency operator "./config/rules.mk", line 144: Need an operator "./config/rules.mk", line 145: Need an operator "./config/rules.mk", line 146: Missing dependency operator "./config/rules.mk", line 148: Need an operator "./config/rules.mk", line 149: Need an operator "./config/rules.mk", line 150: Need an operator "./config/rules.mk", line 151: Need an operator "./config/rules.mk", line 153: Need an operator "./config/rules.mk", line 154: Need an operator "./config/rules.mk", line 162: Need an operator "./config/rules.mk", line 165: Need an operator "./config/rules.mk", line 167: Missing dependency operator "./config/rules.mk", line 169: Need an operator "./config/rules.mk", line 175: Missing dependency operator "./config/rules.mk", line 177: Need an operator "./config/rules.mk", line 181: Need an operator "./config/rules.mk", line 182: Need an operator "./config/rules.mk", line 184: Need an operator "./config/rules.mk", line 186: Need an operator "./config/rules.mk", line 188: Need an operator "./config/rules.mk", line 200: Need an operator "./config/rules.mk", line 234: Need an operator "./config/rules.mk", line 236: Need an operator "./config/rules.mk", line 240: Need an operator "./config/rules.mk", line 241: warning: duplicate script for target "ifdef" ignored "./config/rules.mk", line 247: warning: duplicate script for target "ifdef" ignored "./config/rules.mk", line 253: warning: duplicate script for target "ifdef" ignored "./config/rules.mk", line 254: warning: duplicate script for target "ifdef" ignored "./config/rules.mk", line 255: Need an operator "./config/rules.mk", line 256: Need an operator "./config/rules.mk", line 257: warning: duplicate script for target "ifdef" ignored "./config/rules.mk", line 263: warning: duplicate script for target "ifdef" ignored "./config/rules.mk", line 269: warning: duplicate script for target "ifdef" ignored "./config/rules.mk", line 270: warning: duplicate script for target "ifdef" ignored "./config/rules.mk", line 271: Need an operator "./config/rules.mk", line 272: Need an operator "./config/rules.mk", line 273: warning: duplicate script for target "ifdef" ignored "./config/rules.mk", line 279: warning: duplicate script for target "ifdef" ignored "./config/rules.mk", line 285: warning: duplicate script for target "ifdef" ignored "./config/rules.mk", line 286: warning: duplicate script for target "ifdef" ignored "./config/rules.mk", line 287: Need an operator Error expanding embedded variable. *** Error code 2 Stop in /usr/local/src/freeswitch/src/mod/languages/mod_spidermonkey. *** Error code 1 Stop in /usr/local/src/freeswitch/src/mod/languages/mod_spidermonkey. *** Error code 1 Stop in /usr/local/src/freeswitch/src/mod. *** Error code 1 Stop in /usr/local/src/freeswitch. fbsd-64# gmake mod_spidermonkey-install /bin/sh /usr/local/src/freeswitch/quiet_libtool --mode=install /usr/bin/install -c 'libfreeswitch.la' '/usr/local/freeswitch/lib/libfreeswitch.la' /usr/bin/install -c .libs/libfreeswitch.so.1 /usr/local/freeswitch/lib/libfreeswitch.so.1 (cd /usr/local/freeswitch/lib && { ln -s -f libfreeswitch.so.1 libfreeswitch.so || { rm -f libfreeswitch.so && ln -s libfreeswitch.so.1 libfreeswitch.so; }; }) (cd /usr/local/freeswitch/lib && { ln -s -f libfreeswitch.so.1 libfreeswitch.so || { rm -f libfreeswitch.so && ln -s libfreeswitch.so.1 libfreeswitch.so; }; }) /usr/bin/install -c .libs/libfreeswitch.lai /usr/local/freeswitch/lib/libfreeswitch.la /usr/bin/install -c .libs/libfreeswitch.a /usr/local/freeswitch/lib/libfreeswitch.a chmod 644 /usr/local/freeswitch/lib/libfreeswitch.a ranlib /usr/local/freeswitch/lib/libfreeswitch.a ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/freeswitch/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- making install mod_spidermonkey cd config; gmake -j1 install cd pr; gmake -j1 install cd include; gmake install cd md; gmake install cd private; gmake install cd obsolete; gmake install cd src; gmake install cd io; gmake install cd malloc; gmake install cd md; gmake install cd unix; gmake install cd memory; gmake install cd misc; gmake install cd threads; gmake install cd pthreads; gmake install cd lib; gmake -j1 install cd ds; gmake install cd libc; gmake install cd include; gmake install cd src; gmake install ./shtool install -c -m 644 .libs/libjs.lai /usr/local/freeswitch/lib/libjs.la ./shtool install -c -m 644 .libs/libjs.a /usr/local/freeswitch/lib/libjs.a chmod 644 /usr/local/freeswitch/lib/libjs.a ranlib /usr/local/freeswitch/lib/libjs.a ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/freeswitch/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- installing mod_spidermonkey.so