#4568: Compile error
------------------------------------+-------------------------
Reporter: Leverator | Owner:
Type: bug | Status: new
Priority: normal | Milestone: unspecified
Component: other | Version: git/master
Operating System: GNU/Linux 64bit |
------------------------------------+-------------------------
Hi,
I just pulled the current master from repository and I'm getting now an
compile error:
{{{
g++ -O0 -ggdb -Werror -Wno-enum-compare -Wall -Wextra -Wno-unused-
parameter -Wno-sign-compare -Wcast-align -Wwrite-strings -Wpointer-arith
-Wno-format-security -I/usr/include/harfbuzz -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2
-I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-
gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64
-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtScript
-I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-
gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -fPIC -std=c++11
-fstack-protector -lz -rdynamic -fPIC -o warzone2100 action.o advvis.o
ai.o astar.o atmos.o aud.o baseobject.o bucket3d.o challenge.o cheat.o
clparse.o cluster.o cmddroid.o combat.o component.o configuration.o
console.o data.o design.o difficulty.o display3d.o display.o droid.o
edit3d.o effects.o feature.o fpath.o frontend.o game.o gateway.o
geometry.o group.o hci.o ingameop.o init.o intdisplay.o intelmap.o
intimage.o intorder.o keybind.o keyedit.o keymap.o level_lexer.o levels.o
lighting.o loadsave.o loop.o main.o map.o mapdisplay.o mapgrid.o
mechanics.o message.o miscimd.o mission.o modding.o move.o multibot.o
multigifts.o multiint.o multijoin.o multilimit.o multimenu.o multiopt.o
multiplay.o multistat.o multistruct.o multisync.o objects.o objmem.o
oprint.o order.o pointtree.o power.o projectile.o qtscript.o
qtscriptdebug.o qtscriptfuncs.o radar.o random.o raycast.o research.o
scores.o scriptai.o scriptcb.o scriptextern.o scriptfuncs.o scriptobj.o
scripttabs.o scriptvals.o scriptvals_lexer.o scriptvals_parser.o
selection.o seqdisp.o stats.o structure.o template.o terrain.o text.o
texture.o transporter.o version.o visibility.o warcam.o warzoneconfig.o
wavecast.o wrappers.o multiint_moc.o qtscriptdebug_moc.o
../lib/widget/libwidget.a ../lib/sequence/libsequence.a
../lib/sound/libsound.a ../lib/script/libscript.a
../lib/netplay/libnetplay.a ../lib/ivis_opengl/libivis_opengl.a
../lib/gamelib/libgamelib.a ../lib/exceptionhandler/libexceptionhandler.a
../3rdparty/miniupnpc/libminiupnpc.a ../lib/sdl/libsdl.a
../lib/framework/libframework.a -lSDL2 -lphysfs -lpng16 -lvorbisfile
-lvorbis -ltheora -logg -lopenal -lfribidi -lfreetype -lfribidi
-lfontconfig -lfreetype -lGL -lGLU -lGLEW -lGLU -lGL -lharfbuzz -lGL -lGLU
-lQt5Widgets -lQt5Gui -lQt5Script -lQt5Core -lGLEW -lGLU -lGL -lX11
-lXrandr -lcrypto -lz -rdynamic -fPIC
/usr/bin/ld: ../lib/netplay/libnetplay.a(netplay.o): undefined reference
to symbol 'pthread_create@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing
from command line
collect2: error: ld returned 1 exit status
Makefile:884: die Regel für Ziel „warzone2100“ scheiterte
make[3]: *** [warzone2100] Fehler 1
make[3]: Verzeichnis „/home/torben/Development/warzone2100/src“ wird
verlassen
Makefile:807: die Regel für Ziel „all“ scheiterte
make[2]: *** [all] Fehler 2
make[2]: Verzeichnis „/home/torben/Development/warzone2100/src“ wird
verlassen
Makefile:583: die Regel für Ziel „all-recursive“ scheiterte
make[1]: *** [all-recursive] Fehler 1
make[1]: Verzeichnis „/home/torben/Development/warzone2100“ wird verlassen
Makefile:503: die Regel für Ziel „all“ scheiterte
make: *** [all] Fehler 2
}}}
After adding -lpthread in the last compile command, the problem seems to
be solved.
--
Ticket URL: <http://developer.wz2100.net/ticket/4568>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Warzone2100-project mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-project