List:General Discussion« Previous MessageNext Message »
From:Jani Tolonen Date:August 31 1999 10:22am
Subject:Problems compiling mysql-3.22.25 on Digital Unix 4.0x (AlphaServer)
View as plain text  
Kimmo Mustonen writes:
 > Hello!
 > 
 > I have problems when compiling. In the documentation there were many
 > different instructions for Digital Unix and I've tried all of the but
 > there's always something that complains and doesn't compile. :(
 > 
 > AlphaServer 800, Digital Unix 4.0b or 4.0d, egcs-2.91.57
 > 
 > cd mysql-3.22.25
 > rm config.cache
 > ./configure
 > make
 > 
 > -----
 > 
 > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./../include -I../include    -O6
 > -DDBUG_OFF -c bfill.c
 > In file included from
 > /usr/local/lib/gcc-lib/alphaev56-dec-osf4.0b/egcs-2.91.57/include/pthread.h:290,
 >                  from ../include/global.h:50,
 >                  from bfill.c:15:
 > /usr/include/c_asm.h:193: parse error before `asm'
 > *** Exit 1
 > Stop.
 > *** Exit 1
 > Stop.
 > *** Exit 1
 > Stop.
 > 
 > touch include/c_asm.h
 > rm config.cache
 > setenv CFLAGS "-I./include -O"
 > ./configure
 > make
 > 
 > I get the following kind of warnings:
 > 
 > ------
 > 
 > gcc -DUNDEF_THREADS_HACK -I./../include -I../include -I./.. -I.. -I.. -O6
 > -DDBUG_OFF -c  -DPIC getopt.c -o .libs/getopt.lo
 > In file included from ../include/global.h:88,
 >                  from getopt.c:49:
 > /usr/local/lib/gcc-lib/alphaev56-dec-osf4.0b/egcs-2.91.57/include/math.h:106:
 > warning: conflicting types for built-in function `cosf'
 > /usr/local/lib/gcc-lib/alphaev56-dec-osf4.0b/egcs-2.91.57/include/math.h:109:
 > warning: conflicting types for built-in function `fabsf'
 > /usr/local/lib/gcc-lib/alphaev56-dec-osf4.0b/egcs-2.91.57/include/math.h:118:
 > warning: conflicting types for built-in function `sinf'
 > /usr/local/lib/gcc-lib/alphaev56-dec-osf4.0b/egcs-2.91.57/include/math.h:120:
 > warning: conflicting types for built-in function `sqrtf'
 > 
 > ------
 > 
 > c++ -DUNDEF_THREADS_HACK -I./../include -I../include
 > -I./.. -I.. -I..    -O   -fno-implicit-templates -DDBUG_OFF -c mysql.cc
 > In file included from ../include/global.h:123,
 >                  from mysql.cc:14:
 > /usr/include/alloca.h:71: warning: declaration of `void * alloca(int)'
 > /usr/include/alloca.h:71: warning: conflicts with built-in declaration
 > `void * alloca(long unsigned int)'
 > 
 > ------
 > 
 > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./../include -I../include -I..    -O6
 > -I./include -O  -DDBUG_OFF -c resolveip.c
 > resolveip.c: In function `main':
 > resolveip.c:171: warning: type mismatch in implicit declaration for
 > built-in function `memcpy'
 > 
 > ------
 > 
 > gcc -O6 -I./include -O -DDBUG_OFF -o re split.o debug.o main.o libregex.a
 > ../strings/libmystrings.a -lm -lpthread -lmach -lexc -lc
 > /bin/ld:
 > Unresolved:
 > fflush
 > abort
 > collect2: ld returned 1 exit status
 > *** Exit 1
 > Stop.
 > *** Exit 1
 > Stop.
 > *** Exit 1
 > Stop.
 > 
 > ------
 > 
 > Strange. That fflush() shouldn't be too difficult...
 > 
 > The other warnings/errors I have got with different setups suggested in
 > INSTALL-SOURCE...
 > 
 > ------
 > 
 > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./../include -I../include    -O6
 > -DDBUG_OFF -c str2int.c
 > In file included from ../include/my_sys.h:21,
 >                  from str2int.c:28:
 > ../include/my_pthread.h:262: warning: `pthread_mutex_init' redefined
 > /usr/local/lib/gcc-lib/alphaev56-dec-osf4.0b/egcs-2.91.57/include/pthread.h:1084:
 > warning: this is the location of the previous definition
 > ../include/my_pthread.h:266: warning: `pthread_cond_init' redefined
 > /usr/local/lib/gcc-lib/alphaev56-dec-osf4.0b/egcs-2.91.57/include/pthread.h:1237:
 > warning: this is the location of the previous definition
 > 
 > ------
 > 
 > gcc -DDEFAULT_BASEDIR=\"/usr/local\" -DDATADIR="\"/usr/local/var\""
 > -DHAVE_CONFIG_H -I./../include -I../include -I..    -O6   -DDBUG_OFF -c
 > my_pthread.c
 > In file included from ../include/my_sys.h:21,
 >                  from mysys_priv.h:5,
 >                  from my_pthread.c:6:
 > ../include/my_pthread.h:262: warning: `pthread_mutex_init' redefined
 > /usr/local/lib/gcc-lib/alphaev56-dec-osf4.0b/egcs-2.91.57/include/pthread.h:1084:
 > warning: this is the location of the previous definition
 > ../include/my_pthread.h:266: warning: `pthread_cond_init' redefined
 > /usr/local/lib/gcc-lib/alphaev56-dec-osf4.0b/egcs-2.91.57/include/pthread.h:1237:
 > warning: this is the location of the previous definition
 > my_pthread.c: In function `my_pthread_mutex_init':
 > my_pthread.c:381: `pthread_mutexattr_default' undeclared (first use in
 > this function)
 > my_pthread.c:381: (Each undeclared identifier is reported only once
 > my_pthread.c:381: for each function it appears in.)
 > my_pthread.c: In function `my_pthread_cond_init':
 > my_pthread.c:391: `pthread_condattr_default' undeclared (first use in this
 > function)
 > *** Exit 1
 > Stop.
 > *** Exit 1
 > Stop.
 > *** Exit 1
 > Stop.
 > 
 > -----
 > 
 > Any idea?
 > 
 > If using cc:
 > 
 > unsetenv CFLAGS
 > setenv CC "cc"
 > ./configure
 > make clean
 > make
 > 
 > cc -std1 -DUNDEF_THREADS_HACK -DHAVE_CONFIG_H -I./../include -I./.. -I..
 > -O   -DDBUG_OFF -c bind.c
 > cc: Warning: bind.c, line 208: Non-void function
 > "rl_unbind_function_in_map" does not contain a return statement.
 > int
 > ^
 > 
 > -----
 > 
 > cc -std1 -DUNDEF_THREADS_HACK -I./../include -I../include -I./.. -I.. -I..
 > -O -DDBUG_OFF -c  -DPIC libmysql.c -o .libs/libmysql.lo
 > cc: Warning: ./../include/mysql.h, line 76: In this declaration, type
 > "unsigned long long" is a language extension.
 > typedef unsigned long long my_ulonglong;
 > --------^
 > 
 > -----
 > 
 > cc -std1 -O -DDBUG_OFF -o test_thr_alarm -DDEFAULT_BASEDIR=\"/usr/local\"
 > -DDATADIR=\"/usr/local/var\" -DHAVE_CONFIG_H -I./../include -I../include
 > -I.. -O -DDBUG_OFF -DMAIN ./thr_alarm.c libmysys.a ../dbug/libdbug.a
 > ../strings/libmystrings.a -lm -lpthread -lmach -lexc -lc
 > ld:
 > Unresolved:
 > asm
 > *** Exit 1
 > Stop.
 > *** Exit 1
 > Stop.
 > *** Exit 1
 > Stop.
 > 
 > -----
 > 
 > This far I haven't been able to find any combination that would compile.
 > :(
 > 
 > Kimmo Mustonen
 > 

Terve Kimmo,

Two more suggestions:

1.)

sh -c CFLAGS="-D_PTHREAD_USE_D4 -DHAVE_NONPOSIX_SIGWAIT" CXX=gcc CXXFLAGS="-O3
-DHAVE_NONPOSIX_SIGWAIT" ./configure ...

2.) (This is in the manual under 'Alpha-DEC-Unix notes'.)

shell> CC="cc -pthread" CXX="cxx -pthread -O" \
       ./configure --with-named-thread-libs="-lpthread -lmach -lexc -lc"

If doesn't help, try adding
--with-mysqld-ldflags=-all-static --disable-shared 
to the configure line.

If you are still having problems compiling, please report back.

Regards,

- Jani

-- 
+-------------------------------------------------------------+
| TcX  ____  __     _____   _____  ___                        |
|     /*/\*\/\*\   /*/ \*\ /*/ \*\ |*|       Jani Tolonen     |
|    /*/ /*/ /*/   \*\_   |*|   |*||*|       jani@stripped   |
|   /*/ /*/ /*/\*\/*/  \*\|*|   |*||*|       Helsinki         |
|  /*/     /*/  /*/\*\_/*/ \*\_/*/ |*|_____  Finland          |
|  ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^                   |
|             /*/             \*\            Developers Team  |
+-------------------------------------------------------------+
Thread
Problems compiling mysql-3.22.25 on Digital Unix 4.0x (AlphaServer)Kimmo Mustonen31 Aug
  • Problems compiling mysql-3.22.25 on Digital Unix 4.0x (AlphaServer)Jani Tolonen31 Aug
    • Re: Problems compiling mysql-3.22.25 on Digital Unix 4.0x (AlphaServer)Kimmo Mustonen31 Aug
      • Re: Problems compiling mysql-3.22.25 on Digital Unix 4.0x (AlphaServer)Jani Tolonen31 Aug
        • UnixWare Threads... From SCO...801) 250-O795 Work31 Aug
        • Re: Problems compiling mysql-3.22.25 on Digital Unix 4.0x (AlphaServer)Kimmo Mustonen1 Sep
    • Re: Problems compiling mysql-3.22.25 on Digital Unix 4.0x (AlphaServer)Yan Zhang Chen31 Aug
      • Re: Problems compiling mysql-3.22.25 on Digital Unix 4.0x (AlphaServer)Michael Widenius1 Sep
  • Problems compiling mysql-3.22.25 on Digital Unix 4.0x (AlphaServer)Michael Widenius31 Aug
    • Re: Problems compiling mysql-3.22.25 on Digital Unix 4.0x (AlphaServer)Kimmo Mustonen1 Sep