Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 293753 - lyx-1.6.4 fails to compile due to missing boost/*.hpp
Summary: lyx-1.6.4 fails to compile due to missing boost/*.hpp
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-19 19:58 UTC by Maxi Combina
Modified: 2009-11-19 20:28 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxi Combina 2009-11-19 19:58:22 UTC
I have boost-1.35.0-r2 installed in my x86 box (it is the only stable version).
When I want to emerge lyx-1.6.4 (which is also marked as stable) the build stage fails due to a missing header:
Making all in support                 
 i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -pipe -O2 -march=core2 -fomit-frame-pointer -MT FileMonitor.lo -MD -MP -MF .deps/FileMonitor.Tpo -c FileMonitor.cpp -o FileMonitor.o                      
In file included from FileMonitor.cpp:13:                                                                                                            
./../support/FileMonitor.h:18:28: error: boost/signal.hpp: No such file or directory      

(more and more errors here).

I have qlist'ed the boost contents, and discovered that all the headers are installed in /usr/include/boost-1.35/boost/ (which I find OK due to slotting in boost).

A workaround is issuing `cd /usr/include ; ln -s /usr/include/boost-1.35/boost' as root.
This allowed me to emerge lyx and other packages (don't recall now) that depend on boost.

Reproducible: Always

Steps to Reproduce:
1. emerge lyx
2.
3.

Actual Results:  
lyx not emerged. Compilation fails.

Expected Results:  
lyx correctly emerge

# emerge --info
Portage 2.2_rc49 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r6 i686)
=================================================================                                          
System uname: Linux-2.6.30-gentoo-r6-i686-Intel-R-_Core-TM-2_Duo_CPU_T7500_@_2.20GHz-with-gentoo-2.0.1     
Timestamp of tree: Sat, 14 Nov 2009 22:45:01 +0000                                                         
ccache version 2.4 [disabled]                                                                              
app-shells/bash:     4.0_p28                                                                               
dev-java/java-config: 2.1.9-r1                                                                             
dev-lang/python:     2.4.6, 2.5.4-r3, 2.6.2-r1                                                             
dev-python/pycrypto: 2.0.1-r8                                                                              
dev-util/ccache:     2.4-r7                                                                                
dev-util/cmake:      2.6.4-r3                                                                              
sys-apps/baselayout: 2.0.1                                                                                 
sys-apps/openrc:     0.4.3-r3                                                                              
sys-apps/sandbox:    2.2                                                                                   
sys-devel/autoconf:  2.13, 2.63-r1                                                                         
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                      
sys-devel/binutils:  2.18-r3                                                                               
sys-devel/gcc-config: 1.4.1                                                                                
sys-devel/libtool:   2.2.6a                                                                                
virtual/os-headers:  2.6.27-r2                                                                             
ACCEPT_KEYWORDS="x86"                                                                                      
CBUILD="i686-pc-linux-gnu"                                                                                 
CFLAGS="-pipe -O2 -march=core2 -fomit-frame-pointer"                                                       
CHOST="i686-pc-linux-gnu"                                                                                  
CONFIG_PROTECT="/etc /usr/kde/3.5/share/config/kdm/ /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/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"              
CXXFLAGS="-pipe -O2 -march=core2 -fomit-frame-pointer"                                                                                               
DISTDIR="/usr/portage/distfiles"                                                                                                                     
FEATURES="assume-digests collision-protect distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"                                                                                                                           
GENTOO_MIRRORS="http://distfiles.gentoo.org                 http://distro.ibiblio.org/pub/linux/distributions/gentoo            http://gentoo.cites.uiuc.edu/pub/gentoo/             ftp://mirrors.64hosting.com/pub/mirrors/gentoo/                 ftp://mirror.iawnet.sandia.gov/pub/gentoo/"          
LANG="en_US.UTF-8"                                                                                                                                   
LC_ALL="en_US.UTF-8"                                                                                                                                 
LDFLAGS="-Wl,-O3 -Wl,--enable-new-dtags -Wl,--sort-common -s"                                                                                        
LINGUAS="ca en es pt it en_US"
MAKEOPTS="-j1 -s "
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
PORTDIR_OVERLAY="   "
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dfx 7Zip X a52 aac aalib accessibility acl acpi ada aiglx aim alsa amarok amr amrnb amrwb artswrappersuid asf audiofile avahi beagle berkdb bidi bluetooth branding bzip2 cairo cdda cdr chm cjk clearcase cli commercial config_wizard consolekit cpudetection cracklib crypt css cups dbox2 dbus dga djvu dlloader doc dri dts dv dvb dvd dvdr dvdread dvi dxr3 effects emboss encode esd exif exscalibar ext-man ext-rtf ext-tex extraicons extramodules fam fame fat ffmpeg fftw firefox flac flash foomatic fortran freetype gdbm geoip gif gimpprint git glitz glut gnokii gnome gnutls gphoto2 gpm gs gsm gstreamer gtk gtk2 hal hfs iconv icq ieee1394 imap inkjar ipod ipv6 irc irda jabber jack java jfs jingle joystick jpeg jpeg2k kde kde4 kdeenablefinal kdehiddenvisibility kerberos kipi krb4 lame lcd ldap libao libcaca libclamav libnotify live livecd lj lm_sensors logitech lzo mad mail matroska mikmod mjpeg mmx mng modules mono mouse moznocompose moznoirc moznomail mp3 mp3rtp mp4 mpeg mplayer msn mudflap musepack musicbrainz ncurses network new nls nptl nptlonly nsplugin ntfs nvidia offensive ogg ole openal openexr opengl openmp pam pascal pcmcia pcre pda pdf perl phonon plugin png povray ppds pppd pulseaudio pwdb python qt qt3 qt3support qt4 quicktime quotas rar raw rdesktop readline reflection reiserfs rss ruby samba scanner sdl session skins slp smp sms sndfile speech speex spell spl spreadsheet ssl startup-notification stream streams subversion svg sysfs tcpd theora thunar tiff truetype udev unicode usb v4l v4l2 vcd visualization voice vorbis weather webservices wifi win32codecs winbind wmf wxwindows x264 x86 xfs xine xinerama xml xorg xosd xpm xprint xscreensaver xsl xulrunner xv xvid xvmc yahoo zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="evdev keyboard mouse acecad aiptek digitaledge fpit hyperpen jamstudio joystick magellan  mutouch palmax spaceorb summa synaptics tek4957 ur98 vmmouse void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ca en es pt it en_US" LIRC_DEVICES="audio audio_alsa" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rafał Mużyło 2009-11-19 20:05:53 UTC
Is that the only boost version you've got emerged ?
Did you emerge any more recent boost version and then unmerged it ?
Comment 2 Sebastian Luther (few) 2009-11-19 20:09:14 UTC
The latest stable version of boost on x86 is 1.35.0-r5 (which you have installed). Use "eselect boost update" to select best available version. If lyx still fails with this error, make sure you don't have any unversioned boost files and directories in /usr/include and /usr/lib and run eselect again.

This problem is either caused by using USE="-eselect" or bug 290691.
Comment 3 Maxi Combina 2009-11-19 20:17:00 UTC
(In reply to comment #1)
> Is that the only boost version you've got emerged ?
Yes. Actually, I re-emerged this version and the problem persisted. I tried with lyx-1.6.3 and it also failed.

> Did you emerge any more recent boost version and then unmerged it ?
I found boost-1.39.0 in /var/log/emerge.log, but then I removed it.
My current status is:

[I] dev-libs/boost
     Available versions:
        (0)     [M]~*1.33.1-r1 [M]1.34.1-r2 ~1.35.0-r1 1.35.0-r2 ~1.35.0-r3 1.35.0-r5
        (1.36)  ~1.36.0-r1
        (1.37)  ~1.37.0-r1
        (1.39)  ~1.39.0
        (1.40)  [M]~1.40.0
        {bcp bjam debug doc eselect expat icu mpi pyste python test threads threadsonly tools}
     Installed versions:  1.35.0-r5(08:59:31 PM 11/19/2009)(doc eselect python -expat -icu -mpi -test -tools)
 

Only version 1.35.0-r5 is installed now... how can I fix this?

Comment 4 Sebastian Luther (few) 2009-11-19 20:22:04 UTC
(In reply to comment #3)
> Only version 1.35.0-r5 is installed now... how can I fix this?
> 

(In reply to comment #2)
> [...] make sure you don't have any unversioned boost
> files and directories in /usr/include and /usr/lib and run eselect again.
> 

This should fix it. If it doesn't make sure you have the latest stable versions of eselect and eselect-boost and give the output of "ls -l /usr/include |grep boost".

Comment 5 Maxi Combina 2009-11-19 20:23:20 UTC
(In reply to comment #2)
> The latest stable version of boost on x86 is 1.35.0-r5 (which you have
> installed). Use "eselect boost update" to select best available version. If lyx
> still fails with this error, make sure you don't have any unversioned boost
> files and directories in /usr/include and /usr/lib and run eselect again.
> 
> This problem is either caused by using USE="-eselect" or bug 290691.
> 

Great, thanks!
BTW, to learn: where can I learn about this kind of stuff? eselect news did not brought it up (as far as I recall)...
Comment 6 Sebastian Luther (few) 2009-11-19 20:28:48 UTC
(In reply to comment #5)
> Great, thanks!
> BTW, to learn: where can I learn about this kind of stuff? eselect news did not
> brought it up (as far as I recall)...
> 

You're right there was no eselect news. The only announcement I can remember was on planet gentoo [1]. [2] is the original post.

[1] http://planet.gentoo.org/
[2] http://dev-zero.ch/blog/articles/4/slotted-boost