List:General Discussion« Previous MessageNext Message »
From:Jani Tolonen Date:July 30 1999 1:24am
Subject:Re: Mysql problem on Digital UNIX
View as plain text  
Colin Bruce writes:
 > On Thu, 29 Jul 1999 sinisa@stripped wrote:
 > 
 > > I see you have made MySQL out of source.
 > > 
 > > I think you should repeat a process, but this time, please follow
 > > precisely instructions in a manual, pertaining to Digital Unix.
 > > 
 > > If you follow the recommandations strictly, and if you have problems
 > > during make and running, please notify.
 > 
 > Hi There,
 > 
 > Thanks for the mail. Unfortunately the recommendations for Digital UNIX
 > are a bit vague. Several suggestions but nothing very concrete. I have
 > tried them all but with no success. For example, 
 > 
 > CC=gcc CXX=gcc CXXFLAGS=-O3 ./configure --prefix=/usr/local/mysql
 > 
 > seems to be quite good until 
 > 
 > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./../include -I../include    -O6   -DDBUG_OFF -c
main.c
 > /bin/sh ../libtool --mode=link gcc  -O6   -DDBUG_OFF  -o re  split.o debug.o main.o
libregex.a ../strings/libmystrings.a -lm    -lpthread -lmach -lexc -lc
 > mkdir .libs
 > gcc -O6 -DDBUG_OFF -o re split.o debug.o main.o libregex.a ../strings/libmystrings.a
-lm -lpthread -lmach -lexc -lc
 > collect2: ld returned 1 exit status
 > /usr/bin/ld:
 > Unresolved:
 > fflush
 > abort
 > 
 > Now I have never seen a compile/load command using the C compiler which
 > specifically has to load the C library (-lc) but perhaps thats just lack
 > of experience. If I remove that though the thing builds ok although it
 > doesn't run.
 > 
 > Any thoughts?
 > 
 > Best wishes...
 > Colin
 > 

Hello Colin,

Please try the following configure:

setenv CC "cc -pthread" setenv CXX "cxx -pthread -O" ./configure
--with-mysqld-ldflags=-all-static --disable-shared
--with-named-thread-libs="-lmach -lexc -lc
--with-named-thread-libs="-lpthread -lmach -lexc -lc"
--prefix=/usr/local/mysql

First, remove old config.cache.

Then configure, make, make install.

Regards,

- Jani

-- 
+-------------------------------------------------------------+
| TcX  ____  __     _____   _____  ___                        |
|     /*/\*\/\*\   /*/ \*\ /*/ \*\ |*|       Jani Tolonen     |
|    /*/ /*/ /*/   \*\_   |*|   |*||*|       jani@stripped   |
|   /*/ /*/ /*/\*\/*/  \*\|*|   |*||*|       Helsinki         |
|  /*/     /*/  /*/\*\_/*/ \*\_/*/ |*|_____  Finland          |
|  ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^                   |
|             /*/             \*\            Developers Team  |
+-------------------------------------------------------------+
Thread
Mysql problem on Digital UNIXccx00429 Jul
  • Mysql problem on Digital UNIXsinisa29 Jul
    • Re: Mysql problem on Digital UNIXColin Bruce29 Jul
      • Re: Mysql problem on Digital UNIXJani Tolonen30 Jul
      • Re: Mysql problem on Digital UNIXsinisa30 Jul
        • Re: Mysql problem on Digital UNIXColin Bruce30 Jul