Compilation issue

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
matt200288
Posts: 2
Joined: Thu May 14, 2020 1:34 pm

Compilation issue

Post by matt200288 »

Hi I'm having some problems compiling exult-1.4.9rcl from the downloads section.
I Have all recent zlib, SDL, OGG Vorbis, and Timidity patches... also got automake, autoconf, and libtool.

autogen.sh... all's good
./configure....all's good
make........... Failure

if someone could help me get this thing installed it would be much appreciated... provided is a link to the code

local-Aspire-M3100 exult-1.4.9rc1 # make
make all-recursive
make[1]: Entering directory `/home/local/Desktop/exult-1.4.9rc1'
Making all in files
make[2]: Entering directory `/home/local/Desktop/exult-1.4.9rc1/files'
Making all in zip
make[3]: Entering directory `/home/local/Desktop/exult-1.4.9rc1/files/zip'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/local/Desktop/exult-1.4.9rc1/files/zip'
make[3]: Entering directory `/home/local/Desktop/exult-1.4.9rc1/files'
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I./.. -I./../headers -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DXWIN -O2 -Wno-long-long -DEXULT_DATADIR=\"/usr/local/share/exult\" -g -O2 -MT Flat.lo -MD -MP -MF .deps/Flat.Tpo -c -o Flat.lo Flat.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I./.. -I./../headers -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DXWIN -O2 -Wno-long-long -DEXULT_DATADIR=\"/usr/local/share/exult\" -g -O2 -MT Flat.lo -MD -MP -MF .deps/Flat.Tpo -c Flat.cc -o Flat.o
In file included from databuf.h:27:0,
from U7file.h:26,
from Flat.h:25,
from Flat.cc:26:
U7obj.h:144:2: error: 'ptrdiff_t' does not name a type
In file included from U7file.h:26:0,
from Flat.h:25,
from Flat.cc:26:
databuf.h: In member function 'virtual bool BufferDataSource::eof()':
databuf.h:306:59: error: expected type-specifier before 'ptrdiff_t'
databuf.h:306:59: error: expected '>' before 'ptrdiff_t'
databuf.h:306:59: error: expected '(' before 'ptrdiff_t'
databuf.h:306:59: error: 'ptrdiff_t' was not declared in this scope
databuf.h:306:59: note: suggested alternatives:
/usr/include/c++/4.6/i686-linux-gnu/./bits/c++config.h:156:28: note: 'std::ptrdiff_t'
/usr/include/c++/4.6/i686-linux-gnu/./bits/c++config.h:156:28: note: 'std::ptrdiff_t'
databuf.h:306:75: error: expected ')' before ';' token
make[3]: *** [Flat.lo] Error 1
make[3]: Leaving directory `/home/local/Desktop/exult-1.4.9rc1/files'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/local/Desktop/exult-1.4.9rc1/files'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/local/Desktop/exult-1.4.9rc1'
make: *** [all] Error 2


I did everything as root so make life easier, as to avoid permissions issues... any help is much appreciated

-Matt-
matt200288
Posts: 2
Joined: Thu May 14, 2020 1:34 pm

Re: Compilation issue

Post by matt200288 »

In addition i'm running Linux Mint 13 mate
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: Compilation issue

Post by Dominus »

Can you try with svn (which we recommend anyway)

And use the search next time - u7file.h gives the same answer I just gave ;)
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Locked