[Asterisk-bsd] Compiling Zaptel 1.2.3 on FreeBSD
7.0-CURRENT-200702
demuel at thephinix.org
demuel at thephinix.org
Sat Feb 24 05:50:02 MST 2007
Hi,
Made some changes to qozap_freebsd.c as shown:
179 error = bus_setup_intr(
180 dev, sc->irq_res, INTR_TYPE_MISC | INTR_MPSAFE,
181 NULL, at91_ssc_intr, sc, &sc->intrhand);
182
183 /*
184 error = bus_setup_intr(
185 dev, sc->irq_res, INTR_TYPE_CLK | INTR_FAST, qoz_interrupt,
186 sc, &sc->irq_handle);
187 */
Below is the error.
cc -O2 -fno-strict-aliasing -pipe -DCONFIG_PCI=1 -Wall -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc
-I- -I../zaptel -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
-Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Winline -Wcast-qual -Wundef -fformat-extensions -c qozap_freebsd.c
qozap_freebsd.c: In function `qozap_attach':
qozap_freebsd.c:181: error: `at91_ssc_intr' undeclared (first use in this function)
qozap_freebsd.c:181: error: (Each undeclared identifier is reported only once
qozap_freebsd.c:181: error: for each function it appears in.)
qozap_freebsd.c:181: error: structure has no member named `intrhand'
*** Error code 1
Stop in /usr/ports/misc/zaptel/work/zaptel-bsd-1.1/qozap.
*** Error code 1
Stop in /usr/ports/misc/zaptel/work/zaptel-bsd-1.1.
*** Error code 1
Stop in /usr/ports/misc/zaptel.
> Hello demuel,
>
> * demuel at thephinix.org <demuel at thephinix.org> [24-02-07 12:17]:
>> > They changed the API of bus_setup_intr. Try something like this:
>> >
>> > err = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_MISC | INTR_MPSAFE,
>> > - at91_ssc_intr, sc, &sc->intrhand);
>> > + NULL, at91_ssc_intr, sc, &sc->intrhand);
>> What should be the correct syntax then.
>
> you should read the lines again :)
>
> Best regards,
> Matthias
>
> --
>
> "Programming today is a race between software engineers striving to
> build bigger and better idiot-proof programs, and the universe trying to
> produce bigger and better idiots. So far, the universe is winning." --
> Rich Cook
> _______________________________________________
> Asterisk-BSD mailing list
> Asterisk-BSD at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-bsd
>
More information about the Asterisk-BSD
mailing list