OK, here are the last few lines from make.  I configured using the
following:

./configure --prefix=/usr/local/mysql --with-mysqld-user=mysql

errors:

libmysql.c: In function `mysql_real_connect':
libmysql.c:1790: warning: passing arg 5 of `gethostbyname_r' from
incompatible pointer type
libmysql.c:1790: too few arguments to function `gethostbyname_r'
libmysql.c:1790: warning: assignment makes pointer from integer without a
cast
make[2]: *** [libmysql.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I tried ./configure without the --with-mysqld-user flag.  still the same
errors.

Coincidently, I spent the entire day trying to figure out why I couldn't
compile qmail on my RedHat 9 box and found the answer.  Apparently, do to
changes in the new glibc, some older practices become incompatible with
glibc and cause a compile error.  With qmail, it was a simple fix, just find
the 3 affected files and add the #include <errno.h> header for each file.
Link if you're interested in also compiling qmail on RedHat 9 (I love qmail,
sendmail sucks): http://article.gmane.org/gmane.mail.qmail.general/13960

I wonder if the new glibc is also at play here.  I'm not educated on the art
of compiling, I just know how to untar packages, configure, and make them.
And, if I run into a problem, google's my only friend.  In this case, I
couldn't find much.

I've got the binaries working ok for now but sometimes it's just the
principle...I can't stand being beaten :)


At 10:22 AM -0400 9/11/03, Peter Koutsoulias wrote:
>I couldn't find an appropriate mailing list for compiling MySQL, so I
>thought I'd try here.
>
>anyone successfully compile MySQL 4 on RedHat 9?  I keep getting errors on
>libmysql.c during the make step.  Google doesn't reveal a whole lot about
>compiling MySQL on RedHat which leaves me to believe most people use RPMs.

It would help if you showed your configure command and also the resulting
errors.  "I keep getting errors" isn't really very specific, and you're
less likely to get any useful response that way than if you provide details.


--
Paul DuBois, Senior Technical Writer
Madison, Wisconsin, USA
MySQL AB, www.mysql.com

Are you MySQL certified?  http://www.mysql.com/certification/


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to