>Description:
Compilation of MySQL 4.0.0 on OSF 5.1 aborts in getopt.c due to
an error in the number of arguments to readv() and writev().
This boils down to the problem that compiling the following
2-line "program" with gcc 3.0.1 on OSF 5.1 screws up the header files:
#define _NO_PROTO
#include "sys/uio.h"
Actually, above line uses anglebrackets instead of double quotes but
mysqlbug eats those.
gcc -c x.c
In file included from x.c:2:
/usr/include/sys/uio.h:177:22: macro "readv" requires 3 arguments, but only 1 given
/usr/include/sys/uio.h:178:23: macro "writev" requires 3 arguments, but only 1 given
>How-To-Repeat:
#!/bin/sh
base=/usr/home/gordonb/mysql
cd mysql-4.0.0-alpha
echo "configure"
CC="gcc -pthread -D_PTHREAD_USE_D4"
export CC
CXX="gcc -pthread -D_PTHREAD_USE_D4"
export CXX
./configure \
--prefix=${base} \
--with-unix-socket-path=${base}/tmp/mysql.sock \
--with-tcp-port=3307 \
--with-mysqld-user=gordonb \
--without-isam \
--without-innodb
gmake
(Note: I don't have root on this machine so I'm trying to
run it out of my own directory. I don't think that has
anything to do with this problem, though).
Compilation of getopt.c aborts with complaints about the
wrong number of arguments to readv() and writev().
<precise description of the problem (multiple lines)>
>Fix:
I don't understand the problem that defining _NO_PROTO was
supposed to fix, but the problem goes away if that definition
is taken out.
>Submitter-Id: <submitter ID>
>Originator: Gordon L. Burditt
>Organization:
Internet America
>MySQL support: none [none | licence | email support | extended email support ]
>Synopsis: MySQL 4.0.0 getopt.c fails to compile on OSF 5.1
>Severity: critical
>Priority: medium
>Category: mysql
>Class: sw-bug
>Release: mysql-4.0.0-alpha (Source distribution)
>Environment:
OSF1 version 5.1, gcc 3.0.1, gmake 3.79.1
Alpha DS-20 hardware
System: OSF1 beast V5.1 1885 alpha
Machine: alpha
Some paths: /usr/bin/perl /usr/bin/make /usr/local/bin/gmake /usr/local/bin/gcc
/usr/bin/cc
GCC: Reading specs from /usr/local/lib/gcc-lib/alphaev6-dec-osf5.1/3.0.1/specs
Configured with: ../gcc-3.0.1/configure
Thread model: single
gcc version 3.0.1
Compilation info: CC='/usr/local/bin/gcc' CFLAGS='' CXX='/usr/local/bin/gcc'
CXXFLAGS='' LDFLAGS=''
LIBC:
lrwxrwxrwx 1 root system 17 Oct 8 12:29 /lib/libc.a -> ../ccs/lib/libc.a
lrwxrwxrwx 1 root system 17 Oct 8 12:29 /usr/lib/libc.a ->
../ccs/lib/libc.a
Note that the configure command below is that of the PRODUCTION version
of MySQL on this machine, not the alternate server I'm trying to build.
Configure command: ./configure '--with-named-thread-libs=-lpthread -lmach -lexc'
--with-raid --localstatedir=/data0
---------------------------------------------------------------------
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