On Thu, Sep 18, 2008 at 1:44 AM, Shoaib Khan <
address@hidden> wrote:
> Hi All,
> i hope everybody reading this email will be having best of their health, i
> have been trying to configure gnokii for last two weeks,
> after all i have successfuly configured gnokii-0.6.20 on my RHEL, i am also
> a newbie to linux world, i have tested installation by running xgnokii and
> it successfuly sens sms
> the problem is that now i have to install/make smsd but it is continiously
> giving me error. i am pasting you guyz the output, please help me track this
> error.
>
> address@hidden gnokii-0.6.20]# cd smsd
> address@hidden smsd]# make
> make: pg_config: Command not found
> /bin/sh ../libtool --mode=compile gcc -o pq.lo -fno-strict-aliasing -g -O2
> -Wall -Wno-pointer-sign -fvisibility=hidden -I../include
> -DMODULES_DIR=\"/usr/local/lib/smsd\" -pthread -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include \
> -I../include -I -c pq.c
> gcc -fno-strict-aliasing -g -O2 -Wall -Wno-pointer-sign -fvisibility=hidden
> -I../include -DMODULES_DIR=\"/usr/local/lib/smsd\" -pthread
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../include -I -c pq.c
> -fPIC -DPIC -o .libs/pq.o
> pq.c:36:22: error: libpq-fe.h: No such file or directory
> pq.c:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*'
> token
> pq.c:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*'
> token
> pq.c: In function 'DB_Bye':
> pq.c:48: error: 'connIn' undeclared (first use in this function)
> pq.c:48: error: (Each undeclared identifier is reported only once
> pq.c:48: error: for each function it appears in.)
> pq.c:49: warning: implicit declaration of function 'PQfinish'
> pq.c:51: error: 'connOut' undeclared (first use in this function)
> pq.c: In function 'DB_ConnectInbox':
> pq.c:58: error: 'connIn' undeclared (first use in this function)
> pq.c:58: warning: implicit declaration of function 'PQsetdbLogin'
> pq.c:66: warning: implicit declaration of function 'PQstatus'
> pq.c:66: error: 'CONNECTION_BAD' undeclared (first use in this function)
> pq.c:70: warning: implicit declaration of function 'PQerrorMessage'
> pq.c:70: warning: format '%s' expects type 'char *', but argument 2 has type
> 'int'
> pq.c: In function 'DB_ConnectOutbox':
> pq.c:83: error: 'connOut' undeclared (first use in this function)
> pq.c:91: error: 'CONNECTION_BAD' undeclared (first use in this function)
> pq.c:95: warning: format '%s' expects type 'char *', but argument 2 has type
> 'int'
> pq.c: In function 'DB_InsertSMS':
> pq.c:110: error: 'PGresult' undeclared (first use in this function)
> pq.c:110: error: 'res' undeclared (first use in this function)
> pq.c:134: warning: implicit declaration of function 'PQexec'
> pq.c:134: error: 'connIn' undeclared (first use in this function)
> pq.c:136: warning: implicit declaration of function 'PQresultStatus'
> pq.c:136: error: 'PGRES_COMMAND_OK' undeclared (first use in this function)
> pq.c:139: warning: format '%s' expects type 'char *', but argument 2 has
> type 'int'
> pq.c:140: warning: implicit declaration of function 'PQclear'
> pq.c: In function 'DB_Look':
> pq.c:153: error: 'PGresult' undeclared (first use in this function)
> pq.c:153: error: 'res1' undeclared (first use in this function)
> pq.c:153: error: 'res2' undeclared (first use in this function)
> pq.c:153: warning: left-hand operand of comma _expression_ has no effect
> pq.c:167: error: 'connOut' undeclared (first use in this function)
> pq.c:177: error: 'PGRES_TUPLES_OK' undeclared (first use in this function)
> pq.c:180: warning: format '%s' expects type 'char *', but argument 2 has
> type 'int'
> pq.c:188: warning: implicit declaration of function 'PQntuples'
> pq.c:194: warning: implicit declaration of function 'PQgetvalue'
> pq.c:194: warning: passing argument 1 of 'atoi' makes pointer from integer
> without a cast
> pq.c:196: warning: passing argument 2 of '__builtin_strncpy' makes pointer
> from integer without a cast
> pq.c:203: warning: passing argument 2 of '__builtin_strncpy' makes pointer
> from integer without a cast
> pq.c:223: warning: format '%s' expects type 'char *', but argument 5 has
> type 'int'
> pq.c:226: error: 'PGRES_COMMAND_OK' undeclared (first use in this function)
> pq.c:229: warning: format '%s' expects type 'char *', but argument 2 has
> type 'int'
> make: *** [pq.lo] Error 1
>
>