Bug 141433 - audio/aureal-kmod fails to build under RELENG_8
Summary: audio/aureal-kmod fails to build under RELENG_8
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-13 15:10 UTC by c.kworr
Modified: 2011-01-23 16:20 UTC (History)
0 users

See Also:


Attachments
file.diff (2.39 KB, patch)
2009-12-13 15:10 UTC, c.kworr
no flags Details | Diff
aureal-kmod.patch.txt (619 bytes, text/plain)
2010-01-01 19:57 UTC, c.kworr
no flags Details
aurel-kmod.patch (4.20 KB, patch)
2010-07-10 21:38 UTC, Alex
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description c.kworr 2009-12-13 15:10:01 UTC
When building port the process fails with:
cc -O2 -pipe -march=athlon-xp -fno-strict-aliasing -march=athlon-xp -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/usr/tmp/usr/ports/audio/aureal-kmod/work -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c /usr/tmp/usr/ports/audio/aureal-kmod/work/au88x0.c
cc1: warnings being treated as errors
/usr/tmp/usr/ports/audio/aureal-kmod/work/au88x0.c:535: warning: pointer type mismatch in conditional expression
/usr/tmp/usr/ports/audio/aureal-kmod/work/au88x0.c:691: warning: pointer type mismatch in conditional expression
/usr/tmp/usr/ports/audio/aureal-kmod/work/au88x0.c:692: warning: pointer type mismatch in conditional expression
/usr/tmp/usr/ports/audio/aureal-kmod/work/au88x0.c:694: warning: pointer type mismatch in conditional expression

Fix: The attached patch is actually a replacement for files/patch-au88x0.c which just adjusts some function returning types (int changed to uint32_t).

Patch attached with submission follows:
How-To-Repeat: Try to build port on RELENG_8.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-12-13 15:10:12 UTC
Class Changed
From-To: sw-bug->maintainer-update

Fix category (submitter is maintainer) (via the GNATS Auto Assign Tool)
Comment 2 c.kworr 2010-01-01 19:57:57 UTC
Alas I was wrong. The change between RELENG_7 and RELENG_8 is much 
deeper then just some build warnings. Compiling the module and trying to 
load it on the machine with Aureal Votex 8830 (Diamond Monster Sound) 
results in:

Jan  1 17:33:37 limbo kernel: pcm0: <Aureal Vortex 8830> port 
0xcc00-0xcc07,0xd000-0xd007 mem 0xe3000000-0xe303ffff irq 22 at device 
12.0 on pci0
Jan  1 17:33:37 limbo kernel: pcm0: [ITHREAD]
Jan  1 17:33:37 limbo kernel: pcm0: feeder_chain(): failed to acquire hw 
matrix [0x00000010]
Jan  1 17:33:37 limbo kernel: pcm0: feeder_chain(): failed to acquire hw 
matrix [0x00000010]

And I'm not that familiar with kernel sound system to fix that. For now 
I think that port should be marked broken for RELENG_8 and higher.

Patch attached.

-- 
Sphinx of black quartz judge my vow.
Comment 3 Martin Wilke freebsd_committer freebsd_triage 2010-02-13 11:17:14 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 4 dfilter service freebsd_committer freebsd_triage 2010-02-13 11:17:20 UTC
miwi        2010-02-13 11:17:07 UTC

  FreeBSD ports repository

  Modified files:
    audio/aureal-kmod    Makefile 
  Log:
  - Mark BROKEN fails to build on RELENG_8
  
  PR:             141433
  Submitted by:   Volodymyr Kostyrko <c.kworr@gmail.com> (maintainer)
  
  Revision  Changes    Path
  1.35      +7 -1      ports/audio/aureal-kmod/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 5 Alex 2010-07-10 21:38:05 UTC
This patch has solved this problem for me
Comment 6 c.kworr 2010-07-22 15:58:50 UTC
10.07.2010 23:38, Alex wrote:
> This patch has solved this problem for me

Well, can't test now.

My son teamed with my cat on smashing everything they can find and alas 
my AU8830A2 has lost some of its... errrr... outer parts. The time 
should pass for me to find some money to get this old piece of crap 
repaired. If you really care about the port I can give it to you to 
maintain.

-- 
Sphinx of black quartz judge my vow.
Comment 7 c.kworr 2011-01-15 21:54:31 UTC
10.07.2010 23:38, Alex wrote:
> This patch has solved this problem for me

Ok, I'm can confirm that this patch works for me on 8.2-PRERELEASE.

I have noticed some messages in system log when attaching/detaching driver:

Jan 15 23:47:51 limbo kernel: pcm0: <Aureal Vortex 8830> port 
0xcc00-0xcc07,0xd000-0xd007 mem 0xeb000000-0xeb03ffff irq 22 at device 
12.0 on pci0
Jan 15 23:47:51 limbo kernel: pcm0: [ITHREAD]
Jan 15 23:47:54 limbo kernel: pcm0: detached
Jan 15 23:47:54 limbo kernel: Warning: memory type PCMaucore leaked 
memory on destroy (1 allocations, 16 bytes leaked).
Jan 15 23:47:54 limbo kernel: pcm0: <Aureal Vortex 8830> port 
0xcc00-0xcc07,0xd000-0xd007 mem 0xeb000000-0xeb03ffff irq 22 at device 
12.0 on pci0
Jan 15 23:47:54 limbo kernel: pcm0: [ITHREAD]
Jan 15 23:47:55 limbo kernel: pcm0: detached
Jan 15 23:47:55 limbo kernel: Warning: memory type PCMaucore leaked 
memory on destroy (1 allocations, 16 bytes leaked).
Jan 15 23:47:55 limbo kernel: pcm0: <Aureal Vortex 8830> port 
0xcc00-0xcc07,0xd000-0xd007 mem 0xeb000000-0xeb03ffff irq 22 at device 
12.0 on pci0
Jan 15 23:47:55 limbo kernel: pcm0: [ITHREAD]

PS: This is very weird. We are supporting a piece of hardware that most 
other operating systems have already dumped. For lulz.

-- 
Sphinx of black quartz judge my vow.
Comment 8 Alex 2011-01-23 15:59:20 UTC
On Sat, 15 Jan 2011 23:54:31 +0200
Volodymyr Kostyrko <c.kworr@gmail.com> wrote:

> 10.07.2010 23:38, Alex wrote:
> > This patch has solved this problem for me
> 
> Ok, I'm can confirm that this patch works for me on 8.2-PRERELEASE.
> 
> I have noticed some messages in system log when attaching/detaching driver:
> 
> [...]

  These warnings bagan AFAIK from 6 branch or later.

> PS: This is very weird. We are supporting a piece of hardware that most 
> other operating systems have already dumped. For lulz.
> 

  I have an old computer as a home router, and this rudiment installed
in it. After upgrading to 8_RELEASE he disappeared, I adjusted the
port, and sent a patch, that's all.

  P.S. Of course I checked the patch before sending it.


> -- 
> Sphinx of black quartz judge my vow.
>