List:General Discussion« Previous MessageNext Message »
From:Douglas B. Jones Date:May 2 1999 10:18pm
Subject:Re: compiling mysql 3.22.21 on DU 4.0e
View as plain text  
Hi,

Tried the '--with-mysqld-ldflags=-all-static --disable-shared' with
all three forms I of compiling I mentioned in the previous compiling.

1) gnu cc and c++ got:
-------------------
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 -non_shared ../isam/libnisam.a ../merge/libmerge.a ../heap/libheap.a ../
mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a
 -lm -lpthread -lmach -lexc -lc
gcc: unrecognized option `-non_shared'
collect2: ld returned 1 exit status
/usr/bin/ld:
Unresolved:
_exit
*** Exit 1
Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.

-------------------
2) gnu cc and compaq (DEC) c++ got:
-------------------
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 -non_shared ../isam/libnisam.a ../merge/libmerge.a ../heap/libheap.a ../
mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a
 -lm -lpthread -lmach -lexc -lc
gcc: unrecognized option `-non_shared'
collect2: ld returned 1 exit status
/usr/bin/ld:
Unresolved:
_exit
*** Exit 1
Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.

-------------------
3) dec cc an dec c++ got:
-------------------
cxx -O -DDBUG_OFF -o mysqld item.o item_sum.o item_buff.o item_func.o item_cmpfu
nc.o item_strfunc.o item_timefunc.o thr_malloc.o field.o key.o sql_class.o sql_l
ist.o net_serv.o net_pkg.o lock.o my_lock.o sql_string.o sql_map.o mysqld.o pass
word.o hash_filo.o hostname.o sql_lex.o convert.o sql_parse.o sql_yacc.o sql_bas
e.o dfunc.o sql_select.o sql_insert.o sql_update.o sql_delete.o procedure.o item
_uniq.o sql_test.o log.o init.o derror.o sql_acl.o unireg.o time.o opt_range.o o
pt_sum.o records.o filesort.o handler.o sql_db.o crebas.o sql_table.o sql_crypt.
o sql_load.o mf_iocache.o field_conv.o sql_show.o sql_udf.o -non_shared ../isam/
libnisam.a ../merge/libmerge.a ../heap/libheap.a ../mysys/libmysys.a ../dbug/lib
dbug.a ../regex/libregex.a ../strings/libmystrings.a -lm -lpthread -lmach -lexc 
-lc
ld (prelink):
Can't locate file for: -lpthread
ld:
Can't locate file for: -lpthread
*** Exit 1
Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.

-------------------

Note that in 1 and 2, the exit is undefined. In the instructions it is mentioned
that this appears to be a bug in a 4.0d version of the compiler. We are on 4.0e
and a more recent version of the compiler. Also, it might be noted that it is
gcc
calling this and there is a gnu ld in the gnu bin. I'm not sure if this is not
just
a layer on top of really calling the DEC one or not.

On #3, there is no pthread.a lib. In the version now, they use -pthread (not
-lpthread for an explicit lib). From what I gather, -pthread makes sure certain
defined are defined in the for the system header files and I guess revolve
against
whatever static or share lib has the pthread routines in them.

I see in the configure (and configure.in) there is the line:

        if test -f /usr/shlib/libpthread.so -a -f /usr/lib/libmach.a -a -f /usr/
ccs/lib/cmplrs/cc/libexc.a

which generates:
	-lpthread -lmach -lexc -lc

It also has an echo of something about line 3346 above this, but I did not find
this in my output of the configure and compilation, so I am not real sure where
it got the -lpthread ....

Anyway, I still have not had any luck compiling.

By the way - Michael - you did not say which example, but I made a guess that
you
ment the one with DEC c and DEC c++, since that is the one that had the shared
library error - but I went on and did all three cases.

Thanks for any help,
Cheers,
Douglas

Michael Widenius wrote:
> 
> >>>>> "Douglas" == Douglas B Jones <douglas@stripped>
> writes:
> 
> Douglas> Hi,
> 
> Douglas> I have tried to compile mysql-4.22.21 on Digital Unix 4.0e patch level 1
> Douglas> at least three different ways according to the instructions. Here are
> some
> Douglas> stats on the compilers:
> 
> Douglas> gcc            2.8.1
> Douglas> /usr/bin/cc    DEC C V5.8-009 on Digital UNIX V4.0 (Rev. 1091)
> Douglas> /usr/bin/cxx   DIGITAL C++ V6.1-029 on DIGITAL UNIX V4.0 (Rev. 1091)
> 
> <cut>
> 
> Hi!
> 
> It looks like there problem has to do with libtool and symbolic
> linking and not with our compiler.
> 
> Can you try adding the parameters:
> 
> --with-mysqld-ldflags=-all-static --disable-shared
> 
> to configure.
> 
> Regards,
> Monty
Thread
compiling mysql 3.22.21 on DU 4.0eDouglas B. Jones29 Apr
  • MySQL Speed on LinuxBrandon Pulsipher29 Apr
    • MySQL Speed on LinuxMichael Widenius30 Apr
      • Re: MySQL Speed on Linux(Verle Harrison)17 May
        • Re: MySQL Speed on LinuxMichael Widenius24 May
  • compiling mysql 3.22.21 on DU 4.0eMichael Widenius30 Apr
  • Re: compiling mysql 3.22.21 on DU 4.0eDouglas B. Jones3 May
Re: MySQL Speed on LinuxFred Lindberg30 Apr