osscore: Unknown symbol _GLOBAL_OFFSET_TABLE

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, cesium

idk2069
New Member
Posts: 2
Joined: Wed Feb 12, 2020 10:30 pm
Sound Card: Lynx One
OS: Gentoo

osscore: Unknown symbol _GLOBAL_OFFSET_TABLE

Postby idk2069 » Wed Feb 12, 2020 10:41 pm

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

seawright
Known Member
Posts: 107
Joined: Sat Jan 06, 2007 9:10 pm
Location: Hampshire UK

Re: osscore: Unknown symbol _GLOBAL_OFFSET_TABLE

Postby seawright » Fri Feb 14, 2020 7:32 pm

Try patching "setup/srcconf.c" with the following patch before running configure.

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);
If that doesn't work run:

Code: Select all

grep ^CFLAGS /usr/src/oss-build/kernel/drv/lynxone/Makefile
and post the output in your reply.
regards
Clive

idk2069
New Member
Posts: 2
Joined: Wed Feb 12, 2020 10:30 pm
Sound Card: Lynx One
OS: Gentoo

Re: osscore: Unknown symbol _GLOBAL_OFFSET_TABLE

Postby idk2069 » Sat Feb 15, 2020 10:29 am

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....


Return to “Linux”

Who is online

Users browsing this forum: No registered users and 1 guest