Author Topic: [not a bug] git 7fec0f1: Linking issues on git build  (Read 1140 times)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
[not a bug] git 7fec0f1: Linking issues on git build
« on: 14 January 2012, 13:07:41 »
I'm having trouble linking my new shiny git build.

First of all, my setup (build-mg.sh is unmodified):

Code: [Select]
tomreyn@atibox:~/SCM/megaglest-source-master$ ls -l
insgesamt 48
drwxrwxr-x 5 tomreyn tomreyn  4096 2012-01-14 13:47 build
-rw-rw-r-- 1 tomreyn tomreyn   388 2012-01-14 02:50 build-mg.bat
-rwxrwxr-x 1 tomreyn tomreyn   976 2012-01-14 02:50 build-mg.sh
-rwxrwxr-x 1 tomreyn tomreyn  3826 2012-01-14 02:50 build-mg-win32.sh
-rw-rw-r-- 1 tomreyn tomreyn 12292 2012-01-14 02:50 CMakeLists.txt
lrwxrwxrwx 1 tomreyn tomreyn    25 2012-01-14 13:34 data -> ../megaglest-data-master/
drwxrwxr-x 2 tomreyn tomreyn  4096 2012-01-14 02:50 docs
drwxrwxr-x 9 tomreyn tomreyn  4096 2012-01-14 13:35 glest_game
drwxrwxr-x 7 tomreyn tomreyn  4096 2012-01-14 02:50 mk
drwxrwxr-x 9 tomreyn tomreyn  4096 2012-01-14 02:50 source

tomreyn@atibox:~/SCM/megaglest-source-master$ ls -l data
lrwxrwxrwx 1 tomreyn tomreyn 25 2012-01-14 13:34 data -> ../megaglest-data-master/

tomreyn@atibox:~/SCM/megaglest-source-master$ git log -1 --pretty=tformat:"%h (%H)"
996e031 (996e031e690a97e9c15641436f20ef4cc49a7ee7)

tomreyn@atibox:~/SCM/megaglest-source-master$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 443 commits.
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#    build/
#    data
#    source/tools/glexemel/g2xml
#    source/tools/glexemel/xml2g
nothing added to commit but untracked files present (use "git add" to track)

tomreyn@atibox:~/SCM/megaglest-source-master$ cd data/

tomreyn@atibox:~/SCM/megaglest-source-master/data$ git log -1 --pretty=tformat:"%h (%H)"
7fec0f1 (7fec0f13503288c1894ce86b38cccbbcd3136f35)

tomreyn@atibox:~/SCM/megaglest-source-master/data$ git status
# On branch master
nothing to commit (working directory clean)

tomreyn@atibox:~/SCM/megaglest-source-master/data$ cd ..

The build actually works well, just linking fails with /usr/bin/ld: cannot find -lrtmp:
Code: [Select]
tomreyn@atibox:~/SCM/megaglest-source-master$ ./build-mg.sh
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Build type for this compile will be:
-- Detected GNUC Compiler...
-- *NOTE: Checking for max SSE LEVEL [1]
-- Max SSE desired: [1]
-- Performing Test HAS_SSE3_EXTENSIONS
-- Performing Test HAS_SSE3_EXTENSIONS - Success
-- Performing Test HAS_SSE2_EXTENSIONS
-- Performing Test HAS_SSE2_EXTENSIONS - Success
-- Performing Test HAS_SSE_EXTENSIONS
-- Performing Test HAS_SSE_EXTENSIONS - Success
-- Found SSE extensions, using flags: -msse -mfpmath=sse
-- *NOTE: using SSE for STREFLOP.
-- Found Subversion: /usr/bin/svn (found version "1.6.12")
-- *NOTE: NOT USING a Custom Data Install Path...
-- **Found game source code.
-- Will try to build MegaGlest shared library
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so
-- Force Curl dynamic: OFF
-- CURL RET = 0
-- USING CURL STATIC LIBS: /usr/lib/x86_64-linux-gnu/libcurl.a -Wl,-Bsymbolic-functions -lidn -lgcrypt -llber -lldap -lrt -lgssapi_krb5 -lz -lgnutls -lgcrypt -lrtmp -lz -lgnutls
-- curl version=[7.21.6]
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so
-- Looking for static Xerces-C lib...
-- Found static Xerces-C lib [/usr/lib/libxerces-c.a]
-- Found Xerces-C: -Bstatic /usr/lib/libxerces-c.a
--               : /usr/include
--        Version: 3.1.1
-- Found OpenAL: /usr/lib/libopenal.so
-- LUA_INC: /usr/include/lua5.1
-- LUA_LIB: /usr/lib/x86_64-linux-gnu/liblua5.1.a
-- Looking for lua_close in /usr/lib/x86_64-linux-gnu/liblua5.1.a
-- Looking for lua_close in /usr/lib/x86_64-linux-gnu/liblua5.1.a - not found
-- Found Lua library: /usr/lib/x86_64-linux-gnu/liblua5.1.a
-- Found Lua headers: /usr/include/lua5.1
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.a
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.3.4")
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.a
-- **NOTE: FontConfig support was detected and enabled.
-- Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so
-- Found FTGL libraries at /usr/lib/libftgl.a and includes at /usr/include
-- **NOTE: FTGL font support was detected and enabled.
-- *** Using EMBEDDED miniupnpc since dev system does not have it... MINIUPNP_FOUND []
-- *** Using EMBEDDED libircclient since dev system does not have it... IRCCLIENT_FOUND []
-- Building shared game library as a STATIC library and saving to []
-- EXTERNAL_LIBS = [-Bstatic /usr/lib/x86_64-linux-gnu/libcurl.a -Wl,-Bsymbolic-functions -lidn -lgcrypt -llber -lldap -lrt -lgssapi_krb5 -lz -lgnutls -lgcrypt -lrtmp -lz -lgnutls;/usr/lib/libSDLmain.a;/usr/lib/libSDL.so;-lpthread;/usr/lib/x86_64-linux-gnu/libGLU.so;/usr/lib/x86_64-linux-gnu/libGL.so;/usr/lib/x86_64-linux-gnu/libSM.so;/usr/lib/x86_64-linux-gnu/libICE.so;/usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so;-Bstatic /usr/lib/libxerces-c.a;/usr/lib/libopenal.so;/usr/lib/x86_64-linux-gnu/liblua5.1.a;/usr/lib/x86_64-linux-gnu/libjpeg.a;/usr/lib/x86_64-linux-gnu/libpng.a;/usr/lib/x86_64-linux-gnu/libfontconfig.so;/usr/lib/libftgl.a;/usr/lib/x86_64-linux-gnu/libfreetype.so;/usr/lib/libGLEW.a]
-- Will try to build MegaGlest game
-- OGG/Vorbis includes: /usr/include
-- OGG library        : /usr/lib/x86_64-linux-gnu/libogg.so
-- Vorbis library     : /usr/lib/x86_64-linux-gnu/libvorbis.so
-- Vorbis file library: /usr/lib/x86_64-linux-gnu/libvorbisfile.so
-- LUA_INC: /usr/include/lua5.1
-- LUA_LIB: /usr/lib/x86_64-linux-gnu/liblua5.1.a
-- Found Lua library: /usr/lib/x86_64-linux-gnu/liblua5.1.a
-- Found Lua headers: /usr/include/lua5.1
-- Force Curl dynamic: OFF
-- CURL RET = 0
-- USING CURL STATIC LIBS: /usr/lib/x86_64-linux-gnu/libcurl.a -Wl,-Bsymbolic-functions -lidn -lgcrypt -llber -lldap -lrt -lgssapi_krb5 -lz -lgnutls -lgcrypt -lrtmp -lz -lgnutls
-- Will try to build MegaGlest map editor
-- DEBUG FreeBSD: /usr/bin/wx-config
-- run the wx-config program to get cxxflags:
-- /usr/bin/wx-config  --cxxflags
-- Found wxWidgets: TRUE
-- Will try to build MegaGlest model viewer
-- DEBUG FreeBSD: /usr/bin/wx-config
-- run the wx-config program to get cxxflags:
-- /usr/bin/wx-config  --cxxflags
-- Will try to build MegaGlest Configurator
-- DEBUG FreeBSD: /usr/bin/wx-config
-- run the wx-config program to get cxxflags:
-- /usr/bin/wx-config  --cxxflags
-- Will try to build MegaGlest model import/export tools
-- Found LibXml2: /usr/lib/libxml2.so
-- **Found game data.
-- =====> Found Define: STREFLOP_SSE
-- =====> Found Define: CURL_STATICLIB
-- =====> DirDefs: STREFLOP_SSECURL_STATICLIB
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user1/SCM/megaglest-source-master/build
[  0%] [  0%] Generating mg.tmp
[  1%] Built target g2xml
Built target xml2g
[  1%] Built target run
[ 25%] Built target streflop
[ 64%] Built target libmegaglest
Linking CXX executable ../../../mk/linux/megaglest_g3dviewer
Linking CXX executable ../../../mk/linux/megaglest_configurator
Linking CXX executable ../../../mk/linux/megaglest_editor
Scanning dependencies of target megaglest
[ 64%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/facilities/game_util.cpp.o
/usr/bin/ld: cannot find -lrtmp
collect2: ld returned 1 exit status
make[2]: *** [../mk/linux/megaglest_editor] Error 1
make[1]: *** [source/glest_map_editor/CMakeFiles/megaglest_editor.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/bin/ld: cannot find -lrtmp
collect2: ld returned 1 exit status
make[2]: *** [../mk/linux/megaglest_configurator] Error 1
make[1]: *** [source/configurator/CMakeFiles/megaglest_configurator.dir/all] Error 2
/usr/bin/ld: cannot find -lrtmp
collect2: ld returned 1 exit status
make[2]: *** [../mk/linux/megaglest_g3dviewer] Error 1
make[1]: *** [source/g3d_viewer/CMakeFiles/megaglest_g3dviewer.dir/all] Error 2
Linking CXX executable ../../../mk/linux/megaglest
/usr/bin/ld: cannot find -lrtmp
collect2: ld returned 1 exit status
make[2]: *** [../mk/linux/megaglest] Error 1
make[1]: *** [source/glest_game/CMakeFiles/megaglest.dir/all] Error 2
make: *** [all] Error 2
ERROR: MAKE failed.

Does -lgcrypt expect a file system object argument by chance?
« Last Edit: 23 January 2012, 05:13:51 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: git 7fec0f1: Linking issues on git build
« Reply #1 on: 14 January 2012, 17:38:33 »
Sorry but the git repo isn't ready yet (and may need to be redone due to some missing files). I'll let you know once everything is ready.

 

anything