LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-11-2010, 09:51 AM   #1
san_to_all
LQ Newbie
 
Registered: Sep 2010
Posts: 24

Rep: Reputation: 0
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.

Last edited by san_to_all; 09-11-2010 at 09:56 AM.
 
Old 09-11-2010, 10:02 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Quote:
mysql.c:36:19: error: mysql.h: No such file or directory
Try installing the mysql development package.
 
Old 09-11-2010, 01:27 PM   #3
san_to_all
LQ Newbie
 
Registered: Sep 2010
Posts: 24

Original Poster
Rep: Reputation: 0
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?
 
Old 09-11-2010, 01:34 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
No. Why would you ever do that?

Code:
yum install mysql-devel
 
Old 09-11-2010, 01:50 PM   #5
san_to_all
LQ Newbie
 
Registered: Sep 2010
Posts: 24

Original Poster
Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USing Gnokii for the first time kavinchat Linux - Newbie 0 10-21-2008 05:11 AM
Newbie trying to install gnokii with general installation problem. zest n zeal Linux - Software 0 06-27-2008 10:57 AM
gnokii gui problem abourke Linux - Software 0 12-13-2006 12:04 PM
Slackware and 3310 ( gnokii problem ) TheSpy Linux - Software 0 03-21-2006 12:23 PM
gnokii and irda marekjs Linux - Software 0 09-09-2005 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration