Broken compilation

Bug #278427 reported by Thiago Marcos P. Santos
42
This bug affects 3 people
Affects Status Importance Assigned to Milestone
alsa-driver (Ubuntu)
Invalid
Low
Daniel T Chen

Bug Description

Binary package hint: alsa-source

Missing include. Patch/fix attached.

/usr/src/modules/alsa-driver/acore/info.c:90: error: implicit declaration of function ‘PAGE_ALIGN’

Useful information:
- Ubuntu intrepid (development branch)
- alsa-source_1.0.17.dfsg-2ubuntu1
- linux-headers_2.6.27-4

Revision history for this message
Thiago Marcos P. Santos (tmpsantos) wrote :
Revision history for this message
Grizzly (sven-witterstein) wrote :

Oops - when marking those bugs dupes, I only later saw about the info.c autogeneration. Interesting feature. info.c is autogenerated, so it can only be patched afterwards -> who and how generates info.c? there must be written the missing header.

Revision history for this message
Maykel Moya (mmoyar) wrote :
Download full text (5.3 KiB)

I was able to build the module with the attached patch. My kernel then oops when I modprobe snd_hda_intel.

My system:
root@emma:/usr/src# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu intrepid (development branch)
Release: 8.10
Codename: intrepid

linux-image-2.6.27-6-generic 2.6.27-6.9
alsa-source 1.0.17.dfsg-2ubuntu1

[26991.869241] HDA Intel 0000:00:1b.0: power state changed by ACPI to D0
[26991.869258] HDA Intel 0000:00:1b.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[26991.869290] HDA Intel 0000:00:1b.0: setting latency timer to 64
[26991.968263] BUG: unable to handle kernel NULL pointer dereference at 00000000
[26991.968269] IP: [<c0254c5a>] vsnprintf+0x3a/0x7b0
[26991.968278] *pde = 00000000
[26991.968287] Oops: 0000 [#1] SMP
[26991.968293] Modules linked in: snd_hda_intel(+) snd_hwdep snd_pcm_oss snd_pcm snd_page_alloc snd_mixer_oss snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device snd soundcore btusb bluetooth ipv6 af_packet i915 drm binfmt_misc sbs sbshc pci_slot nf_conntrack_ftp nf_conntrack_irc ipt_ULOG xt_limit xt_tcpudp xt_state nf_conntrack_ipv4 nf_conntrack iptable_filter ip_tables x_tables visor usbserial vboxdrv sbp2 lp loop usbhid pcmcia hid joydev arc4 ecb crypto_blkcipher iwl3945 rfkill parport_pc evdev parport mac80211 yenta_socket led_class rsrc_nonstatic psmouse video output pcmcia_core serio_raw cfg80211 container tpm_infineon tpm tpm_bios battery pcspkr ac button intel_agp agpgart wmi iTCO_wdt iTCO_vendor_support shpchp pci_hotplug ext3 jbd mbcache sr_mod cdrom ata_generic sd_mod crc_t10dif sg ata_piix pata_acpi ahci ohci1394 tg3 libata ieee1394 scsi_mod dock libphy ehci_hcd uhci_hcd usbcore dm_mirror dm_log dm_snapshot dm_mod thermal processor fan fbcon tileblit font bitblit softcursor uvesafb fuse [last unloaded: soundcore]
[26991.968392]
[26991.968396] Pid: 11100, comm: modprobe Tainted: P (2.6.27-6-generic #1)
[26991.968399] EIP: 0060:[<c0254c5a>] EFLAGS: 00010292 CPU: 1
[26991.968404] EIP is at vsnprintf+0x3a/0x7b0
[26991.968406] EAX: dd1accb0 EBX: 00000000 ECX: 00000000 EDX: 00000014
[26991.968409] ESI: fffffff4 EDI: f7bfee80 EBP: f741bd44 ESP: f741bc20
[26991.968411] DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
[26991.968413] Process modprobe (pid: 11100, ti=f741a000 task=c1c13240 task.ti=f741a000)
[26991.968415] Stack: 00000000 00000400 f741bc44 0012654d 00000000 c1901fe0 c1901fe0 00000014
[26991.968423] dd1acc9c f741bc8c c0129f57 dd1accb0 f741bc78 c1c13240 f06ee480 f741bc84
[26991.968430] c0102df6 c1c1357c c1903980 f741bc8c c012848b c1905d00 dd495a40 00000001
[26991.968437] Call Trace:
[26991.968443] [<c0129f57>] ? load_balance_newidle+0x97/0x270
[26991.968455] [<c0102df6>] ? __switch_to+0xa6/0x160
[26991.968459] [<c012848b>] ? finish_task_switch+0x2b/0xe0
[26991.968463] [<c037dec9>] ? schedule+0x429/0x790
[26991.968467] [<c01052af>] ? mcount_call+0x5/0x16
[26991.968472] [<f8adf503>] ? snd_ctl_notify+0x23/0x1c0 [snd]
[26991.968484] [<c037fa41>] ? _spin_lock_irqsave+0x31/0x40
[26991.968488] [<c01ae03d>] ? unfreeze_slab+0x7d/0xc0
[26991.968493] [<c037fb5d>] ? _spin_lock+0xd/0x...

Read more...

Revision history for this message
Rodrigo Pinheiro (ametade) wrote :

I'm having exactly the same problem. I have to build alsa from source because my sound card (echo mia) is not supported by Ubuntu out of the box.

At Intrepid I get the same error when building alsa. If I apply the patch supplied I can build alsa, but when I reboot, the boot process stops when modprobing alsa.

Revision history for this message
Alessandro Rossini (alessandro.rossini) wrote :

I can confirm the bug.

Ubuntu release: Kubuntu Intrepid 8.10 (All packages up-to-date)
Packages versions: alsa-source-1.0.17.dfsg-2ubuntu1

Best regards.

Revision history for this message
Rodrigo Pinheiro (ametade) wrote :

Hi everybody.

I managed to solved the problem using the latest drivers from alsa (alsa-driver-1.0.18a). Everything builds correctly, my sound card is correctly detected and I haven't got any problem booting the system now.

Regards.

Daniel T Chen (crimsun)
Changed in alsa-driver (Ubuntu):
assignee: nobody → crimsun
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Jani Monoses (jani) wrote :

Unless it still happens on a supported Ubuntu version this bug should be closed. Can any of the commenters so far confirm this is the case?

Revision history for this message
David Henningsson (diwic) wrote :

I'm closing this bug due to bug reporter inactivity, reported against a release now unsupported, and finally, because I believe it has been fixed in later versions of Ubuntu / alsa-driver.

Changed in alsa-driver (Ubuntu):
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.