LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-02-2004, 02:59 AM   #1
larynx
LQ Newbie
 
Registered: Aug 2003
Location: Norway - Oslo
Distribution: Debian 3.0
Posts: 4

Rep: Reputation: 0
mysql error under make


I have run configure and that went through great, but when i run make then i get this message:

libmysql.c: In function 'mysql_real_connect':
libmysql.c:1850: Warning: passing arg 5 of 'gethostbyname_r' from incompatible pointer type
libmysql.c:1850: too few arguments to function 'gethostbyname_r'
libmysql.c:1850: warning: assingment makes pointer from integer without a cast
make[2]: *** [libmysql.lo] Error 1
make[2]: Leaving directory '/usr/local/src/mysql-4.0.20/libmysql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/usr/local/src/mysql-4.0.20'
make: *** [all] Error 2

What do i have to do to make this work?

Last edited by larynx; 09-02-2004 at 03:00 AM.
 
Old 09-02-2004, 01:19 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Welcome to LQ.

Can you post what came above that - there is likely to be more to the error.

I'll move this to software since it isn't really a networking question.
 
Old 11-19-2004, 03:42 PM   #3
The SMU
LQ Newbie
 
Registered: Jun 2003
Location: MN, USA
Distribution: Debian
Posts: 15

Rep: Reputation: 0
I think i'm having the same problem that larynx was having. Not sure whats wrong, but i posted everything i could see that related to the error, starting when make went inside the libmysql directory, where the error ocurred.


Making all in libmysql
make[2]: Entering directory `/home/me/bin/mysql-4.1.7/libmysql'
source='manager.c' object='manager.lo' libtool=yes \
depfile='.deps/manager.Plo' tmpdepfile='.deps/manager.TPlo' \
depmode=none /bin/sh ../depcomp \
/bin/sh ../libtool --preserve-dup-deps --mode=compile gcc -DDEFAULT_CHARSET_HOME="\"/usr/local/mysql\"" -DDATADIR="\"/usr/local/mysql/data\"" -DSHAREDIR="\"/usr/local/mysql/share/mysql\"" -DUNDEF_THREADS_HACK -DDONT_USE_RAID -I. -I. -I.. -I../include -I../zlib -O3 -DDBUG_OFF -c -o manager.lo `test -f 'manager.c' || echo './'`manager.c
gcc -DDEFAULT_CHARSET_HOME=\"/usr/local/mysql\" -DDATADIR=\"/usr/local/mysql/data\" -DSHAREDIR=\"/usr/local/mysql/share/mysql\" -DUNDEF_THREADS_HACK -DDONT_USE_RAID -I. -I. -I.. -I../include -I../zlib -O3 -DDBUG_OFF -c manager.c -fPIC -DPIC -o .libs/manager.o
manager.c: In function `mysql_manager_connect':
manager.c:136: warning: passing arg 5 of `gethostbyname_r' from incompatible pointer type
manager.c:136: error: too few arguments to function `gethostbyname_r'
manager.c:136: warning: assignment makes pointer from integer without a cast
make[2]: *** [manager.lo] Error 1
make[2]: Leaving directory `/home/me/bin/mysql-4.1.7/libmysql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/me/bin/mysql-4.1.7'
make: *** [all] Error 2

Any ideas?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. NoviceW Linux - Networking 17 09-17-2014 03:13 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 09:44 AM
php make error (mysql related) oluckboy Red Hat 1 07-06-2005 11:53 AM
PHP 4.3.1 Make Error with MYSQL SForsgren Linux - Software 2 05-23-2003 03:02 PM
mysql installation error (make install error) jolly_good2000 Linux - Software 1 11-14-2002 05:00 PM

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

All times are GMT -5. The time now is 11:11 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