A comment to POL under Linux and dynamically linked executables
Posted: Mon Dec 21, 2015 1:24 pm
Hello,
I am just trying to use the newest POL core under Linux. I have Debian wheezy on our server.
If you look into the docs how to compile, confusion starts. There is something about vagrant, which seems to be out of date (?).
I tried to use Ubuntu 14.0 LTS on a VM, and managed to compile. Also a helpful user here provided a link to a release compiled under CentOS.
Both releases are unusable, because the needed libraries are not here. For CentOS-binaries the libcrypt.so is the wrong version, for the Ubuntu compiled executables more is missing. I used GCC-4.8, which probably is the reason. Every damned Linux-distro uses more or less ancient libraries, every one has different defaults. If you have a server with email, apache web, POL, mysql, and a lot of other services, you cannot simply advance to the next release, which in Debians case would be jessy. It is a lot of work, and we all have limited time for this hobby.
So - is it really necessary to dynamically link? This forces us all to build the build environment on the system we currently have on our servers. Compiling on other systems like CentOS or Ubuntu is out because of the library confusion.
Under Windows you can build POL with an easy to use script, and it runs. Is this not possible under Linux??
I will try now to build under Debian wheezy, the necessary tools should be there. But dynamically linking for an application, which should run on every Linux beyond a minimum version is impractical, I think. This also questions the 'stable development environment' which is advocated with Vagrant (but no longer used I think?). There seems to be only the option to compile yourself on your system, with all the troubles this may bring, and it either forces the POL developers to think deeply about what they use, or to force users to upgrade their servers with the latest release immediately, what no server admin will want to do.
As a side note: The distro which is generated after the building process provides the new libraries in ./lib, but they have the wrong names, you need to symlink them to lib***.so.99. I do not know if this is the usual way, but I can live with this...
With statically linked executables the dependencies are much lower, and it seems to be much more practical. But maybe I am wrong...
Dynamically linking also makes it practically impossible to have a downloadable release for Linux. So every single POL user has to go through this, if she or he is able...
OWHorus
I am just trying to use the newest POL core under Linux. I have Debian wheezy on our server.
If you look into the docs how to compile, confusion starts. There is something about vagrant, which seems to be out of date (?).
I tried to use Ubuntu 14.0 LTS on a VM, and managed to compile. Also a helpful user here provided a link to a release compiled under CentOS.
Both releases are unusable, because the needed libraries are not here. For CentOS-binaries the libcrypt.so is the wrong version, for the Ubuntu compiled executables more is missing. I used GCC-4.8, which probably is the reason. Every damned Linux-distro uses more or less ancient libraries, every one has different defaults. If you have a server with email, apache web, POL, mysql, and a lot of other services, you cannot simply advance to the next release, which in Debians case would be jessy. It is a lot of work, and we all have limited time for this hobby.
So - is it really necessary to dynamically link? This forces us all to build the build environment on the system we currently have on our servers. Compiling on other systems like CentOS or Ubuntu is out because of the library confusion.
Under Windows you can build POL with an easy to use script, and it runs. Is this not possible under Linux??
I will try now to build under Debian wheezy, the necessary tools should be there. But dynamically linking for an application, which should run on every Linux beyond a minimum version is impractical, I think. This also questions the 'stable development environment' which is advocated with Vagrant (but no longer used I think?). There seems to be only the option to compile yourself on your system, with all the troubles this may bring, and it either forces the POL developers to think deeply about what they use, or to force users to upgrade their servers with the latest release immediately, what no server admin will want to do.
As a side note: The distro which is generated after the building process provides the new libraries in ./lib, but they have the wrong names, you need to symlink them to lib***.so.99. I do not know if this is the usual way, but I can live with this...
With statically linked executables the dependencies are much lower, and it seems to be much more practical. But maybe I am wrong...
Dynamically linking also makes it practically impossible to have a downloadable release for Linux. So every single POL user has to go through this, if she or he is able...
OWHorus