Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 580306 - dev-util/cmake-3.4.3: Source/cmCurl.cxx:16:39: error: ‘CURLE_NOT_BUILT_IN’ was not declared in this scope (should (R)DEPEND on >=net-misc/curl-7.21.5)
Summary: dev-util/cmake-3.4.3: Source/cmCurl.cxx:16:39: error: ‘CURLE_NOT_BUILT_IN’ wa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-17 10:31 UTC by darkshine
Modified: 2016-04-20 18:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (file_580306.txt,4.81 KB, text/plain)
2016-04-17 10:31 UTC, darkshine
Details

Note You need to log in before you can comment on or make changes to this bug.
Description darkshine 2016-04-17 10:31:04 UTC
Created attachment 430918 [details]
emerge --info

cmake-3.4.3 fails to build:

[ 25%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmCurl.cxx.o
cd /var/tmp/portage/dev-util/cmake-3.4.3/work/cmake-3.4.3_build/Source && /usr/bin/x86_64-pc-linux-gnu-g++  -DCMAKE_BUILD_WITH_CMAKE -I/var/tmp/portage/dev-util/cmake-3.4.3/work/cmake-3.4.3_build/Utilities -I/var/tmp/portage/dev-util/cmake-3.4.3/work/cmake-3.4.3/Utilities -I/var/tmp/portage/dev-util/cmake-3.4.3/work/cmake-3.4.3_build/Source -I/var/tmp/portage/dev-util/cmake-3.4.3/work/cmake-3.4.3/Source -I/var/tmp/portage/dev-util/cmake-3.4.3/work/cmake-3.4.3_build/Utilities/cmcompress -I/var/tmp/portage/dev-util/cmake-3.4.3/work/cmake-3.4.3/Source/CTest   -DNDEBUG -O2 -pipe    -std=gnu++1y -o CMakeFiles/CMakeLib.dir/cmCurl.cxx.o -c /var/tmp/portage/dev-util/cmake-3.4.3/work/cmake-3.4.3/Source/cmCurl.cxx
/var/tmp/portage/dev-util/cmake-3.4.3/work/cmake-3.4.3/Source/cmCurl.cxx: In function ‘std::string cmCurlSetCAInfo(CURL*, const char*)’:
/var/tmp/portage/dev-util/cmake-3.4.3/work/cmake-3.4.3/Source/cmCurl.cxx:16:39: error: ‘CURLE_NOT_BUILT_IN’ was not declared in this scope
   if (result != CURLE_OK && result != CURLE_NOT_BUILT_IN)               \
                                       ^
/var/tmp/portage/dev-util/cmake-3.4.3/work/cmake-3.4.3/Source/cmCurl.cxx:30:5: note: in expansion of macro ‘check_curl_result’
     check_curl_result(res, "Unable to set TLS/SSL Verify CAINFO: ");
     ^
Source/CMakeFiles/CMakeLib.dir/build.make:446: recipe for target 'Source/CMakeFiles/CMakeLib.dir/cmCurl.cxx.o' failed
make[2]: *** [Source/CMakeFiles/CMakeLib.dir/cmCurl.cxx.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-util/cmake-3.4.3/work/cmake-3.4.3_build'
CMakeFiles/Makefile2:1499: recipe for target 'Source/CMakeFiles/CMakeLib.dir/all' failed
make[1]: *** [Source/CMakeFiles/CMakeLib.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/dev-util/cmake-3.4.3/work/cmake-3.4.3_build'
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: dev-util/cmake-3.4.3::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-util/cmake-3.4.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-util/cmake-3.4.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-util/cmake-3.4.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/cmake-3.4.3/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-util/cmake-3.4.3/work/cmake-3.4.3_build'
 * S: '/var/tmp/portage/dev-util/cmake-3.4.3/work/cmake-3.4.3'

>>> Failed to emerge dev-util/cmake-3.4.3, Log file:

>>>  '/var/tmp/portage/dev-util/cmake-3.4.3/temp/build.log'



The root cause is that CURLE_NOT_BUILT_IN is not declared in net-misc/curl-7.21.4. This constant was obsoleted in August 2007 for curl-7.17.0, reused in April 2011 for curl-7.21.5. The following dependency is specified in cmake-3.4.3.ebuild:
RDEPEND="... >=net-misc/curl-7.20.0-r1[ssl] ..."

I think this dependency should be adjusted to ">=net-misc/curl-7.21.5[ssl]". I-ve updated my net-misc/curl to the latest version (7.48.0) and cmake was built successfully.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-04-20 18:09:33 UTC
commit df670dfa0155d2998323f3ece99f197fecf36f16
Author: Lars Wendler <polynomial-c@gentoo.org>
Date:   Wed Apr 20 20:08:22 2016

    dev-util/cmake: Adjusted dependency on net-misc/curl according to bug #580306.

    Package-Manager: portage-2.2.28
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>