[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:41:55 MST 2007


Hi,

Yeah I did and I got these errors again.


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:179: error: `err' undeclared (first use in this function)
qozap_freebsd.c:179: error: (Each undeclared identifier is reported only once
qozap_freebsd.c:179: error: for each function it appears in.)
qozap_freebsd.c:181: error: `at91_ssc_intr' undeclared (first use in this function)
qozap_freebsd.c:181: error: structure has no member named `intrhand'
qozap_freebsd.c:181: warning: passing arg 5 of `bus_setup_intr' from incompatible pointer type
qozap_freebsd.c:181: 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

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