When trying to emerge the lyx-base ebuild it always fails with _lots_ of errors. Just to pick a few : ../../src/minibuffer.h:25: type specifier omitted for parameter ../../src/minibuffer.h:25: parse error before `,' ../../src/minibuffer.h:57: `FL_OBJECT' was not declared in this scope ../../src/minibuffer.h:57: `ob' was not declared in this scope ../../src/minibuffer.h:57: parse error before `)' There HUNDREDS of these but I think it's all because of a missing file - forms.h It's included in minibuffer and it's required by lyx-base but I did 'emerge lyx' so it should've been installed I think. I tried to rebuild after emerging "xforms" again but I get the same error so this might actually be a problem of the xform ebuild..?
Well, do you have /usr/X11R6/include/forms.h present? If you do, please post the beginning of the error messages, the part you think relevant to forms.h.
Yes, I have /usr/X11R6/include/forms.h These are the things i managed to catch from the output of the build: (From configure) checking for X11/forms.h... no checking for forms.h... no (From build) In file included from formula.C:29: ../../src/minibuffer.h:5: forms.h: No such file or directory In file included from formulamacro.C:29: ../../src/BufferView.h:19: forms.h: No such file or directory In file included from formulamacro.C:29: ../../src/BufferView.h:19: forms.h: No such file or directory In file included from formula.C:35: ../../src/lyx_gui_misc.h:21: forms.h: No such file or directory In file included from formula.C:37: ../../src/LyXView.h:20: forms.h: No such file or directory A short while after this the compilation stops with an error: formula.C: In method `enum UpdatableInset::RESULT InsetFormula::LocalDispatch(BufferView *, int, const string &)': formula.C:987: implicit declaration of function `int sscanf(...)' make[3]: *** [formula.lo] Error 1 I hope that's enough.
Please send me the config.log from the lyx build directory (/var/tmp/portage/lyx-base-1.1.6.4/work/lyx-1.1.6fix4). It'll have details abut wher it looked for forms.h and why it didn't find it. Based on what you've told me already, though, my guess is that the lyx configure wants a /usr/include/X11 -> /usr/X11R6/include symlink or something like that, since it says it looks for X11/forms.h. The config.log will tell for sure though.
Well, I compared my configure process with the config.log you sent me and the difference is that when looking for <forms.h> (not <X11/forms.h>) it runs the compiler with -I /usr/X11R6/include for me, but not for you. I've looked over the configure script and I've no idea where it can be coming from. I don't feel like tracking it down right now, so I'll add a --with-extra-inc=/usrx11R6/include parameter to the ebuild which should make it work and maybe look into it some other time. I'm committing this as lyx-base-1.1.6.4-r3.