Mailinglist Archive: opensuse (3442 mails)

< Previous Next >
Re: [SLE] pt_drv on 2.2.18
On Thursday 13 December 2001 08:19 am, you wrote:
> David McGlone wrote:
> > SOLUTION:
> > ---------
> > Set the link /usr/src/linux
> > to your current kernel-source tree before recompiling
> > kernel-modules like pt_drv, then your version mismatch
> > problem should be solved.
> >
> > I don't completly understand what he means in the solution by "Set the
> > link /usr/src/linux to your current kernel-source tree"
> > can anyone help me
>
> If you look in /usr/src/linux, there should be a symbolic
> link to your current linux kernel source; say /usr/src/linux-2.2.16.
> This will tell different apps where to look for the lib files
> of YOUR currently used kernel.
>
> So say you have a directory /usr/src/linux-2.2.16 and
> /usr/src/linux-2.2.18; how will the apps know which
> kernel you actually want to compile against? So you
> make a "symbolic link" /usr/src/linux to point to
> the one you want.
> So do this:
> rm /usr/src/linux (to remove the old link)
> then
> ln -s /usr/src/linux /usr/src/linux-2.2.18
>
> Hope that helps, your actually directory names may
> be different.

Im in a little bit of trouble, it seems "rm /usr/src/linux" removed the top
level folder "linux" in /usr/src.

and ln -s /usr/src/linux /usr/src/linux-2.2.18 did create a symlink but then
when I try to recompile I am getting:

dmcglone@buddy:~/.sane/sane-backends-1.0.6 > make
making all in lib
make[1]: Entering directory `/home/dmcglone/.sane/sane-backends-1.0.6/lib'
rm -f .libs/sigprocmask.lo
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -D_GNU_SOURCE
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2 -W -Wall
sigprocmask.c -fPIC -DPIC -o .libs/sigprocmask.lo
In file included from /usr/include/errno.h:36,
from sigprocmask.c:21:
/usr/include/bits/errno.h:25: linux/errno.h: No such file or directory
make[1]: *** [sigprocmask.o] Error 1
make[1]: Leaving directory `/home/dmcglone/.sane/sane-backends-1.0.6/lib'
make: *** [all-recursive] Error 1

can anyone make anything of this? is this a result of removing my
/usr/src/linux?

if it is, is it fixable? or am I going to have to do a fresh install?

--
David M.
AIM: dmcglone27
ICQ:96210352
==========Registered linux user 226218===========

< Previous Next >
Follow Ups
References