DarkstarProject / darkstar

DEPRECATED - FFXI Server Emulator - See Project Topaz
https://github.com/project-topaz/topaz
GNU General Public License v3.0
455 stars 549 forks source link

Linux compile failing #6421

Closed jefferyrlc closed 4 years ago

jefferyrlc commented 4 years ago

I have:

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

autogenlog.log configurelog.log makelog.log

jefferyrlc commented 4 years ago

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