Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 414659 - >=dev-util/cmake-2.8.8 - (in x11-misc/slim-1.3.3) .../work/slim-1.3.3/Ck.cpp:13:26: fatal error: ck-connector.h: No such file or directory
Summary: >=dev-util/cmake-2.8.8 - (in x11-misc/slim-1.3.3) .../work/slim-1.3.3/Ck.cpp:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 414601 414681 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-05-05 02:28 UTC by Derk W te Bokkel
Modified: 2012-05-06 21:42 UTC (History)
5 users (show)

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


Attachments
CMakeCache.txt (CMakeCache.txt,27.43 KB, text/plain)
2012-05-05 17:14 UTC, Derk W te Bokkel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Derk W te Bokkel 2012-05-05 02:28:04 UTC
although it built fine apr 14,2012, and previously feb 25, 2012

now it fails,

Calculating dependencies... done!
[ebuild   R    ] x11-misc/slim-1.3.3  USE="branding consolekit pam" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

>>> Verifying ebuild manifests
>>> Emerging (1 of 1) x11-misc/slim-1.3.3
>>> Failed to emerge x11-misc/slim-1.3.3, Log file:
>>>  '/var/tmp/portage/x11-misc/slim-1.3.3/temp/build.log'
>>> Jobs: 0 of 1 complete, 1 failed                 Load avg: 0.21, 0.10, 0.06
 * Package:    x11-misc/slim-1.3.3
 * Repository: gentoo
 * Maintainer: axs@gentoo.org desktop-misc@gentoo.org
 * USE:        amd64 branding consolekit elibc_glibc kernel_linux multilib pam userland_GNU
 * FEATURES:   sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking slim-1.3.3.tar.gz to /var/tmp/portage/x11-misc/slim-1.3.3/work
>>> Source unpacked in /var/tmp/portage/x11-misc/slim-1.3.3/work
>>> Preparing source in /var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3 ...
 * Applying slim-1.3.3-config.diff ...
 [ ok ]
 * Applying 15287-fix-pam-authentication-with-pam_unix2.patch ...
 [ ok ]
 * Applying 405579-fix-numlock.patch ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3_build"
cmake --no-warn-unused-cli -C /var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3_build/gentoo_common_config.cmake -DCMAKE_INSTALL_PREFIX=/usr -DUSE_PAM=ON -DUSE_CONSOLEKIT=ON -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3_build/gentoo_rules.cmake  /var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3
Not searching for unused variables given on the command line.
loading initial cache file /var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 4.5.3
-- The CXX compiler identification is GNU 4.5.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
-- 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
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/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/lib64/libX11.so
-- Found Freetype: /usr/lib64/libfreetype.so (found version "2.4.9") 
-- Found GLUT: /usr/lib64/libglut.so  
-- Found JPEG: /usr/lib64/libjpeg.so  
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.7") 
-- Found PNG: /usr/lib64/libpng.so (found version "1.5.10") 
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") 
-- checking for one of the modules 'fontconfig'
	FontConfig Found
	PAM Enabled
-- Performing Test PAM_MESSAGE_CONST
-- Performing Test PAM_MESSAGE_CONST - Success
-- Found PAM: /usr/lib64/libpam.so;/usr/lib64/libdl.so
	PAM Found
	ConsoleKit Enabled
	ConsoleKit Not Found
	ConsoleKit disabled
-- <<< Gentoo configuration >>>
Build type      Gentoo
Install path    /usr
Compiler flags:
C               -O2 -pipe  -Wall -g -O2
C++             -O2 -pipe 
Linker flags:
Executable       -Wl,-O1 -Wl,--as-needed
Module           -Wl,-O1 -Wl,--as-needed
Shared           -Wl,-O1 -Wl,--as-needed

-- Configuring done
-- Generating done
-- Build files have been written to: /var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3_build
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3_build"
make -j4 
Scanning dependencies of target slim
[  8%] [ 16%] [ 25%] [ 33%] Building CXX object CMakeFiles/slim.dir/main.cpp.o
Building CXX object CMakeFiles/slim.dir/app.cpp.o
Building CXX object CMakeFiles/slim.dir/cfg.cpp.o
Building CXX object CMakeFiles/slim.dir/image.cpp.o
/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3/image.cpp: In member function ‘bool Image::Read(const char*)’:
/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3/image.cpp:71:27: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3/cfg.cpp: In member function ‘std::string Cfg::getWelcomeMessage()’:
/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3/cfg.cpp:215:33: warning: ignoring return value of ‘int getdomainname(char*, size_t)’, declared with attribute warn_unused_result
[ 41%] Building CXX object CMakeFiles/slim.dir/numlock.cpp.o
[ 50%] /var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3/app.cpp: In member function ‘void App::OpenLog()’:
/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3/app.cpp:1155:59: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result
/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3/app.cpp:1157:59: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result
Building CXX object CMakeFiles/slim.dir/panel.cpp.o
/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3/app.cpp: In member function ‘void App::Console()’:
/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3/app.cpp:760:16: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result
/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3/app.cpp: In member function ‘void App::Suspend()’:
/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3/app.cpp:744:50: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result
/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3/app.cpp: In member function ‘void App::Halt()’:
/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3/app.cpp:738:47: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result
/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3/app.cpp: In member function ‘void App::Reboot()’:
/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3/app.cpp:716:49: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result
/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3/app.cpp: In member function ‘void App::Login()’:
/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3/app.cpp:629:38: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result
/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3/app.cpp:654:37: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result
[ 58%] Building CXX object CMakeFiles/slim.dir/switchuser.cpp.o
/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3/switchuser.cpp: In member function ‘void SwitchUser::Execute(const char*)’:
/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3/switchuser.cpp:52:22: warning: ignoring return value of ‘int chdir(const char*)’, declared with attribute warn_unused_result
/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3/panel.cpp: In member function ‘bool Panel::OnKeyPress(XEvent&)’:
/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3/panel.cpp:365:61: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result
[ 66%] Building CXX object CMakeFiles/slim.dir/util.cpp.o
[ 75%] Building C object CMakeFiles/slim.dir/png.c.o
[ 83%] Building C object CMakeFiles/slim.dir/jpeg.c.o
[ 91%] Building CXX object CMakeFiles/slim.dir/PAM.cpp.o
[100%] Building CXX object CMakeFiles/slim.dir/Ck.cpp.o
/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3/Ck.cpp:13:26: fatal error: ck-connector.h: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/slim.dir/Ck.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/slim.dir/all] Error 2
make: *** [all] Error 2
 * ERROR: x11-misc/slim-1.3.3 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of 'emerge --info =x11-misc/slim-1.3.3',
 * the complete build log and the output of 'emerge -pqv =x11-misc/slim-1.3.3'.
 * The complete build log is located at '/var/tmp/portage/x11-misc/slim-1.3.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-misc/slim-1.3.3/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3_build'
 * S: '/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3'

 * Messages for package x11-misc/slim-1.3.3:

 * ERROR: x11-misc/slim-1.3.3 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of 'emerge --info =x11-misc/slim-1.3.3',
 * the complete build log and the output of 'emerge -pqv =x11-misc/slim-1.3.3'.
 * The complete build log is located at '/var/tmp/portage/x11-misc/slim-1.3.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-misc/slim-1.3.3/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3_build'
 * S: '/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3'


looks like something has changed in the tool chain .. I have two machines effected by this .. 



Reproducible: Always




emerge --info
Portage 2.1.10.57 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.15-r1, 3.3.4-gentoo x86_64)
=================================================================
System uname: Linux-3.3.4-gentoo-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.1
Timestamp of tree: Fri, 04 May 2012 17:00:02 +0000
app-shells/bash:          4.2_p28
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.8-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.5
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.4.7, 4.5.3-r2
sys-devel/gcc-config:     1.7
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.15-r1
Repositories: gentoo x-portage personal-derk
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask --autounmask-write --quiet-build=y"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox xattr"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB en_US"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /home/derk/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 apng archive berkdb bzip2 cairo cdda cddb cli cracklib crypt cups cxx dbus dri encode ffmpeg flac fortran gdbm gnome-keyring gnutls gpm gstreamer gtk iconv id3tag ipv6 java jpeg jpeg2k lame lcms libnotify mad mmx modules mp3 mpeg mudflap multilib ncurses nfs nls nptl nptlonly ntp ogg opengl openmp pam pcre pdf png policykit ppds pppd qt3support qt4 readline samba sdl session smbclient sqlite sse sse2 ssl startup-notification svg sysfs tcl tcpd theora tiff tk twolame udev unicode vorbis xattr xinerama xorg zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="ati vesa fbdev radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Derk W te Bokkel 2012-05-05 03:20:57 UTC
doing either of copying or symlinking ck-connector.h from /usr/include/ConsoleKit/ck-connector/ck-connector.h up into  /usr/include allows slim-1.3.3 to build properly 

note: slim-1.3.2-r7 does not have this issue
Comment 2 Rafał Mużyło 2012-05-05 13:45:12 UTC
The "workaround" is obviously bogus.

Now, it depends on what kind of check slim uses for consolekit, but it's most likely a pkg-config issue, so let's start with:
what does 'pkg-config ck-connector --cflags' return ?
Comment 3 Derk W te Bokkel 2012-05-05 15:24:58 UTC
$ pkg-config ck-connector --cflags
-I/usr/include/ConsoleKit/ck-connector -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include  

not knowing how this works .. I added ..

$  pkg-config ck-connector.h --cflags
Package ck-connector.h was not found in the pkg-config search path.
Perhaps you should add the directory containing `ck-connector.h.pc'
to the PKG_CONFIG_PATH environment variable
No package 'ck-connector.h' found
Comment 4 Derk W te Bokkel 2012-05-05 15:26:18 UTC
note: above generated after removing " work arounds "
Comment 5 Rafał Mużyło 2012-05-05 16:56:39 UTC
Attach CMakeCache.txt from build dir.
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2012-05-05 17:12:17 UTC
I wonder if there has been a change in cmake from 2.8.7 to 2.8.8 that breaks handling of pkg-config files somehow, this looks similar to bug 414601
Comment 7 Derk W te Bokkel 2012-05-05 17:14:59 UTC
Created attachment 310901 [details]
CMakeCache.txt

as requested
Comment 8 Derk W te Bokkel 2012-05-05 17:28:32 UTC
downgraded to dev-util/cmake-2.8.7-r5

then

slim-1.3.3 emerges fine

so issue caused by .. cmake-2.8.8-r1 .. not ready for prime time :)
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2012-05-05 17:31:48 UTC
Both usbmuxd, and slim issues turned out to be cmake-2.8.8 related -> CCing cmake maintainers (kde@gentoo.org)
Comment 10 Rafał Mużyło 2012-05-05 18:28:22 UTC
Interesting part of CMakeCache.txt is:
CKCONNECTOR_INCLUDE_DIR:PATH=CKCONNECTOR_INCLUDE_DIR-NOTFOUND

In regard of this case, the macro is basically:
pkg_check_modules(_CKCONNECTOR_PC QUIET ck-connector)
FIND_PATH(CKCONNECTOR_INCLUDE_DIR ck-connector.h ${_CKCONNECTOR_PC_INCLUDE_DIRS})

so it does look as if cmake itself got broken, given pkg-config output is correct.
Comment 11 Chris Reffett (RETIRED) gentoo-dev Security 2012-05-05 18:31:55 UTC
I suspect that pkg_check_modules(_CKCONNECTOR_PC QUIET ck-connector) is the culprit here, since both here and in bug 414601 the call to pkg_check_modules seems to be the point of failure. There is a note in the upstream 2.8.8 changelog about " use pkg_check_modules() quiet in other modules", perhaps that silence is hiding something? Will investigate when I have some free time.
Comment 12 Rafał Mużyło 2012-05-05 18:49:42 UTC
Actually, it seems that the problem lies in this commit:
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=55c3435d88618d7ed935736604e7ab989cef4b28
Is it possible, that find_package_handle_standard_args doesn't set PKG_CONFIG_FOUND here ?
Comment 13 Rafał Mużyło 2012-05-05 19:00:00 UTC
Never mind, people. I should have checked commits after release tag.
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=3ea850a5023060b84dcc0e6f0098c32c28b15807 will most likely fix the problem.
Comment 14 Chris Reffett (RETIRED) gentoo-dev Security 2012-05-06 15:08:54 UTC
I confirm that the patch Rafal linked to in comment #13 fixes things, slim builds for me after rebuilding cmake with those patches.
Comment 15 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-06 18:52:59 UTC
*** Bug 414681 has been marked as a duplicate of this bug. ***
Comment 16 Andreas K. Hüttel archtester gentoo-dev 2012-05-06 19:06:26 UTC
(In reply to comment #14)
> I confirm that the patch Rafal linked to in comment #13 fixes things, slim
> builds for me after rebuilding cmake with those patches.

Excellent, fixed in 2.8.8-r2
Comment 17 Samuli Suominen (RETIRED) gentoo-dev 2012-05-06 21:42:39 UTC
*** Bug 414601 has been marked as a duplicate of this bug. ***