LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   OSS build fail (http://www.linuxquestions.org/questions/slackware-14/oss-build-fail-4175498838/)

Bazzaah 03-20-2014 05:39 AM

OSS build fail
 
Hi

I wanted to try OSS on my Slackware-current install - OSS is really good on FreeBSD.

I get this error using the Slackbuild - can someone help me please work out what went wrong?

Code:

Open Sound System starting Thu Mar 20 09:49:56 GMT 2014
OSS version:  4.2 (b 2008/201403200938)
Kernel version:  3.10.30
Kernel vermagic:
Relinking OSS kernel modules for

OSS build environment set up for REGPARM kernels

Building module osscore
Failed to compile OSS
make -C /lib/modules/3.10.30/build M=/usr/lib64/oss/build modules
make[1]: Entering directory `/usr/src/linux-3.10.30'
  CC [M]  /usr/lib64/oss/build/osscore.o
/usr/lib64/oss/build/osscore.c: In function 'init_proc_fs':
/usr/lib64/oss/build/osscore.c:287:8: error: implicit declaration of function 'create_proc_entry' [-Werror=implicit-function-declaration]
        create_proc_entry ("opensound", 0700 | S_IFDIR, NULL)) == NULL)
        ^
/usr/lib64/oss/build/osscore.c:286:22: warning: assignment makes pointer from integer without a cast [enabled by default]
  if ((oss_proc_root =
                      ^
/usr/lib64/oss/build/osscore.c:293:26: warning: assignment makes pointer from integer without a cast [enabled by default]
  if ((oss_proc_devfiles =
                          ^
/usr/lib64/oss/build/osscore.c:300:20: error: dereferencing pointer to incomplete type
  oss_proc_devfiles->proc_fops = &oss_proc_operations;
                    ^
/usr/lib64/oss/build/osscore.c: In function 'alloc_fop':
/usr/lib64/oss/build/osscore.c:964:14: warning: assignment from incompatible pointer type [enabled by default]
  fop->fsync = oss_no_fsync;
              ^
/usr/lib64/oss/build/osscore.c: In function 'oss_pci_read_devpath':
/usr/lib64/oss/build/osscore.c:1638:3: warning: return discards 'const' qualifier from pointer target type [enabled by default]
  return dev_name(&dip->pcidev->dev);
  ^
In file included from include/linux/kernel.h:12:0,
                from include/linux/cache.h:4,
                from include/linux/time.h:4,
                from include/linux/stat.h:18,
                from include/linux/module.h:10,
                from /usr/lib64/oss/build/osscore.c:15:
/usr/lib64/oss/build/osscore.c: In function 'oss_fp_check':
include/linux/typecheck.h:11:18: warning: comparison of distinct pointer types lacks a cast [enabled by default]
  (void)(&__dummy == &__dummy2); \
                  ^
include/linux/irqflags.h:73:3: note: in expansion of macro 'typecheck'
  typecheck(unsigned long, flags); \
  ^
include/linux/irqflags.h:112:3: note: in expansion of macro 'raw_local_save_flags'
  raw_local_save_flags(flags);  \
  ^
/usr/lib64/oss/build/osscore.c:1862:3: note: in expansion of macro 'local_save_flags'
  local_save_flags (flags_reg);
  ^
include/linux/typecheck.h:11:18: warning: comparison of distinct pointer types lacks a cast [enabled by default]
  (void)(&__dummy == &__dummy2); \
                  ^
include/linux/irqflags.h:78:3: note: in expansion of macro 'typecheck'
  typecheck(unsigned long, flags); \
  ^
include/linux/irqflags.h:102:7: note: in expansion of macro 'raw_irqs_disabled_flags'
  if (raw_irqs_disabled_flags(flags)) { \
      ^
/usr/lib64/oss/build/osscore.c:1864:3: note: in expansion of macro 'local_irq_restore'
  local_irq_restore (flags_reg);
  ^
include/linux/typecheck.h:11:18: warning: comparison of distinct pointer types lacks a cast [enabled by default]
  (void)(&__dummy == &__dummy2); \
                  ^
include/linux/irqflags.h:68:3: note: in expansion of macro 'typecheck'
  typecheck(unsigned long, flags); \
  ^
include/linux/irqflags.h:103:4: note: in expansion of macro 'raw_local_irq_restore'
    raw_local_irq_restore(flags); \
    ^
/usr/lib64/oss/build/osscore.c:1864:3: note: in expansion of macro 'local_irq_restore'
  local_irq_restore (flags_reg);
  ^
include/linux/typecheck.h:11:18: warning: comparison of distinct pointer types lacks a cast [enabled by default]
  (void)(&__dummy == &__dummy2); \
                  ^
include/linux/irqflags.h:68:3: note: in expansion of macro 'typecheck'
  typecheck(unsigned long, flags); \
  ^
include/linux/irqflags.h:107:4: note: in expansion of macro 'raw_local_irq_restore'
    raw_local_irq_restore(flags); \
    ^
/usr/lib64/oss/build/osscore.c:1864:3: note: in expansion of macro 'local_irq_restore'
  local_irq_restore (flags_reg);
  ^
include/linux/typecheck.h:11:18: warning: comparison of distinct pointer types lacks a cast [enabled by default]
  (void)(&__dummy == &__dummy2); \
                  ^
include/linux/irqflags.h:73:3: note: in expansion of macro 'typecheck'
  typecheck(unsigned long, flags); \
  ^
include/linux/irqflags.h:112:3: note: in expansion of macro 'raw_local_save_flags'
  raw_local_save_flags(flags);  \
  ^
/usr/lib64/oss/build/osscore.c:1866:3: note: in expansion of macro 'local_save_flags'
  local_save_flags (flags_reg);
  ^
include/linux/typecheck.h:11:18: warning: comparison of distinct pointer types lacks a cast [enabled by default]
  (void)(&__dummy == &__dummy2); \
                  ^
include/linux/irqflags.h:78:3: note: in expansion of macro 'typecheck'
  typecheck(unsigned long, flags); \
  ^
include/linux/irqflags.h:102:7: note: in expansion of macro 'raw_irqs_disabled_flags'
  if (raw_irqs_disabled_flags(flags)) { \
      ^
/usr/lib64/oss/build/osscore.c:1871:3: note: in expansion of macro 'local_irq_restore'
  local_irq_restore (flags_reg);
  ^
include/linux/typecheck.h:11:18: warning: comparison of distinct pointer types lacks a cast [enabled by default]
  (void)(&__dummy == &__dummy2); \
                  ^
include/linux/irqflags.h:68:3: note: in expansion of macro 'typecheck'
  typecheck(unsigned long, flags); \
  ^
include/linux/irqflags.h:103:4: note: in expansion of macro 'raw_local_irq_restore'
    raw_local_irq_restore(flags); \
    ^
/usr/lib64/oss/build/osscore.c:1871:3: note: in expansion of macro 'local_irq_restore'
  local_irq_restore (flags_reg);
  ^
include/linux/typecheck.h:11:18: warning: comparison of distinct pointer types lacks a cast [enabled by default]
  (void)(&__dummy == &__dummy2); \
                  ^
include/linux/irqflags.h:68:3: note: in expansion of macro 'typecheck'
  typecheck(unsigned long, flags); \
  ^
include/linux/irqflags.h:107:4: note: in expansion of macro 'raw_local_irq_restore'
    raw_local_irq_restore(flags); \
    ^
/usr/lib64/oss/build/osscore.c:1871:3: note: in expansion of macro 'local_irq_restore'
  local_irq_restore (flags_reg);
  ^
include/linux/typecheck.h:11:18: warning: comparison of distinct pointer types lacks a cast [enabled by default]
  (void)(&__dummy == &__dummy2); \
                  ^
include/linux/irqflags.h:73:3: note: in expansion of macro 'typecheck'
  typecheck(unsigned long, flags); \
  ^
include/linux/irqflags.h:112:3: note: in expansion of macro 'raw_local_save_flags'
  raw_local_save_flags(flags);  \
  ^
/usr/lib64/oss/build/osscore.c:1873:3: note: in expansion of macro 'local_save_flags'
  local_save_flags (flags_reg);
  ^
cc1: some warnings being treated as errors
make[2]: *** [/usr/lib64/oss/build/osscore.o] Error 1
make[1]: *** [_module_/usr/lib64/oss/build] Error 2
make[1]: Leaving directory `/usr/src/linux-3.10.30'
make: *** [default] Error 2


Richard Cranium 03-20-2014 08:09 AM

Where did you find a slackbuild for -current? If you are using the 14.1 Slackbuild, you will have to either patch the oss source to compile against the new kernel version in current or find a version of the oss source that compiles against the 3.10.30 kernel.

You could also contact the Slackbuild maintainer (listed in the oss.info file) for any tips.

willysr 03-20-2014 08:32 AM

Just tested on Slackware64-14.1 VM using sbopkg and it built fine

Quote:

SUMMARY LOG
Using the SBo repository for Slackware 14.1
Queue Process: Download, build, and install

oss:
MD5SUM check for ender.zip ... OK
Building package oss-4.2.2008-x86_64-1_SBo.tgz ... OK
Installing package oss-4.2.2008-x86_64-1_SBo.tgz ... OK

Bazzaah 03-20-2014 08:52 AM

Thanks.

I'll set up stable installation and see if it's something I've done on current.

willysr - it does seem to build fine with sbopkg but fails on the reboot as it inserts the module (should have made that clearer in my op).

If it fails on 14.1, I'll mail Dugan Chen.

willysr 03-20-2014 09:41 AM

It could be due to kernel changes in current
Even though they shared the same base (3.10), but lots have happened between .17 and .30

ReaperX7 03-20-2014 11:18 AM

Look on the 4Front web forums for the kernel version patch. You will have to patch OSS post install to get it to build the driver upon the initial loading.

moisespedro 03-20-2014 12:12 PM

That is odd, I am running kernel 3.13.6 (downloaded off kernel.org and compiled it manually) and OSS build fine here.

oss:
MD5SUM check for ender.zip ... OK
Building package oss-4.2.2008-x86_64-1_SBo.tgz ... OK
Installing package oss-4.2.2008-x86_64-1_SBo.tgz ... OK

pedro@darkstar:~$ uname -a
Linux darkstar 3.13.6 #1 SMP PREEMPT Tue Mar 11 19:58:18 BRT 2014 x86_64 AMD FX(tm)-6300 Six-Core Processor AuthenticAMD GNU/Linux

Bazzaah 03-20-2014 12:22 PM

Quote:

Originally Posted by ReaperX7 (Post 5138125)
Look on the 4Front web forums for the kernel version patch. You will have to patch OSS post install to get it to build the driver upon the initial loading.

posted in error

dugan 03-21-2014 01:23 AM

Quote:

Originally Posted by Bazzaah (Post 5138045)
If it fails on 14.1, I'll mail Dugan Chen.

I'm reading the thread. :)

I'll look into it this weekend. And for sure, I'll follow ReaperX7's advice on where to start looking.

Bazzaah 03-21-2014 02:22 AM

Quote:

Originally Posted by dugan (Post 5138517)
I'm reading the thread. :)

I'll look into it this weekend. And for sure, I'll follow ReaperX7's advice on where to start looking.

Good to know, thanks!

dugan 03-24-2014 01:19 AM

I just submitted a SlackBuild for 4.2.009.

The following is from the release notes:

Quote:

- fixes for Linux 3.2 kernel interface changes
So: I assume that this should resolve the issue.

I've also found that the only browser that works with OSS4 is Opera. Neither Firefox nor Chromium do.

willysr 03-24-2014 02:05 AM

Now it's already on my branch
just waiting for the next public update to become available in the repository

Bazzaah 03-24-2014 08:56 AM

Thanks Dugan - will try this out later.


All times are GMT -5. The time now is 06:50 AM.