Hi,
I have tried to compile mysql-4.22.21 on Digital Unix 4.0e patch level 1
at least three different ways according to the instructions. Here are some
stats on the compilers:
gcc 2.8.1
/usr/bin/cc DEC C V5.8-009 on Digital UNIX V4.0 (Rev. 1091)
/usr/bin/cxx DIGITAL C++ V6.1-029 on DIGITAL UNIX V4.0 (Rev. 1091)
Different compiling methods (1-3):
1) gnu c and c++ - note in the below that configure picks up the gnu cc
before the system one.
#!/bin/csh
set path = (/usr/local/gnu/bin $path)
cd mysql-3.22.21
set CC=cc
set CFLAGS=-O
set CXX=gcc
set CXXFLAGS=-O3
./configure --prefix=/usr/local/mysql |& tee configure_out
make
The end of the output is:
--------------------------------
/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
gcc -O6 -DDBUG_OFF -o re split.o debug.o main.o libregex.a
../strings/libmystrin
gs.a -lm -lpthread -lmach -lexc -lc
collect2: ld returned 1 exit status
/usr/bin/ld:
Unresolved:
fflush
abort
*** Exit 1
Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.
--------------------------------
2) system cc and gnu c++ - note have to give the full path of system cc
in order for it to pick that up first, else it will still pick up
the gnu cc since it seams to want gnu cc if it can find it.
#!/bin/csh
set path = ($path /usr/local/gnu/bin)
cd mysql-3.22.21
setenv CC /usr/bin/cc
setenv CFLAGS -O
setenv CXX gcc
setenv CXXFLAGS -O3
./configure --prefix=/usr/local/mysql |& tee configure_out
make
The end of output of this run:
--------------------------------
gcc -O -O3 -fno-implicit-templates -DDBUG_OFF -o mysqld item.o item_sum.o
item_b
uff.o item_func.o item_cmpfunc.o item_strfunc.o item_timefunc.o thr_malloc.o
fie
ld.o key.o sql_class.o sql_list.o net_serv.o net_pkg.o lock.o my_lock.o
sql_stri
ng.o sql_map.o mysqld.o password.o hash_filo.o hostname.o sql_lex.o convert.o
sq
l_parse.o sql_yacc.o sql_base.o dfunc.o sql_select.o sql_insert.o sql_update.o
s
ql_delete.o procedure.o item_uniq.o sql_test.o log.o init.o derror.o sql_acl.o
u
nireg.o time.o opt_range.o opt_sum.o records.o filesort.o handler.o sql_db.o
cre
bas.o sql_table.o sql_crypt.o sql_load.o mf_iocache.o field_conv.o sql_show.o
sq
l_udf.o ../isam/libnisam.a ../merge/libmerge.a ../heap/libheap.a
../mysys/libmys
ys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a -lm
-lpthre
ad -lmach -lexc -lc
collect2: ld returned 1 exit status
/usr/bin/ld:
Unresolved:
_exit
*** Exit 1
Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.
--------------------------------
3) system cc and c++ (cxx) - (note: gcc and g++ are not in the path):
#!/bin/csh
cd mysql-3.22.21
./configure --prefix=/usr/local/mysql |& tee configure_out
make
The end of the results:
--------------------------------
cxx -O -DDBUG_OFF -o .libs/mysql mysql.o readline.o sql_string.o
completion_hash
.o ../readline/libreadline.a -lcurses -Wl,-rpath -Wl,/usr/local/mysql/lib/mysql
.libs/libmysqlclient.so -lm -lm
ld (prelink):
Object file format error in: /usr/local/mysql/lib/mysql: read_cur_obj_info:
File
is not a regular file
ld:
Object file format error in: /usr/local/mysql/lib/mysql: read_cur_obj_info:
File
is not a regular file
*** Exit 1
Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.
--------------------------------
As of this compiling, there are no share libs in /usr/local/mysql/lib/mysql.
Note that it refers to its' on copy of .so, but wants to link against a
system one that does no exist - there is an earlier version of mysql.
Thanks for any help on getting this to compile on DU 4.0e.
Cheers,
Douglas