[Asterisk-Users] Cannot compile Meetme2

Robert Rozman rozman at fri.uni-lj.si
Tue Oct 5 19:06:41 MST 2004


Hi,

I cannot compile Meetme2 on Suse 9.1 and Asterisk rc2. For latter 2 errors I
guess I need development for mysql and postgres, but what about first error
?


Regards,

Robert.



In file included from app_meetme2.c:13:

/usr/include/asterisk/lock.h: In function `ast_mutex_init':

/usr/include/asterisk/lock.h:300: error: `PTHREAD_MUTEX_RECURSIVE'
undeclared (first use in this function)

/usr/include/asterisk/lock.h:300: error: (Each undeclared identifier is
reported only once

/usr/include/asterisk/lock.h:300: error: for each function it appears in.)

app_meetme2.c:31:22: libpq-fe.h: No such file or directory

app_meetme2.c: In function `launch_query':

app_meetme2.c:139: error: `PGconn' undeclared (first use in this function)

app_meetme2.c:139: error: `conn' undeclared (first use in this function)

app_meetme2.c:140: error: `PGresult' undeclared (first use in this function)

app_meetme2.c:140: error: `res' undeclared (first use in this function)

app_meetme2.c:153: error: `CONNECTION_BAD' undeclared (first use in this
function)

app_meetme2.c:164: error: `PGRES_TUPLES_OK' undeclared (first use in this
function)

app_meetme2.c:180: warning: passing arg 1 of `atoi' makes pointer from
integer without a cast

app_meetme2.c:181: warning: passing arg 1 of `atoi' makes pointer from
integer without a cast

app_meetme2.c:182: warning: passing arg 1 of `atoi' makes pointer from
integer without a cast

app_meetme2.c:183: warning: passing arg 1 of `atoi' makes pointer from
integer without a cast

app_meetme2.c:184: warning: passing arg 1 of `atoi' makes pointer from
integer without a cast

app_meetme2.c:185: warning: passing arg 1 of `atoi' makes pointer from
integer without a cast

app_meetme2.c:186: warning: passing arg 2 of `strcpy' makes pointer from
integer without a cast

app_meetme2.c: In function `launch_query_onefield':

app_meetme2.c:255: error: `PGconn' undeclared (first use in this function)

app_meetme2.c:255: error: `conn' undeclared (first use in this function)

app_meetme2.c:256: error: `PGresult' undeclared (first use in this function)

app_meetme2.c:256: error: `res' undeclared (first use in this function)

app_meetme2.c:269: error: `CONNECTION_BAD' undeclared (first use in this
function)

app_meetme2.c:278: error: `PGRES_COMMAND_OK' undeclared (first use in this
function)

app_meetme2.c:296: error: `PGRES_TUPLES_OK' undeclared (first use in this
function)

app_meetme2.c:303: warning: passing arg 1 of `strlen' makes pointer from
integer without a cast

app_meetme2.c:332: warning: passing arg 1 of `strlen' makes pointer from
integer without a cast

app_meetme2.c: At top level:

app_meetme2.c:646: error:
`__use_AST_MUTEX_DEFINE_STATIC_rather_than_AST_MUTEX_INITIALIZER__'
undeclared here (not in a function)

app_meetme2.c: In function `count_exec':

app_meetme2.c:1548: error: too few arguments to function `ast_say_number'

make: *** [app_meetme2.o] Error 1




More information about the asterisk-users mailing list