Linux compile failing
jefferyrlc opened this issue · comments
I have:
- searched existing issues (http://github.com/darkstarproject/darkstar/issues/) to see if the issue I am posting has already been addressed or opened by another contributor
- checked the commit log to see if my issue has been resolved since my server was last updated
Client Version (type /ver
in game) :
N/A
Source Branch (master/stable) :
master
Additional Information (Steps to reproduce/Expected behavior) :
git clone https://github.com/DarkStarProject/darkstar.git
cd darkstar
sh autogen.sh &> autogenlog.log
./configure --enable-debug=gdb > configurelog.log
make -j 12 &> makelog.log
compile fails with the following error:
/usr/bin/ld: dsgame-instance_loader.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/usr/bin/ld: /usr/lib/libpthread.so.0: error adding symbols: DSO missing from command line
My system
gcc: 9.2.1
cmake: 3.16.4-1
zeromq: 4.3.2-1
mariadb: 10.4.12-1
luajit: 2.0.5-2
automake: 1.16.1-2
autoconf: 2.69-7
pkgconf: 1.6.3-3
distribution: Manjaro Linux 19.0.1-1
kernel: linux-tkg-pds-zen 5.5.6-17
changing a line in Makefile.am lets it compile:
I had to change line 21
LIBS_ALL += -lzmq
to
LIBS_ALL += -lzmq -lpthread
Not sure how to change the autogen/configure scripts to make this change permenant