I think I'm going to make a couple of changes to installation.

1. Nothing goes outside /usr/local/lib/felix except the users config,
which lives in $HOME/.felix

I seriously hate putting stuff in /usr/local/lib and /usr/local/bin.
It pollutes the system with Felix crap, and there's no reliable way
to remove it (no package manager).

This mean you HAVE to modify your PATH and LD_LIBRARY_PATH for
Felix to work. I hate that too, but its the lesser of two evils.

At present, there's an attempt to minimise the drama by mainly just
installing "flx". The problem is now I'm using plugins we have dynamic 
linkage issues.

Comments appreciated.

2, At present plugins cannot be statically linked. They have to have
a function called "setup" and you cannot statically link that twice.
The setup can easily be fixed to pluginame_setup.

They also have a "_init_" procedure. This has to have a fixed name
for programs, and for initialising instances of plugins, at present.
The only solution is to prefix the module name, which means we may
need to add a switch telling the compiler whether to make a plugin or
not. Possibly not, since there is already a module name derived from
the filename. _init_ can still be exported as such, we just need 
a second "more likely to be unique" export.

There may well be other issues with plugins (there are certain to be
conflicts in symbols with C++ names).

Once it is possible to statically link a plugin, some way for the 
plugin loader to find "pre-linked" plugins is needed. This isn't hard,
Python does it. But it requires a design.

The BIG one is the conflicts mentioned above: the *.a form of a plugin
will contain a lot of functions in common with the main program,
with different names, and some may accidentally get the same name.
There's no fix for this: plugins are "self-contained" executables
(not counting the Felix RTL).

So I don't know if it will work. But I'm tired of the webserver NOT
working because it can't find shared libraries.

--
john skaller
skal...@users.sourceforge.net
http://felix-lang.org




------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to