Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1708 - memprof doesn't build successfully
Summary: memprof doesn't build successfully
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-12 19:14 UTC by Matt Pharr
Modified: 2004-10-09 00:30 UTC (History)
2 users (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 Matt Pharr 2002-04-12 19:14:16 UTC
I get the following link errors when trying to "emerge memprof"

/bin/sh ./libtool --mode=link gcc  -march=i686 -O3 -pipe -Wall  -o memprof 
bfdutils.o inode.o leakdetect.o main.o process.o profile.o server.o tree.o
-rdynamic -L/usr/lib -L/usr/X11R6/lib -lglade-gnome -lglade -lxml -lz -lgnomeui
-lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -ldl -lXi -lXext -lX11
-lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -Wl,-Bstatic -lbfd
-liberty -Wl,-Bdynamic 
gcc -march=i686 -O3 -pipe -Wall -o memprof bfdutils.o inode.o leakdetect.o
main.o process.o profile.o server.o tree.o -rdynamic -L/usr/lib -L/usr/X11R6/lib
-lglade-gnome -lglade -lxml -lz -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE
-lgtk -lgdk -lgmodule -ldl -lXi -lXext -lX11 -lgnome -lgnomesupport -lesd
-laudiofile -lm -ldb1 -lglib -Wl,-Bstatic -lbfd -liberty -Wl,-Bdynamic
server.o: In function `create_control_socket':
server.o(.text+0xe8): the use of `mktemp' is dangerous, better use `mkstemp'
/usr/lib/libbfd.a(bfd.o): In function `bfd_scan_vma':
bfd.o(.text+0x22d): undefined reference to `_sch_istable'
/usr/lib/libbfd.a(srec.o): In function `srec_scan':
srec.o(.text+0xc5): undefined reference to `_sch_istable'
srec.o(.text+0x2fc): undefined reference to `_sch_istable'
srec.o(.text+0x531): undefined reference to `_sch_istable'
srec.o(.text+0x60c): undefined reference to `_sch_istable'
/usr/lib/libbfd.a(binary.o)(.text+0x1f8): more undefined references to
`_sch_istable' follow
/usr/lib/libbfd.a(elf-strtab.o): In function `_bfd_elf_strtab_finalize':
elf-strtab.o(.text+0x1cc): undefined reference to `htab_create'
elf-strtab.o(.text+0x1e1): undefined reference to `htab_create'
elf-strtab.o(.text+0x253): undefined reference to `htab_find_slot_with_hash'
elf-strtab.o(.text+0x27a): undefined reference to `htab_find_slot_with_hash'
elf-strtab.o(.text+0x2cc): undefined reference to `htab_delete'
elf-strtab.o(.text+0x2e1): undefined reference to `htab_delete'
/usr/lib/libbfd.a(aout32.o): In function `aout_link_write_symbols':
aout32.o(.text+0x459c): undefined reference to `_sch_istable'
/usr/lib/libbfd.a(archive.o): In function `_bfd_generic_read_ar_hdr_mag':
archive.o(.text+0x1ac): undefined reference to `_sch_istable'
/usr/lib/libbfd.a(archures.o): In function `bfd_default_scan':
archures.o(.text+0x180): undefined reference to `_sch_istable'
/usr/lib/libbfd.a(syms.o): In function `bfd_decode_symclass':
syms.o(.text+0x256): undefined reference to `_sch_toupper'
/usr/lib/libbfd.a(stabs.o): In function `_bfd_link_section_stabs':
stabs.o(.text+0x402): undefined reference to `_sch_istable'
/usr/lib/libbfd.a(merge.o): In function `merge_strings':
merge.o(.text+0x916): undefined reference to `htab_create'
merge.o(.text+0x937): undefined reference to `htab_create'
merge.o(.text+0x9cd): undefined reference to `htab_find_slot_with_hash'
merge.o(.text+0xa25): undefined reference to `htab_find_slot_with_hash'
merge.o(.text+0xa8d): undefined reference to `htab_delete'
merge.o(.text+0xaa2): undefined reference to `htab_delete'
collect2: ld returned 1 exit status
make[2]: *** [memprof] Error 1
make[2]: Leaving directory
`/var/tmp/portage/memprof-0.4.1-r1/work/memprof-0.4.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/memprof-0.4.1-r1/work/memprof-0.4.1'
make: *** [all-recursive-am] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 13, Exitcode 2
!!! (no error message)

!!! emerge aborting on  /usr/portage/dev-util/memprof/memprof-0.4.1-r1.ebuild .
Comment 1 Todd 2002-05-24 18:22:48 UTC
This ebuild requires, libbfd-2.9.1.0.24.so.  Portage does not carry such old
versions of binutils to supply this for us.  Mask the ebuild for now, until a
new version comes out or hack a fix into this?  Supposidly their is a cvs for
this somewhere, but I have yet to find it....
Comment 2 jochem prins 2002-10-17 10:26:13 UTC
Hi,

although my comment hasn't got much to do with this version of memprof, I do
want to mention a number of things.

- website adress mentioned in ebuild should be changed to:
 http://www.gnome.org/projects/memprof/
The website mentioned in the ebuild does still provide the right link for the
moment, but it's probably a matter of time.
- current gentoo ebuild version is memprof 0.4.1-r1, the current memprof version
on the previously mentioned website is at 0.5.1. So perhaps an update would be
nice ;)
Comment 3 Maik Schreiber 2003-01-17 17:41:31 UTC
Bouncing back to bug-wranglers due to time constraints.
Comment 4 foser (RETIRED) gentoo-dev 2003-01-23 06:39:22 UTC
Newer memprof has been in for a while, closing cause this bug is _old_.

If there's still a problem, just reopen.
Comment 5 Benjamin Collins 2004-10-09 00:30:50 UTC
I'm having problems with memprof building.  It sounds related to this bug, but also to these bugs: <a href="http://bugs.gentoo.org/show_bug.cgi?id=417">417</a> and <a href="http://bugs.gentoo.org/show_bug.cgi?id=46814">46814</a>.

The build problems seem to be similar to those in this bug as well as in #417, and I noticed a problem with the relink.patch patch at the beginning of the emerge as in #46814.

Here's my compiler error:

gcc -DHAVE_CONFIG_H -I. -I. -I. -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -DORBIT2=1 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/libxml2 -I/usr/include/libglade-2.0   -DDATADIR=\"/usr/share/memprof\" -DLIBDIR=\"/usr/lib\" -DGNOMELOCALEDIR=\""/usr/share/locale"\"    -O3 -march=athlon-mp -funroll-loops -fomit-frame-pointer -Wall -c `test -f 'inode.c' || echo './'`inode.c
bfdutils.c: In function `process_map_sections':
bfdutils.c:159: warning: cast to pointer from integer of different size
bfdutils.c:167: error: structure has no member named `_cooked_size'
make[2]: *** [bfdutils.o] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .libs/memintercept.lo memintercept.lo
make[2]: Leaving directory `/var/tmp/portage/memprof-0.5.1/work/memprof-0.5.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/memprof-0.5.1/work/memprof-0.5.1'
make: *** [all] Error 2

!!! ERROR: dev-util/memprof-0.5.1 failed.
!!! Function gnome2_src_compile, Line 40, Exitcode 2
!!! compile failure
!!! If you need support, post the topmost build error, NOT this status message.


My emerge info:
Portage 2.0.51_rc7 (default-x86-2004.0, gcc-3.4.2, glibc-2.3.4.20040808-r1, 2.6.7-gentoo-r11 i686)
=================================================================
System uname: 2.6.7-gentoo-r11 i686 AMD Athlon(tm) MP 2400+
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2
Headers:  sys-kernel/linux-headers-2.4.22
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-mp -funroll-loops -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-mp -funroll-loops -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb bitmap-fonts crypt cups doc encode esd f77 foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde ldap libg++ libwww mad mikmod motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline sdl slang spell ssl svga tcltk tcpd tetex truetype x86 xml2 xmms xprint xv zlib video_cards_radeon"