LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-20-2014, 06:39 AM   #1
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 331

Rep: Reputation: 50
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

Last edited by Bazzaah; 03-20-2014 at 06:40 AM.
 
Old 03-20-2014, 09:09 AM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860

Rep: Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229
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.
 
Old 03-20-2014, 09:32 AM   #3
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,796

Rep: Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884
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
 
Old 03-20-2014, 09:52 AM   #4
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 331

Original Poster
Rep: Reputation: 50
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.
 
Old 03-20-2014, 10:41 AM   #5
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,796

Rep: Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884
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
 
Old 03-20-2014, 12:18 PM   #6
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
Blog Entries: 15

Rep: Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117
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.
 
1 members found this post helpful.
Old 03-20-2014, 01:12 PM   #7
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
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
 
Old 03-20-2014, 01:22 PM   #8
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 331

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by ReaperX7 View Post
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

Last edited by Bazzaah; 03-20-2014 at 01:26 PM.
 
Old 03-21-2014, 02:23 AM   #9
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,351

Rep: Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382
Quote:
Originally Posted by Bazzaah View Post
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.
 
Old 03-21-2014, 03:22 AM   #10
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 331

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by dugan View Post
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!
 
Old 03-24-2014, 02:19 AM   #11
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,351

Rep: Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382
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.
 
1 members found this post helpful.
Old 03-24-2014, 03:05 AM   #12
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,796

Rep: Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884
Now it's already on my branch
just waiting for the next public update to become available in the repository
 
Old 03-24-2014, 09:56 AM   #13
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 331

Original Poster
Rep: Reputation: 50
Thanks Dugan - will try this out later.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Build a single (oss) kernel module on Squeeze DJ Shaji Debian 2 09-17-2011 02:04 AM
Fail to build broadcom driver ol12345 Linux - Wireless Networking 2 10-11-2009 04:31 AM
D-Bus, Avahi and HAL fail to start after installing oss arrowed Linux - General 1 05-17-2008 12:09 PM
MySQL Build fail! keysorsoze Linux - Software 0 01-13-2008 07:52 PM
LXer: Consultant uses OSS to build CaringBridge for the sick LXer Syndicated Linux News 0 06-02-2007 12:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration