I'm trying to compile the cdr_mysql module, but I am receiving error messages. I have installed mysql-devel. Here is the output of make cdr_mysql: cc -fPIC -I/usr/local/mysql/include -I/usr/include/mysql -c -o cdr_mysql.o cdr_mysql.c cdr_mysql.c:30:26: mysql/errmsg.h: No such file or directory cdr_mysql.c: In function `mysql_log': cdr_mysql.c:74: `CR_SERVER_GONE_ERROR' undeclared (first use in this function) cdr_mysql.c:74: (Each undeclared identifier is reported only once cdr_mysql.c:74: for each function it appears in.) make: *** [cdr_mysql.o] Error 1 I have looked up CR_SERVER_GONE_ERROR, but I'm not sure how that applies to compiling the module. Any help is appreciated. _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
On Wed, 2003-08-13 at 15:06, Jerk Face wrote:> I'm trying to compile the cdr_mysql module, but I am receiving error > messages. > I have installed mysql-devel. > > Here is the output of make cdr_mysql: > > cc -fPIC -I/usr/local/mysql/include -I/usr/include/mysql -c -o > cdr_mysql.o cdr_mysql.c > cdr_mysql.c:30:26: mysql/errmsg.h: No such file or directory > cdr_mysql.c: In function `mysql_log': > cdr_mysql.c:74: `CR_SERVER_GONE_ERROR' undeclared (first use in this > function) > cdr_mysql.c:74: (Each undeclared identifier is reported only once > cdr_mysql.c:74: for each function it appears in.) > make: *** [cdr_mysql.o] Error 1 > > I have looked up CR_SERVER_GONE_ERROR, but I'm not sure how that applies to > compiling the module.If you look just 2 lines farther up the screen you will see your true problem. If it can't find errmsg.h then it should fail. -- Steven Critchfield <critch@basesys.com>
On Wednesday 13 August 2003 03:06 pm, Jerk Face wrote:> I'm trying to compile the cdr_mysql module, but I am receiving > error messages. > I have installed mysql-devel. > > Here is the output of make cdr_mysql: > > cc -fPIC -I/usr/local/mysql/include -I/usr/include/mysql -c -o > cdr_mysql.o cdr_mysql.c > cdr_mysql.c:30:26: mysql/errmsg.h: No such file or directory > cdr_mysql.c: In function `mysql_log': > cdr_mysql.c:74: `CR_SERVER_GONE_ERROR' undeclared (first use in > this function) > cdr_mysql.c:74: (Each undeclared identifier is reported only once > cdr_mysql.c:74: for each function it appears in.) > make: *** [cdr_mysql.o] Error 1 > > I have looked up CR_SERVER_GONE_ERROR, but I'm not sure how that > applies to compiling the module. > > Any help is appreciated.Could you tell me where mysql/errmsg.h is located on your distribution? We can update the Makefile to look there for that header. -Tilghman
/usr/src/usr/include/mysql/errmsg.h The version of MySQL that I'm running is 3.23.57-1 Could you tell me where mysql/errmsg.h is located on your distribution? We can update the Makefile to look there for that header. -Tilghman _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
I am running Mandrake 9.1, and MySQL 3.23.57-1; and yes, I would think that /usr/src/usr/include/mysql is not the right place for errmsg.h. What can I do to get around this? I changed the cdr_mysql.c file: #include <mysql/errmsg.h> Changed to #include </usr/src/usr/include/mysql/errmsg.h> But I get the following error: [root cdr]# make cdr_mysql cc -fPIC -I/usr/local/mysql/include -I/usr/include/mysql -c -o cdr_mysql.o cdr_mysql.c cdr_mysql.c:40: parse error before "mysql_lock" cdr_mysql.c:40: warning: excess elements in scalar initializer cdr_mysql.c:40: warning: (near initialization for `mysql_lock') cdr_mysql.c:40: warning: excess elements in scalar initializer cdr_mysql.c:40: warning: (near initialization for `mysql_lock') cdr_mysql.c:40: warning: excess elements in scalar initializer cdr_mysql.c:40: warning: (near initialization for `mysql_lock') cdr_mysql.c:40: warning: braces around scalar initializer cdr_mysql.c:40: warning: (near initialization for `mysql_lock') cdr_mysql.c:40: warning: excess elements in scalar initializer cdr_mysql.c:40: warning: (near initialization for `mysql_lock') cdr_mysql.c:40: warning: excess elements in scalar initializer cdr_mysql.c:40: warning: (near initialization for `mysql_lock') cdr_mysql.c:40: warning: data definition has no type or storage class make: *** [cdr_mysql.o] Error 1 Any help is always appreciated. On Wednesday 13 August 2003 03:24 pm, Jerk Face wrote:>/usr/src/usr/include/mysql/errmsg.h >The version of MySQL that I'm running is 3.23.57-1What distribution are you running? That's a pretty braindead place to put the mysql header files. You'd think someplace like /usr/include, /usr/local/include, or even /usr/local/mysql/include, but /usr/src/usr/include shouldn't be the correct location on any Linux system. -Tilghman _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>You should instead update the appropriate Makefile to change: >-I/usr/local/mysql/include >to >-I/usr/src/usr/include/mysql >or you could just do: >cp -a /usr/src/usr/include/mysql /usr/include/mysqlI did that, and I still get the same error: [root cdr]# make cdr_mysql cc -fPIC -I/usr/local/mysql/include -I/usr/include/mysql -c -o cdr_mysql.o cdr_mysql.c cdr_mysql.c:40: parse error before "mysql_lock" cdr_mysql.c:40: warning: excess elements in scalar initializer cdr_mysql.c:40: warning: (near initialization for `mysql_lock') cdr_mysql.c:40: warning: excess elements in scalar initializer cdr_mysql.c:40: warning: (near initialization for `mysql_lock') cdr_mysql.c:40: warning: excess elements in scalar initializer cdr_mysql.c:40: warning: (near initialization for `mysql_lock') cdr_mysql.c:40: warning: braces around scalar initializer cdr_mysql.c:40: warning: (near initialization for `mysql_lock') cdr_mysql.c:40: warning: excess elements in scalar initializer cdr_mysql.c:40: warning: (near initialization for `mysql_lock') cdr_mysql.c:40: warning: excess elements in scalar initializer cdr_mysql.c:40: warning: (near initialization for `mysql_lock') cdr_mysql.c:40: warning: data definition has no type or storage class make: *** [cdr_mysql.o] Error 1 I can only assume that the problem is at line 40 of cdr_mysql.c, but since I'm not a C programmer, I don't know what the error is. Any ideas? _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail