LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   mysql compile errors on MDK ssytem (https://www.linuxquestions.org/questions/linux-software-2/mysql-compile-errors-on-mdk-ssytem-139639/)

bai_design 01-28-2004 11:44 AM

mysql compile errors on MDK ssytem
 
I have been trying to compile mysql-3.23.58 with the following commands
./configure --prefix=/httpd/apache/mysql --localstatedir=/httpd/apache/mysql/data --disable-maintainer-mode --with-mysqld-user=mysql --enable-large-files -without-debug

and I get the following errors
gcc -DDEFAULT_CHARSET_HOME=\"/httpd/apache/mysql\" -DDATADIR=\"/httpd/apache/mysql/data\" -DSHAREDIR=\"/httpd/apache/mysql/share/mysql\" -DUNDEF_THREADS_HACK -DDONT_USE_RAID -I. -I. -I.. -I./../include -I../include -I./.. -I.. -I.. -O3 -DDBUG_OFF -c libmysql.c -MT libmysql.lo -MD -MP -MF .deps/libmysql.TPlo -fPIC -DPIC -o .libs/libmysql.lo
libmysql.c: In function `mysql_real_connect':
libmysql.c:1353: warning: passing arg 5 of `gethostbyname_r' from incompatible pointer type
libmysql.c:1353: error: too few arguments to function `gethostbyname_r'
libmysql.c:1353: warning: assignment makes pointer from integer without a cast
make[2]: *** [libmysql.lo] Error 1
make[2]: Leaving directory `/httpd/mysql-3.23.58/libmysql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/httpd/mysql-3.23.58'
make: *** [all] Error 2

if you need any more info its being compiled on a Mandrake 9.2 system...
any help would be appreciated

skinpainting 01-28-2004 11:39 PM

try finding an rpm what version of mandrake? server? desktop?

bai_design 01-29-2004 01:43 PM

Using Mandrake 9.2 with a desktop install...
I found the rpm but it would not allow me to install it...?o_0

acid_kewpie 01-29-2004 02:56 PM

Quote:

I found the rpm but it would not allow me to install it...?o_0
how about you actually tell us *why* it won't let you install it.

bai_design 01-29-2004 03:07 PM

well when I tried to install the MySQL-4.0.x I got this
Code:

Some package requested cannot be installed:
MySQL-4.0.15-1mdk.i586 (due to unsatisfied MySQL-common[*][== 4.0.15-1mdk])
do you agree ?

so I downloaded the MySQL-common rpm and got this
Code:

Some package requested cannot be installed:
MySQL-common-4.0.15-1mdk.i586 (due to unsatisfied MySQL-client)
do you agree ?

any ideas?
-=edit=-
if I install the rpm would I be able to change the data storage dir to a diff dir like in my compile options?

skinpainting 01-29-2004 07:19 PM

you'll have to solve those dependencies but once you do that you'll be able to install it... you should be able to install mySQL off the mandrake disk and then use urpmi or "mandrakeupdate"(which uses urpmi i think) to update them...

bai_design 01-30-2004 04:30 PM

ok thanks for the help :)


All times are GMT -5. The time now is 10:19 PM.