hi, 
I upgraded from the gcc-2.96 because of warnings in the notes about possible bugs, so 
I got the newest redhat gcc package which is gcc-3.2.1-1.i386.rpm.  I also upgraded to 
glibc-{devel common utils}-2.3.1-6 and am trying to compile the new mysql-4.0.9-gamma 
and am running into problems with line 1693 of libmysql.c

  struct hostent tmp_hostent,*hp;
      char buff2[GETHOSTBYNAME_BUFF_SIZE];
      hp = my_gethostbyname_r(host,&tmp_hostent,buff2,sizeof(buff2),
                              &tmp_errno);
      if (!hp)
and the specific error is ............... (drumroll)
libmysql.c: In function `mysql_real_connect':
libmysql.c:1693: warning: passing arg 5 of `gethostbyname_r' from incompatible pointer 
type
libmysql.c:1693: too few arguments to function `gethostbyname_r'
libmysql.c:1693: warning: assignment makes pointer from integer without a cast

the code in /usr/include/netdb.h says:

extern int gethostbyname_r (__const char *__restrict __name,
                            struct hostent *__restrict __result_buf,
                            char *__restrict __buf, size_t __buflen,
                            struct hostent **__restrict __result,
                            int *__restrict __h_errnop) __THROW;

does anybody know how to fix this?

-- 
home: 210/223-7451
cell: 210/326-1983
Jose C. Simpson                     
[EMAIL PROTECTED]


---------------------------------------------------------------------
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 unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to