>Description: Compilation fails with subject configuration due to missing typecasts in sql/mini_client.cc and sql/mysqld.cc
>How-To-Repeat: ./configure --prefix=/usr/local/mysql --with-innodb make >Fix: apply supplied patch which simply provides neccessary typecasting. [ begin mini_client.diff ] *** sql/mini_client.cc Tue Aug 13 18:08:15 2002 --- ../mysql-3.23.52-fixed/sql/mini_client.cc Tue Oct 8 12:28:42 2002 *************** *** 318,324 **** */ s_err=0; ! if (getsockopt(s, SOL_SOCKET, SO_ERROR, (char*) &s_err, &s_err_size) != 0) return(-1); if (s_err) --- 318,324 ---- */ s_err=0; ! if (getsockopt(s, SOL_SOCKET, SO_ERROR, (char*) &s_err, (socklen_t *)&s_err_size) != 0) return(-1); if (s_err) [ end mini_client.diff ] [ begin mysqld.diff ] *** sql/mysqld.cc Tue Aug 13 18:08:13 2002 --- ../mysql-3.23.52-fixed/sql/mysqld.cc Tue Oct 8 12:11:56 2002 *************** *** 2407,2413 **** { size_socket length=sizeof(struct sockaddr_in); new_sock = accept(sock, my_reinterpret_cast(struct sockaddr *) (&cAddr), ! &length); if (new_sock != INVALID_SOCKET || (socket_errno != SOCKET_EINTR && socket_errno != SOCKET_EAGAIN)) break; --- 2407,2413 ---- { size_socket length=sizeof(struct sockaddr_in); new_sock = accept(sock, my_reinterpret_cast(struct sockaddr *) (&cAddr), ! (socklen_t *)&length); if (new_sock != INVALID_SOCKET || (socket_errno != SOCKET_EINTR && socket_errno != SOCKET_EAGAIN)) break; *************** *** 2473,2479 **** size_socket dummyLen; struct sockaddr dummy; dummyLen = sizeof(struct sockaddr); ! if (getsockname(new_sock,&dummy, &dummyLen) < 0) { sql_perror("Error on new connection socket"); (void) shutdown(new_sock,2); --- 2473,2479 ---- size_socket dummyLen; struct sockaddr dummy; dummyLen = sizeof(struct sockaddr); ! if (getsockname(new_sock,&dummy, (socklen_t *)&dummyLen) < 0) { sql_perror("Error on new connection socket"); (void) shutdown(new_sock,2); [ end mysqld.diff ] >Submitter-Id: <submitter ID> >Originator: Tony Nelson >Organization: Starpoint Solutions >MySQL support: none >Synopsis: Compile fails on solaris 5.7 with gcc 3.2 >Severity: non-critical >Priority: low >Category: mysql >Class: sw-bug >Release: mysql-3.23.52 (Source distribution) >Environment: System: SunOS mail 5.7 Generic_106541-15 sun4u sparc SUNW,Ultra-5_10 Architecture: sun4 Some paths: /usr/local/bin/perl /usr/local/bin/make /usr/local/bin/gmake /usr/local/bin/gcc GCC: Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/3.2/specs Configured with: ./configure --enable-langues=c++ Thread model: posix gcc version 3.2 Compilation info: CC='gcc' CFLAGS='' CXX='g++' CXXFLAGS='' LDFLAGS='' LIBC: -rw-r--r-- 1 bin bin 1710308 Apr 25 2001 /lib/libc.a lrwxrwxrwx 1 root root 11 Oct 30 2000 /lib/libc.so -> ./libc.so.1 -rwxr-xr-x 1 bin bin 1124692 Apr 25 2001 /lib/libc.so.1 -rw-r--r-- 1 bin bin 1710308 Apr 25 2001 /usr/lib/libc.a lrwxrwxrwx 1 root root 11 Oct 30 2000 /usr/lib/libc.so -> ./libc.so.1 -rwxr-xr-x 1 bin bin 1124692 Apr 25 2001 /usr/lib/libc.so.1 Configure command: ./configure --prefix=/usr/local/mysql --with-innodb --------------------------------------------------------------------- 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