Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 315237 - Request for dahdi-2.3.0 & dahdi-tools-2.3.0 ebuilds
Summary: Request for dahdi-2.3.0 & dahdi-tools-2.3.0 ebuilds
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
: 316009 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-14 09:47 UTC by Oliver Jaksch
Modified: 2010-05-24 18:53 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild for dahdi-2.3.0 (dahdi-2.3.0.ebuild,1.96 KB, text/plain)
2010-04-14 09:49 UTC, Oliver Jaksch
Details
updated patch for gentoo-dahdi-patchset-0.2 (02-udevinfo-fallback-not-primary.diff,625 bytes, patch)
2010-04-14 09:50 UTC, Oliver Jaksch
Details | Diff
updated patch for gentoo-dahdi-patchset-0.2 (03-dialout-group-not-asterisk.diff,564 bytes, patch)
2010-04-14 09:50 UTC, Oliver Jaksch
Details | Diff
updated patch for gentoo-dahdi-patchset-0.2 (06-gcc44-compat-disable-debug.diff,1.01 KB, patch)
2010-04-14 09:50 UTC, Oliver Jaksch
Details | Diff
updated patch for gentoo-dahdi-patchset-0.2 (07-enable-oslec-in-kbuild.diff,744 bytes, patch)
2010-04-14 09:50 UTC, Oliver Jaksch
Details | Diff
updated patch for gentoo-dahdi-patchset-0.2 (08-no-depmod.diff,499 bytes, patch)
2010-04-14 09:51 UTC, Oliver Jaksch
Details | Diff
updated patch for gentoo-dahdi-patchset-0.2 (09-parallel-make.diff,1.52 KB, patch)
2010-04-14 09:51 UTC, Oliver Jaksch
Details | Diff
updated patch for gentoo-dahdi-patchset-0.2 (98-zaphfc-isdn-bri.diff,65.30 KB, patch)
2010-04-14 09:52 UTC, Oliver Jaksch
Details | Diff
updated patch for gentoo-dahdi-patchset-0.2 (99-non-digium-hardware.diff,262.10 KB, patch)
2010-04-14 09:52 UTC, Oliver Jaksch
Details | Diff
ebuild for dahdi-tools-2.3.0 (dahdi-tools-2.3.0.ebuild,1.03 KB, text/plain)
2010-04-14 09:53 UTC, Oliver Jaksch
Details
parallel-make patch (dahdi-tools-2.3.0-parallel-make.patch,2.39 KB, patch)
2010-04-14 09:53 UTC, Oliver Jaksch
Details | Diff
ifreq patch (dahdi-tools-2.3.0-ifreq.patch,414 bytes, patch)
2010-04-14 09:54 UTC, Oliver Jaksch
Details | Diff
vendorlib patch (dahdi-tools-2.3.0-vendorlib.patch,660 bytes, patch)
2010-04-14 09:54 UTC, Oliver Jaksch
Details | Diff
no-hardware-fiddling patch (dahdi-tools-2.3.0-no-hardware-fiddling.patch,742 bytes, patch)
2010-04-14 09:54 UTC, Oliver Jaksch
Details | Diff
log of dahdi-2.3.0 - ebuild died (net-misc:dahdi-2.3.0:20100414-090448.log,15.91 KB, text/plain)
2010-04-14 10:56 UTC, Oliver Jaksch
Details
SVN r8560 (07-ensure-flushed-IO-register-writes.diff,320 bytes, patch)
2010-05-07 19:36 UTC, kfm
Details | Diff
SVN r8575 (drivers/dahdi/voicebus/GpakCust.c) (08-disallow-interruptible-sleep-on-vpm-lock.diff,404 bytes, patch)
2010-05-07 19:37 UTC, kfm
Details | Diff
SVN r8576 (09-retry-if-vpmadt032-reports-not-ready.diff,1.95 KB, patch)
2010-05-07 19:39 UTC, kfm
Details | Diff
Consolidated net-misc/dahdi patchset (gentoo-dahdi-patchset-0.2.tar.bz2,61.13 KB, application/octet-stream)
2010-05-07 19:42 UTC, kfm
Details
updated patch-set from http://bugs.gentoo.org/show_bug.cgi?id=315237#c23 (gentoo-dahdi-patchset-0.2.tar.bz2,57.57 KB, application/octet-stream)
2010-05-08 06:57 UTC, Oliver Jaksch
Details
jpah echo canceller needs #include <linux/slab.h> on linux-2.6.34-rcX (and later) (10-echocan-jpah-kzalloc-include.patch,382 bytes, patch)
2010-05-13 16:25 UTC, Stefan Knoblich
Details | Diff
jpah and oslec echo cancellers need #include <linux/slab.h> on linux-2.6.34-rcX (and later) (10-echocan-jpah-oslec-add-slab_h-include.patch,766 bytes, patch)
2010-05-13 16:40 UTC, Stefan Knoblich
Details | Diff
gentoo-dahdi-patchset-0.2.tar.bz2 (gentoo-dahdi-patchset-0.2.tar.bz2,57.69 KB, application/octet-stream)
2010-05-14 16:24 UTC, Tony Vroon (RETIRED)
Details
build.log (build.log,7.21 KB, text/plain)
2010-05-14 16:28 UTC, Tony Vroon (RETIRED)
Details
new parallel-make patch (06-parallel-make.diff,1.82 KB, patch)
2010-05-21 08:38 UTC, Oliver Jaksch
Details | Diff
updated patchset (gentoo-dahdi-patchset-0.2.tar.bz2,57.59 KB, application/octet-stream)
2010-05-24 14:16 UTC, Stefan Knoblich
Details
gentoo-dahdi-patchset-0.2.tar.bz2 (gentoo-dahdi-patchset-0.2.tar.bz2,58.01 KB, application/octet-stream)
2010-05-24 16:25 UTC, Tony Vroon (RETIRED)
Details
add non-digium modules to dahdi.blacklist.conf too (dahdi-tools-2.3.0-blacklist-non-digium-modules.patch,268 bytes, patch)
2010-05-24 18:53 UTC, Stefan Knoblich
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Jaksch 2010-04-14 09:47:16 UTC
Digium released dahdi and dahdi-tools version 2.3.0 on 04/13/2010.
The ebuilds shown below are a rebuild from yesterdays release of dahdi-2.2.1.1 ebuild; three patches removed, rest fixed to patch correctly against dahdi-2.3.0.

Modifications to ebuild:
- SRC_URI of firmwares
- patchset set to gentoo-dahdi-patchset-0.2.tar.bz2 (containing the patches posted below)
- RDEPEND="" (see bug: http://bugs.gentoo.org/show_bug.cgi?id=315201)

Removed patches ('cause already done by Digum):
01-no-autoconf-ktnxbye.diff
04-attr-not-sysfs.diff
05-activate-core-timer.diff

Built today and tested on x86_64 with zaphfc - works flawlessy so far.

What I observed is that compiling with MAKEOPTS="-j16" on one machine (phenom quad) worked, another machine (sempron) stopped make'in. So I think someone has to optimize parallel-make.diff .
Comment 1 Oliver Jaksch 2010-04-14 09:49:00 UTC
Created attachment 227731 [details]
ebuild for dahdi-2.3.0
Comment 2 Oliver Jaksch 2010-04-14 09:50:21 UTC
Created attachment 227733 [details, diff]
updated patch for gentoo-dahdi-patchset-0.2
Comment 3 Oliver Jaksch 2010-04-14 09:50:35 UTC
Created attachment 227735 [details, diff]
updated patch for gentoo-dahdi-patchset-0.2
Comment 4 Oliver Jaksch 2010-04-14 09:50:45 UTC
Created attachment 227737 [details, diff]
updated patch for gentoo-dahdi-patchset-0.2
Comment 5 Oliver Jaksch 2010-04-14 09:50:57 UTC
Created attachment 227739 [details, diff]
updated patch for gentoo-dahdi-patchset-0.2
Comment 6 Oliver Jaksch 2010-04-14 09:51:32 UTC
Created attachment 227741 [details, diff]
updated patch for gentoo-dahdi-patchset-0.2
Comment 7 Oliver Jaksch 2010-04-14 09:51:43 UTC
Created attachment 227743 [details, diff]
updated patch for gentoo-dahdi-patchset-0.2
Comment 8 Oliver Jaksch 2010-04-14 09:52:11 UTC
Created attachment 227745 [details, diff]
updated patch for gentoo-dahdi-patchset-0.2
Comment 9 Oliver Jaksch 2010-04-14 09:52:26 UTC
Created attachment 227747 [details, diff]
updated patch for gentoo-dahdi-patchset-0.2
Comment 10 Oliver Jaksch 2010-04-14 09:53:17 UTC
Created attachment 227749 [details]
ebuild for dahdi-tools-2.3.0
Comment 11 Oliver Jaksch 2010-04-14 09:53:59 UTC
Created attachment 227751 [details, diff]
parallel-make patch
Comment 12 Oliver Jaksch 2010-04-14 09:54:22 UTC
Created attachment 227753 [details, diff]
ifreq patch
Comment 13 Oliver Jaksch 2010-04-14 09:54:41 UTC
Created attachment 227755 [details, diff]
vendorlib patch
Comment 14 Oliver Jaksch 2010-04-14 09:54:59 UTC
Created attachment 227757 [details, diff]
no-hardware-fiddling patch
Comment 15 Oliver Jaksch 2010-04-14 10:02:39 UTC
Forgot to mention about changes in dahdi-tools-2.3.0 ebuild:
- removed modprobe-suffix.patch (already patched by Digum)
Comment 16 kfm 2010-04-14 10:33:03 UTC
Regarding the build failure on your Sempron system, did it bail out during the src_compile() or the src_install() phase?
Comment 17 Oliver Jaksch 2010-04-14 10:51:56 UTC
(In reply to comment #16)
> Regarding the build failure on your Sempron system, did it bail out during the
> src_compile() or the src_install() phase?

During src_compile() . Re-tried emerging dahdi three times in a row just now but emerge builds fine now. Hell knows why. Sunshine? Laid off icecc?

So the following log is from this early morning (GMT+1)
Comment 18 Oliver Jaksch 2010-04-14 10:56:31 UTC
Created attachment 227771 [details]
log of dahdi-2.3.0 - ebuild died
Comment 19 kfm 2010-05-07 19:34:13 UTC
I've been bitten by issue 13114 upstream:

https://issues.asterisk.org/view.php?id=13114

Attaching three patches to include in the revised gentoo patchset which will hopefully resolve it, although I won't be able to tell until at least a few working days have elapsed. Once I know, I'll post back here and upstream.

Note that patch #08 fixes a different bug but affects a common region of code as #09. I determined that it would be easier to simply include the former also as opposed to rolling a new diff for the latter.
Comment 20 kfm 2010-05-07 19:36:39 UTC
Created attachment 230727 [details, diff]
SVN r8560
Comment 21 kfm 2010-05-07 19:37:58 UTC
Created attachment 230729 [details, diff]
SVN r8575 (drivers/dahdi/voicebus/GpakCust.c)
Comment 22 kfm 2010-05-07 19:39:07 UTC
Created attachment 230731 [details, diff]
SVN r8576
Comment 23 kfm 2010-05-07 19:42:42 UTC
Created attachment 230733 [details]
Consolidated net-misc/dahdi patchset

And here's a patch tarball for net-misc/dahdi-2.3.0 which consolidates everything thus far.
Comment 24 Oliver Jaksch 2010-05-08 06:18:27 UTC
Thanks for your patches.
When loading zaphfc on two of my x86_64 machines the kernel Ooopses. Tested with net-misc/dahdi-2.3.0 on 2.6.31-gentoo-r10 and 2.6.32-gentoo-r7.
This happens before and again after your patches - so it seems to me that there's a change in dahdi-base.c that breaks compatibility with zaphfc.
However, dahdi-2.3.0 with zaphfc works...strange...

------- SNIP -------
vzaphfc 0000:00:0a.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17                                                                                              
vzaphfc: card 0: registered ZTHFC1/0/1                                                                                                                        
vzaphfc: card 0: registered ZTHFC1/0/2                                                                                                                        
vzaphfc: card 0: registered ZTHFC1/0/3                                                                                                                        
------------[ cut here ]------------                                                                                                                          
WARNING: at /var/tmp/portage/net-misc/dahdi-2.3.0/work/dahdi-linux-2.3.0/drivers/dahdi/dahdi-base.c:5866 dahdi_register+0x3e/0x2fb [dahdi]()                  
Hardware name: ESPRIMO E                                                                                                                                      
Modules linked in: floppy(+) ohci_hcd(+) rtc_cmos ppdev k8temp(+) zaphfc(+) snd_intel8x0(+) 8250_pnp 8250 ssb parport_pc serial_core shpchp snd_ac97_codec dahdi ac97_bus                                                                                                                                                         
Pid: 952, comm: modprobe Not tainted 2.6.32-gentoo-r7 #1                                                                                                         
Call Trace:                                                                                                                                                      
 [<ffffffffa0012dd3>] ? dahdi_register+0x3e/0x2fb [dahdi]                                                                                                        
 [<ffffffff81046b9b>] warn_slowpath_common+0x77/0xa4                                                                                                             
 [<ffffffff81046bd7>] warn_slowpath_null+0xf/0x11                                                                                                                
 [<ffffffffa0012dd3>] dahdi_register+0x3e/0x2fb [dahdi]                                                                                                          
 [<ffffffffa00bc0bb>] cleanup_module+0xcc7/0xf34 [zaphfc]                                                                                                        
 [<ffffffff81132b2c>] ? sysfs_add_one+0x1c/0x10a                                                                                                                 
 [<ffffffff813c355f>] local_pci_probe+0x12/0x16                                                                                                                  
 [<ffffffff813c4225>] pci_device_probe+0x5f/0x89                                                                                                                 
 [<ffffffff8144ad68>] ? driver_sysfs_add+0x4c/0x72                                                                                                               
 [<ffffffff8144aeb4>] driver_probe_device+0xad/0x15f                                                                                                             
 [<ffffffff8144afbe>] __driver_attach+0x58/0x7b                                                                                                                  
 [<ffffffff8144af66>] ? __driver_attach+0x0/0x7b                                                                                                                 
 [<ffffffff8144a69d>] bus_for_each_dev+0x4e/0x84                                                                                                                 
 [<ffffffff8144ad1a>] driver_attach+0x1c/0x1e                                                                                                                    
 [<ffffffff8144a007>] bus_add_driver+0x11e/0x26f                                                                                                                 
 [<ffffffffa00c0000>] ? init_module+0x0/0x43 [zaphfc]                                                                                                            
 [<ffffffff8144b2b2>] driver_register+0xb3/0x121                                                                                                                 
 [<ffffffffa00c0000>] ? init_module+0x0/0x43 [zaphfc]                                                                                                            
 [<ffffffff813c446a>] __pci_register_driver+0x51/0xbc                                                                                                            
 [<ffffffffa00c0000>] ? init_module+0x0/0x43 [zaphfc]                                                                                                            
 [<ffffffffa00c0041>] init_module+0x41/0x43 [zaphfc]                                                                                                             
 [<ffffffff81009060>] do_one_initcall+0x5a/0x14a                                                                                                                 
 [<ffffffff810761d6>] sys_init_module+0xd0/0x229                                                                                                                 
 [<ffffffff8100bb2b>] system_call_fastpath+0x16/0x1b                                                                                                             
---[ end trace 80acae8327997c5b ]---                                                                                                                             
vzaphfc: card 0: resetting                                                                                                                                       
vzaphfc: card 0 configured for TE mode at mem 0xfc004400 (0xffffc9000007e400) IRQ 17
Comment 25 Oliver Jaksch 2010-05-08 06:57:36 UTC
Created attachment 230767 [details]
updated patch-set from http://bugs.gentoo.org/show_bug.cgi?id=315237#c23

As zaphfc-code was in both patches, I merged 98-zaphfc-isdn-bri.diff and 99-non-digium-hardware.diff together and did some cosmetic changes to it.
Comment 26 kfm 2010-05-10 10:36:13 UTC
That's not an oops. Rather, it's a warning triggered by slow path detection code (CONFIG_SLOW_WORK). If you also enable CONFIG_PRINTK_TIME, you'll get an idea of just how slow the path in question is. If you choose to keep this option enabled and the hardware takes some time to initialize then it may well trigger this warning. It is unlikely that it indicates any kind of fault.
Comment 27 Oliver Jaksch 2010-05-10 12:20:29 UTC
Thanks for your explanation. Indeed, CONFIG_SLOW_WORK is enabled, CONFIG_PRINTK_TIME is not. It seems that the first option is hidden or even "hard enabled" as I can't find any switch to disable for tesing purposes (seems to me that it has to be in the /general setup/).
Whatever - do you mean that this warning is more a kind of "stupid annoying warning nobody cares of" as it only happens with dahdi-2.3.0 for now (or more precise: a code-fault caused by Digium)?
Comment 28 kfm 2010-05-10 19:17:27 UTC
Search for the option, refer to the "Selected by:" line and you'll find out why it's being forcibly set. I would see it as more of an annoyance than an issue per se and certainly not something that should block this package. On the other hand, if you are encountering this warning only in the current version of dahdi, then I can see no good reason not to mention it upstream. At the very least, it would suggest a minor performance regression during initialisation and, given Digium's track record, who's to say that a bug isn't coming into play? ;)

On another note, I'm pleased to say that the most recent three patches I added appear to have resolved the issue with the VPM.
Comment 29 kfm 2010-05-10 19:20:34 UTC
I just realised that I pasted the wrong URL entirely in Comment 19. It should have been:

https://issues.asterisk.org/view.php?id=17289
Comment 30 Stefan Knoblich 2010-05-13 16:25:16 UTC
Created attachment 231337 [details, diff]
jpah echo canceller needs #include <linux/slab.h> on linux-2.6.34-rcX (and later)

drivers/dahdi/dahdi_echocan_jpah.c:79: error: implicit declaration of function 'kzalloc'
drivers/dahdi/dahdi_echocan_jpah.c:93: error: implicit declaration of function 'kfree'
Comment 31 Stefan Knoblich 2010-05-13 16:40:52 UTC
Created attachment 231339 [details, diff]
jpah and oslec echo cancellers need #include <linux/slab.h> on linux-2.6.34-rcX (and later)

rename patch, and fix the same problem in oslec too (now that it is working again).

successfully emerged on 2.6.34-rc7 (x86_64)
Comment 32 Tony Vroon (RETIRED) gentoo-dev 2010-05-14 16:24:33 UTC
Created attachment 231455 [details]
gentoo-dahdi-patchset-0.2.tar.bz2

Consolidation of all existing patch submissions.
Comment 33 Tony Vroon (RETIRED) gentoo-dev 2010-05-14 16:27:21 UTC
*** Bug 316009 has been marked as a duplicate of this bug. ***
Comment 34 Tony Vroon (RETIRED) gentoo-dev 2010-05-14 16:28:08 UTC
Created attachment 231457 [details]
build.log

And here is the result of trying to actually build this.
Jon reported a similar bug in 2.2.1.1 which never triggered for me; this however fails reproducably even on my dual-core laptop.
Comment 35 Kola Bernard 2010-05-20 20:57:47 UTC
(In reply to comment #32)
> Consolidation of all existing patch submissions.
I do not undertood where the ebuild know about the gentoo-dahdi-patchset-0.2.tar.bz2, but it have problems with the names:
 
 * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 * 
 *   /mnt/auto/portage/overlays/nicronom.net-testing/net-misc/dahdi-tools/files/dahdi-tools-2.3.0-parallel-make.patch
 *   ( dahdi-tools-2.3.0-parallel-make.patch )

 * ERROR: net-misc/dahdi-tools-2.3.0 failed:
 *   Cannot find $EPATCH_SOURCE!

In the tar.bz2 is only 06-parallel-make.diff. :-/
Comment 36 Oliver Jaksch 2010-05-21 07:41:53 UTC
(In reply to comment #35)

> > Consolidation of all existing patch submissions.
> I do not undertood where the ebuild know about the
> gentoo-dahdi-patchset-0.2.tar.bz2, but it have problems with the names:
gentoo-dahdi-patchset-0.2.tar.bz2 is referenced on lines
#21: mirror://gentoo/gentoo-dahdi-patchset-0.2.tar.bz2"
#32: PATCHES=( "${WORKDIR}/dahdi-patchset" )

As this ebuild is not in the official portage yet you've to download gentoo-dahdi-patchset-0.2.tar.bz2 manually and to stick it up to the distfiles directory.


>  * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
> /mnt/auto/portage/overlays/nicronom.net-testing/net-misc/dahdi-tools/files/dahdi-tools-2.3.0-parallel-make.patch
>  *   ( dahdi-tools-2.3.0-parallel-make.patch )
> 
>  * ERROR: net-misc/dahdi-tools-2.3.0 failed:
>  *   Cannot find $EPATCH_SOURCE!
> 
> In the tar.bz2 is only 06-parallel-make.diff. :-/
Gotcha! Chainsaw set the patches to obsolete. I think it was a mistake by him as these patches are still required by dahdi-tools-2.3.0.ebuild for now.
At a closer look it was a fault by me to open this bug for two ebuilds - I vow to improve next time...

So you'll need to download the following patches to your dahdi-tools/files directory.
http://bugs.gentoo.org/attachment.cgi?id=227751
http://bugs.gentoo.org/attachment.cgi?id=227753
http://bugs.gentoo.org/attachment.cgi?id=227755
http://bugs.gentoo.org/attachment.cgi?id=227757
Rebuild the digest for the appropriate ebuild after then and give it a new try.
Comment 37 Oliver Jaksch 2010-05-21 08:37:21 UTC
(In reply to comment #34)
> And here is the result of trying to actually build this.
> Jon reported a similar bug in 2.2.1.1 which never triggered for me; this
> however fails reproducably even on my dual-core laptop.
Yeah, this is a weired cryptic thing, really. 
I've a icecc-cluster with different ARCHs for monts, even for years now, but similar things happens very very rarely. I compiled dahdi-2.2.1.1 many times on this cluster but none unexpected happened 'til now.
My 'lab-master' where I build the ebuilds and test them for the very first time is a AMD phenom quad set to MAKEOPTS="-j16" (sometimes set to -j32) and there is a 50:50 chance to compile dahdi-2.3.0 successfully.

Today my thought was that the problem has to be found in parallel-make.diff, so I did some very small changes to it (more +$(MAKE) ) and tried it on different machines with MAKEOPTS respectively set to -j16, -j32 and -j64  - and it did it too 100%.

Fluke or not? Please give it a try.
Comment 38 Oliver Jaksch 2010-05-21 08:38:40 UTC
Created attachment 232319 [details, diff]
new parallel-make patch

Hopefully this will fix it
Comment 39 Stefan Knoblich 2010-05-21 11:43:56 UTC
10-echocan-jpah-oslec-add-slab_h-include.patch is currently ignored by epatch, needs to be renamed to ".diff"
Comment 40 Stefan Knoblich 2010-05-21 14:22:24 UTC
jfyi: There's another issue with 2.6.34 (vanilla, amd64):

  CC [M]  /var/tmp/portage/net-misc/dahdi-2.3.0/work/dahdi-linux-2.3.0/drivers/dahdi/voicebus/voicebus.o
ERROR: __mcount_loc already in /var/tmp/portage/net-misc/dahdi-2.3.0/work/dahdi-linux-2.3.0/drivers/dahdi/../staging/echo/echo.o
        This may be an indication that your build is corrupted.
        Delete /var/tmp/portage/net-misc/dahdi-2.3.0/work/dahdi-linux-2.3.0/drivers/dahdi/../staging/echo/echo.o and try again. If the same object file
        still causes an issue, then disable CONFIG_DYNAMIC_FTRACE.
make[3]: *** [/var/tmp/portage/net-misc/dahdi-2.3.0/work/dahdi-linux-2.3.0/drivers/dahdi/../staging/echo/echo.o] Error 255
make[2]: *** [/var/tmp/portage/net-misc/dahdi-2.3.0/work/dahdi-linux-2.3.0/drivers/dahdi/../staging/echo] Error 2
make[2]: *** Waiting for unfinished jobs....

This happens with CONFIG_DYNAMIC_FTRACE=y and <binutils-2.20 (tried different versions of gcc (4.3.3-r2/4.4.3-r2) and binutils (2.18-r3/.19.1-r1/.20.1-r1)).
Comment 41 Stefan Knoblich 2010-05-21 15:37:44 UTC
ok, ignore the last part, i tried a few more times and it still breaks with newest binutils.

MAKEOPTS="-j1" fixes it, so it's just another incarnation of the parallel make error (and the latest 06-parallel-make.diff doesn't help).


digging a bit deeper:

04-enable-oslec-in-kbuild.diff adds (to drivers/dahdi/Kbuild):

 +obj-m += dahdi_echocan_oslec.o
 +obj-m += ../staging/echo/echo.o

99-non-digium-hardware.diff adds (to drivers/dahdi/Kbuild):

 +obj-$(DAHDI_BUILD_ALL)$(CONFIG_ECHO)                  += ../staging/echo/
 +obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_ECHOCAN_OSLEC)   += dahdi_echocan_oslec.o

which results in
...
  CC [M]  /var/tmp/portage/net-misc/dahdi-2.3.0/work/dahdi-linux-2.3.0/drivers/dahdi/../staging/echo/echo.o
  LD [M]  /var/tmp/portage/net-misc/dahdi-2.3.0/work/dahdi-linux-2.3.0/drivers/dahdi/dahdi_vpmadt032_loader.o
  CC [M]  /var/tmp/portage/net-misc/dahdi-2.3.0/work/dahdi-linux-2.3.0/drivers/dahdi/../staging/echo/echo.o
...

for -jX (X > 1) we seem to have two processes entering the same directory and overwriting each other's files.

i've disabled the two lines in the 99*.diff and managed to successfully emerge
the package a couple of times without errors, with -j5 set.
Comment 42 Stefan Knoblich 2010-05-24 14:16:15 UTC
Created attachment 232713 [details]
updated patchset

changes:
   dropped 04-enable-oslec-in-kbuild.diff (see below)

   latest parallel-make patch

   patches < 99 renumbered

   99-non-digium-hardware.diff renamed and "echo.o" appended to 
   "obj-$(DAHDI_BUILD_ALL)$(CONFIG_ECHO)",
   to match 04-enable-oslec-in-kbuild.diff


survived five rounds of MAKEOPTS="-j5" emerging on my 2.6.34 box
Comment 43 Tony Vroon (RETIRED) gentoo-dev 2010-05-24 16:25:33 UTC
Created attachment 232739 [details]
gentoo-dahdi-patchset-0.2.tar.bz2

Updated for compatibility with 2.6.35-rc0.
Filed upstream bug reports:
https://issues.asterisk.org/view.php?id=17382
https://issues.asterisk.org/view.php?id=17383

Please test & confirm that I have not broken your older kernels; I will commit once I receive two positive reports.
Comment 44 Stefan Knoblich 2010-05-24 16:49:02 UTC
compile tested on (amd64):
   2.6.34
   2.6.32.9
   2.6.31.2
   2.6.29.2(-grsec)
Comment 45 kfm 2010-05-24 18:40:19 UTC
Basic operational tests conducted with a Wildcard TE122 + VPMADT032 module without issue. As far as I'm concerned, chocks away!
Comment 46 Tony Vroon (RETIRED) gentoo-dev 2010-05-24 18:46:58 UTC
+*dahdi-2.3.0 (24 May 2010)
+
+  24 May 2010; <chainsaw@gentoo.org> +dahdi-2.3.0.ebuild:
+  Version bump. With many thanks to Oliver Jaksch, Stefan Knoblich, Jaco
+  Kroon & Kerin Millar for research, patches & testing. Closes bug #315237.

Could we please keep to one bug per package gentlemen; your work on dahdi-tools is appreciated but should be in a separate report.
Comment 47 Stefan Knoblich 2010-05-24 18:53:46 UTC
Created attachment 232765 [details, diff]
add non-digium modules to dahdi.blacklist.conf too

Add zaphfc and wcopenpci to the modprobe.d/dahdi.blacklist.conf file that prevents udev module coldplugging from messing up the span order

(or in my case: mISDN and zaphfc trying to use the same card)