Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 231716 - encfs-1.4.2 can't be build with boost 1.35
Summary: encfs-1.4.2 can't be build with boost 1.35
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Marcelo Goes (RETIRED)
URL: https://bugs.launchpad.net/encfs/+bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-13 20:22 UTC by Michal Hrusecky
Modified: 2008-12-09 23:36 UTC (History)
2 users (show)

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


Attachments
Working ebuild for SVN version (encfs-9999.ebuild,870 bytes, text/plain)
2008-07-13 20:26 UTC, Michal Hrusecky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Hrusecky 2008-07-13 20:22:10 UTC
Build fails with following error:

FileUtils.cpp: In function 'void boost::serialization::load(Archive&, EncFSConfig&, unsigned int)':
FileUtils.cpp:164: error: there are no arguments to 'make_binary_object' that depend on a template parameter, so a declaration of 'make_binary_object' must be available
FileUtils.cpp:164: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)

This can be easily solved by adding missing header (mentioned in link), but then it fails with linking:

x86_64-pc-linux-gnu-g++ -DRLOG_COMPONENT=encfs -I/usr/include -DLOCALEDIR=\"/usr/share/locale\" -W -Wall -Wpointer-arith -Wwrite-strings -O3 -pipe -fomit-frame-pointer -pthread -o .libs/test test.o  ./.libs/libencfs.so /usr/lib64/librlog.so -lssl -lcrypto -ldl /usr/lib64/libfuse.so -lboost_serialization-mt 
./.libs/libencfs.so: undefined reference to `boost::system::get_posix_category()'
./.libs/libencfs.so: undefined reference to `boost::system::get_system_category()'
collect2: ld returned 1 exit status

I didn't found any easy way, how to solve this, but it is solved in current SVN version.
Comment 1 Michal Hrusecky 2008-07-13 20:26:52 UTC
Created attachment 160282 [details]
Working ebuild for SVN version

With this ebuild I successfully emerged encfs. Maybe snapshot version would be solution.
Comment 2 Bernd Butscheidt 2008-08-07 19:48:36 UTC
(In reply to comment #1)
> Created an attachment (id=160282) [edit]
> Working ebuild for SVN version
> 
> With this ebuild I successfully emerged encfs. Maybe snapshot version would be
> solution.
>

Tried this ebuild - it compiled fine on may amd64-maschine.
Comment 3 Marcelo Goes (RETIRED) gentoo-dev 2008-11-03 02:09:03 UTC
Guys,

I just bumped encfs to 1.5 in cvs, does it work ok?

Cheers
Comment 4 Michal Hrusecky 2008-11-03 10:53:23 UTC
Works ok against my current gentoo, thanks
Comment 5 Bernd Butscheidt 2008-11-08 19:21:55 UTC
emerge -s encfs:

*  sys-fs/encfs
      Latest version available: 1.5
      Latest version installed: 1.5

The current one in portage works here on my amd64.


Comment 6 Marcelo Goes (RETIRED) gentoo-dev 2008-11-08 23:45:59 UTC
Thanks, guys!
Comment 7 Cody Harris 2008-12-06 00:08:49 UTC
I'm still having problems with this on 1.5, boost 1.35.0-r2.

Portage 2.1.6_rc3 (default-linux/x86/2007.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-gentoo-r4-qb i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r4-qb-i686-Genuine_Intel-R-_CPU_T2500_@_2.00GHz-with-glibc2.0
Timestamp of tree: Fri, 05 Dec 2008 08:10:01 +0000
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -mfpmath=sse -O2 -pipe -fomit-frame-pointer -fno-ident"
CHOST="i686-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"
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/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=prescott -mfpmath=sse -O2 -pipe -fomit-frame-pointer -fno-ident"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS=""
MAKEOPTS=""
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"
PORTDIR_OVERLAY="/usr/local/portage/layman/rbu"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa apache2 apm ares avahi avi bash-completion bcmath berkdb bl bonjour bzip2 cairo cdinstall cdparanoia cdr cg cisco cli cracklib crypt cups cups-arts curl dbus devil dillo divx4linux doc double-precision dri dts dv dvb dvd dvdr dvdread encode esd evo exif extrafilters fame fat ffmpeg fftw flac foomaticdb fortran fuse gdbm gif gimp glitz glut gphoto2 gpm gtk hal hfs iconv ieee1394 imap imlib innodb ipod ipv6 isdnlog java jpeg jpeg2k kde lame laptop latex libnotify lm_sensors lua mdnsresponder-compat midi mime mmap mmx mono moonlight mp2 mp3 mpeg mplayer msn mudflap musicbrainz mysql ncurses network nls nptl nptlonly nsplugin ntfs nvidia offensive ogg openal openexr opengl openmp pam pcre perl png ppds pppd python qt-static qt3 qt3support qt4 quicktime readline reflection samba sdl session slang smp spell spl sqlite sqlite3 sse sse2 ssl subtitles subversion svg tcpd theora threads timidity truetype unicode usb v4l v4l2 visualization vorbis wifi win32codecs wxwindows x x264 x86 xcb xcomposite xft xml xorg xpm xulrunner xv xvid 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" CAMERAS="adc65 agfa_cl20 aox barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 stv0674 stv0680 sx330z template toshiba_pdrm11" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 8 Bernd Butscheidt 2008-12-06 10:47:07 UTC
(In reply to comment #7)
> I'm still having problems with this on 1.5, boost 1.35.0-r2.


Yes it's true, what happened in between? I couldn't rebuild encfs-1.5


==================================

./.libs/libencfs.so: undefined reference to `boost::system::get_posix_category()'
./.libs/libencfs.so: undefined reference to `boost::system::get_system_category()'
collect2: ld returned 1 exit status
make[2]: *** [test] Error 1
make[2]: *** Waiting for unfinished jobs....
x86_64-pc-linux-gnu-g++ -DRLOG_COMPONENT=encfs -I/usr/kerberos/include -I/usr/include -DLOCALEDIR=\"/usr/share/locale\" -W -Wall -Wpointer-arith -Wwrite-strings -march=athlon64 -O2 -pipe -pthread -Wl,-O1 -o .libs/encfsctl encfsctl.o  ./.libs/libencfs.so /usr/lib64/librlog.so -lssl -lcrypto -ldl /usr/lib64/libfuse.so -lboost_serialization-mt-s -lboost_filesystem-mt-s
x86_64-pc-linux-gnu-g++ -DRLOG_COMPONENT=encfs -I/usr/kerberos/include -I/usr/include -DLOCALEDIR=\"/usr/share/locale\" -W -Wall -Wpointer-arith -Wwrite-strings -march=athlon64 -O2 -pipe -pthread -Wl,-O1 -o .libs/encfs encfs.o main.o  ./.libs/libencfs.so /usr/lib64/librlog.so -lssl -lcrypto -ldl /usr/lib64/libfuse.so -lboost_serialization-mt-s -lboost_filesystem-mt-s
./.libs/libencfs.so: undefined reference to `boost::system::get_posix_category()'
./.libs/libencfs.so: undefined reference to `boost::system::get_system_category()'
collect2: ld returned 1 exit status
make[2]: *** [encfsctl] Error 1
./.libs/libencfs.so: undefined reference to `boost::system::get_posix_category()'
./.libs/libencfs.so: undefined reference to `boost::system::get_system_category()'
collect2: ld returned 1 exit status
make[2]: *** [encfs] Error 1
make[2]: Leaving directory `/extern02/var/tmp/portage/sys-fs/encfs-1.5/work/encfs-1.5/encfs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/extern02/var/tmp/portage/sys-fs/encfs-1.5/work/encfs-1.5'
make: *** [all] Error 2
 *
 * ERROR: sys-fs/encfs-1.5 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2137:  Called die
 * The specific snippet of code:
 *       emake || die
 *  The die message:
 *   (no error message)
==================================================



==========================

emerge --info
Portage 2.2_rc16 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r2-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3600+-with-glibc2.2.5
Timestamp of tree: Sat, 06 Dec 2008 09:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
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.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -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/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/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ 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 http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://de-mirror.org/distro/gentoo/ "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_GB 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"
PORTDIR_OVERLAY="/usr/portage/local/own /usr/local/portage/layman/berkano /usr/local/portage/layman/sunrise /usr/local/portage/layman/portato /usr/local/portage/layman/java-overlay /usr/local/portage/layman/kde-testing"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dga dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gpm gstreamer hal iconv ipv6 isdnlog jpeg kde ldap libnotify mad midi mikmod mmx mp3 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis xml xorg xv zlib" ALSA_CARDS="HDA NVidia" 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="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB de" USERLAND="GNU" VIDEO_CARDS="mga nv nvidia nvidia%"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 Cody Harris 2008-12-08 17:43:41 UTC
The SVN version builds correctly, did somebody accidentally roll back to an older version?
Comment 10 Bernd Butscheidt 2008-12-09 23:36:01 UTC
(In reply to comment #9)
> The SVN version builds correctly, <

Confirmed. SVN versions works, 1.5 doesn't compile any more