MySQL Lists are EOL. Please join:

List:General Discussion« Previous MessageNext Message »
From:Yan Zhang Chen 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:
>  > 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
>  > 

<<cut>>

> 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.
 
I was also trying to compile 3.22.25 on Digital Unix (4.0D), with
Digital's cc and cxx. I kept getting the following error, until
I used "--with-mysqld-ldflags=-all-static --disable-shared".
Any idea what might cause my problem please? (as I really want to
build one with shared libs).

BTW, what is the difference between "--with-mysqld-ldflags=-all-static" and
"--disable-shared" (I previously thought they are kind of the same thing)?
I noticed that in my case I have to use both; "--with-mysqld-ldflags=-all-static"
alone still gave the error.

Thanks very much for your help,
--Yan

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

(using "--with-mysqld-ldflags=-all-static" also produces the same error)

shell> make

/bin/sh ../libtool --mode=link cxx -pthread -O  -O   -DDBUG_OFF  -o mysql  mysql.o
readline.o sql_string.o completion_hash.o ../readline/libreadline.a -lcurses
libmysqlclient.la -lm   
cxx -pthread -O -O -DDBUG_OFF -o .libs/mysql mysql.o readline.o sql_string.o
completion_hash.o ../readline/libreadline.a -lcurses .libs/libmysqlclient.so -lm -lm
-Wl,-rpath -Wl,/usr/local/lib/mysql
ld:
Can't open: /usr/local/lib/mysql (No such file or directory)
make[2]: *** [mysql] Error 1
make[2]: Leaving directory `/usr/users/yzc/mysql-3.22.25/client'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/users/yzc/mysql-3.22.25'
make: *** [all-recursive-am] Error 2
----------------------------------------------------------------------------------

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