I've downloaded, compiled and installed gdc from it's bitbucket repository.
Then I downloaded, extracted and ran G-WAN from it's site.
I can now compile D2 code using gdc and it runs fine, and I can use G-WAN to load c-script in my browser.
When I try to add a D2 script to my source folder, I can't serve them from G-WAN.
sudo ./gwan
and the program still runs and will work with other pages and c-scripts.
./gwan
and G-WAN fails to start
I don't want to sudo apt-get install gdc
because that's a very old D1 version.
I'm not very strong with my linux-foo that's why I'm asking for help. It's possible that this isn't something I can fix from my end and I need to contact the server's developer.
As an aside, I tried the same thing on a fresh ubuntu vm using dmd and alias gdc="dmd"
and got the exact same results, so I'm leaning towards the thought that G-WAN is configured exclusively for an older version of gdc and D1.
How can I configure my system to make these two applications work together?
This is an issue due to the implementation of GDC. The __data_start
missing symbol is needed in PIC objects (see the source code here).
To make GDC work with G-WAN, you just have to change the GDC configuration options to support shared objects and rebuild GDC.