Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error: libdl.so.2, needed by libncursesw.so whilst building kernel

29 views
Skip to first unread message

Mark Hobley

unread,
Mar 13, 2009, 8:08:01 PM3/13/09
to
I am trying to compile kernel 2.6.28.7 on a scratch build linux based
system.

tar xjf linux-2.6.28.7.tar.bz2
cd linux-2.6.28.7
make config
HOSTLD scripts/kconfig/conf
/usr/bin/ld: warning: libdl.so.2, needed by
/usr/lib/gcc/i486-pc-linux-gnu/4.1.2/../../../libncursesw.so, not found
(try using -rpath or -rpath-link)
/usr/lib/gcc/i486-pc-linux-gnu/4.1.2/../../../libncursesw.so: undefined
reference to `dlsym@GLIBC_2.0'
/usr/lib/gcc/i486-pc-linux-gnu/4.1.2/../../../libncursesw.so: undefined
reference to `dlopen@GLIBC_2.1'
/usr/lib/gcc/i486-pc-linux-gnu/4.1.2/../../../libncursesw.so: undefined
reference to `dlclose@GLIBC_2.0'
collect2: ld returned 1 exit status
make[1]: *** [scripts/kconfig/conf] Error 1
make: *** [config] Error 2

ls -l /lib/libdl*

-rwxr-xr-x 1 root root 14956 2007-11-29 04:30 /lib/libdl-2.5.1.so
lrwxrwxrwx 1 root root 14 2007-11-29 04:31 /lib/libdl.so.2
-> libdl-2.5.1.so

ls -l /lib/libncurses*

lrwxrwxrwx 1 root root 18 2007-11-29 06:10 /lib/libncursesw.so.5
-> libncursesw.so.5.6
-rwxr-xr-x 1 root root 315468 2007-11-29 06:10 /lib/libncursesw.so.5.6

ls -ld /usr/lib/libdl*
-rw-r--r-- 1 root root 8146 2007-11-29 04:30 /usr/lib/libdl.a
lrwxrwxrwx 1 root root 20 2007-11-29 04:30 /usr/lib/libdl.so
-> ../../lib/libdl.so.2

ls -ld /usr/lib/libncurses*
-rw-r--r-- 1 root root 410554 2009-03-13 22:17 /usr/lib/libncurses.a
-rw-r--r-- 1 root root 123170 2009-03-13 22:18 /usr/lib/libncurses++.a
-rw-r--r-- 1 root root 2314938 2009-03-13 22:17 /usr/lib/libncurses_g.a
-rw-r--r-- 1 root root 18 2007-11-29 06:10 /usr/lib/libncurses.so
lrwxrwxrwx 1 root root 26 2007-11-29 06:10 /usr/lib/libncursesw.so
-> ../../lib/libncursesw.so.5
-rw-r--r-- 1 root root 18 2007-11-29 06:10
/usr/lib/libncursesw.so.5.6

Does anyone know how to resolve this?

Mark.

--
Mark Hobley
Linux User: #370818 http://markhobley.yi.org/

philo

unread,
Mar 13, 2009, 8:50:19 PM3/13/09
to


You will simply have to install the needed libraries...
it may be a minor PITA but it should not take more than a few minutes

Mark Hobley

unread,
Mar 14, 2009, 5:08:02 AM3/14/09
to
philo <ph...@privacy.net> wrote:
> You will simply have to install the needed libraries...
> it may be a minor PITA but it should not take more than a few minutes

Don't I already have them? Where do I get libdl from?

philo

unread,
Mar 14, 2009, 8:00:27 AM3/14/09
to
Mark Hobley wrote:
> philo <ph...@privacy.net> wrote:
>> You will simply have to install the needed libraries...
>> it may be a minor PITA but it should not take more than a few minutes
>
> Don't I already have them? Where do I get libdl from?
>
> Mark.
>
It depends on which distribution you were based

for the best help...you will need to state exactly which distribution
you are using.

If you are not familiar with package installation,
you are not yet ready to compile your own kernel...
best to learn the basics first prior to attempting expert level tasks.

Mark Hobley

unread,
Mar 14, 2009, 9:08:03 AM3/14/09
to
philo <ph...@privacy.net> wrote:
> for the best help...you will need to state exactly which distribution
> you are using.

I am using the latest Linux from Scratch LiveCD.

> If you are not familiar with package installation,
> you are not yet ready to compile your own kernel...
> best to learn the basics first prior to attempting expert level tasks.

I am familiar with:

./configure
make

I am also familiar with the kernel style:

make config (and make menuconfig).

I have built a kernel before. But last time I did it, I was using a
different distribution, and this error did not occur.

The problem is occuring during compilation of the configurator (The bit
that asks me the questions), not the kernel itself. I guess that there
is some sort of fault with ncurses.

If "make config" does not work, then I cannot generate a config file in
order to build the headers, which I will need to rebuild glibc.

philo

unread,
Mar 14, 2009, 11:51:20 AM3/14/09
to

Well

I am not familiar with Linux from Scratch...

all I can tell you is that when I first started to learn about Linux...
my main problem was that I was trying too hard to configure a minimal
system...and ended up missing too many packages...
I'd then have to hunt down and add library after library.

I then decided to go the opposite route and install a full linux
distribution...such as Slackware( on DVD)
then all libraries and headers would already be there when needed.

Once I gained familiarity I learned how to slim-down a system .


Mark Hobley

unread,
Mar 16, 2009, 4:08:01 PM3/16/09
to
Mark Hobley <markh...@hotpop.donottypethisbit.com> wrote:
> If "make config" does not work, then I cannot generate a config file in
> order to build the headers, which I will need to rebuild glibc.

A workaround for this was to generate the .config configuration file on
another machine, and then copy it across.

0 new messages