gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: facing error in smsd with MySQL


From: Sankaranarayanan Mahadevan
Subject: Re: facing error in smsd with MySQL
Date: Fri, 26 Mar 2004 18:47:18 -0800 (PST)

forgot to add that i am using gnokii 0.6.0
and my Makefile contains the following part w.r.t
mysql
# MySQL support
mysql.lo: smsd.h mysql.c
        $(LIBTOOL) --mode=compile $(CC) -o mysql.lo $(CFLAGS)
$(CPPFLAGS) \
        -I../include $(shell mysql_config --cflags) -c
mysql.c

libmysql.la: mysql.lo
        $(LIBTOOL) --mode=link $(CC) -o libmysql.la mysql.lo
\
        $(shell $(GLIBLDLIBS)) $(shell mysql_config --libs) \
        -export-dynamic -avoid-version -rpath ${libdir}/smsd

# File support
file.lo: smsd.h file.c
        $(LIBTOOL) --mode=compile $(CC) -o file.lo $(CFLAGS)
$(CPPFLAGS) \
        -I../include -c file.c

libfile.la: file.lo
        $(LIBTOOL) --mode=link $(CC) -o libfile.la file.lo \
        $(shell $(GLIBLDLIBS)) \
        -export-dynamic -avoid-version -rpath ${libdir}/smsd

i'm newbie..what changes shud i make..


--- Sankaranarayanan Mahadevan <address@hidden>
wrote:
> Hi,
> I'm following the article that came in Feb issue of
> PHP Architect magazine - 'Writing SMS Applications
> with PHP and Gnokii'. Now in setting up smsd with
> MySQL. There they asked to give the following
> commands:
> 1. make
> 2. make libmysql.so
> 3. make install
> 
> when i type 'make' to build executables for smsd 
> i got the following errors...
> I'm using RH linux 9 and installed mysql that comes
> along with it. So didn't make any changes in the
> Makefile. 
> 
> What i'm making wrong?
> please help me in proper steps to be followed
> 
> 
> address@hidden smsd]# make
> make: glib-config: Command not found
> gcc -g -O2  -I../include
> -DMODULES_DIR=\"/usr/local/gnokii/lib/smsd\"
> -D_REENTRANT    -c -o smsd.o smsd.c
> smsd.c:49:18: glib.h: No such file or directory
> In file included from smsd.c:54:
> smsd.h:33:18: glib.h: No such file or directory
> In file included from smsd.c:54:
> smsd.h:41: parse error before "gchar"
> smsd.h:41: warning: no semicolon at end of struct or
> union
> smsd.h:42: warning: data definition has no type or
> storage class
> smsd.h:43: parse error before '*' token
> smsd.h:43: warning: data definition has no type or
> storage class
> smsd.h:44: parse error before '*' token
> smsd.h:44: warning: data definition has no type or
> storage class
> smsd.h:45: parse error before '*' token
> smsd.h:45: warning: data definition has no type or
> storage class
> smsd.h:46: parse error before "smsSets"
> smsd.h:47: warning: data definition has no type or
> storage class
> smsd.h:50: parse error before "gchar"
> smsd.h:50: warning: no semicolon at end of struct or
> union
> smsd.h:51: warning: data definition has no type or
> storage class
> smsd.h:52: parse error before '*' token
> smsd.h:52: warning: data definition has no type or
> storage class
> smsd.h:53: parse error before '*' token
> smsd.h:53: warning: data definition has no type or
> storage class
> smsd.h:54: parse error before '}' token
> smsd.h:54: warning: data definition has no type or
> storage class
> smsd.h:56: parse error before '*' token
> smsd.h:56: parse error before '*' token
> smsd.h:56: warning: data definition has no type or
> storage class
> smsd.h:57: parse error before "smsdConfig"
> smsd.h:57: warning: data definition has no type or
> storage class
> smsd.h:58: parse error before "WriteSMS"
> smsd.h:58: warning: data definition has no type or
> storage class
> In file included from smsd.c:55:
> lowlevel.h:34:18: glib.h: No such file or directory
> In file included from smsd.c:55:
> lowlevel.h:45: parse error before "gpointer"
> lowlevel.h:45: warning: no semicolon at end of
> struct
> or union
> lowlevel.h:46: warning: data definition has no type
> or
> storage class
> lowlevel.h:56: parse error before "gchar"
> lowlevel.h:56: warning: no semicolon at end of
> struct
> or union
> lowlevel.h:56: warning: no semicolon at end of
> struct
> or union
> lowlevel.h:57: warning: data definition has no type
> or
> storage class
> lowlevel.h:58: parse error before '*' token
> lowlevel.h:58: warning: data definition has no type
> or
> storage class
> lowlevel.h:59: parse error before '}' token
> lowlevel.h:59: conflicting types for `phone'
> smsd.h:45: previous declaration of `phone'
> lowlevel.h:59: warning: data definition has no type
> or
> storage class
> lowlevel.h:61: parse error before "gint"
> lowlevel.h:61: warning: no semicolon at end of
> struct
> or union
> lowlevel.h:62: warning: data definition has no type
> or
> storage class
> lowlevel.h:63: parse error before '*' token
> lowlevel.h:63: warning: data definition has no type
> or
> storage class
> lowlevel.h:64: parse error before '}' token
> lowlevel.h:64: warning: data definition has no type
> or
> storage class
> lowlevel.h:65: parse error before "supported"
> lowlevel.h:65: warning: data definition has no type
> or
> storage class
> lowlevel.h:66: warning: data definition has no type
> or
> storage class
> lowlevel.h:69: parse error before "phoneMonitor"
> lowlevel.h:69: warning: data definition has no type
> or
> storage class
> lowlevel.h:76: parse error before '*' token
> In file included from smsd.c:56:
> db.h:33:18: glib.h: No such file or directory
> In file included from smsd.c:56:
> db.h:38: parse error before '*' token
> db.h:38: `gint' declared as function returning a
> function
> db.h:39: parse error before '*' token
> db.h:39: `gint' declared as function returning a
> function
> db.h:40: parse error before '*' token
> db.h:40: parse error before '*' token
> db.h:40: `gint' declared as function returning a
> function
> db.h:41: parse error before '*' token
> smsd.c:60: parse error before "smsdConfig"
> smsd.c:60: warning: data definition has no type or
> storage class
> smsd.c:66: parse error before "connection"
> smsd.c:66: warning: data definition has no type or
> storage class
> smsd.c:68: parse error before '*' token
> smsd.c:68: `gint' declared as function returning a
> function
> smsd.c:68: function `gint' is initialized like a
> variable
> smsd.c:68: warning: data definition has no type or
> storage class
> smsd.c:69: parse error before '*' token
> smsd.c:69: `gint' declared as function returning a
> function
> smsd.c:69: function `gint' is initialized like a
> variable
> smsd.c:69: warning: data definition has no type or
> storage class
> smsd.c:70: parse error before '*' token
> smsd.c:70: parse error before '*' token
> smsd.c:70: `gint' declared as function returning a
> function
> smsd.c:70: function `gint' is initialized like a
> variable
> smsd.c:70: warning: data definition has no type or
> storage class
> smsd.c:71: parse error before '*' token
> smsd.c:79: parse error before '*' token
> smsd.c:79: parse error before '*' token
> smsd.c: In function `strEscape':
> smsd.c:81: `GString' undeclared (first use in this
> function)
> smsd.c:81: (Each undeclared identifier is reported
> only once
> smsd.c:81: for each function it appears in.)
> smsd.c:81: `str' undeclared (first use in this
> function)
> smsd.c:81: `s' undeclared (first use in this
> function)
> smsd.c:82: syntax error before "i"
> smsd.c:83: `gchar' undeclared (first use in this
> function)
> smsd.c:83: `ret' undeclared (first use in this
> function)
> smsd.c:85: `i' undeclared (first use in this
> function)
> smsd.c:93: `FALSE' undeclared (first use in this
> function)
> smsd.c: At top level:
> smsd.c:99: parse error before "LoadDB"
> smsd.c: In function `LoadDB':
> smsd.c:102: `GString' undeclared (first use in this
> function)
> smsd.c:102: `buf' undeclared (first use in this
> function)
> smsd.c:103: `gchar' undeclared (first use in this
> function)
> smsd.c:103: `error' undeclared (first use in this
> 
=== message truncated ===


__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html




reply via email to

[Prev in Thread] Current Thread [Next in Thread]