Folks,

Need to thank Darin Franklin as he has been able to quickly find the  
problem with spandsp compiling on OS X.  He noted some differences in  
the way pre4 (which compiled) and pre16 (which didn't) behaved.   
Comparing the command lines it was noticed that the pre16 is building  
without "-O2 -g".

pre4:
  gcc -DHAVE_CONFIG_H -I. -I. -I. -I.. -I/usr/include/libxml2 - 
DNDEBUG -O2 -g -std=gnu99 -ffast-math -Wall -Wunused-variable -Wwrite- 
strings -Wstrict-prototypes -Wmissing-prototypes -I/sw/include -MT  
vector_int.lo -MD -MP -MF .deps/vector_int.Tpo -c vector_int.c  -fno- 
common -DPIC -o .libs/vector_int.o

pre16:
  gcc -DHAVE_CONFIG_H -I. -I. -I. -I.. -I/usr/include/libxml2 - 
DNDEBUG        -std=gnu99 -ffast-math -Wall -Wunused-variable -Wwrite- 
strings -Wstrict-prototypes -Wmissing-prototypes -I/sw/include -MT  
vector_int.lo -MD -MP -MF .deps/vector_int.Tpo -c vector_int.c  -fno- 
common -DPIC -o .libs/vector_int.o

Adding -O2 to the CFLAGS, and that seems to fix it.

./configure CFLAGS="-I/opt/local/include -O2" LDFLAGS=-L/opt/local/lib

Callweaver now builds cleanly on OS X 10.5.2.

Cheers
Rob

On 13/02/2008, at 7:09 PM, Rob Gillan wrote:

> Folks,
>
>  From a clean installation of OS X 10.5 on a Mac Mini/Core 2 Duo,
> spandsp will not make and fails with the below.  Tiff/Readline/Vale
> successfully installed into /usr/local/callweaver.
>
> gcc -DHAVE_CONFIG_H -I. -I. -I. -I.. -I/usr/include/libxml2 -DNDEBUG -
> std=gnu99 -ffast-math -Wall -Wunused-variable -Wwrite-strings -
> Wstrict-prototypes -Wmissing-prototypes -I/usr/local/callweaver/
> include -MT vector_int.lo -MD -MP -MF .deps/vector_int.Tpo -c
> vector_int.c  -fno-common -DPIC -o .libs/vector_int.o
> vector_int.c: In function 'vec_min_maxi16':
> vector_int.c:170: error: can't find a register in class
> 'GENERAL_REGS' while reloading 'asm'
> make[2]: *** [vector_int.lo] Error 1
> make[1]: *** [all] Error 2
> make: *** [all-recursive] Error 1
>
> Anyone have any idea, can't seem to get over this hurdle.
>
> Help much appreciated.
> Rob
>
>
> _______________________________________________
> Callweaver-users mailing list
> [email protected]
> http://lists.callweaver.org/mailman/listinfo/callweaver-users
>

_______________________________________________
Callweaver-users mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-users

Reply via email to