Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 203766 - net-p2p/linkage-0.1.4 fails to compile missing default constructor
Summary: net-p2p/linkage-0.1.4 fails to compile missing default constructor
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-30 13:38 UTC by Orson Teodoro
Modified: 2008-07-05 08:32 UTC (History)
0 users

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


Attachments
ebuild patched (linkage-0.1.4.ebuild,1.18 KB, text/plain)
2007-12-30 13:39 UTC, Orson Teodoro
Details
patch for lib/linkage/plugin.hh (linkage-0.1.4-plugin-constructor.patch,414 bytes, text/plain)
2007-12-30 13:41 UTC, Orson Teodoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Orson Teodoro 2007-12-30 13:38:31 UTC
I cannot compile out of the box with success.  You gotta supply an explicit constructor it because the compiler complains only non-default constructor exists for struct.

Reproducible: Always

Steps to Reproduce:
1.emerge linkage
  fail
2.
3.

Actual Results:  
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -march=athlon64 -O2 -pipe -fforce-addr -fomit-frame-pointer -fmerge-all-constants -frename-registers -ffast-math -I/usr/include/gtkmm-2.4 -I/usr/lib64/gtkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib64/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/gtk-2.0/include -I/usr/include/cairomm-1.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/atk-1.0 -I/usr/include/libtorrent -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DORBIT2=1 -pthread -I/usr/include/gconfmm-2.6 -I/usr/lib64/gconfmm-2.6/include -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include -I/usr/include/gconf/2 -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/orbit-2.0 -march=athlon64 -O2 -pipe -fforce-addr -fomit-frame-pointer -fmerge-all-constants -frename-registers -ffast-math -MT liblinkage_1_la-Engine.lo -MD -MP -MF .deps/liblinkage_1_la-Engine.Tpo -c Engine.cc  -fPIC -DPIC -o .libs/liblinkage_1_la-Engine.o
In file included from Engine.cc:23:
linkage/PluginManager.hh:32: error: base `Plugin::Info' with only non-default constructor in class without a constructor
make[3]: *** [liblinkage_1_la-Engine.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/net-p2p/linkage-0.1.4/work/linkage-0.1.4/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-p2p/linkage-0.1.4/work/linkage-0.1.4/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-p2p/linkage-0.1.4/work/linkage-0.1.4'
make: *** [all] Error 2

Expected Results:  
Emerge success...
 * Installing GNOME 2 GConf schemas
 * Reloading GConf schemas ...                                            [ ok ]
 * Updating desktop mime database ...
 * Updating shared mime info database ...
 * Updating icons cache ...                                               [ ok ]
>>> Regenerating /etc/ld.so.cache...
>>> net-p2p/linkage-0.1.4 merged.
>>> Recording net-p2p/linkage in "world" favorites file...

>>> No packages selected for removal by clean
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.
 * GNU info directory index is up-to-date.


I will supply a default constructor patch for plugin.hh along with an ebuild that will patch it.

Portage 2.1.3.19 (hardened/amd64/multilib, gcc-3.4.6-vanilla, glibc-2.6.1-r0, 2.6.23-hardened-r4 x86_64)
=================================================================
System uname: 2.6.23-hardened-r4 x86_64 AMD Sempron(tm) Processor 2600+
Timestamp of tree: Sun, 30 Dec 2007 06:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fforce-addr -fomit-frame-pointer -fmerge-all-constants -frename-registers -ffast-math"
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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fforce-addr -fomit-frame-pointer -fmerge-all-constants -frename-registers -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.mirrors.tds.net/gentoo "
LANG="C"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 crypt hardened justify midi minimal nptl nptlonly pam pic ssl urandom xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 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" USERLAND="GNU" VIDEO_CARDS="none dummy nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Orson Teodoro 2007-12-30 13:39:20 UTC
Created attachment 139624 [details]
ebuild patched

patched ebuild
Comment 2 Orson Teodoro 2007-12-30 13:41:08 UTC
Created attachment 139625 [details]
patch for lib/linkage/plugin.hh

patch adds default constructor
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2008-02-02 11:55:35 UTC
I can't reproduce but I haven't tried any insane CFLAGS or CXXFLAGS like yours.
You need to open a issue at http://code.google.com/p/linkage/issues/list 
because upstrema is best to review it.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2008-07-05 08:32:49 UTC
Not in tree anymore. See bug 220769.