[Asterisk-Dev] asterisk 1.2 g729 compile errors

hemant surjuse h_surjuse at yahoo.com
Wed Dec 28 09:37:09 MST 2005


Hello  Diyanat Ali ,Christian Braun and others

My g729 is working OK with the old patch
g729-rob.diff.

Now i am trying the new patch ipp-050903.diff.txt
getting following errors

I patch against the vm_types_linux32.h include and now
getting errors

gcc -I./include -I./vm/include
-I/opt/intel/ipp41/ia32_itanium/include -include
/opt/intel/ipp41/ia32_itanium/tools/staticlib/ipp_a6.h
-D__unix__ -Dlinux -Dlinux32 -DNDEBUG -DLINUX32
-DNO_SCRATCH_MEMORY_USED -c -O6 -mcpu=pentium3
-march=pentium3 -ffast-math -fomit-frame-pointer 
-osamples/encoder.o samples/encoder.c
In file included from ./vm/include/vm_types.h:17,
                 from ./vm/include/vm_thread.h:14,
                 from samples/encoder.h:28,
                 from samples/encoder.c:35:
./vm/include/sys/vm_types_linux32.h:36: error: syntax
error before "ast_cond_t"
./vm/include/sys/vm_types_linux32.h:36: warning: no
semicolon at end of struct or union
./vm/include/sys/vm_types_linux32.h:37: warning: data
definition has no type or storage class
./vm/include/sys/vm_types_linux32.h:40: error: syntax
error before '}' token
./vm/include/sys/vm_types_linux32.h:40: warning: data
definition has no type or storage class
./vm/include/sys/vm_types_linux32.h:51: error: syntax
error before "ast_mutex_t"
./vm/include/sys/vm_types_linux32.h:51: warning: no
semicolon at end of struct or union
./vm/include/sys/vm_types_linux32.h:53: error: syntax
error before '}' token
./vm/include/sys/vm_types_linux32.h:53: warning: data
definition has no type or storage class
./vm/include/sys/vm_types_linux32.h:57: error: syntax
error before "ast_cond_t"
./vm/include/sys/vm_types_linux32.h:57: warning: no
semicolon at end of struct or union
./vm/include/sys/vm_types_linux32.h:58: warning: data
definition has no type or storage class
./vm/include/sys/vm_types_linux32.h:60: error: syntax
error before '}' token
./vm/include/sys/vm_types_linux32.h:60: warning: data
definition has no type or storage class
make: *** [samples/encoder.o] Error 1
[root at asterisk1 G729-float]# 

The new vm_types_linux32.h is
/*
/////////////////////////////////////////////////////////////////////////////
//
//                  INTEL CORPORATION PROPRIETARY
INFORMATION
//     This software is supplied under the terms of a
license agreement or
//     nondisclosure agreement with Intel Corporation
and may not be copied
//     or disclosed except in accordance with the
terms of that agreement.
//          Copyright(c) 2003-2004 Intel Corporation.
All Rights Reserved.
//
//     Cross-architecture support tool.
//     Linux types header.
*/
#ifdef LINUX32
 
#ifdef __cplusplus
extern "C" {
#endif
 
typedef unsigned long vm_var32;
typedef unsigned long long vm_var64;
typedef char vm_char;
 
#define VM_ALIGN_DECL(X,Y) Y __attribute__
((aligned(X)))
 
#include <pthread.h>
#include <sys/types.h>
#include <semaphore.h>
 
/* vm_thread.h */
typedef struct {
        pthread_t handle;
        int is_valid;
} vm_thread;
 
/* vm_event.h */
typedef struct {
        ast_cond_t cond;
        ast_mutex_t mutex;
        int manual;
        int state;
} vm_event;
 
/* vm_mmap.h */
typedef struct {
        int    fd;
        void  *address;
        size_t sizet;
} vm_mmap;
 
/* vm_mutex.h */
typedef struct {
        ast_mutex_t handle;
        int is_valid;
} vm_mutex;
 
/* vm_semaphore.h */
typedef struct {
        ast_cond_t cond;
        ast_mutex_t mutex;
    int count;
} vm_semaphore;
 
#ifdef __cplusplus
};
#endif
 
#endif


PLEASE HELP

Regards
Hem
 



		
__________________________________________ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 




More information about the asterisk-dev mailing list