After adding an ~amd64 to the ebuild, an error ocurrs when compiling memprof-0.5.1: stack-frame.c: In function `mi_call_with_signal_backtrace': stack-frame.c:152: error: `stack_frame' undeclared (first use in this function) stack-frame.c:152: error: (Each undeclared identifier is reported only once stack-frame.c:152: error: for each function it appears in.) stack-frame.c:152: error: `frame' undeclared (first use in this function) stack-frame.c:156: warning: left-hand operand of comma expression has no effect stack-frame.c:158: warning: implicit declaration of function `next_frame' stack-frame.c:158: warning: left-hand operand of comma expression has no effect stack-frame.c:160: warning: implicit declaration of function `frame_return_address' stack-frame.c:160: warning: initialization makes pointer from integer without a cast stack-frame.c:156: warning: value computed is not used stack-frame.c:156: warning: value computed is not used make[2]: *** [stack-frame.lo] Error 1 make[2]: *** Se espera a que terminen otras tareas.... memintercept-utils.c: In function `mi_atomic_increment': memintercept-utils.c:275: error: `p' undeclared (first use in this function) memintercept-utils.c:275: error: (Each undeclared identifier is reported only once memintercept-utils.c:275: error: for each function it appears in.) memintercept-utils.c: In function `mi_atomic_decrement': memintercept-utils.c:290: error: `p' undeclared (first use in this function) As the vars used there are declared into a #define i386 section, i have modified it (patch avaiable) and now it's working. I also think that i386 version needs a patch too (also included). With the patches is working, but maybe it needs further coding :) Reproducible: Always Steps to Reproduce: 1.add ~amd64 to the ebuild 2.ebuild digest 3.emerge memprof Actual Results: error while compiling Expected Results: compilation ok nemesis ~ # emerge --info Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r7 x86_64) ================================================================= System uname: 2.6.11-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.12 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Jun 13 2005, 10:10:05)] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-march=athlon64 -O2 -pipe -msse2 -mmmx -m3dnow" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -pipe -msse2 -mmmx -m3dnow" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LC_ALL="es_ES" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X acpi alsa berkdb bitmap-fonts bonobo cdr cpudetection crypt curl dbus dvd dvdr dvdread eds emul-linux-x86 encode esd fam font-server fortran gif gnome gpm gstreamer gtk gtk2 hal imagemagick imlib ipv6 java javascript jp2 jpeg lm_sensors lzw lzw-tiff mozilla mp3 mpeg ncurses nls nptl nptlonly nvidia offensive ogg oggvorbis opengl oss pam perl png posix python qt readline samba sdl ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts unicode usb userlocales vorbis wxwindows xine xml2 xmms xpm xrandr xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LDFLAGS, LINGUAS
Created attachment 61489 [details, diff] First patch to apply
Created attachment 61490 [details, diff] Second patch
Created attachment 61491 [details, diff] Third patch (both archs)
It does not build here if the third patch is applied (on amd64) .. and without it, it does not work.. and there are assumptions that sizeof(int)==sizeof(void*) in process.c at least.. This program seems dead upstream (no release since 2002)
It's strange. For me works perfectly with 3 patches when using it without emerge (./configure, make, make install) but with emerge fails. Also, I have not fixed the original program problems, only make it compile/work in amd64 :p And if it seems dead.. as you wish: close the bug, fix the patches, leave all as-is... And sorry, I'm a newbie %-]
if you can get it to build inside portage, I'll happily add them to the tree
the problems is probably that the version in portage uses its own copy of bfd.h from an old version of binutils
Ok, now with my very own bfd.h (.gz) it works, but i dunno if it will work on x86, cannot test :_( I post the new bfd.h and a nasty ebuild :D
Created attachment 61524 [details] The new bfd.h
Created attachment 61525 [details] The nasty ebuild
With your 3 patches and you bfd.h it compiles, but I can't seem to be able to memprof any binary. And I the icons dont show up in the toolbar.l
closing per comment 11 however, feel free to re-open with a working patch