|
From: | Muhyiddin A.M Hayat |
Subject: | Compile smsd on SuSe 9 |
Date: | Mon, 23 Aug 2004 02:37:08 +0800 |
Dear all,
How to compile smsd on SuSe 9?
I would like to compile smsd to support PosgreSQL,
but i don't know what do i have to edit in Makefile
I try to make without edit Makefile then i found
errors
below that error :
server2:/home/middink/gnokii-0.6.3/smsd #
make
make: glib-config: Command not found /bin/sh ../libtool --mode=compile gcc -g -O2 -I../include -I/usr/X11R6/include -DMODULES_DIR=\"/usr/local/lib/smsd\" -pthread -I/usr/X11R6/include -o smsd.lo -c smsd.c gcc -g -O2 -I../include -I/usr/X11R6/include -DMODULES_DIR=\"/usr/local/lib/smsd\" -pthread -I/usr/X11R6/include -c smsd.c -fPIC -DPIC -o .libs/smsd.o 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: error: 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: error: parse error before '*' token smsd.h:43: warning: data definition has no type or storage class smsd.h:44: error: parse error before '*' token smsd.h:44: warning: data definition has no type or storage class smsd.h:45: error: parse error before '*' token smsd.h:45: warning: data definition has no type or storage class smsd.h:46: error: parse error before "smsSets" smsd.h:47: warning: data definition has no type or storage class smsd.h:50: error: 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: error: parse error before '*' token smsd.h:52: warning: data definition has no type or storage class smsd.h:53: error: parse error before '*' token smsd.h:53: warning: data definition has no type or storage class smsd.h:54: error: parse error before '}' token smsd.h:54: warning: data definition has no type or storage class smsd.h:56: error: parse error before '*' token smsd.h:56: error: parse error before '*' token smsd.h:56: warning: data definition has no type or storage class smsd.h:57: error: parse error before "smsdConfig" smsd.h:57: warning: data definition has no type or storage class smsd.h:58: error: 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: error: 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: error: 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: error: parse error before '*' token lowlevel.h:58: warning: data definition has no type or storage class lowlevel.h:59: error: parse error before '}' token lowlevel.h:59: error: conflicting types for `phone' smsd.h:45: error: previous declaration of `phone' lowlevel.h:59: warning: data definition has no type or storage class lowlevel.h:61: error: 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: error: parse error before '*' token lowlevel.h:63: warning: data definition has no type or storage class lowlevel.h:64: error: parse error before '}' token lowlevel.h:64: warning: data definition has no type or storage class lowlevel.h:65: error: 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: error: parse error before "phoneMonitor" lowlevel.h:69: warning: data definition has no type or storage class lowlevel.h:76: error: 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: error: parse error before '*' token db.h:38: error: `gint' declared as function returning a function db.h:39: error: parse error before '*' token db.h:39: error: `gint' declared as function returning a function db.h:40: error: parse error before '*' token db.h:40: error: parse error before '*' token db.h:40: error: `gint' declared as function returning a function db.h:41: error: parse error before '*' token smsd.c:60: error: parse error before "smsdConfig" smsd.c:60: warning: data definition has no type or storage class smsd.c:66: error: parse error before "connection" smsd.c:66: warning: data definition has no type or storage class smsd.c:68: error: parse error before '*' token smsd.c:68: error: `gint' declared as function returning a function smsd.c:68: error: function `gint' is initialized like a variable smsd.c:68: warning: data definition has no type or storage class smsd.c:69: error: parse error before '*' token smsd.c:69: error: `gint' declared as function returning a function smsd.c:69: error: function `gint' is initialized like a variable smsd.c:69: warning: data definition has no type or storage class smsd.c:70: error: parse error before '*' token smsd.c:70: error: parse error before '*' token smsd.c:70: error: `gint' declared as function returning a function smsd.c:70: error: function `gint' is initialized like a variable smsd.c:70: warning: data definition has no type or storage class smsd.c:71: error: parse error before '*' token smsd.c:79: error: parse error before '*' token smsd.c:79: error: parse error before '*' token smsd.c: In function `strEscape': smsd.c:81: error: `GString' undeclared (first use in this function) smsd.c:81: error: (Each undeclared identifier is reported only once smsd.c:81: error: for each function it appears in.) smsd.c:81: error: `str' undeclared (first use in this function) smsd.c:81: error: `s' undeclared (first use in this function) smsd.c:82: error: syntax error before "i" smsd.c:83: error: `gchar' undeclared (first use in this function) smsd.c:83: error: `ret' undeclared (first use in this function) smsd.c:85: error: `i' undeclared (first use in this function) smsd.c:93: error: `FALSE' undeclared (first use in this function) smsd.c: At top level: smsd.c:99: error: parse error before "LoadDB" smsd.c: In function `LoadDB': smsd.c:102: error: `GString' undeclared (first use in this function) smsd.c:102: error: `buf' undeclared (first use in this function) smsd.c:103: error: `gchar' undeclared (first use in this function) smsd.c:103: error: `error' undeclared (first use in this function) smsd.c:107: error: request for member `libDir' in something not a structure or union smsd.c:107: error: request for member `dbMod' in something not a structure or union smsd.c:125: error: `DB_ConnectInbox' undeclared (first use in this function) smsd.c:132: error: `DB_ConnectOutbox' undeclared (first use in this function) smsd.c:139: error: `DB_InsertSMS' undeclared (first use in this function) smsd.c: At top level: smsd.c:163: error: parse error before '*' token smsd.c: In function `Usage': smsd.c:176: error: `p' undeclared (first use in this function) smsd.c: At top level: smsd.c:180: error: parse error before '*' token smsd.c: In function `LogFile': smsd.c:185: error: `gchar' undeclared (first use in this function) smsd.c:185: error: parse error before "buf" smsd.c:187: error: request for member `logFile' in something not a structure or union smsd.c:190: error: request for member `logFile' in something not a structure or union smsd.c:190: error: request for member `logFile' in something not a structure or union smsd.c:190: error: request for member `logFile' in something not a structure or union smsd.c:190: error: request for member `logFile' in something not a structure or union smsd.c:190: error: request for member `logFile' in something not a structure or union smsd.c:190: error: request for member `logFile' in something not a structure or union smsd.c:190: error: request for member `logFile' in something not a structure or union smsd.c:190: error: request for member `logFile' in something not a structure or union smsd.c:190: error: request for member `logFile' in something not a structure or union smsd.c:190: error: request for member `logFile' in something not a structure or union smsd.c:190: error: request for member `logFile' in something not a structure or union smsd.c:190: error: request for member `logFile' in something not a structure or union smsd.c:190: error: request for member `logFile' in something not a structure or union smsd.c:190: error: request for member `logFile' in something not a structure or union smsd.c:190: error: request for member `logFile' in something not a structure or union smsd.c:190: error: request for member `logFile' in something not a structure or union smsd.c:190: error: request for member `logFile' in something not a structure or union smsd.c:190: error: request for member `logFile' in something not a structure or union smsd.c:190: error: request for member `logFile' in something not a structure or union smsd.c:190: error: request for member `logFile' in something not a structure or union smsd.c:190: error: request for member `logFile' in something not a structure or union smsd.c:190: error: request for member `logFile' in something not a structure or union smsd.c:190: error: request for member `logFile' in something not a structure or union smsd.c:190: error: request for member `logFile' in something not a structure or union smsd.c:190: error: request for member `logFile' in something not a structure or union smsd.c:190: error: request for member `logFile' in something not a structure or union smsd.c:192: error: request for member `logFile' in something not a structure or union smsd.c:194: error: request for member `logFile' in something not a structure or union smsd.c:199: error: `buf' undeclared (first use in this function) smsd.c:202: error: `str' undeclared (first use in this function) smsd.c:202: error: `va_start' used in function with fixed args smsd.c: At top level: smsd.c:213: error: parse error before "argc" smsd.c: In function `ReadConfig': smsd.c:215: error: request for member `user' in something not a structure or union smsd.c:216: error: request for member `password' in something not a structure or union smsd.c:217: error: request for member `db' in something not a structure or union smsd.c:218: error: request for member `host' in something not a structure or union smsd.c:219: error: request for member `dbMod' in something not a structure or union smsd.c:220: error: request for member `libDir' in something not a structure or union smsd.c:221: error: request for member `logFile' in something not a structure or union smsd.c:222: error: request for member `phone' in something not a structure or union smsd.c:223: error: request for member `smsSets' in something not a structure or union smsd.c:227: error: parse error before "optionIndex" smsd.c:243: error: `c' undeclared (first use in this function) smsd.c:243: error: `argc' undeclared (first use in this function) smsd.c:243: error: `argv' undeclared (first use in this function) smsd.c:243: error: `optionIndex' undeclared (first use in this function) smsd.c:249: error: request for member `user' in something not a structure or union smsd.c:250: error: request for member `user' in something not a structure or union smsd.c:255: error: request for member `password' in something not a structure or union smsd.c:256: error: request for member `password' in something not a structure or union smsd.c:261: error: request for member `db' in something not a structure or union smsd.c:262: error: request for member `db' in something not a structure or union smsd.c:267: error: request for member `host' in something not a structure or union smsd.c:268: error: request for member `host' in something not a structure or union smsd.c:273: error: request for member `dbMod' in something not a structure or union smsd.c:274: error: request for member `dbMod' in something not a structure or union smsd.c:278: error: request for member `libDir' in something not a structure or union smsd.c:279: error: request for member `libDir' in something not a structure or union smsd.c:283: error: request for member `logFile' in something not a structure or union smsd.c:284: error: request for member `logFile' in something not a structure or union smsd.c:285: error: request for member `logFile' in something not a structure or union smsd.c:289: error: request for member `phone' in something not a structure or union smsd.c:290: error: request for member `phone' in something not a structure or union smsd.c:291: error: request for member `phone' in something not a structure or union smsd.c:320: error: request for member `dbMod' in something not a structure or union smsd.c:320: error: request for member `libDir' in something not a structure or union smsd.c: In function `SendSMS': smsd.c:331: error: `DB_ConnectOutbox' undeclared (first use in this function) smsd.c:348: error: request for member `phone' in something not a structure or union smsd.c: At top level: smsd.c:355: error: parse error before "WriteSMS" smsd.c: In function `WriteSMS': smsd.c:358: error: `e' undeclared (first use in this function) smsd.c:358: error: parse error before ')' token smsd.c:376: error: request for member `logFile' in something not a structure or union smsd.c: At top level: smsd.c:388: error: parse error before "d" smsd.c: In function `ReadSMS': smsd.c:390: error: `d' undeclared (first use in this function) smsd.c:391: error: `e' undeclared (first use in this function) smsd.c:392: error: parse error before "error" smsd.c:408: error: `error' undeclared (first use in this function) smsd.c:408: error: `DB_InsertSMS' undeclared (first use in this function) smsd.c:408: error: request for member `phone' in something not a structure or union smsd.c:411: error: request for member `logFile' in something not a structure or union smsd.c:419: error: parse error before ')' token smsd.c: In function `GetSMS': smsd.c:439: error: request for member `sms' in something not a structure or union smsd.c:439: error: request for member `sms' in something not a structure or union smsd.c:440: error: request for member `sms' in something not a structure or union smsd.c:440: error: `gpointer' undeclared (first use in this function) smsd.c: At top level: smsd.c:446: error: parse error before "sig" smsd.c: In function `MainExit': smsd.c:448: error: `e' undeclared (first use in this function) smsd.c:448: error: parse error before ')' token smsd.c:455: error: `FALSE' undeclared (first use in this function) smsd.c: In function `Run': smsd.c:483: error: `DB_ConnectInbox' undeclared (first use in this function) smsd.c:485: error: request for member `phone' in something not a structure or union smsd.c:486: error: `TRUE' undeclared (first use in this function) make: *** [smsd.lo] Error 1 server2:/home/middink/gnokii-0.6.3/smsd # |
[Prev in Thread] | Current Thread | [Next in Thread] |