|
List Info
Thread: Compiling Zaptel 1.2.3 on FreeBSD 7.0-CURRENT-200702
|
|
| Compiling Zaptel 1.2.3 on FreeBSD
7.0-CURRENT-200702 |
  United Kingdom |
2007-02-24 05:10:35 |
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
Any tips and side comments to sort this out?
Regards,
Demuel
_______________________________________________
Asterisk-BSD mailing list
Asterisk-BSD lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-bsd
|
|
| Re: Compiling Zaptel 1.2.3 on FreeBSD
7.0-CURRENT-200702 |
  Sweden |
2007-02-24 06:02:14 |
On Saturday 24 February 2007 12:10, demuel 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
_______________________________________________
Asterisk-BSD mailing list
Asterisk-BSD lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-bsd
|
|
| Re: Compiling Zaptel 1.2.3 on FreeBSD
7.0-CURRENT-200702 |
  United Kingdom |
2007-02-24 06:17:06 |
Hi
I wonder if that works. There are two ); in line 2 and in
line 3.
> 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.
Thanks,
demuel
> On Saturday 24 February 2007 12:10, demuel 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
>
_______________________________________________
Asterisk-BSD mailing list
Asterisk-BSD lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-bsd
|
|
| Re: Compiling Zaptel 1.2.3 on FreeBSD
7.0-CURRENT-200702 |

|
2007-02-24 06:34:27 |
Hello demuel,
* demuel thephinix.org <demuel 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 lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-bsd
|
|
| Re: Compiling Zaptel 1.2.3 on FreeBSD
7.0-CURRENT-200702 |
  United Kingdom |
2007-02-24 06:41:55 |
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 thephinix.org <demuel 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 lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-bsd
>
_______________________________________________
Asterisk-BSD mailing list
Asterisk-BSD lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-bsd
|
|
| Re: Compiling Zaptel 1.2.3 on FreeBSD
7.0-CURRENT-200702 |
  United Kingdom |
2007-02-24 06:50:02 |
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 thephinix.org <demuel 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 lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-bsd
>
_______________________________________________
Asterisk-BSD mailing list
Asterisk-BSD lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-bsd
|
|
[1-6]
|
|