Menu

#65 2.5.0 build fails at link stage

v2.5.0
closed-fixed
None
8
2015-04-17
2015-03-30
JohnR
No

2.5.0 compiles but fails at the link stage on my Debian testing amd64 system. Current git code does the same. 2.4.4 works fine. Debian system is up to date, as is NTK.

Last few lines of compiler messages copied below (strange formatting done by sourceforge software, not by me):

[100%] Building CXX object src/CMakeFiles/zynaddsubfx.dir/main.cpp.o
Linking CXX executable zynaddsubfx
/usr/bin/ld: /usr/local/lib/libntk.so: undefined reference to symbol 'XCreateBitmapFromData'
//usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
src/CMakeFiles/zynaddsubfx.dir/build.make:92: recipe for target 'src/zynaddsubfx' failed
make[2]: [src/zynaddsubfx] Error 1
CMakeFiles/Makefile2:1758: recipe for target 'src/CMakeFiles/zynaddsubfx.dir/all' failed
make[1]:
[src/CMakeFiles/zynaddsubfx.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

1 Attachments

Discussion

  • Mark McCurry

    Mark McCurry - 2015-03-30

    I had thought that this particular linker order issue was already fixed, but I guess not.
    Please make a fresh git checkout (to the master HEAD) and paste the full output of "cmake" and "make VERBOSE=1"

     
  • Mark McCurry

    Mark McCurry - 2015-03-30
    • status: open --> in-progress
    • assigned_to: Mark McCurry
    • Priority: 5 --> 8
     
  • JohnR

    JohnR - 2015-03-31

    Output from cmake:

    -- The C compiler identification is GNU 4.9.2
    -- The CXX compiler identification is GNU 4.9.2
    -- Check for working C compiler: /usr/bin/cc
    -- Check for working C compiler: /usr/bin/cc -- 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
    -- Found Rtosc Submodule...
    -- Found GCC Version >= 4.7
    -- Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY)
    -- 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 FLTK: fltk_images;fltk_forms;fltk_gl;OPENGL_gl_LIBRARY-NOTFOUND;fltk
    -- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
    -- checking for module 'ntk'
    -- found ntk, version 1.3.0
    -- checking for module 'jack'
    -- found jack, version 1.9.11
    -- checking for module 'liblo'
    -- found liblo, version 0.28
    -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
    --
    -- Rtosc Build Configuration
    -- =========================
    --
    -- PkgConfig enabled -- package found
    -- Liblo enabled -- package found
    -- JACK enabled -- package found
    -- NTK enabled -- package found
    -- FLTK enabled -- package found
    -- Checking Include Path
    -- Checking Library Path
    -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so
    -- checking for module 'fftw3'
    -- found fftw3, version 3.3.4
    -- checking for module 'mxml'
    -- found mxml, version 2.6
    -- Looking for include file pthread.h
    -- Looking for include file pthread.h - found
    -- Looking for pthread_create
    -- Looking for pthread_create - not 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
    -- Found OSS: True
    -- Looking for snd_seq_create_simple_port in asound
    -- Looking for snd_seq_create_simple_port in asound - found
    -- Found ALSA: /usr/lib/x86_64-linux-gnu/libasound.so
    -- checking for module 'portaudio-2.0>=19'
    -- package 'portaudio-2.0>=19' not found
    -- checking for module 'ntk_images'
    -- found ntk_images, version 1.3.0
    -- Found FLTK: fltk_images;fltk_forms;fltk
    -- Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY)
    -- Could NOT find CxxTest (missing: CXXTEST_INCLUDE_DIR CXXTEST_PYTHON_TESTGEN_EXECUTABLE)
    -- checking for one of the modules 'lash-1.0'
    -- checking for one of the modules 'dssi>=0.9.0'
    -- Looking for sched_setscheduler
    -- Looking for sched_setscheduler - found
    -- Compiling with lash
    -- Compiling with liblo
    -- Compiling with x86 opcode support
    -- Building for Release, flags: -std=c++11 -Wno-unused-parameter -O3 -msse -msse2 -mfpmath=sse -ffast-math -fomit-frame-pointer
    -- -L/usr/local/lib;-lntk;-lcairo;-L/usr/local/lib;-lntk_images;-lntk;-lcairo
    -- Will build NTK gui
    -- Looking for include file jack/metadata.h
    -- Looking for include file jack/metadata.h - found
    --
    -- ZynAddSubFX Build Configuration
    -- ===============================
    --
    -- Building on a 'Linux' System
    -- PkgConfig -- found
    -- zlib -- found
    -- mxml -- found
    -- fftw3 -- found
    -- OSS -- enabled
    -- ALSA -- enabled
    -- JACK -- enabled
    -- PA -- NOT enabled
    -- CxxTest -- NOT found
    -- Lash -- enabled
    -- DSSI -- NOT enabled
    -- liblo -- enabled
    -- fltk -- found
    -- ntk -- found
    -- Link libraries: /usr/lib/x86_64-linux-gnu/libz.so mxml;pthread /usr/lib/x86_64-linux-gnu/libasound.so;jack;lash;-llo;-lpthread
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/jr/zynaddsubfx/zynaddsubfx/build

     
  • JohnR

    JohnR - 2015-03-31

    Output from make attached (too long to paste).

    Note that I used ccmake between running cmake and make (set it to build for AMD X86_64, use jack as default input, and disable Lash and Oss).

     
  • Mark McCurry

    Mark McCurry - 2015-04-17
    • status: in-progress --> closed-fixed
     
  • Mark McCurry

    Mark McCurry - 2015-04-17

    This appears to be fixed with commit c4a3c0070973183329e0920267464ff88592ff82

    If this does not work for you, then please reopen the issue.

     

Log in to post a comment.