Jump to content
  • 0
Sign in to follow this  
adcdam

problem compiling conky

Question

Hi i can t compile conky, any advice?

>>> Emerging (1 of 1) app-admin/conky-1.10.0::gentoo
 * conky-1.10.0.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                  [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/3.19.3-1~exp1/build
 * Found sources for kernel version:
 *     3.19.3-1~exp1
 * Unable to check for the following kernel config options due
 * to absence of any configured kernel sources or compiled
 * config:
 *  - IPV6
 * You're on your own to make sure they are set if needed.
>>> Unpacking source...
>>> Unpacking conky-1.10.0.tar.gz to /var/tmp/portage/app-admin/conky-1.10.0/work
>>> Source unpacked in /var/tmp/portage/app-admin/conky-1.10.0/work
>>> Preparing source in /var/tmp/portage/app-admin/conky-1.10.0/work/conky-1.10.0 ...
 * Applying conky-1.10.0-cmake.patch ...                                     [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-admin/conky-1.10.0/work/conky-1.10.0 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/app-admin/conky-1.10.0/work/conky-1.10.0_build"
 * Declaring mycmakeargs as a variable is deprecated. Please use an array instead.
cmake --no-warn-unused-cli -C /var/tmp/portage/app-admin/conky-1.10.0/work/conky-1.10.0_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_X11=ON -DOWN_WINDOW=ON -DBUILD_XDAMAGE=ON -DBUILD_XDBE=ON -DBUILD_XFT=ON -DBUILD_IMLIB2=OFF -DBUILD_XSHAPE=ON -DBUILD_ARGB=ON -DBUILD_LUA_CAIRO=OFF -DBUILD_LUA_IMLIB2=OFF -DBUILD_LUA_RSVG=OFF -DBUILD_nvidia=OFF -DBUILD_NVIDIA=OFF -DBUILD_Nvidia=OFF -DBUILD_audacious=OFF -DBUILD_AUDACIOUS=OFF -DBUILD_Audacious=OFF -DBUILD_xmms2=OFF -DBUILD_XMMS2=OFF -DBUILD_Xmms2=OFF -DBUILD_apcupsd=OFF -DBUILD_APCUPSD=OFF -DBUILD_Apcupsd=OFF -DBUILD_debug=OFF -DBUILD_DEBUG=OFF -DBUILD_Debug=OFF -DBUILD_cmus=OFF -DBUILD_CMUS=OFF -DBUILD_Cmus=OFF -DBUILD_curl=OFF -DBUILD_CURL=OFF -DBUILD_Curl=OFF -DBUILD_eve=OFF -DBUILD_EVE=OFF -DBUILD_Eve=OFF -DBUILD_hddtemp=OFF -DBUILD_HDDTEMP=OFF -DBUILD_Hddtemp=OFF -DBUILD_iostats=OFF -DBUILD_IOSTATS=OFF -DBUILD_Iostats=OFF -DBUILD_ical=OFF -DBUILD_ICAL=OFF -DBUILD_Ical=OFF -DBUILD_iconv=ON -DBUILD_ICONV=ON -DBUILD_Iconv=ON -DBUILD_ipv6=ON -DBUILD_IPV6=ON -DBUILD_Ipv6=ON -DBUILD_irc=OFF -DBUILD_IRC=OFF -DBUILD_Irc=OFF -DBUILD_math=OFF -DBUILD_MATH=OFF -DBUILD_Math=OFF -DBUILD_moc=OFF -DBUILD_MOC=OFF -DBUILD_Moc=OFF -DBUILD_mpd=OFF -DBUILD_MPD=OFF -DBUILD_Mpd=OFF -DBUILD_mysql=OFF -DBUILD_MYSQL=OFF -DBUILD_Mysql=OFF -DBUILD_ncurses=ON -DBUILD_NCURSES=ON -DBUILD_Ncurses=ON -DBUILD_PORT_MONITORS=ON -DBUILD_rss=OFF -DBUILD_RSS=OFF -DBUILD_Rss=OFF -DBUILD_IBM=OFF -DBUILD_WEATHER_METAR=OFF -DBUILD_WEATHER_XOAP=OFF -DBUILD_HTTP=OFF -DBUILD_WLAN=OFF -DBUILD_BUILTIN_CONFIG=ON -DBUILD_OLD_CONFIG=ON -DBUILD_I18N=ON -DMAINTAINER_MODE=ON -DBUILD_AUDACIOUS_LEGACY=OFF -DBUILD_BMPX=OFF -DDOC_PATH=/usr/share/doc/conky-1.10.0 -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/app-admin/conky-1.10.0/work/conky-1.10.0_build/gentoo_rules.cmake -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/app-admin/conky-1.10.0/work/conky-1.10.0_build/gentoo_toolchain.cmake  /var/tmp/portage/app-admin/conky-1.10.0/work/conky-1.10.0
Not searching for unused variables given on the command line.
loading initial cache file /var/tmp/portage/app-admin/conky-1.10.0/work/conky-1.10.0_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 4.9.3
-- The CXX compiler identification is GNU 4.9.3
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for 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 PkgConfig: /usr/bin/x86_64-pc-linux-gnu-pkg-config (found version "0.28")
CMake Error at cmake/ConkyPlatformChecks.cmake:29 (check_include_files):
  Unknown CMake command "check_include_files".
Call Stack (most recent call first):
  CMakeLists.txt:37 (include)


-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/app-admin/conky-1.10.0/work/conky-1.10.0_build/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/app-admin/conky-1.10.0/work/conky-1.10.0_build/CMakeFiles/CMakeError.log".
 * ERROR: app-admin/conky-1.10.0::gentoo failed (configure phase):
 *   cmake failed
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_configure
 *   environment, line 4288:  Called cmake-utils_src_configure
 *   environment, line 1316:  Called _execute_optionally 'src_configure'
 *   environment, line  562:  Called enable_cmake-utils_src_configure
 *   environment, line 2087:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 *
 * If you need support, post the output of `emerge --info '=app-admin/conky-1.10.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-admin/conky-1.10.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-admin/conky-1.10.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-admin/conky-1.10.0/temp/environment'.
 * Working directory: '/var/tmp/portage/app-admin/conky-1.10.0/work/conky-1.10.0_build'
 * S: '/var/tmp/portage/app-admin/conky-1.10.0/work/conky-1.10.0'

>>> Failed to emerge app-admin/conky-1.10.0, Log file:

>>>  '/var/tmp/portage/app-admin/conky-1.10.0/temp/build.log'

 * Messages for package app-admin/conky-1.10.0:

 * Unable to check for the following kernel config options due
 * to absence of any configured kernel sources or compiled
 * config:
 *  - IPV6
 * You're on your own to make sure they are set if needed.
 * ERROR: app-admin/conky-1.10.0::gentoo failed (configure phase):
 *   cmake failed
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_configure
 *   environment, line 4288:  Called cmake-utils_src_configure
 *   environment, line 1316:  Called _execute_optionally 'src_configure'
 *   environment, line  562:  Called enable_cmake-utils_src_configure
 *   environment, line 2087:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 *
 * If you need support, post the output of `emerge --info '=app-admin/conky-1.10.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-admin/conky-1.10.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-admin/conky-1.10.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-admin/conky-1.10.0/temp/environment'.
 * Working directory: '/var/tmp/portage/app-admin/conky-1.10.0/work/conky-1.10.0_build'
 * S: '/var/tmp/portage/app-admin/conky-1.10.0/work/conky-1.10.0'

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

I opened in my leafpad text editor as root:

leafpad /usr/portage/app-admin/conky/files/conky-1.10.0.cmake.patch

I add this new patch below the existing patch:

--- cmake/ConkyPlatformChecks.cmake	2015-06-21 20:49:06.000000000 -0400
+++ cmake/ConkyPlatformChecks.cmake.new	2015-11-15 01:53:47.645643108 -0500
@@ -22,7 +22,7 @@
 
 include(FindPkgConfig)
 include(CheckFunctionExists)
-include(CheckIncludeFile)
+include(CheckIncludeFiles)
 include(CheckSymbolExists)

I saved conky-1.10.0.cmake.patch after it looked like this:

--- cmake/Docbook.cmake	2014-06-21 09:51:44.857916287 +0200
+++ cmake/Docbook.cmake.new	2014-06-21 09:53:37.251924303 +0200
@@ -72,7 +72,7 @@
 			COMMAND ${APP_XSLTPROC} http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl ${CMAKE_CURRENT_SOURCE_DIR}/${FIL}.xml > ${CMAKE_CURRENT_SOURCE_DIR}/${FIL}.html
 
 			COMMAND ${APP_DB2X_XSLTPROC} -s man ${CMAKE_CURRENT_SOURCE_DIR}/${FIL}.xml -o ${FIL}.mxml
-			COMMAND ${APP_DB2X_MANXML} ${FIL}.mxml --output-dir ${CMAKE_CURRENT_SOURCE_DIR}
+			COMMAND ${APP_DB2X_MANXML} ${FIL}.mxml --encoding=UTF8 --output-dir ${CMAKE_CURRENT_SOURCE_DIR}
 			COMMAND ${APP_XSLTPROC} http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl ${CMAKE_CURRENT_SOURCE_DIR}/${FIL}.xml > ${CMAKE_CURRENT_SOURCE_DIR}/${FIL}.html
 			COMMAND ${APP_MAN} -P '${APP_LESS} -is' ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.1 > ${CMAKE_SOURCE_DIR}/README
 			COMMAND ${APP_SED} -i "s/[[:cntrl:]]\\[[0-9]*m//g" ${CMAKE_SOURCE_DIR}/README

--- cmake/ConkyPlatformChecks.cmake	2015-06-21 20:49:06.000000000 -0400
+++ cmake/ConkyPlatformChecks.cmake.new	2015-11-15 01:53:47.645643108 -0500
@@ -22,7 +22,7 @@
 
 include(FindPkgConfig)
 include(CheckFunctionExists)
-include(CheckIncludeFile)
+include(CheckIncludeFiles)
 include(CheckSymbolExists)

I used this command prepending variable to temporarily disable features in emerge.
This is necessary to prevent a permissions error which prevents merge.
 

 FEATURES="-userpriv -usersandbox" emerge -av conky

After verifying conky would merge I configured portage to disable the features for conky using the following method:
 

mkdir /etc/portage/env
echo "FEATURES="-userpriv -usersandbox" >> /etc/portage/env/nouserpriv.conf
echo "app-admin/conky nouserpriv.conf" >> /etc/portage/package.env

I merge conky now with simple command:

emerge -av conky

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...