Just wondering if anyone else has managed to successfully compile spandsp-0.0.2pre6... I'm assuming it is working for most people, else it probably wouldn't have been released, and/or, other people would have had more to say about it... In any case, these are the errors I am getting while doing a make: if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I -g -O2 -MT t30.lo -MD -MP -MF ".deps/t30.Tpo" -c -o t30.lo t30.c; \ then mv -f ".deps/t30.Tpo" ".deps/t30.Plo"; else rm -f ".deps/t30.Tpo"; exit 1; fi gcc -DHAVE_CONFIG_H -I. -I. -I. -I -g -O2 -MT t30.lo -MD -MP -MF .deps/t30.Tpo -c t30.c -fPIC -DPIC -o .libs/t30.o gcc -DHAVE_CONFIG_H -I. -I. -I. -I -g -O2 -MT t30.lo -MD -MP -MF .deps/t30.Tpo -c t30.c -o t30.o >/dev/null 2>&1 if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I -g -O2 -MT t31.lo -MD -MP -MF ".deps/t31.Tpo" -c -o t31.lo t31.c; \ then mv -f ".deps/t31.Tpo" ".deps/t31.Plo"; else rm -f ".deps/t31.Tpo"; exit 1; fi gcc -DHAVE_CONFIG_H -I. -I. -I. -I -g -O2 -MT t31.lo -MD -MP -MF .deps/t31.Tpo -c t31.c -fPIC -DPIC -o .libs/t31.o t31.c:60: unknown field `s_regs' specified in initializer t31.c:61: unknown field `s_regs' specified in initializer t31.c:62: unknown field `s_regs' specified in initializer t31.c:63: unknown field `s_regs' specified in initializer t31.c:64: unknown field `s_regs' specified in initializer t31.c:65: unknown field `s_regs' specified in initializer t31.c:66: unknown field `s_regs' specified in initializer make[2]: *** [t31.lo] Error 1 make[2]: Leaving directory `/usr/src/asterisk/spandsp-0.0.2/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/src/asterisk/spandsp-0.0.2/src' make: *** [all-recursive] Error 1 I've tried various 'hacks' to the source code to try and make it compile, but I don't know enough C to successfully do even that... Anyone got any suggestions? Is there something else I should look for?? Thanks, Adam
Hi Adam, You must be using a prehistoric GCC. Before 3.0, GCC didn't understand this C99 construct. Regards, Steve Adam Goryachev wrote:>Just wondering if anyone else has managed to successfully compile >spandsp-0.0.2pre6... >I'm assuming it is working for most people, else it probably wouldn't >have been released, and/or, other people would have had more to say >about it... > >In any case, these are the errors I am getting while doing a make: >if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. >-I -g -O2 -MT t30.lo -MD -MP -MF ".deps/t30.Tpo" -c -o t30.lo t30.c; >\ >then mv -f ".deps/t30.Tpo" ".deps/t30.Plo"; else rm -f ".deps/t30.Tpo"; >exit 1; fi > gcc -DHAVE_CONFIG_H -I. -I. -I. -I -g -O2 -MT t30.lo -MD -MP -MF >.deps/t30.Tpo -c t30.c -fPIC -DPIC -o .libs/t30.o > gcc -DHAVE_CONFIG_H -I. -I. -I. -I -g -O2 -MT t30.lo -MD -MP -MF >.deps/t30.Tpo -c t30.c -o t30.o >/dev/null 2>&1 >if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. >-I -g -O2 -MT t31.lo -MD -MP -MF ".deps/t31.Tpo" -c -o t31.lo t31.c; >\ >then mv -f ".deps/t31.Tpo" ".deps/t31.Plo"; else rm -f ".deps/t31.Tpo"; >exit 1; fi > gcc -DHAVE_CONFIG_H -I. -I. -I. -I -g -O2 -MT t31.lo -MD -MP -MF >.deps/t31.Tpo -c t31.c -fPIC -DPIC -o .libs/t31.o >t31.c:60: unknown field `s_regs' specified in initializer >t31.c:61: unknown field `s_regs' specified in initializer >t31.c:62: unknown field `s_regs' specified in initializer >t31.c:63: unknown field `s_regs' specified in initializer >t31.c:64: unknown field `s_regs' specified in initializer >t31.c:65: unknown field `s_regs' specified in initializer >t31.c:66: unknown field `s_regs' specified in initializer >make[2]: *** [t31.lo] Error 1 >make[2]: Leaving directory `/usr/src/asterisk/spandsp-0.0.2/src' >make[1]: *** [all] Error 2 >make[1]: Leaving directory `/usr/src/asterisk/spandsp-0.0.2/src' >make: *** [all-recursive] Error 1 > >I've tried various 'hacks' to the source code to try and make it >compile, but I don't know enough C to successfully do even that... > >Anyone got any suggestions? Is there something else I should look for?? > >Thanks, >Adam > >
Hi Folks, hi Steve I get following error on loading app_rx/txfax.so: ...WARNING[10458]: loader.c:258 ast_load_resource: /usr/lib/asterisk/modules/app_rxfax.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference Unable to load app_rxfax.so Spandsp compiled and installed fine The modules for asterisk too. Versions: 1.0.3 for *, libpri, zaptel build from source Distri:debian, testing, kernel 2610 Any hints? THx -- Tho/\/\as
Hallo Thomas Niesel On Wed, 29 Dec 2004 22:03:05 +0100 you wrote:> Hi Folks, hi Steve > I get following error on loading app_rx/txfax.so: > > ...WARNING[10458]: loader.c:258 ast_load_resource: > /usr/lib/asterisk/modules/app_rxfax.so: symbol errno, > version GLIBC_2.0 not defined in file libc.so.6 > with link time reference > Unable to load app_rxfax.so...cut Answer myself: use the wiki, open your eyes! Its all in there! -- Tho/\/\as
Simon Richter wrote:> Hi, > > Tzafrir Cohen schrieb: > >> spandsp builds fine on Sarge. Anybody needs debs? > > > It does? > > I ITPed it a while ago, but placed it somewhat lower on my list when I > saw it needed libtiff internals. I have debs for sarge that depend on > libtiff3g, however I could not get it to work reliably with the more > current libtiff4. > > I will try again tonight.Recent versions no longer require libtiff internals. Recent versions of Debian should have the libtiff bugs fixed. Some people trying to work with spandsp got them in there :-) Steve
Skipped content of type multipart/mixed-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 375 bytes Desc: OpenPGP digital signature Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20050102/888c33e1/signature.pgp