Hi,
I'm trying to install the GPL version of OSS 4.2 2019 on Gentoo on an VERY old Via ME6000 PC that only supports i585.
I can successfully compile all the OSS sources on Gentoo Kernels 4.19.17 & 4.14.166 and it even detects the Lynx One sound card.
But when soundon tries to load osscore I get:
modprobe: ERROR: could not insert 'osscore': Unknown symbol in module, or unknown parameter (see dmesg)
in dmesg:
[ 3599.432297] osscore: loading out-of-tree module taints kernel.
[ 3599.449386] osscore: Unknown symbol _GLOBAL_OFFSET_TABLE_ (err -2) or (err 0) on the older kernel version
I did the following to install:
tar -xvjf oss-v*.tar.bz2
ADDED "#include <sys/sysmacros.h>" to the list of includes in os_cmd/Linux/ossdetect/ossdetect.c
mkdir /usr/src/oss-build
cd /usr/src/oss-build
sh /root/oss-v*-src-gpl/configure --only-drv=lynxone
make build
make install
Which worked a few years back with kernel 3.xx, what am I doing wrong? Or is there an easier way to install it on Gentoo?
Thanks,
Ian
osscore: Unknown symbol _GLOBAL_OFFSET_TABLE
Moderators: dev, hannu, cesium
Re: osscore: Unknown symbol _GLOBAL_OFFSET_TABLE
Try patching "setup/srcconf.c" with the following patch before running configure.
If that doesn't work run:
and post the output in your reply.
Code: Select all
--- setup/srcconf_c.bak 2020-02-14 19:08:19.874268725 +0000
+++ setup/srcconf.c 2020-02-14 19:09:41.323670459 +0000
@@ -952,7 +952,7 @@
#if defined(__SCO_VERSION__)
fprintf (f, "CFLAGS=-O -D_KERNEL -D_DDI=8\n");
#else
- fprintf (f, "CFLAGS += -D_KERNEL\n");
+ fprintf (f, "CFLAGS += -D_KERNEL -fno-pic\n");
#endif
#ifdef HAVE_KERNEL_FLAGS
add_kernel_flags (f);Code: Select all
grep ^CFLAGS /usr/src/oss-build/kernel/drv/lynxone/Makefileregards
Clive
Clive
Re: osscore: Unknown symbol _GLOBAL_OFFSET_TABLE
Thanks for your help/reply Clive.
I applied the patch for "Unknown symbol _GLOBAL_OFFSET_TABLE_" in aka's thread below, it also works for the 2019 version of oss.
I also needed to add "#include <sys/sysmacros.h>" to the list of includes in os_cmd/Linux/ossdetect/ossdetect.c
osstest works, now to figure out why I get a segmentation fault when my old music player application tries to use mpd/mpc....
I applied the patch for "Unknown symbol _GLOBAL_OFFSET_TABLE_" in aka's thread below, it also works for the 2019 version of oss.
I also needed to add "#include <sys/sysmacros.h>" to the list of includes in os_cmd/Linux/ossdetect/ossdetect.c
osstest works, now to figure out why I get a segmentation fault when my old music player application tries to use mpd/mpc....
Who is online
Users browsing this forum: Baidu [Spider] and 98 guests