Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 256216 - [kde-testing] akonadi-server-1.1.0 can't find boost libraries
Summary: [kde-testing] akonadi-server-1.1.0 can't find boost libraries
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-24 16:04 UTC by Viktor Bachraty
Modified: 2009-02-02 20:06 UTC (History)
1 user (show)

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


Attachments
Patch for FindBoost.cmake (akonadi-server-1.1.0-r1-CMake-Boost.patch,3.43 KB, patch)
2009-01-24 16:06 UTC, Viktor Bachraty
Details | Diff
Ebuild that uses the patch akonadi-server-1.1.0-r1-CMake-Boost.patch (akonadi-server-1.1.0-r1.ebuild,882 bytes, text/plain)
2009-01-24 16:08 UTC, Viktor Bachraty
Details
Build log of akonadi-server and applied patch (build.log,3.61 KB, text/plain)
2009-01-29 19:23 UTC, Mark
Details
Include version number in boost libraries filename pattern (FindBoost.cmake.patch,1.97 KB, patch)
2009-01-30 18:09 UTC, Viktor Bachraty
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Viktor Bachraty 2009-01-24 16:04:57 UTC
The akondai-1.1.0 uses its own copy of FindBoost.cmake which cannot find the Boost libraries. Had to change search paths for boost includes, and change the patterns used for finding the libraries, similarly as in http://www.vtk.org/Bug/view.php?id=8404 

Patch for the FindBoost.cmake and fixed akondai-1.1.0.ebuild  included in the attachment.

Reproducible: Always

Steps to Reproduce:
1.layman -a kde-testing && layman -S
2. emerge -av akonadi-server
Comment 1 Viktor Bachraty 2009-01-24 16:06:54 UTC
Created attachment 179561 [details, diff]
Patch for FindBoost.cmake

Fixes search paths and filename patterns for boost libraries.
Comment 2 Viktor Bachraty 2009-01-24 16:08:57 UTC
Created attachment 179563 [details]
Ebuild that uses the patch akonadi-server-1.1.0-r1-CMake-Boost.patch
Comment 3 Mark 2009-01-29 19:23:59 UTC
Created attachment 180148 [details]
Build log of akonadi-server and applied patch
Comment 4 Mark 2009-01-29 19:28:15 UTC
(In reply to comment #2)
> Created an attachment (id=179563) [edit]
> Ebuild that uses the patch akonadi-server-1.1.0-r1-CMake-Boost.patch
> 

Greetings,
I have experienced the same issue and applied this patch. Unfortunately it didn't resolve the problem for me. I have attached the build log of my attempt to emerge akonadi-server with the provided patch applied.


And here my "emerge --info" output:

emerge --info                                        
Portage 2.1.6.7 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.9_p20081201-r1, 2.6.27-gen                     too x86_64)                                                                                                    
=================================================================                                              
System uname: Linux-2.6.27-gentoo-x86_64-AMD_Opteron-tm-_Processor_246-with-glibc2.2.5                         
Timestamp of tree: Thu, 29 Jan 2009 17:15:01 +0000                                                             
app-shells/bash:     3.2_p48                                                                                   
dev-java/java-config: 1.3.7-r1, 2.1.7                                                                          
dev-lang/python:     2.5.4-r2                                                                                  
dev-util/cmake:      2.6.2-r1                                                                                  
sys-apps/baselayout: 2.0.0                                                                                     
sys-apps/openrc:     0.4.2                                                                                     
sys-apps/sandbox:    1.3.3                                                                                     
sys-devel/autoconf:  2.13, 2.63                                                                                
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                                 
sys-devel/binutils:  2.19                                                                                      
sys-devel/gcc-config: 1.4.1                                                                                    
sys-devel/libtool:   2.2.6a                                                                                    
virtual/os-headers:  2.6.28-r1                                                                                 
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                                 
CBUILD="x86_64-pc-linux-gnu"                                                                                   
CFLAGS="-march=opteron -O2 -pipe"                                                                              
CHOST="x86_64-pc-linux-gnu"                                                                                    
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr                     /kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=opteron -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/"
LANG="de_DE.utf8@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib accessibility acl acpi alsa amd64 berkdb bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread exif ffmpeg fortran gd gdbm gif gimp gpm graphviz gstreamer hal iconv ipv6 isdnlog java javascript jpeg jpeg2k kde kdeenablefinal midi mmx mng mp3 mpeg mplayer mudflap multilib mysql ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp oss pam pcre pdf perl php plasma png ppds pppd python qt3 qt3support qt4quicktime readline reflection samba scanner sdl session smp spell spl sse sse2 ssl svg sysfs tcpd tiff truetype unicode usb vorbis webkit x264 xcomposite xine xml xorg xpm xulrunner xvid zlib" ALSA_CARDS="intel8x0" 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC


Many KDE 4.2 Apps relie on the akonadi-server, so if I cannot fix this problem, switching to the new KDE version might become difficult. Does anyone have further ideas?

Thanks in advance..
Comment 5 Viktor Bachraty 2009-01-29 22:42:04 UTC
(In reply to comment #4)
> (In reply to comment #2)
> > Created an attachment (id=179563) [edit]
> > Ebuild that uses the patch akonadi-server-1.1.0-r1-CMake-Boost.patch
> > 
> 
> Greetings,
> I have experienced the same issue and applied this patch. Unfortunately it
> didn't resolve the problem for me. I have attached the build log of my attempt
> to emerge akonadi-server with the provided patch applied.
> 
> 
> And here my "emerge --info" output:
> 
> emerge --info                                        
> Portage 2.1.6.7 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.9_p20081201-r1,
> 2.6.27-gen                     too x86_64)                                      
> =================================================================               
> System uname:
> Linux-2.6.27-gentoo-x86_64-AMD_Opteron-tm-_Processor_246-with-glibc2.2.5        
> Timestamp of tree: Thu, 29 Jan 2009 17:15:01 +0000                              
> app-shells/bash:     3.2_p48                                                    
> dev-java/java-config: 1.3.7-r1, 2.1.7                                           
> dev-lang/python:     2.5.4-r2                                                   
> dev-util/cmake:      2.6.2-r1                                                   
> sys-apps/baselayout: 2.0.0                                                      
> sys-apps/openrc:     0.4.2                                                      
> sys-apps/sandbox:    1.3.3                                                      
> sys-devel/autoconf:  2.13, 2.63                                                 
> sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                  
> sys-devel/binutils:  2.19                                                       
> sys-devel/gcc-config: 1.4.1                                                     
> sys-devel/libtool:   2.2.6a                                                     
> virtual/os-headers:  2.6.28-r1                                                  
> ACCEPT_KEYWORDS="amd64 ~amd64"                                                  
> CBUILD="x86_64-pc-linux-gnu"                                                    
> CFLAGS="-march=opteron -O2 -pipe"                                               
> CHOST="x86_64-pc-linux-gnu"                                                     
> CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
> /usr/kde/3.5/shutdown /usr                     /kde/4.0/env
> /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config
> /var/lib/hsqldb"
> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/
> /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release
> /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/
> /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo
> /etc/udev/rules.d"
> CXXFLAGS="-march=opteron -O2 -pipe"
> DISTDIR="/usr/portage/distfiles"
> FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox
> sfperms strict unmerge-orphans userfetch"
> GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
> ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
> ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo
> ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
> ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo
> ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
> ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
> ftp://ftp.gentoo.mesh-solutions.com/gentoo/
> ftp://pandemonium.tiscali.de/pub/gentoo/"
> LANG="de_DE.utf8@euro"
> LDFLAGS="-Wl,-O1"
> LINGUAS="de"
> MAKEOPTS="-j3"
> PKGDIR="/usr/portage/packages"
> PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
> --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles
> --exclude=/local --exclude=/packages"
> PORTAGE_TMPDIR="/var/tmp"
> PORTDIR="/usr/portage"
> SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
> USE="3dnow X a52 aac aalib accessibility acl acpi alsa amd64 berkdb bzip2 cairo
> cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread exif ffmpeg fortran gd
> gdbm gif gimp gpm graphviz gstreamer hal iconv ipv6 isdnlog java javascript
> jpeg jpeg2k kde kdeenablefinal midi mmx mng mp3 mpeg mplayer mudflap multilib
> mysql ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp oss pam pcre
> pdf perl php plasma png ppds pppd python qt3 qt3support qt4quicktime readline
> reflection samba scanner sdl session smp spell spl sse sse2 ssl svg sysfs tcpd
> tiff truetype unicode usb vorbis webkit x264 xcomposite xine xml xorg xpm
> xulrunner xvid zlib" ALSA_CARDS="intel8x0" 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 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" ELIBC="glibc"
> INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz
> cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de"
> USERLAND="GNU" VIDEO_CARDS="nvidia"
> Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC
> 
> 
> Many KDE 4.2 Apps relie on the akonadi-server, so if I cannot fix this problem,
> switching to the new KDE version might become difficult. Does anyone have
> further ideas?
> 
> Thanks in advance..
> 

Which version of the boost libraries do you have ? Currently, this cmake scripts searches for the following versions:  1.33, 1.33.0, 1.33.1, 1.34, 1.34.0, 1.34.1, 1.35, 1.35.0, 1.35.1, 1.36.0, 1.36.1
Did you also try to set the eviroment variables BOOST_INCLUDEDIR BOOST_LIBRARYDIR according to your boost version ?
i.e.
# BOOST_INCLUDEDIR=/usr/include/boost-1_36 BOOST_LIBRARYDIR=/usr/lib emerge -av akonadi-server
Comment 6 Tomáš Chvátal (RETIRED) gentoo-dev 2009-01-30 17:17:53 UTC
Hi,
i added 1.1.1 to the tree.
Please try if the behavior still wont fit your needs there.
Thanks
Comment 7 Viktor Bachraty 2009-01-30 18:05:31 UTC
Akonadi 1.1.1 uses the cmake's default FindBoost.cmake from /usr/share/cmake/Modules, so no patch is needed for akonadi anymore.
However, this file provided with cmake-2.6.2-r1 seems to be broken as well, it finds only the include directories but not the libraries (missing version number in library name patterns). 
Comment 8 Viktor Bachraty 2009-01-30 18:09:04 UTC
Created attachment 180299 [details, diff]
Include version number in boost libraries filename pattern
Comment 9 Lukas Graf 2009-02-02 20:06:37 UTC
Viktor's patch works like a charm here (boost-1.37.0).

Setting BOOST_INCLUDEDIR and BOOST_LIBRARYDIR manually also worked.