On Sun, 10 Aug 2008, Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum wrote:
tinstall creates a installation for the purpose of running the testsuite (and benchmark). Doing anything else with it isn't really supported.
Either use your uninstalled pike to build the module, or install it with "make install".
I used the uninstalled pike before but that had problems locating the specs file. Apparently it was looking for it in build/.../bundles/include/pike/ while specs was in build/.../.
When using 'make tinstall' or 'make install_interactive' to a custom dir precompile.sh gets installed with permissions 644, hence building the module does not work. When setting that to 755 manually I run into the same error as described here before, namely the pike module path seems to be wrong:
precompile: /opt/pike7/bin/pike /opt/pike7/pike/7.7.157/include/pike/precompile.pike json.cmod /opt/pike7/pike/7.7.157/include/pike/precompile.pike:2:Couldn't read include file "/opt/pike7/pike/7.7.157/include/lib/modules/Tools.pmod/Standalone.pmod/precompile.pike". Pike: Failed to compile script.
I then added a link in .../include/ to ../lib/ and precompile works now. When trying to build my module I get the following warnings:
In file included from /opt/pike7/pike/7.7.157/include/pike/global.h:98, from /opt/pike7/pike/7.7.157/include/pike/interpret.h:11, from src/json.rl:23: /opt/pike7/pike/7.7.157/include/pike/machine.h:1291:1: warning: "PACKAGE_BUGREPORT" redefined <command line>:1:1: warning: this is the location of the previous definition /opt/pike7/pike/7.7.157/include/pike/machine.h:1294:1: warning: "PACKAGE_NAME" redefined <command line>:1:1: warning: this is the location of the previous definition /opt/pike7/pike/7.7.157/include/pike/machine.h:1297:1: warning: "PACKAGE_STRING" redefined <command line>:1:1: warning: this is the location of the previous definition /opt/pike7/pike/7.7.157/include/pike/machine.h:1300:1: warning: "PACKAGE_TARNAME" redefined <command line>:1:1: warning: this is the location of the previous definition /opt/pike7/pike/7.7.157/include/pike/machine.h:1303:1: warning: "PACKAGE_VERSION" redefined <command line>:1:1: warning: this is the location of the previous definition
Not sure if that is a problem. Also compilation breaks because in the .c generated by precompile from the .cmod a define for DEFAULT_CMOD_STORAGE is missing. The compile complains about lines like:
DEFAULT_CMOD_STORAGE ptrdiff_t f_validate_fun_num = 0; DEFAULT_CMOD_STORAGE void f_validate(INT32 args) {
precompile.pike looks like that define should be there.
more hints please
arne