#2698 multiple compilation errors

Linux
closed-fixed
nobody
compilation (2)
5
2014-06-15
2013-09-30
slidercrank
No

Fedora 19
GCC 4.8.1
d2x-xl-src-1.17.1.7z

I'm experiencing problems compiling the sources.
Upon extraction I can see that makefiles are provided in d2x-xl-makefiles.7z
Should I overwrite existing files or not? These files are conflicting (present both in the game archive and in makefiles archive):

cockpit/Makefile.am
effects/Makefile.am
gameio/Makefile.am
main/Makefile.am
maths/Makefile.am
menus/Makefile.am
ogl/Makefile.am
d2x-xl/INSTALL

if you owerwrite and if not, you'll get the same compilation errors after configuring
./configure --disable-debug --enable-release
and running make:

In file included from bitblt.cpp:18:0:
../include/descent.h:1772:3: error: ‘CTimeout’ does not name a type
CTimeout m_magCalTO;

CTimeout is defined in timeout.h but it's included only if OCULUS_RIFT is defined

including timeout.h unconditionally takes your further until you face another compilation error:

string.cpp: In function ‘int Pow2ize(int)’:
string.cpp:467:33: error: ‘int Pow2ize(int)’ was declared ‘extern’ and later ‘static’ [-fpermissive]
static inline int Pow2ize (int v)
^
In file included from ../include/bitmap.h:56:0,
from ../include/3d.h:20,
from ../include/descent.h:94,
from string.cpp:37:
../include/ogl_texture.h:148:5: error: previous declaration of ‘int Pow2ize(int)’ [-fpermissive]
int Pow2ize (int x);

Fixing this error leads you to another error. and so on...
after an hour I managed to get it to the final stage where it attempts to link objects files into d2x-xl executable but still fails.

Discussion

  • karx11erx

    karx11erx - 2014-05-07

    My Linux installation broke (once again), and I cannot be bothered to fix it anymore. Sorry.

     
  • karx11erx

    karx11erx - 2014-06-15
    • status: open --> closed-fixed
     

Log in to post a comment.