Hello,
Sorry for the cross post, I didn't get any response from the internals
list... I'm trying to compile mysql 4.1.7 from source on SLES 8, running on
os390. I'm having a problem that others have seemed to have:
http://lists.mysql.com/internals/17577
http://www.linuxquestions.org/questions/history/225560
http://forums.mysql.com/read.php?11,6459,6459
http://lists.mysql.com/internals/3838
But the fixes that were suggested were not clear, and in some cases, like for
17577, I tried adding the references to the other header files, but it did not
fix the problem. If anyone can be of assistance, it would greatly be
appreciated.
-Thanks, RYAN
<configure options>
#!/bin/sh
./configure \
--prefix=/usr/local/mysql-4.1.7 \
--localstatedir=/usr/local/mysql/data \
--without-debug
</configure options>
<error>
gcc -DDEFAULT_CHARSET_HOME=\"/usr/local/mysql-4.1.7\"
-DDATADIR=\"/usr/local/mysql/data\"
-DSHAREDIR=\"/usr/local/mysql-4.1.7/share/mysql\" -DUNDEF_THREADS_HACK
-DDONT_USE_RAID -I. -I. -I.. -I../include -O3 -DDBUG_OFF -MT manager.lo -MD -MP
-MF .deps/manager.Tpo -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: 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 `/admin/packages/cbtap/mysql-4.1.7/libmysql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/admin/packages/cbtap/mysql-4.1.7'
make: *** [all] Error 2
</error>
<excerpts from manager.c>
24 #include "mysql.h"
25 #include "mysql_version.h"
26 #include "mysqld_error.h"
27 #include <my_sys.h>
28 #include <mysys_err.h>
29 #include <m_string.h>
30 #include <m_ctype.h>
31 #include <my_net.h>
32 #include <errmsg.h>
33 #include <violite.h>
34 #include <sys/stat.h>
35 #include <signal.h>
36 #include <errno.h>
37 #include <sys/types.h>
130 else
131 {
132 int tmp_errno;
133 struct hostent tmp_hostent,*hp;
134 char buff2[GETHOSTBYNAME_BUFF_SIZE];
135 hp = my_gethostbyname_r(host,&tmp_hostent,buff2,sizeof(buff2),
136 &tmp_errno);
137 if (!hp)
138 {
139 con->last_errno=tmp_errno;
140 sprintf(con->last_error,"Could not resolve host '%-.64s'",host);
141 my_gethostbyname_r_free();
142 goto err;
143 }
144 memcpy(&sock_addr.sin_addr,hp->h_addr, (size_t) hp->h_length);
145 my_gethostbyname_r_free();
146 }
</excerpts from manager.c>
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]