Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 261641 - app-office/openoffice-3.0.1 doesn't work with dev-libs/boost-1.37.0 (can't find shared_ptr.hpp)
Summary: app-office/openoffice-3.0.1 doesn't work with dev-libs/boost-1.37.0 (can't fi...
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-03-08 03:44 UTC by Adam Nielsen
Modified: 2009-03-08 11:50 UTC (History)
0 users

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 Adam Nielsen 2009-03-08 03:44:28 UTC
Emerging OpenOffice with Boost 1.37.0 installed doesn't work.  I think this is because previous versions of Boost were installed into /usr/include/, whereas the new versions have the version number in the path (e.g. /usr/include/boost-1_37/) to allow multiple versions to be installed simultaneously.  Looks like the OpenOffice ebuild isn't aware of this yet.

checking which boost to use... external
checking boost/shared_ptr.hpp usability... no
checking boost/shared_ptr.hpp presence... no
checking for boost/shared_ptr.hpp... no
configure: error: boost/shared_ptr.hpp not found. install boost
make: *** [stamp/build] Error 1
 *
 * ERROR: app-office/openoffice-3.0.1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 5592:  Called die
 * The specific snippet of code:
 *       make || die "Build failed"
 *  The die message:
 *   Build failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-office/openoffice-3.0.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/openoffice-3.0.1/temp/environment'.
 *
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.12"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER=""

$ locate shared_ptr.hpp
/usr/include/boost-1_37/boost/python/detail/value_is_shared_ptr.hpp
/usr/include/boost-1_37/boost/python/detail/is_shared_ptr.hpp
/usr/include/boost-1_37/boost/interprocess/smart_ptr/shared_ptr.hpp
/usr/include/boost-1_37/boost/shared_ptr.hpp
/usr/include/boost-1_37/boost/serialization/shared_ptr.hpp

== config.log ==

configure:17156: checking which boost to use
configure:17160: result: external
configure:17179: checking boost/shared_ptr.hpp usability
configure:17196: g++ -c -march=nocona -pipe -DGL_GLEXT_PROTOTYPES  conftest.cpp >&5
conftest.cpp:58:32: error: boost/shared_ptr.hpp: No such file or directory
configure:17203: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define SIZEOF_LONG 8
| #define HAVE_LIBCRYPT 1
| #define HAVE_MALLOC 1
| #define HAVE_REALLOC 1
| #define HAVE_CALLOC 1
| #define HAVE_FREE 1
| #define HAVE_LIBEXPAT 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <boost/shared_ptr.hpp>
configure:17217: result: no
configure:17221: checking boost/shared_ptr.hpp presence
configure:17236: g++ -E  conftest.cpp
conftest.cpp:25:32: error: boost/shared_ptr.hpp: No such file or directory
configure:17243: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define SIZEOF_LONG 8
| #define HAVE_LIBCRYPT 1
| #define HAVE_MALLOC 1
| #define HAVE_REALLOC 1
| #define HAVE_CALLOC 1
| #define HAVE_FREE 1
| #define HAVE_LIBEXPAT 1
| /* end confdefs.h.  */
| #include <boost/shared_ptr.hpp>
configure:17257: result: no
configure:17285: checking for boost/shared_ptr.hpp
configure:17292: result: no
configure:17299: error: boost/shared_ptr.hpp not found. install boost

== emerge --info ==
Portage 2.1.6.7 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28.3 x86_64)
=================================================================
System uname: Linux-2.6.28.3-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-glibc2.2.5
Timestamp of tree: Wed, 04 Mar 2009 16:00:01 +0000
app-shells/bash:     3.2_p48-r1
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.4.4-r6, 2.5.4-r2
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.3
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.3.8
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.1
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="-O2 -march=nocona -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/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="-O2 -march=nocona -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://localmirror/linux/Gentoo"
LANG="en_AU.UTF-8"
LC_ALL="en_AU.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_AU en_GB"
MAKEOPTS="-j12"
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="/usr/local/portage/layman/desktop-effects /usr/i686-mingw32/usr/portage"
SYNC="rsync://rsync/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 berkdb bzip2 cairo cli cracklib crypt cups dbus dri dts dv dvd exif ffmpeg flac gdbm gif gnome gpm gtk hal iconv ieee1394 inotify iproute2 ipv6 isdnlog jack java jpeg jpeg2k kde ladcca ladspa libsamplerate lirc mad matroska midi mmx mng modplug mp3 mplayer mudflap multilib mysql ncurses nls nonfsv4 nptl nptlonly ogg opengl openmp pam pcre perl php png pppd pulseaudio python readline reflection sdl session slang smp speex spl sse sse2 ssl svg sysfs syslog tcpd theora threads tiff truetype unicode vorbis wmf x264 xinerama xml xorg xscreensaver xv xvid xvmc zlib" ALSA_CARDS="emu10k1" 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 evdev microtouch mutouch" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_AU en_GB" LIRC_DEVICES="it87 serial" USERLAND="GNU" VIDEO_CARDS="nvidia vesa vga nv none"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-08 09:24:02 UTC
Please post the output of

  eselect boost show
Comment 2 Adam Nielsen 2009-03-08 11:50:42 UTC
Oh, I didn't realise there was an eselect for Boost.  It was "unset", so I set it to 1.37 and now OpenOffice is happily compiling.  Sorry for the noise!