Forgot to say: I did build the latest version 3.4.1

On 08.12.2015 01:52, Huebl, Axel wrote:
> Hi,
> 
> I did build a static version of CMake today successfully via
> 
> LDFLAGS="-static-libstdc++ -static-libgcc -static" \
>   CFLAGS="-fPIC" \
>   CXXFLAGS="-fPIC" \
>   ./bootstrap
> 
> make -j
> make install
> 
> (the -fPIC could also be superfluous, I just realized later that I need
> to build my gcc via -fPIC, too.)
> 
> My problem: I found that in the last step of linking ccmake against a
> static (pre-compiled, ubuntu 12.04) ncurses library leads to linker
> errors such as:
> 
> /usr/lib/x86_64-linux-gnu/libncurses.a(lib_mouse.o): In function
> `_nc_mouse_event':
> (.text+0x61e): undefined reference to `Gpm_GetEvent'
> /usr/lib/x86_64-linux-gnu/libncurses.a(lib_mouse.o): In function
> `enable_gpm_mouse':
> (.text+0x78c): undefined reference to `Gpm_Close'
> /usr/lib/x86_64-linux-gnu/libncurses.a(lib_mouse.o): In function
> `enable_gpm_mouse':
> (.text+0x7ce): undefined reference to `Gpm_Open'
> /usr/lib/x86_64-linux-gnu/libncurses.a(lib_mouse.o): In function
> `enable_gpm_mouse':
> (.text+0x7df): undefined reference to `Gpm_Close'
> /usr/lib/x86_64-linux-gnu/libncurses.a(lib_mouse.o): In function
> `initialize_mousetype':
> (.text+0x935): undefined reference to `gpm_fd'
> /usr/lib/x86_64-linux-gnu/libncurses.a(lib_mouse.o): In function
> `mouse_activate':
> (.text+0xb67): undefined reference to `gpm_fd'
> 
> 
> I then used the make VERBOSE=1 output to simply add the static libgmp.a
> via -lgpm in the end of the line to finish the install.
> 
> Is it possible that the GPM dependency is missing in the ccmake install
> scripts? I tried to find the lines in
> 
> https://github.com/Kitware/CMake/blob/master/Source/CursesDialog/CMakeLists.txt
> 
> but could not find a place to add it.
> 
> 
> Cheers,
> Axel
> 

-- 

Axel Huebl
Phone +49 351 260 3582
https://www.hzdr.de/crp
Computational Radiation Physics
Laser Particle Acceleration Division
Helmholtz-Zentrum Dresden - Rossendorf e.V.

Bautzner Landstrasse 400, 01328 Dresden
POB 510119, D-01314 Dresden
Vorstand: Prof. Dr.Dr.h.c. R. Sauerbrey
          Prof. Dr.Dr.h.c. P. Joehnk
VR 1693 beim Amtsgericht Dresden

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to