Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 1215

Summary: Lyx ebuild error
Product: Gentoo Linux Reporter: Simon Sandlund <orbb>
Component: New packagesAssignee: Dan Armak (RETIRED) <danarmak>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 1.0 RC6 r14   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Simon Sandlund 2002-03-18 09:16:58 UTC
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..?
Comment 1 Dan Armak (RETIRED) gentoo-dev 2002-03-22 09:38:19 UTC
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. 
Comment 2 Simon Sandlund 2002-03-22 10:42:38 UTC
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.









Comment 3 Dan Armak (RETIRED) gentoo-dev 2002-03-22 10:53:32 UTC
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. 
Comment 4 Dan Armak (RETIRED) gentoo-dev 2002-03-23 17:50:56 UTC
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.