Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48296 - undefined reference to `bfd_*`
Summary: undefined reference to `bfd_*`
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-19 00:34 UTC by Robert Karlsson
Modified: 2004-04-19 16:19 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 Robert Karlsson 2004-04-19 00:34:05 UTC
Cannot compile with -lmpatrol, then this error comes up:
gcc -g -O0 -Wall -std=gnu99 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wimplicit -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -W -Wno-unused -Wno-shadow -Wundef -Wpacked -Wbad-function-cast -Wfloat-equal -Werror -Wl,--warn-common -Wl,--fatal-warnings -o Y -Wl,-export-dynamic buffer/buffer.o buffer/bufferio.o buffer/rgbabuffer.o buffer/painter.o modules/theme.o modules/windowmanager.o main/control.o main/paths.o main/y.o main/config.o message/client.o message/message.o message/tuple.o util/colour.o util/dbuffer.o util/index.o util/log.o util/rectangle.o util/yutil.o util/pqueue.o util/list.o util/zorder.o input/keyboard.o input/pointer.o input/keymap.o text/font.o object/class.o screen/renderer.o screen/hwrenderer.o screen/swrenderer.o screen/simplerenderer.o screen/viewport.o modules/module.o object/object.o screen/screen.o widget/widget.o widget/window.o widget/desktop.o widget/label.o widget/gridlayout.o widget/button.o widget/canvas.o widget/console.o widget/checkbox.o widget/menu.o  -pthread /usr/lib/libfreetype.so -lpng12 -lz -lm -ldl -lmpatrol
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libmpatrol.so: undefined reference to `bfd_errmsg'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libmpatrol.so: undefined reference to `bfd_check_format'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libmpatrol.so: undefined reference to `bfd_init'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libmpatrol.so: undefined reference to `bfd_close'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libmpatrol.so: undefined reference to `bfd_openr'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libmpatrol.so: undefined reference to `bfd_get_error'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libmpatrol.so: undefined reference to `bfd_abs_section'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libmpatrol.so: undefined reference to `bfd_map_over_sections'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libmpatrol.so: undefined reference to `bfd_und_section'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libmpatrol.so: undefined reference to `bfd_openr_next_archived_file'
collect2: ld returned 1 exit status
make[2]: *** [Y] Fel 1
make[2]: Leaving directory `/home/bacon/ywin/Y--devel--0.2--patch-44/Y'
make[1]: *** [all] Fel 2
make[1]: Leaving directory `/home/bacon/ywin/Y--devel--0.2--patch-44/Y'
make: *** [all-recursive] Fel 1


Reproducible: Always
Steps to Reproduce:
1. emerge mpatrol
2. add -lmpatrol to LIBS in Makefile
3.run make

Actual Results:  
The error came up as described in the details section

Expected Results:  
compilation without errors..

bacon@bejkon Y--devel--0.2--patch-44 $ ls -la /usr/lib/libbfd*
-rwxr-xr-x  1 root root 628224 19 feb 23.19 /usr/lib/libbfd-2.14.90.0.8.so
-rw-r--r--  1 root root 798142 19 feb 23.19 /usr/lib/libbfd.a
-rwxr-xr-x  1 root root    757 19 feb 23.19 /usr/lib/libbfd.la
lrwxrwxrwx  1 root root     21 19 feb 23.19 /usr/lib/libbfd.so ->
libbfd-2.14.90.0.8.so
bacon@bejkon Y--devel--0.2--patch-44 $ ldd /usr/lib/libmpatrol.
libmpatrol.a       libmpatrol.so      libmpatrol.so.1.4
bacon@bejkon Y--devel--0.2--patch-44 $ ldd /usr/lib/libmpatrol.so
        linux-gate.so.1 =>  (0xffffe000)
        libstdc++.so.5 =>
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libstdc++.so.5 (0x40047000)
        libm.so.6 => /lib/libm.so.6 (0x400fd000)
        libgcc_s.so.1 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libgcc_s.so.1
(0x4011f000)
        libc.so.6 => /lib/libc.so.6 (0x40128000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
bacon@bejkon Y--devel--0.2--patch-44 $
Comment 1 Robert Karlsson 2004-04-19 16:19:40 UTC
This is a screwup from my side... just followed a tutorial and didn't think of the outcome.. just to add -lbfd to get the crap working of course....  Sorry for that..