Re: mysql_init segmentation fault

2007-06-05 Thread Michael Dykman
On 6/5/07, S Nassar <[EMAIL PROTECTED]> wrote: I didn't build libmysql.so myself. This was installed with mysql. The application code that calls mysql_init is built statically. I see this error when building on one machine and trying to use the code on a different machine.

mysql_init segmentation fault

2007-06-05 Thread S Nassar
Hi, I am running an application that interfaces with MySQL from c++. When I try to run the application, I get a segmentation fault at the line where I call mysql_init. Here is part of the output from gdb #0 0x081a0e78 in elf_machine_rel.0 () at ../sysdeps/i386/dl-machine.h:333 #1 0x081a113a

Re: undefined reference to 'mysql_init'

2006-07-23 Thread luiz Rafael
Hi Ali Hi, I am begeener to MySQL. I have installed Suse10 and MySQL and mysql++ in my pc. i want to connect to MySQL through C. When I am compiling the program, I am getting the following error. *** compile your app wi

Re: undefined reference to 'mysql_init'

2006-07-23 Thread Mike Aubury
I am getting the following error. > *** > gcc -o test test.c > test.c:28:3: warning: no newline at end of file > /tmp/cchl7IEh.o: In function `main': > test.c:(.text+0x22): undefined reference to `mysql_i

undefined reference to 'mysql_init'

2006-07-23 Thread ali asghar torabi parizy
test.c:28:3: warning: no newline at end of file /tmp/cchl7IEh.o: In function `main': test.c:(.text+0x22): undefined reference to `mysql_init' test.c:(.text+0x4f): undefined reference to `mysql_real_connect' test.c:(.text+0x65): undefined reference to `mysql_query'

Re: mysql_init(&m) changes values of variables

2005-11-14 Thread Paul DuBois
At 11:33 -0500 11/13/05, Bruce Martin wrote: Ok I have an update. I fixed my problem by passing a NULL parameter to mysql_init() to do this I did this: MYSQL *m; m=mysql_init(NULL); connection=mysql_real_connect(m,cStrdbServer,cStrdbUser,cStrdbUserPass,cStrdbName,0,NULL,0); Which solves the

Re: mysql_init(&m) changes values of variables

2005-11-13 Thread Bruce Martin
Ok I have an update. I fixed my problem by passing a NULL parameter to mysql_init() to do this I did this: MYSQL *m; m=mysql_init(NULL); connection=mysql_real_connect(m,cStrdbServer,cStrdbUser,cStrdbUserPass,c StrdbName,0,NULL,0); On Nov 12, 2005, at 7:44 PM, Bruce Martin wrote: Hello all

mysql_init(&m) changes values of variables

2005-11-12 Thread Bruce Martin
Hello all, I found this odd thing when writing a client in C to connect to a mysql database server. I want to use mysql_real_query so I need the strlen() of the sqlStatement. So prior to calling mysql_init(&m) I get the length of the sqlStatement. I check that length and it is correct a

Re: mysql_init

2005-06-23 Thread Philippe Poelvoorde
yes it is im still getting the mysql_init error... what is this usually indicataive of?? a build issue?? PATHs?? config file?? Im using the standard 'came with distribution' MySQL from SLAMD 10.1... I've got no idea what is this distribution (Mandrake Linux for AMD 64?) wha

Re: mysql_init

2005-06-23 Thread ronan
2.0.0 /usr/lib64/mysql/libmysqlclient.so /usr/lib64/mysql/libmysqlclient.so.12 /usr/lib64/libmysqlclient.so /usr/lib64/libmysqlclient.so.12 yes it is im still getting the mysql_init error... what is this usually indicataive of?? a build issue?? PATHs?? config file?? Im using the standard '

Re: mysql_init

2005-06-23 Thread Philippe Poelvoorde
i've googled and the only answer to problems like this has been to reinstall the DB perl module. Ive tried this but still get same error. any clues??? thanks in advance. Ronan Is libmysqlclient.so available in one of your LD_LIBRARY_PATH directory ? -- Philippe Poelvoorde COS Trading Lt

mysql_init

2005-06-23 Thread ronan
Trying to run exilog as part of the EXIM mta but getting a mysql error both when i run from command line and as part of apache CL /usr/lib/perl5/site_perl/5.8.5/x86_64-linux/auto/DBD/mysql/mysql.so: undefined symbol: mysql_init apache error log /usr/bin/perl: symbol lookup error: /usr/lib

Re: mysql_init() issue on HPUX

2005-02-08 Thread Gleb Paharenko
Sql binaries on my HPUX machine and followed the instructions. I tested that the command line 'mysql' is working and I can create databases, users and import data. I wrote a simple C program that does mysql_init(NULL) and then connects to the database. However, w

mysql_init() issue on HPUX

2005-02-07 Thread yigal.spinner
I'm new to the mySql product. I have installed the mySql binaries on my HPUX machine and followed the instructions. I tested that the command line 'mysql' is working and I can create databases, users and import data. I wrote a simple C program that does mysql_init(NULL) and t

Newbie question: segmentation fault in mysql_init

2004-12-13 Thread Alina Bińkowska
Description: When I try to call mysql_init() several times in my program it finishes with segmentation fault. This happens in different places of my program but always in mysql_init(). This is the gdb output: #0 0x007ba6ae in malloc_consolidate () from /lib/tls/libc.so.6 #1 0x007b9e6a in

Re: Newbie question: segmentation fault in mysql_init

2004-12-13 Thread Paul DuBois
At 19:32 +0100 12/13/04, Alina BiŸkowska wrote: Description: When I try to call mysql_init() several times in my program it finishes with segmentation fault. This happens in different places of my program but always in mysql_init(). This is the gdb output: #0 0x007ba6ae in malloc_consolidate

Re: mysql_init returns NULL

2004-04-20 Thread Paul DuBois
At 19:07 -0700 4/20/04, <[EMAIL PROTECTED]> wrote: I am attempting to write a C program to access MySQL. When I run this program, it reports that mysql_init() returned NULL, mysql_errno returned zero, and mysql_error returned "". Here is the program: #include #include

mysql_init returns NULL

2004-04-20 Thread mysql
I am attempting to write a C program to access MySQL. When I run this program, it reports that mysql_init() returned NULL, mysql_errno returned zero, and mysql_error returned "". Here is the program: #include #include int main( void ) { MYSQL *db; db = mysql_

Using mysql_init() when creating a connection

2004-03-30 Thread Ben Whitesell
I'm having some problems with this function. I have a "conn.inc" file that each of my web pages accesses to create the connection to my database, and I'm trying to use the mysql_init() function but am getting a "Call to undefined function: mysql_init()" error. Can so

Re: mysql_init function issues :Connecting MySQL to COBOL

2004-01-13 Thread Arunachalam
I have somehow managed to create the datatype in COBOL matching to C datatype and passed as argument to mysql_init and mysql_real_connect. My COBOL coding seems to working fine, but it could not able to connect to MySQL and retrive Data. Instead it produce an error as; Unknown MySQL

mysql_init function issues :Connecting MySQL to COBOL

2004-01-13 Thread Arunachalam
from mysql_init function of MySQL in libmysql.lib library file. i.e., MYSQL* mysql_init(MYSQL *mysql), here actually this function require a parameter of MYSQL type NULL pointer and return back the MYSQL handle. >From COBOL, If I pass a NULL pointer to this function, it wouldn'

Won't mysql_init();

2003-07-07 Thread Peter Moscatt
I am trying to connect to a simple database, basically to check that I have the gist of programming with MySQL. I have tried the following code: #include #include "linlog.h" LinLog::LinLog(QWidget *parent, const char *name) : PGM_Window(parent, name) { MYSQL mysql; mysql_i

mysql_init

2003-01-03 Thread Slabber
I'm currently writing a shared library on Solaris. When I add mysql_init(&mysql) to the code and run the parent process, it bombs out. Unfortunately I don't have the source for the parent process so it could be quite hard to debug. Is there any issues with using the C api with sh

OT? mysql_init error w/ perl

2002-09-18 Thread Bryan Koschmann - GKT
ned symbol: mysql_init - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To uns

Runtime mysql_init problem

2002-05-01 Thread kcloseke
I recently had to reformat my hard drive and re-install everything. Now when I try to run my C++ developed using Kdeveloper 2.0 the command conn = mysql_init(NULL) causes error "Stopped due to shared library event" This program used to work fine so I realize it's probably

Runtime mysql_init problem

2002-05-01 Thread kcloseke
I recently had to reformat my hard drive and re-install everything. Now when I try to run my C++ developed using Kdeveloper 2.0 the command conn = mysql_init(NULL) causes error "Stopped due to shared library event" This program used to work fine so I realize it's probably

unresolved external refernce (mysql_init) - help!!

2001-12-29 Thread Kevin
Hi, I'm trying to compile and link a small program on Win98 with borland's free C compiler (version 5.5.1) Here is the code: (test.c) #include #include #include #include #include int main() { MYSQL *mysql; mysql = malloc(sizeof(MYSQL)); mysql_init(mysql); printf("Ini

mysql_init

2001-06-25 Thread Stepan Havel
I get the following error, if I run DBI,DBD,mysql .../DBD/mysql/mysql.so: symbol mysql_init: referenced symbol not found! What can I do against this? Stepan - Before posting, please check: http://www.mysql.com/manual.php

Unsatisfied symbols-mysql_init

2001-02-14 Thread Ragupathi P
hi, i recently downloaded mysql-3.23.32-hp-hpux10.20-hppa1.1.tar.gz , and tried writing a very simple code to start with . i just made a call to mysql_init() and mysql_connect() in the sample code . i used aCC ( version : aCC: HP ANSI C++ B3910B A.01.21) on a HPUX 10.2 machine