|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
Need Help Regarding smsd [make: pg_config: Command not found]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. [root@ahlwebdev gnokii-0.6.20]# cd smsd [root@ahlwebdev 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 _______________________________________________ gnokii-users mailing list gnokii-users@... http://lists.nongnu.org/mailman/listinfo/gnokii-users |
|
|
Re: Need Help Regarding smsd [make: pg_config: Command not found]Hi Shoaib -
I'd suggest downloading the latest version (0.6.26) from the website and compiling from source - there have been a lot of changes since 0.6.20 and it would be a lot easier for us to help you if you are using the latest. http://www.gnokii.org/download/gnokii/ Looking at your errors, you have a lot of problems with pq.c which deals with the postgresql database. Do you have the proper libraries and development packages installed on RHEL for this? Ben On Thu, Sep 18, 2008 at 1:44 AM, Shoaib Khan <shoaibahmedkhan@...> 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. > > [root@ahlwebdev gnokii-0.6.20]# cd smsd > [root@ahlwebdev 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 > > > _______________________________________________ > gnokii-users mailing list > gnokii-users@... > http://lists.nongnu.org/mailman/listinfo/gnokii-users > > _______________________________________________ gnokii-users mailing list gnokii-users@... http://lists.nongnu.org/mailman/listinfo/gnokii-users |
|
|
Re: Need Help Regarding smsd [make: pg_config: Command not found]Hi Ben,
thanks for your prompt reply, i will definetely download the latest version and configure it, secondly i dont want to use smsd with postgresql, instead i have installed mysql on RHEL 5 which i have to use with smsd...any suggesion will be much appreciated. Thankyou, Regards Shoaib On Thu, Sep 18, 2008 at 10:59 AM, Benjamin Chodroff <benjamin.chodroff@...> wrote: Hi Shoaib - _______________________________________________ gnokii-users mailing list gnokii-users@... http://lists.nongnu.org/mailman/listinfo/gnokii-users |
|
|
Re: Need Help Regarding smsd [make: pg_config: Command not found]After you get the latest version, make sure after you run ./autogen.sh
in the main directory that Postgresql is not saying "Yes" and MySQL is reporting "Yes" If you still have problems, I would recommend reading this guide: http://www.developershome.com/sms/gnokiiIntro.asp It explains every step you must take and much more. Make sure you have the proper libraries and development header files for MySQL downloaded in your package manager. You will need these to compile gnokii. Ben On Thu, Sep 18, 2008 at 2:04 AM, Shoaib Khan <shoaibahmedkhan@...> wrote: > Hi Ben, > thanks for your prompt reply, i will definetely download the latest version > and configure it, > secondly i dont want to use smsd with postgresql, instead i have installed > mysql on RHEL 5 which i have to use with smsd...any suggesion will be much > appreciated. > Thankyou, > Regards > Shoaib > > On Thu, Sep 18, 2008 at 10:59 AM, Benjamin Chodroff > <benjamin.chodroff@...> wrote: >> >> Hi Shoaib - >> I'd suggest downloading the latest version (0.6.26) from the website >> and compiling from source - there have been a lot of changes since >> 0.6.20 and it would be a lot easier for us to help you if you are >> using the latest. >> http://www.gnokii.org/download/gnokii/ >> >> Looking at your errors, you have a lot of problems with pq.c which >> deals with the postgresql database. Do you have the proper libraries >> and development packages installed on RHEL for this? >> >> Ben >> >> >> On Thu, Sep 18, 2008 at 1:44 AM, Shoaib Khan <shoaibahmedkhan@...> >> 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. >> > >> > [root@ahlwebdev gnokii-0.6.20]# cd smsd >> > [root@ahlwebdev 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 >> > >> > >> > _______________________________________________ >> > gnokii-users mailing list >> > gnokii-users@... >> > http://lists.nongnu.org/mailman/listinfo/gnokii-users >> > >> > >> >> >> _______________________________________________ >> gnokii-users mailing list >> gnokii-users@... >> http://lists.nongnu.org/mailman/listinfo/gnokii-users > > > _______________________________________________ > gnokii-users mailing list > gnokii-users@... > http://lists.nongnu.org/mailman/listinfo/gnokii-users > > _______________________________________________ gnokii-users mailing list gnokii-users@... http://lists.nongnu.org/mailman/listinfo/gnokii-users |
|
|
Re: Need Help Regarding smsd [make: pg_config: Command not found]Shoaib Khan wrote:
> secondly i dont want to use smsd with postgresql, instead i have > installed mysql on RHEL 5 which i have to use with smsd...any suggesion > will be much appreciated. You have the option of taking a RHEL5 nightly build from http://opensource.contentbakery.fi/gnokii/ It is not an official release, but in practice it is quite stable. Regards, Jari Turkia _______________________________________________ gnokii-users mailing list gnokii-users@... http://lists.nongnu.org/mailman/listinfo/gnokii-users |
|
|
Re: Need Help Regarding smsd [make: pg_config: Command not found]I have got the latest version, but while trying to intall it by ./configure command it got stucked showing the error below. what to do?....
I appreciate your patience. Thanks Shoaib [root@ahlwebdev gnokii-0.6.26]# ./configure checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking whether gcc and cc understand -c and -o together... yes checking how to run the C preprocessor... gcc -E checking for flex... flex checking lex output file root... lex.yy checking lex library... -lfl checking whether yytext is a pointer... yes checking for rm... /bin/rm checking for find... /usr/bin/find checking for gmake... gmake checking for ar... ar checking for a BSD-compatible install... /usr/bin/install -c checking for intltool >= 0.35.0... 0.37.1 found checking for xgettext... /usr/bin/xgettext checking for msgmerge... /usr/bin/msgmerge checking for msgfmt... /usr/bin/msgfmt checking for perl... /usr/bin/perl checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool On Thu, Sep 18, 2008 at 11:18 AM, Benjamin Chodroff <benjamin.chodroff@...> wrote: After you get the latest version, make sure after you run ./autogen.sh _______________________________________________ gnokii-users mailing list gnokii-users@... http://lists.nongnu.org/mailman/listinfo/gnokii-users |
|
|
Re: Need Help Regarding smsd [make: pg_config: Command not found]Hi,
On Thu, Sep 18, 2008 at 08:48, Shoaib Khan <shoaibahmedkhan@...> wrote: > I have got the latest version, but while trying to intall it by ./configure > command it got stucked showing the error below. what to do?.... > I appreciate your patience. You're missing build prerequisites. That's why it's easier and better to follow Jari's hint. take care, pkot -- Pawel Kot _______________________________________________ gnokii-users mailing list gnokii-users@... http://lists.nongnu.org/mailman/listinfo/gnokii-users |
|
|
Re: Need Help Regarding smsd [make: pg_config: Command not found]Hi Jari,
I donot know how to install from rpm file, do i have to download all the rpm files under RHEL5 and through which commands i can install/configure it. any kind of help will be appreciated Thanks, Shoaib On Thu, Sep 18, 2008 at 11:28 AM, Jari Turkia <jmjt@...> wrote:
_______________________________________________ gnokii-users mailing list gnokii-users@... http://lists.nongnu.org/mailman/listinfo/gnokii-users |
|
|
Re: Need Help Regarding smsd [make: pg_config: Command not found]Shoaib Khan wrote:
> I donot know how to install from rpm file, do i have to download all the > rpm files under RHEL5 and through which commands i can install/configure it. > any kind of help will be appreciated This may sound a bit harsh to you, but we assume that you have basic knowledge about managing your own system. Gnokii is not a toy, it is not for beginners and there is certain level of knowledge required to manage it. I'm (we're) not that keen on acting as an operating system vendor's help desk. To point you to right direction, you may want to read RedHat's manuals, for example: http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/sysadmin-guide/ch-rpm.html may be very helpful for you. Regards, Jari Turkia _______________________________________________ gnokii-users mailing list gnokii-users@... http://lists.nongnu.org/mailman/listinfo/gnokii-users |
| Free Forum Powered by Nabble | Forum Help |