tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* errors compiling MySQL with gcc
@ 2001-06-20 17:21 Danielle Van Grunderbeeck
  0 siblings, 0 replies; 2+ messages in thread
From: Danielle Van Grunderbeeck @ 2001-06-20 17:21 UTC (permalink / raw)
  To: tru64-unix-managers

Hello,

I try configuring MySQL following all suggestions of Alpha-DEC-OSF1 
Notes in INSTALL-SOURCE.

Digital UNIX V4.0D  (Rev. 878)
mysql-3.23.39
gcc-2.95.2

config.log says

>configure:5294: cc -std1 -o conftest     conftest.c -lm  1>&5
>cc: Error: configure, line 5288: In this declaration, "int8" must 
>specify a type
>.
>   int8 i;
>--^
>configure: failed program was:
>#line 5272 "configure"
>#include "confdefs.h"
>
>#ifdef HAVE_STDLIB_H
>#include <stdlib.h>
>#endif
>
>#ifdef HAVE_STDDEF_H
>#include <stddef.h>
>#endif
>
>#ifdef HAVE_SYS_TYPES_H
>#include <sys/types.h>
>#endif
>
>int main()
>{
>   int8 i;
>   return 0;
>}

and

>configure:9413: cc -std1 -o conftest -O -DDBUG_OFF     conftest.c 
>-lpthread -lma
>ch -lexc -lm  -lpthread -lmach -lexc 1>&5
>ld:
>Unresolved:
>sigwait
>configure: failed program was:
>#line 9399 "configure"
>#include "confdefs.h"
>#if !defined(SCO) && !defined(__osf__)
>#define _REENTRANT
>#endif
>#define _POSIX_PTHREAD_SEMANTICS
>#include <pthread.h>
>#include <signal.h>
>int main() {
>sigset_t set;
>int sig;
>sigwait(&set);
>; return 0; }


Then I ran make which went for a while and gave me this:

>...
>Making all in strings
>make[2]: Entering directory `/usr/local/src/mysql-3.23.39/strings'
>cc -std1 -DHAVE_CONFIG_H -I. -I. -I.. -I./../include -I../include 
>-O -DDBUG_O
>FF   -c str2int.c
>cc: Warning: ./../include/my_pthread.h, line 279: In this 
>declaration, parameter
>  1 has a different type than specified in an earlier declaration of 
>this functio
>n.
>int sigwait(sigset_t *setp, int *sigp);         /* Use our implemention */
>----^
>cc: Error: ./../include/my_pthread.h, line 279: In this declaration, 
>the type of
>  "sigwait" is not compatible with the type of a previous declaration 
>of "sigwait
>" at line number 481 in file /usr/include/signal.h.
>int sigwait(sigset_t *setp, int *sigp);         /* Use our implemention */
>----^
>make[2]: *** [str2int.o] Error 1
>make[2]: Leaving directory `/usr/local/src/mysql-3.23.39/strings'
>make[1]: *** [all-recursive] Error 1
>make[1]: Leaving directory `/usr/local/src/mysql-3.23.39'
>make: *** [all-recursive-am] Error 2


-- 
Danielle Van Grunderbeeck

=46acult=E9 des sciences
Service informatique
B=E2timent Pierre Curie
Rue du Compas, 2
B-1348 Louvain-la-Neuve

e-mail : dvg@sisc.ucl.ac.be
tel :    32 (0) 10 47 32 35
          32 (0) 10 47 25 58

^ permalink raw reply	[flat|nested] 2+ messages in thread
* errors compiling MySQL with gcc
@ 2000-08-25 12:05 Irvine Short
  0 siblings, 0 replies; 2+ messages in thread
From: Irvine Short @ 2000-08-25 12:05 UTC (permalink / raw)
  To: tru64-unix-managers

OK, I found out how to make configure use gcc and accordingly I did
this:

# ./configure --with-gcc --enable-shared --prefix=/usr/local/mysql

Then I ran make which went for a while and gave me this:

/bin/sh ../libtool --mode=compile gcc -DUNDEF_THREADS_HACK
-I./../include -I../include                          -I./.. -I.. -I..   
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O6
-DDBUG_OFF   -c my_alloc.c
gcc -DUNDEF_THREADS_HACK -I./../include -I../include -I./.. -I.. -I..
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O6
-DDBUG_OFF -c my_alloc.c -o my_alloc.o
echo timestamp > my_alloc.lo
/bin/sh ../libtool --mode=compile gcc -DUNDEF_THREADS_HACK
-I./../include -I../include                          -I./.. -I.. -I..   
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O6
-DDBUG_OFF   -c getopt.c
gcc -DUNDEF_THREADS_HACK -I./../include -I../include -I./.. -I.. -I..
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O6
-DDBUG_OFF -c getopt.c -o getopt.o
In file included from /usr/include/sys/socket.h:67,
                 from ../include/global.h:281,
                 from getopt.c:49:
/usr/include/sys/uio.h:178: macro `readv' used without args
/usr/include/sys/uio.h:179: macro `writev' used without args
*** Exit 1
Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.

-- 

Irvine Short

Sys Admin
SANBI, University of the Western Cape, South Africa
http://www.sanbi.ac.za 
tel: +27-21-959 3645
fax: +27-21-959 2512
cel: +27-82-494 3828

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-06-20 17:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-20 17:21 errors compiling MySQL with gcc Danielle Van Grunderbeeck
  -- strict thread matches above, loose matches on Subject: below --
2000-08-25 12:05 Irvine Short

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox