LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   gnokii installing problem (https://www.linuxquestions.org/questions/linux-software-2/gnokii-installing-problem-831557/)

san_to_all 09-11-2010 09:51 AM

gnokii installing problem
 
Hi,
I was installing new version of gnokii-0.6.29 from source so that I can install gnocky-0.0.7.But gnocky requires pkgconf/gnokii.pc, and gnokii-devel package which is not installed.
I have fedora 10 with mysql and gnokii already but not postgres.While comcpiling gnokii I got this error.

code
----------------------
mysql.c:36:19: error: mysql.h: No such file or directory
mysql.c:42: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mysqlIn’
mysql.c:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mysqlOut’
mysql.c: In function ‘DB_Bye’:
mysql.c:47: warning: implicit declaration of function ‘mysql_close’
mysql.c:47: error: ‘mysqlIn’ undeclared (first use in this function)
mysql.c:47: error: (Each undeclared identifier is reported only once
mysql.c:47: error: for each function it appears in.)
mysql.c:48: error: ‘mysqlOut’ undeclared (first use in this function)
mysql.c: In function ‘DB_ConnectInbox’:
mysql.c:58: warning: implicit declaration of function ‘mysql_init’
mysql.c:58: error: ‘mysqlIn’ undeclared (first use in this function)
mysql.c:62: warning: implicit declaration of function ‘mysql_real_connect’
mysql.c:70: warning: implicit declaration of function ‘mysql_error’
mysql.c:70: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘int’
mysql.c: In function ‘DB_ConnectOutbox’:
mysql.c:84: error: ‘mysqlOut’ undeclared (first use in this function)
mysql.c:96: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘int’
mysql.c: In function ‘DB_InsertSMS’:
mysql.c:108: error: ‘MYSQL_RES’ undeclared (first use in this function)
mysql.c:108: error: ‘res’ undeclared (first use in this function)
mysql.c:109: error: ‘MYSQL_ROW’ undeclared (first use in this function)
mysql.c:109: error: expected ‘;’ before ‘row’
mysql.c:123: warning: implicit declaration of function ‘mysql_real_escape_string’
mysql.c:123: error: ‘mysqlIn’ undeclared (first use in this function)
mysql.c:140: warning: implicit declaration of function ‘mysql_real_query’
mysql.c:148: warning: implicit declaration of function ‘mysql_store_result’
mysql.c:149: error: ‘row’ undeclared (first use in this function)
mysql.c:149: warning: implicit declaration of function ‘mysql_fetch_row’
mysql.c:187: error: ‘mysqlOut’ undeclared (first use in this function)
mysql.c:251: warning: implicit declaration of function ‘mysql_free_result’
mysql.c: In function ‘DB_Look’:
mysql.c:315: error: ‘MYSQL_RES’ undeclared (first use in this function)
mysql.c:315: error: ‘res1’ undeclared (first use in this function)
mysql.c:316: error: ‘MYSQL_ROW’ undeclared (first use in this function)
mysql.c:316: error: expected ‘;’ before ‘row’
mysql.c:334: error: ‘mysqlOut’ undeclared (first use in this function)
mysql.c:337: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘int’
mysql.c:345: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘int’
mysql.c:350: error: ‘row’ undeclared (first use in this function)
mysql.c:396: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘int’
gmake[1]: *** [mysql.lo] Error 1
gmake[1]: Leaving directory `/usr/local/gnokii-0.6.29/smsd'
gmake: *** [all-recursive] Error 1
[root@localhost gnokii-0.6.29]#

----------------------------------
tried with yum update gnokii but it was loading too many packages.On my slow internet connection this was an overnight practice. also some packages simply unavailable like libgnome-control-center.so.1

Do I need to setup mysql so as to read and write sms from it before installing gnokii?

Or installing old version of gnokcy will solve my problem? so that it should not ask for any latest package of pkg-conf/gnokii.pc.

Thanks.

AlucardZero 09-11-2010 10:02 AM

Quote:

mysql.c:36:19: error: mysql.h: No such file or directory
Try installing the mysql development package.

san_to_all 09-11-2010 01:27 PM

Hi,AlucardZero

I tried installing gnokii 0.6.29 from source it was reporting mysql.h is missing. installtion was half complete.
I copied gnokii.pc from gnokii 0.6.29 source directory to /usr/lib/pkgconfig/ and compiled gnocky. this time above error not appeared. but installation was not complete. Gnocky appeared in menu but not functioning. running it from shell gives error like
-------------------
[root@localhost gnocky-0.0.7]# gnocky
gnocky: error while loading shared libraries: libgnokii.so.6: cannot open shared object file: No such file or directory
-----------------------

libgnokii.so.6 is in /usr/local/lib/ link to shared library
libgnokii.so.6.0.0 /usr/local/lib/ shared library

My SQL version is 14.12 Should I just search internet and copy mysql.h? and if in which directory?

AlucardZero 09-11-2010 01:34 PM

No. Why would you ever do that?

Code:

yum install mysql-devel

san_to_all 09-11-2010 01:50 PM

I have slow internet connection. assuming mysql is big enough it will take too much time to install and installing dependancy.if dependancy fails to install I have to restart whole process from scratch.


All times are GMT -5. The time now is 05:19 PM.