[Asterisk-Users] spandsp

Rich Adamson radamson at routers.com
Mon Sep 20 05:49:13 MST 2004


Are you applying spandsp against a recent * cvs?


> On Sunday 19 September 2004 00:46, Edward Eastman wrote:
> > I think the port.h in this distribution may have been created from
> > tiffv3.5.7 while you have tiffv3.6.0 - (or maybe something else), anyway I
> > had this problem, and installing tiffv3.5.7 and copying the port.h from
> > that distribution to /usr/local/include fixed it
> >
> i solved the issue commenting the declaration in tif_dir.h
>  --- tif_dir.h~  2004-09-17 13:31:40.000000000 +0200
> +++ tif_dir.h   2004-09-17 13:31:40.000000000 +0200
> @@ -228,16 +228,16 @@
>          ((v) & (tif)->tif_typemask[type]) << (tif)->tif_typeshift[type] : \
>         (v) & (tif)->tif_typemask[type]))
> 
> -typedef        struct {
> -       ttag_t  field_tag;              /* field's tag */
> -       short   field_readcount;        /* read count/TIFF_VARIABLE/TIFF_SPP */
> -       short   field_writecount;       /* write count/TIFF_VARIABLE */
> -       TIFFDataType field_type;        /* type of associated data */
> -       u_short field_bit;              /* bit in fieldsset bit vector */
> -       u_char  field_oktochange;       /* if true, can change while writing */
> -       u_char  field_passcount;        /* if true, pass dir count on set */
> -       char    *field_name;            /* ASCII name */
> -} TIFFFieldInfo;
> +//typedef      struct {
> +//     ttag_t  field_tag;              /* field's tag */
> +//     short   field_readcount;        /* read count/TIFF_VARIABLE/TIFF_SPP */
> +//     short   field_writecount;       /* write count/TIFF_VARIABLE */
> +//     TIFFDataType field_type;        /* type of associated data */
> +//     u_short field_bit;              /* bit in fieldsset bit vector */
> +//     u_char  field_oktochange;       /* if true, can change while writing */
> +//     u_char  field_passcount;        /* if true, pass dir count on set */
> +//     char    *field_name;            /* ASCII name */
> +//} TIFFFieldInfo;
> 
>  #define        TIFF_ANY        TIFF_NOTYPE     /* for field descriptor searching */
>  #define        TIFF_VARIABLE   -1              /* marker for variable length tags */
> 
> about the other issue i got:
> 
> [app_rxfax.so]Sep 17 18:14:33 WARNING[1076992544]: loader.c:242 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
> 
> i solved it grepping errno into apps dir and noting that all the other sources don't have any decl. as app_rxfax and app_txfax:
> extern int errno;
> all of them have:
> #include <errno.h>
> 
> so i add this include and i removed external reference:
> --- app_txfax.c~        2004-09-20 10:32:00.000000000 +0200
> +++ app_txfax.c 2004-09-20 10:32:00.000000000 +0200
> @@ -22,6 +22,7 @@
>  #include <asterisk/translate.h>
>  #include <string.h>
>  #include <stdlib.h>
> +#include <errno.h>
>  #include <stdint.h>
>  #include <pthread.h>
>  #include <tiffio.h>
> @@ -90,7 +91,7 @@
>      uint8_t __buf[sizeof(uint16_t)*BLOCK_SIZE + 2*AST_FRIENDLY_OFFSET];
>      uint8_t *buf = __buf + AST_FRIENDLY_OFFSET;
>      int len;
> -    extern int errno;
> +    // extern int errno;
> 
>      if (chan == NULL)
>      {
> 
> 
> 
> 
> maurizio
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users

---------------End of Original Message-----------------





More information about the asterisk-users mailing list