pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/48734: pkgsrc/devel/cmake does not compile



>Number:         48734
>Category:       pkg
>Synopsis:       When trying to compile cmake it fails with error
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 12 00:15:00 +0000 2014
>Originator:     Tero Kivinen
>Release:        NetBSD 6.1_STABLE
>Organization:
>Environment:
System: NetBSD tiiliskivi.i.kivinen.iki.fi 6.1_STABLE NetBSD 6.1_STABLE 
(TIILISKIVI) #0: Fri Apr 11 00:46:33 EEST 2014 
root%tiiliskivi.i.kivinen.iki.fi@localhost:/usr/obj/sys/arch/amd64/compile/TIILISKIVI
 amd64
Architecture: x86_64
Machine: amd64
>Description:

        When trying to compile pidgin, libreoffice etc, they fail
        because they try to compile cmake, and cmake fails to build
        with following error:

---------------------------------------------
CMake 2.8.12.2, Copyright 2000-2012 Kitware, Inc.
C compiler on this system is: gcc -O2 -I/usr/include -I/usr/pkg/include 
-I/usr/include/krb5 -DLDAP_DEPRECATED
C++ compiler on this system is: c++ -O2 -I/usr/include -I/usr/pkg/include 
-I/usr/include/krb5 -DLDAP_DEPRECATED
---------------------------------------------
Error when bootstrapping CMake:
Cannot find appropriate Makefile processor on this system.
Please specify one using environment variable MAKE.
---------------------------------------------
Log of errors: 
/usr/pkgsrc/devel/cmake/work/cmake-2.8.12.2/Bootstrap.cmk/cmake_bootstrap.log
---------------------------------------------


        When checking the cmake_bootstrap.log I can see that the
        failure is because it tries to link -lexecinfo library and
        assumes it is in the /usr/lib, i.e. this command fails:

"gcc" -L/usr/lib -Wl,-R/usr/lib -lexecinfo -L/usr/pkg/lib -Wl,-R/usr/pkg/lib 
-O2 -I/usr/include -I/usr/pkg/include -I/usr/include/krb5 -DLDAP_DEPRECATED -o 
test test.c

        because -lexecinfo is not found. The cmake does not depend on
        the devel/libexecinfo, and even if that is installed that does
        not help, as is it installed to the /usr/pkg/lib not in the /usr/lib.

>How-To-Repeat:

        Try to install cmake.

>Fix:

        First install pkgsrc/devel/libexecinfo, and then create
        symlinks to the /usr/lib for the libraries:

        # cd devel/libexecinfo
        # make update
        # ln -s  /usr/pkg/lib/libexecinfo* /usr/lib/
        # cd ../cmake
        # make update

        This quick hack will get the cmake compiled, but I assume
        proper fix would be to make cmake to require devel/libexecinfo
        and make sure /usr/pkg/lib is added to the library path before
        -lexecinfo on the command line.



Home | Main Index | Thread Index | Old Index