[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problematic installation leads to errors
Hello!
I detected two bugs, I thought, but I now think
that it was more a problematic installation.
But if you see error messages like
'Error: Module `libX11' doesn't have a LIBRARY directive'.
or
'Error: Symbol file /usr/local/lib/oo2c/VO/sym/Imlib.Sym is corrupt,\
aborting at pos 430'
or
'In file Src/VOApplication.Mod:
845:302 `X11' imports `C' with illegal key'
this mail might be interesting.
The behaviour described here might be interesting to
the compiler developers, too.
1> I work with VisualOberon and therefore I had to install
the interfacemodules for X11. My first attempts with a recent
version lead to the message
'Error: Module `libX11' doesn't have a LIBRARY directive'.
After I moved
'MODULE libX11 [LIBRARY "oo2c_x11" "0:0:0"; INTERFACE "C"];'
within libX11.Mod into the second line (inserted an empty
one before), it compiled without the message.
2> I have problems with compiling modules sometimes. For example:
[shadow@localhost XOS]$ oo2c Src/VOApplication.Mod
Error: Symbol file /usr/local/lib/oo2c/VO/sym/Imlib.Sym is corrupt,\
aborting at pos 430
In file Src/VOApplication.Mod:
845:302 `X11' imports `C' with illegal key
[shadow@localhost XOS]$
'oob Imlib', of course, stops with the same errors. But compiling works
with a different argument to oo2c.
[shadow@localhost XOS]$ oo2c -M Src/VOApplication.Mod
[shadow@localhost XOS]$
'oob Imlib', of course, works correctly now. As I'm working with oberon
as a normal user and Imlib.sym is protected
(-rw-r--r-- 1 root root 2134 May 14 21:57
/usr/local/lib/oo2c/VO/sym/Imlib.Sym)
I couldn't have modified it.
I have the following local directory structure:
<project> - Name of this directory depends on the project it contains.
The executables and some kind of documentation goes here.
Src - Contains all modules.
sym - Directory for the symbol files.
obj - Directory for the object files.
Although in <project> there are no such modules, the compiler
creates the following files sym/X11.Sym, sym/Xkeysymdef.Sym,
sym/Xutil.Sym, obj/X11.h, obj/Xkeysymdef.h and obj/Xutil.h.
Those files seem to be copies of old versions, which have not
been deleted by the installation process of ooc version 1.4.0.
They were put there by VisualOberon or an older version of OOC.
After I removed those old files the above errors seemed to vanish.