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:

> Kimmo Mustonen writes:
>  > On Tue, 31 Aug 1999, Jani Tolonen wrote:
>  > 
>  > > 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...
> 
> Hi,
> 
> You can get past this by installing g++, libg++ and libstdc++ libraries.

Well, actually this cxx command is completely missing. I don't think those
libraries include cxx command? But I have ecgs and I'm trying to use that
to compile this. Or is it required that I should get cxx and those
libraries from somewhere? If yes, where can I find them?

> You could also try changing the CXX=... to CXX="gcc -O3"

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

>  > 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.
> 
> Please try:
> cd mysql-distribution; 
> touch include/c_asm.h; 
> make clean; 
> make

I have already done that.

alpha2> ls -l include/c_asm.h
-rw-r--r--   1 kimu01   system         0 Aug 31 12:27 include/c_asm.h

So maybe I should add that -I./include as well...

alpha2> rm config.cache
alpha2> sh -c 'CC="cc -pthread" CFLAGS="-I./include" CXX="gcc -O3"
./configure --with-named-thread-libs="-lpthread -lmach -lexc -lc"'
...
alpha2> make clean
...
alpha2> make
...
cc -pthread -std1 -O -I./include -DDBUG_OFF -o test_thr_alarm
-DDEFAULT_BASEDIR=\"/usr/local\" -DDATADIR=\"/usr/local/var\"
-DHAVE_CONFIG_H -I./../include -I../include -I.. -O -I./include -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.

So it didn't help.

> Can you please send next mail with mysqlbug, if the problem
> still exists? mysqlbug will gather useful information of your
> platform.

Ok, I sent it. Hopefully it got through.

>     But of course if you need to get the source distribution to
>     work, we'll try to help you out.

For debugging etc. purposes, it would be nice to be able to compile from
sources.

Kimmo


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