MySQL Lists are EOL. Please join:

List:General Discussion« Previous MessageNext Message »
From:Kimmo Mustonen Date:January 1 1970 12:00am
Subject:Re: Problems compiling mysql-3.22.25 on Digital Unix 4.0x (AlphaServer)
View as plain text  
On Tue, 31 Aug 1999, Jani Tolonen wrote:

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

alpha2> rm config.cache
alpha2> sh -c CFLAGS="-D_PTHREAD_USE_D4 -DHAVE_NONPOSIX_SIGWAIT" CXX=gcc
CXXFLAGS="-O3 -DHAVE_NONPOSIX_SIGWAIT" ./configure
CXX=gcc: -DHAVE_NONPOSIX_SIGWAIT: not found

alpha2> sh -c 'CFLAGS="-D_PTHREAD_USE_D4 -DHAVE_NONPOSIX_SIGWAIT" CXX=gcc
CXXFLAGS="-O3 -DHAVE_NONPOSIX_SIGWAIT" ./configure'
...
alpha2> make clean
...
alpha2> make
...

Making all in dbug
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./../include -I../include    -O6
-D_PTHREAD_USE_D4 -DHAVE_NONPOSIX_SIGWAIT  -DDBUG_OFF -c dbug.c
dbug.c: In function `init_dbug_state':
dbug.c:339: incompatible type for argument 2 of `pthread_mutex_init'
*** Exit 1
Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.

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

alpha2> rm config.cache
alpha2> sh -c 'CFLAGS="-D_PTHREAD_USE_D4 -DHAVE_NONPOSIX_SIGWAIT" CXX=gcc
CXXFLAGS="-O3 -DHAVE_NONPOSIX_SIGWAIT" ./configure
--with-mysqld-ldflags=-all-static --disable-shared'
...
alpha2> make clean
...
alpha2> make
...
gcc -O6 -D_PTHREAD_USE_D4 -DHAVE_NONPOSIX_SIGWAIT -DDBUG_OFF -o testhash
testhash.o libmysys.a ../dbug/libdbug.a ../strings/libmystrings.a -lm
-lpthread -lmach -lexc -lc
/bin/ld:
Unresolved:
pthread_mutex_destroy
pthread_mutex_lock
pthread_setspecific
pthread_mutex_unlock
pthread_cond_destroy
sigwait
pthread_mutexattr_default
pthread_mutex_init
pthread_condattr_default
pthread_cond_init
pthread_getspecific
collect2: ld returned 1 exit status
*** Exit 1
Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.

> 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"

alpha2> rm config.cache
alpha2> sh -c 'CC="cc -pthread" CXX="cxx -pthread -O" ./configure
--with-named-thread-libs="-lpthread -lmach -lexc -lc"'
...
checking whether the C++ compiler (cxx -pthread -O   ) works... no
configure: error: installation or configuration problem: C++ compiler
cannot create executables.

I don't seem to have cxx... should I have it?
Try to use c++ (ecgs) instead instead of cxx...

alpha2> rm config.cache
alpha2> sh -c 'CC="cc -pthread" CXX="c++ -pthread -O" ./configure
--with-named-thread-libs="-lpthread -lmach -lexc -lc"'
...
alpha2> make clean
...
alpha2> make
...
cc -pthread -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 -pthread -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.

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

alpha2> rm config.cache
alpha2> sh -c 'CC="cc -pthread" CXX="c++ -pthread -O" ./configure
--with-named-thread-libs="-lpthread -lmach -lexc -lc"
--with-mysqld-ldflags=-all-static --disable-shared'
...
alpha2> make clean
...
alpha2> make
...
cc -pthread -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 -pthread -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.

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

I'm afraid I still have... :(

Regards,
Kimmo Mustonen


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