X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/a7ece50826e68ef6fff2c541f4fa51ed25cba263..4eba3f631b91df2d250fa11c07260e97b7795adf:/doc/bugs/2.45_Compilation_error.mdwn diff --git a/doc/bugs/2.45_Compilation_error.mdwn b/doc/bugs/2.45_Compilation_error.mdwn index e2c39ebdb..82dbc3e45 100644 --- a/doc/bugs/2.45_Compilation_error.mdwn +++ b/doc/bugs/2.45_Compilation_error.mdwn @@ -8,3 +8,36 @@ I have perl 5.10.0. Ikiwiki 2.44 compiles fine. Compiling 2.45 fails after 'make BEGIN failed--compilation aborted at (eval 23) line 2. BEGIN failed--compilation aborted at (eval 10) line 21. make: *** [extra_build] Error 255 + +> I can't reproduce this. It looks like your IkiWiki.pm is out of sync with +> your IkiWiki/Plugin/shortcut.pm. The ones distributed in 2.45 are in +> sync. Or your perl is failing to use the right version of Ikiwiki.pm, +> perhaps using a previously installed version. But the -Iblib/lib +> instructs perl to look in that directory first, and the Makefile +> puts Ikiwiki.pm there. --[[Joey]] + +>> I removed all traces of the previous installation, and now 2.45 compiles. +>> I don't know why it was picking up the old version of Ikiwiki.pm, but now it +>> works. Please close this bug, and thanks for the help. + +>>> Where were the files from the old installation? I still don't +>>> understand why they would be seen, since -Iblib/lib is passed to perl. +>>> --[[Joey]] + +>>>> They were under /usr/local/{bin,lib,share}. I can try to provide more info, +>>>> or try to reproduce it, if you need me to. + +>>>>> Well, here are some things to try. + + perl -Iblib/lib -V + +>>>>> This should have blib/lib first in the listed @INC + + joey@kodama:~/src/ikiwiki>strace perl -Iblib/lib -e 'use IkiWiki' 2>&1 |grep IkiWiki.pm + stat64("blib/lib/IkiWiki.pmc", 0xbfa1594c) = -1 ENOENT (No such file or directory) + stat64("blib/lib/IkiWiki.pm", {st_mode=S_IFREG|0444, st_size=31982, ...}) = 0 + open("blib/lib/IkiWiki.pm", O_RDONLY|O_LARGEFILE) = 5 + +>>>>> This is how perl finds IkiWiki.pm here. Note that I've run "make" first. + +[[done]]