[Asterisk-bsd] Compiling Zaptel 1.2.3 on FreeBSD 7.0-CURRENT-200702

Hans Petter Selasky hselasky at c2i.net
Sat Feb 24 05:02:14 MST 2007


On Saturday 24 February 2007 12:10, demuel at thephinix.org wrote:
> Hello Everyone,
>
> I tried to make zaptel work on FreeBSD 7.0-CURRENT-200702 but I encountered
> some difficulties. Also, I installed it using the current ports tree. 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:180: warning: passing arg 4 of `bus_setup_intr' from
> incompatible pointer type qozap_freebsd.c:180: warning: passing arg 5 of
> `bus_setup_intr' from incompatible pointer type qozap_freebsd.c:180: error:
> too few arguments to function `bus_setup_intr' *** 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
>

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);

--HPS


More information about the Asterisk-BSD mailing list